AWS SDK for C++  1.9.129
AWS SDK for C++
CloudwatchMetricAction.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace IoT
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
45 
49  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
50 
54  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
55 
59  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
60 
64  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
65 
69  inline CloudwatchMetricAction& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
70 
74  inline CloudwatchMetricAction& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
75 
79  inline CloudwatchMetricAction& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
80 
81 
85  inline const Aws::String& GetMetricNamespace() const{ return m_metricNamespace; }
86 
90  inline bool MetricNamespaceHasBeenSet() const { return m_metricNamespaceHasBeenSet; }
91 
95  inline void SetMetricNamespace(const Aws::String& value) { m_metricNamespaceHasBeenSet = true; m_metricNamespace = value; }
96 
100  inline void SetMetricNamespace(Aws::String&& value) { m_metricNamespaceHasBeenSet = true; m_metricNamespace = std::move(value); }
101 
105  inline void SetMetricNamespace(const char* value) { m_metricNamespaceHasBeenSet = true; m_metricNamespace.assign(value); }
106 
110  inline CloudwatchMetricAction& WithMetricNamespace(const Aws::String& value) { SetMetricNamespace(value); return *this;}
111 
115  inline CloudwatchMetricAction& WithMetricNamespace(Aws::String&& value) { SetMetricNamespace(std::move(value)); return *this;}
116 
120  inline CloudwatchMetricAction& WithMetricNamespace(const char* value) { SetMetricNamespace(value); return *this;}
121 
122 
126  inline const Aws::String& GetMetricName() const{ return m_metricName; }
127 
131  inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
132 
136  inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
137 
141  inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
142 
146  inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
147 
151  inline CloudwatchMetricAction& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
152 
156  inline CloudwatchMetricAction& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
157 
161  inline CloudwatchMetricAction& WithMetricName(const char* value) { SetMetricName(value); return *this;}
162 
163 
167  inline const Aws::String& GetMetricValue() const{ return m_metricValue; }
168 
172  inline bool MetricValueHasBeenSet() const { return m_metricValueHasBeenSet; }
173 
177  inline void SetMetricValue(const Aws::String& value) { m_metricValueHasBeenSet = true; m_metricValue = value; }
178 
182  inline void SetMetricValue(Aws::String&& value) { m_metricValueHasBeenSet = true; m_metricValue = std::move(value); }
183 
187  inline void SetMetricValue(const char* value) { m_metricValueHasBeenSet = true; m_metricValue.assign(value); }
188 
192  inline CloudwatchMetricAction& WithMetricValue(const Aws::String& value) { SetMetricValue(value); return *this;}
193 
197  inline CloudwatchMetricAction& WithMetricValue(Aws::String&& value) { SetMetricValue(std::move(value)); return *this;}
198 
202  inline CloudwatchMetricAction& WithMetricValue(const char* value) { SetMetricValue(value); return *this;}
203 
204 
210  inline const Aws::String& GetMetricUnit() const{ return m_metricUnit; }
211 
217  inline bool MetricUnitHasBeenSet() const { return m_metricUnitHasBeenSet; }
218 
224  inline void SetMetricUnit(const Aws::String& value) { m_metricUnitHasBeenSet = true; m_metricUnit = value; }
225 
231  inline void SetMetricUnit(Aws::String&& value) { m_metricUnitHasBeenSet = true; m_metricUnit = std::move(value); }
232 
238  inline void SetMetricUnit(const char* value) { m_metricUnitHasBeenSet = true; m_metricUnit.assign(value); }
239 
245  inline CloudwatchMetricAction& WithMetricUnit(const Aws::String& value) { SetMetricUnit(value); return *this;}
246 
252  inline CloudwatchMetricAction& WithMetricUnit(Aws::String&& value) { SetMetricUnit(std::move(value)); return *this;}
253 
259  inline CloudwatchMetricAction& WithMetricUnit(const char* value) { SetMetricUnit(value); return *this;}
260 
261 
267  inline const Aws::String& GetMetricTimestamp() const{ return m_metricTimestamp; }
268 
274  inline bool MetricTimestampHasBeenSet() const { return m_metricTimestampHasBeenSet; }
275 
281  inline void SetMetricTimestamp(const Aws::String& value) { m_metricTimestampHasBeenSet = true; m_metricTimestamp = value; }
282 
288  inline void SetMetricTimestamp(Aws::String&& value) { m_metricTimestampHasBeenSet = true; m_metricTimestamp = std::move(value); }
289 
295  inline void SetMetricTimestamp(const char* value) { m_metricTimestampHasBeenSet = true; m_metricTimestamp.assign(value); }
296 
302  inline CloudwatchMetricAction& WithMetricTimestamp(const Aws::String& value) { SetMetricTimestamp(value); return *this;}
303 
309  inline CloudwatchMetricAction& WithMetricTimestamp(Aws::String&& value) { SetMetricTimestamp(std::move(value)); return *this;}
310 
316  inline CloudwatchMetricAction& WithMetricTimestamp(const char* value) { SetMetricTimestamp(value); return *this;}
317 
318  private:
319 
320  Aws::String m_roleArn;
321  bool m_roleArnHasBeenSet;
322 
323  Aws::String m_metricNamespace;
324  bool m_metricNamespaceHasBeenSet;
325 
326  Aws::String m_metricName;
327  bool m_metricNameHasBeenSet;
328 
329  Aws::String m_metricValue;
330  bool m_metricValueHasBeenSet;
331 
332  Aws::String m_metricUnit;
333  bool m_metricUnitHasBeenSet;
334 
335  Aws::String m_metricTimestamp;
336  bool m_metricTimestampHasBeenSet;
337  };
338 
339 } // namespace Model
340 } // namespace IoT
341 } // namespace Aws
Aws::IoT::Model::CloudwatchMetricAction::GetMetricNamespace
const Aws::String & GetMetricNamespace() const
Definition: CloudwatchMetricAction.h:85
Aws::IoT::Model::CloudwatchMetricAction::GetRoleArn
const Aws::String & GetRoleArn() const
Definition: CloudwatchMetricAction.h:44
Aws::IoT::Model::CloudwatchMetricAction::SetRoleArn
void SetRoleArn(Aws::String &&value)
Definition: CloudwatchMetricAction.h:59
Aws::IoT::Model::CloudwatchMetricAction::MetricNameHasBeenSet
bool MetricNameHasBeenSet() const
Definition: CloudwatchMetricAction.h:131
Aws::IoT::Model::CloudwatchMetricAction::SetMetricNamespace
void SetMetricNamespace(const char *value)
Definition: CloudwatchMetricAction.h:105
Aws::IoT::Model::CloudwatchMetricAction::WithMetricNamespace
CloudwatchMetricAction & WithMetricNamespace(const Aws::String &value)
Definition: CloudwatchMetricAction.h:110
Aws::IoT::Model::CloudwatchMetricAction::SetMetricUnit
void SetMetricUnit(const char *value)
Definition: CloudwatchMetricAction.h:238
Aws::IoT::Model::CloudwatchMetricAction::SetMetricValue
void SetMetricValue(const char *value)
Definition: CloudwatchMetricAction.h:187
Aws::IoT::Model::CloudwatchMetricAction::SetMetricName
void SetMetricName(const char *value)
Definition: CloudwatchMetricAction.h:146
Aws::IoT::Model::CloudwatchMetricAction::SetMetricNamespace
void SetMetricNamespace(const Aws::String &value)
Definition: CloudwatchMetricAction.h:95
Aws::IoT::Model::CloudwatchMetricAction::GetMetricUnit
const Aws::String & GetMetricUnit() const
Definition: CloudwatchMetricAction.h:210
Aws::IoT::Model::CloudwatchMetricAction::WithMetricValue
CloudwatchMetricAction & WithMetricValue(const char *value)
Definition: CloudwatchMetricAction.h:202
Aws::IoT::Model::CloudwatchMetricAction::MetricUnitHasBeenSet
bool MetricUnitHasBeenSet() const
Definition: CloudwatchMetricAction.h:217
Aws::IoT::Model::CloudwatchMetricAction::WithMetricTimestamp
CloudwatchMetricAction & WithMetricTimestamp(const char *value)
Definition: CloudwatchMetricAction.h:316
Aws::IoT::Model::CloudwatchMetricAction::SetMetricName
void SetMetricName(const Aws::String &value)
Definition: CloudwatchMetricAction.h:136
Aws::IoT::Model::CloudwatchMetricAction::SetMetricValue
void SetMetricValue(Aws::String &&value)
Definition: CloudwatchMetricAction.h:182
Aws::IoT::Model::CloudwatchMetricAction::CloudwatchMetricAction
CloudwatchMetricAction(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::CloudwatchMetricAction::SetMetricTimestamp
void SetMetricTimestamp(const Aws::String &value)
Definition: CloudwatchMetricAction.h:281
Aws::IoT::Model::CloudwatchMetricAction::CloudwatchMetricAction
CloudwatchMetricAction()
Aws::IoT::Model::CloudwatchMetricAction::WithMetricName
CloudwatchMetricAction & WithMetricName(Aws::String &&value)
Definition: CloudwatchMetricAction.h:156
Aws::IoT::Model::CloudwatchMetricAction::SetMetricUnit
void SetMetricUnit(const Aws::String &value)
Definition: CloudwatchMetricAction.h:224
Aws::IoT::Model::CloudwatchMetricAction::GetMetricTimestamp
const Aws::String & GetMetricTimestamp() const
Definition: CloudwatchMetricAction.h:267
Aws::IoT::Model::CloudwatchMetricAction::WithRoleArn
CloudwatchMetricAction & WithRoleArn(const char *value)
Definition: CloudwatchMetricAction.h:79
Aws::IoT::Model::CloudwatchMetricAction::MetricNamespaceHasBeenSet
bool MetricNamespaceHasBeenSet() const
Definition: CloudwatchMetricAction.h:90
Aws::IoT::Model::CloudwatchMetricAction::WithMetricValue
CloudwatchMetricAction & WithMetricValue(const Aws::String &value)
Definition: CloudwatchMetricAction.h:192
Aws::IoT::Model::CloudwatchMetricAction::SetMetricValue
void SetMetricValue(const Aws::String &value)
Definition: CloudwatchMetricAction.h:177
Aws::IoT::Model::CloudwatchMetricAction::WithMetricNamespace
CloudwatchMetricAction & WithMetricNamespace(Aws::String &&value)
Definition: CloudwatchMetricAction.h:115
Aws::IoT::Model::CloudwatchMetricAction::GetMetricName
const Aws::String & GetMetricName() const
Definition: CloudwatchMetricAction.h:126
Aws::IoT::Model::CloudwatchMetricAction::WithMetricTimestamp
CloudwatchMetricAction & WithMetricTimestamp(const Aws::String &value)
Definition: CloudwatchMetricAction.h:302
Aws::IoT::Model::CloudwatchMetricAction::SetMetricUnit
void SetMetricUnit(Aws::String &&value)
Definition: CloudwatchMetricAction.h:231
Aws::IoT::Model::CloudwatchMetricAction::WithMetricName
CloudwatchMetricAction & WithMetricName(const char *value)
Definition: CloudwatchMetricAction.h:161
Aws::IoT::Model::CloudwatchMetricAction::MetricValueHasBeenSet
bool MetricValueHasBeenSet() const
Definition: CloudwatchMetricAction.h:172
Aws::IoT::Model::CloudwatchMetricAction::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::CloudwatchMetricAction::WithMetricUnit
CloudwatchMetricAction & WithMetricUnit(Aws::String &&value)
Definition: CloudwatchMetricAction.h:252
Aws::IoT::Model::CloudwatchMetricAction::SetRoleArn
void SetRoleArn(const Aws::String &value)
Definition: CloudwatchMetricAction.h:54
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::IoT::Model::CloudwatchMetricAction::SetMetricNamespace
void SetMetricNamespace(Aws::String &&value)
Definition: CloudwatchMetricAction.h:100
Aws::IoT::Model::CloudwatchMetricAction::operator=
CloudwatchMetricAction & operator=(Aws::Utils::Json::JsonView jsonValue)
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::CloudwatchMetricAction::SetMetricTimestamp
void SetMetricTimestamp(Aws::String &&value)
Definition: CloudwatchMetricAction.h:288
Aws::IoT::Model::CloudwatchMetricAction::WithMetricNamespace
CloudwatchMetricAction & WithMetricNamespace(const char *value)
Definition: CloudwatchMetricAction.h:120
Aws::IoT::Model::CloudwatchMetricAction::SetRoleArn
void SetRoleArn(const char *value)
Definition: CloudwatchMetricAction.h:64
Aws::IoT::Model::CloudwatchMetricAction::WithMetricUnit
CloudwatchMetricAction & WithMetricUnit(const Aws::String &value)
Definition: CloudwatchMetricAction.h:245
Aws::IoT::Model::CloudwatchMetricAction
Definition: CloudwatchMetricAction.h:33
Aws::IoT::Model::CloudwatchMetricAction::WithMetricValue
CloudwatchMetricAction & WithMetricValue(Aws::String &&value)
Definition: CloudwatchMetricAction.h:197
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::CloudwatchMetricAction::WithMetricTimestamp
CloudwatchMetricAction & WithMetricTimestamp(Aws::String &&value)
Definition: CloudwatchMetricAction.h:309
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::CloudwatchMetricAction::RoleArnHasBeenSet
bool RoleArnHasBeenSet() const
Definition: CloudwatchMetricAction.h:49
Aws::IoT::Model::CloudwatchMetricAction::WithMetricUnit
CloudwatchMetricAction & WithMetricUnit(const char *value)
Definition: CloudwatchMetricAction.h:259
Aws::IoT::Model::CloudwatchMetricAction::WithMetricName
CloudwatchMetricAction & WithMetricName(const Aws::String &value)
Definition: CloudwatchMetricAction.h:151
Aws::IoT::Model::CloudwatchMetricAction::WithRoleArn
CloudwatchMetricAction & WithRoleArn(const Aws::String &value)
Definition: CloudwatchMetricAction.h:69
Aws::IoT::Model::CloudwatchMetricAction::SetMetricTimestamp
void SetMetricTimestamp(const char *value)
Definition: CloudwatchMetricAction.h:295
Aws::IoT::Model::CloudwatchMetricAction::GetMetricValue
const Aws::String & GetMetricValue() const
Definition: CloudwatchMetricAction.h:167
Aws::IoT::Model::CloudwatchMetricAction::MetricTimestampHasBeenSet
bool MetricTimestampHasBeenSet() const
Definition: CloudwatchMetricAction.h:274
IoT_EXPORTS.h
Aws::IoT::Model::CloudwatchMetricAction::SetMetricName
void SetMetricName(Aws::String &&value)
Definition: CloudwatchMetricAction.h:141
Aws::IoT::Model::CloudwatchMetricAction::WithRoleArn
CloudwatchMetricAction & WithRoleArn(Aws::String &&value)
Definition: CloudwatchMetricAction.h:74