AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Metric.h
1
6#pragma once
7#include <aws/codeguruprofiler/CodeGuruProfiler_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/codeguruprofiler/model/MetricType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CodeGuruProfiler
24{
25namespace Model
26{
27
36 class Metric
37 {
38 public:
39 AWS_CODEGURUPROFILER_API Metric();
40 AWS_CODEGURUPROFILER_API Metric(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CODEGURUPROFILER_API Metric& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::String& GetFrameName() const{ return m_frameName; }
51 inline bool FrameNameHasBeenSet() const { return m_frameNameHasBeenSet; }
52 inline void SetFrameName(const Aws::String& value) { m_frameNameHasBeenSet = true; m_frameName = value; }
53 inline void SetFrameName(Aws::String&& value) { m_frameNameHasBeenSet = true; m_frameName = std::move(value); }
54 inline void SetFrameName(const char* value) { m_frameNameHasBeenSet = true; m_frameName.assign(value); }
55 inline Metric& WithFrameName(const Aws::String& value) { SetFrameName(value); return *this;}
56 inline Metric& WithFrameName(Aws::String&& value) { SetFrameName(std::move(value)); return *this;}
57 inline Metric& WithFrameName(const char* value) { SetFrameName(value); return *this;}
59
61
65 inline const Aws::Vector<Aws::String>& GetThreadStates() const{ return m_threadStates; }
66 inline bool ThreadStatesHasBeenSet() const { return m_threadStatesHasBeenSet; }
67 inline void SetThreadStates(const Aws::Vector<Aws::String>& value) { m_threadStatesHasBeenSet = true; m_threadStates = value; }
68 inline void SetThreadStates(Aws::Vector<Aws::String>&& value) { m_threadStatesHasBeenSet = true; m_threadStates = std::move(value); }
69 inline Metric& WithThreadStates(const Aws::Vector<Aws::String>& value) { SetThreadStates(value); return *this;}
70 inline Metric& WithThreadStates(Aws::Vector<Aws::String>&& value) { SetThreadStates(std::move(value)); return *this;}
71 inline Metric& AddThreadStates(const Aws::String& value) { m_threadStatesHasBeenSet = true; m_threadStates.push_back(value); return *this; }
72 inline Metric& AddThreadStates(Aws::String&& value) { m_threadStatesHasBeenSet = true; m_threadStates.push_back(std::move(value)); return *this; }
73 inline Metric& AddThreadStates(const char* value) { m_threadStatesHasBeenSet = true; m_threadStates.push_back(value); return *this; }
75
77
83 inline const MetricType& GetType() const{ return m_type; }
84 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
85 inline void SetType(const MetricType& value) { m_typeHasBeenSet = true; m_type = value; }
86 inline void SetType(MetricType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
87 inline Metric& WithType(const MetricType& value) { SetType(value); return *this;}
88 inline Metric& WithType(MetricType&& value) { SetType(std::move(value)); return *this;}
90 private:
91
92 Aws::String m_frameName;
93 bool m_frameNameHasBeenSet = false;
94
95 Aws::Vector<Aws::String> m_threadStates;
96 bool m_threadStatesHasBeenSet = false;
97
98 MetricType m_type;
99 bool m_typeHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace CodeGuruProfiler
104} // namespace Aws
Metric & AddThreadStates(Aws::String &&value)
Definition Metric.h:72
AWS_CODEGURUPROFILER_API Metric(Aws::Utils::Json::JsonView jsonValue)
void SetType(MetricType &&value)
Definition Metric.h:86
void SetFrameName(Aws::String &&value)
Definition Metric.h:53
Metric & AddThreadStates(const char *value)
Definition Metric.h:73
void SetType(const MetricType &value)
Definition Metric.h:85
Metric & WithFrameName(const char *value)
Definition Metric.h:57
const Aws::Vector< Aws::String > & GetThreadStates() const
Definition Metric.h:65
void SetFrameName(const Aws::String &value)
Definition Metric.h:52
Metric & WithThreadStates(Aws::Vector< Aws::String > &&value)
Definition Metric.h:70
Metric & AddThreadStates(const Aws::String &value)
Definition Metric.h:71
AWS_CODEGURUPROFILER_API Metric & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetFrameName(const char *value)
Definition Metric.h:54
AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const
Metric & WithThreadStates(const Aws::Vector< Aws::String > &value)
Definition Metric.h:69
Metric & WithFrameName(Aws::String &&value)
Definition Metric.h:56
Metric & WithFrameName(const Aws::String &value)
Definition Metric.h:55
Metric & WithType(const MetricType &value)
Definition Metric.h:87
const MetricType & GetType() const
Definition Metric.h:83
void SetThreadStates(const Aws::Vector< Aws::String > &value)
Definition Metric.h:67
Metric & WithType(MetricType &&value)
Definition Metric.h:88
AWS_CODEGURUPROFILER_API Metric()
const Aws::String & GetFrameName() const
Definition Metric.h:50
void SetThreadStates(Aws::Vector< Aws::String > &&value)
Definition Metric.h:68
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue