AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
Metric.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetization_EXPORTS.h>
8#include <aws/appmonetization/model/MetricDefinition.h>
9#include <aws/appmonetization/model/PlanStage.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AppMonetization {
22namespace Model {
23
31class Metric {
32 public:
33 AWS_APPMONETIZATION_API Metric() = default;
34 AWS_APPMONETIZATION_API Metric(Aws::Utils::Json::JsonView jsonValue);
35 AWS_APPMONETIZATION_API Metric& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetAppId() const { return m_appId; }
43 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
44 template <typename AppIdT = Aws::String>
45 void SetAppId(AppIdT&& value) {
46 m_appIdHasBeenSet = true;
47 m_appId = std::forward<AppIdT>(value);
48 }
49 template <typename AppIdT = Aws::String>
50 Metric& WithAppId(AppIdT&& value) {
51 SetAppId(std::forward<AppIdT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetMetricId() const { return m_metricId; }
62 inline bool MetricIdHasBeenSet() const { return m_metricIdHasBeenSet; }
63 template <typename MetricIdT = Aws::String>
64 void SetMetricId(MetricIdT&& value) {
65 m_metricIdHasBeenSet = true;
66 m_metricId = std::forward<MetricIdT>(value);
67 }
68 template <typename MetricIdT = Aws::String>
69 Metric& WithMetricId(MetricIdT&& value) {
70 SetMetricId(std::forward<MetricIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetName() const { return m_name; }
80 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
81 template <typename NameT = Aws::String>
82 void SetName(NameT&& value) {
83 m_nameHasBeenSet = true;
84 m_name = std::forward<NameT>(value);
85 }
86 template <typename NameT = Aws::String>
87 Metric& WithName(NameT&& value) {
88 SetName(std::forward<NameT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetDescription() const { return m_description; }
98 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
99 template <typename DescriptionT = Aws::String>
100 void SetDescription(DescriptionT&& value) {
101 m_descriptionHasBeenSet = true;
102 m_description = std::forward<DescriptionT>(value);
103 }
104 template <typename DescriptionT = Aws::String>
105 Metric& WithDescription(DescriptionT&& value) {
106 SetDescription(std::forward<DescriptionT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetEventType() const { return m_eventType; }
116 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
117 template <typename EventTypeT = Aws::String>
118 void SetEventType(EventTypeT&& value) {
119 m_eventTypeHasBeenSet = true;
120 m_eventType = std::forward<EventTypeT>(value);
121 }
122 template <typename EventTypeT = Aws::String>
123 Metric& WithEventType(EventTypeT&& value) {
124 SetEventType(std::forward<EventTypeT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::String& GetUnitName() const { return m_unitName; }
134 inline bool UnitNameHasBeenSet() const { return m_unitNameHasBeenSet; }
135 template <typename UnitNameT = Aws::String>
136 void SetUnitName(UnitNameT&& value) {
137 m_unitNameHasBeenSet = true;
138 m_unitName = std::forward<UnitNameT>(value);
139 }
140 template <typename UnitNameT = Aws::String>
141 Metric& WithUnitName(UnitNameT&& value) {
142 SetUnitName(std::forward<UnitNameT>(value));
143 return *this;
144 }
146
148
152 inline const MetricDefinition& GetDefinition() const { return m_definition; }
153 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
154 template <typename DefinitionT = MetricDefinition>
155 void SetDefinition(DefinitionT&& value) {
156 m_definitionHasBeenSet = true;
157 m_definition = std::forward<DefinitionT>(value);
158 }
159 template <typename DefinitionT = MetricDefinition>
160 Metric& WithDefinition(DefinitionT&& value) {
161 SetDefinition(std::forward<DefinitionT>(value));
162 return *this;
163 }
165
167
170 inline const Aws::String& GetArn() const { return m_arn; }
171 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
172 template <typename ArnT = Aws::String>
173 void SetArn(ArnT&& value) {
174 m_arnHasBeenSet = true;
175 m_arn = std::forward<ArnT>(value);
176 }
177 template <typename ArnT = Aws::String>
178 Metric& WithArn(ArnT&& value) {
179 SetArn(std::forward<ArnT>(value));
180 return *this;
181 }
183
185
189 inline PlanStage GetStage() const { return m_stage; }
190 inline bool StageHasBeenSet() const { return m_stageHasBeenSet; }
191 inline void SetStage(PlanStage value) {
192 m_stageHasBeenSet = true;
193 m_stage = value;
194 }
195 inline Metric& WithStage(PlanStage value) {
196 SetStage(value);
197 return *this;
198 }
200 private:
201 Aws::String m_appId;
202
203 Aws::String m_metricId;
204
205 Aws::String m_name;
206
207 Aws::String m_description;
208
209 Aws::String m_eventType;
210
211 Aws::String m_unitName;
212
213 MetricDefinition m_definition;
214
215 Aws::String m_arn;
216
218 bool m_appIdHasBeenSet = false;
219 bool m_metricIdHasBeenSet = false;
220 bool m_nameHasBeenSet = false;
221 bool m_descriptionHasBeenSet = false;
222 bool m_eventTypeHasBeenSet = false;
223 bool m_unitNameHasBeenSet = false;
224 bool m_definitionHasBeenSet = false;
225 bool m_arnHasBeenSet = false;
226 bool m_stageHasBeenSet = false;
227};
228
229} // namespace Model
230} // namespace AppMonetization
231} // namespace Aws
const Aws::String & GetArn() const
Definition Metric.h:170
Metric & WithName(NameT &&value)
Definition Metric.h:87
void SetStage(PlanStage value)
Definition Metric.h:191
void SetMetricId(MetricIdT &&value)
Definition Metric.h:64
Metric & WithDescription(DescriptionT &&value)
Definition Metric.h:105
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDescription(DescriptionT &&value)
Definition Metric.h:100
Metric & WithEventType(EventTypeT &&value)
Definition Metric.h:123
const Aws::String & GetEventType() const
Definition Metric.h:115
void SetEventType(EventTypeT &&value)
Definition Metric.h:118
const Aws::String & GetName() const
Definition Metric.h:79
Metric & WithDefinition(DefinitionT &&value)
Definition Metric.h:160
Metric & WithStage(PlanStage value)
Definition Metric.h:195
void SetAppId(AppIdT &&value)
Definition Metric.h:45
const Aws::String & GetUnitName() const
Definition Metric.h:133
Metric & WithAppId(AppIdT &&value)
Definition Metric.h:50
const Aws::String & GetMetricId() const
Definition Metric.h:61
AWS_APPMONETIZATION_API Metric(Aws::Utils::Json::JsonView jsonValue)
const MetricDefinition & GetDefinition() const
Definition Metric.h:152
AWS_APPMONETIZATION_API Metric & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDefinition(DefinitionT &&value)
Definition Metric.h:155
Metric & WithArn(ArnT &&value)
Definition Metric.h:178
void SetName(NameT &&value)
Definition Metric.h:82
const Aws::String & GetDescription() const
Definition Metric.h:97
Metric & WithUnitName(UnitNameT &&value)
Definition Metric.h:141
void SetUnitName(UnitNameT &&value)
Definition Metric.h:136
AWS_APPMONETIZATION_API Metric()=default
const Aws::String & GetAppId() const
Definition Metric.h:42
Metric & WithMetricId(MetricIdT &&value)
Definition Metric.h:69
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue