AWS SDK for C++  0.12.9
AWS SDK for C++
CloudwatchMetricAction.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/iot/IoT_EXPORTS.h>
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace IoT
29 {
30 namespace Model
31 {
32 
37  {
38  public:
41  CloudwatchMetricAction& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
42  Aws::Utils::Json::JsonValue Jsonize() const;
43 
47  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
48 
52  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
53 
57  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
58 
62  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
63 
67  inline CloudwatchMetricAction& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
68 
72  inline CloudwatchMetricAction& WithRoleArn(Aws::String&& value) { SetRoleArn(value); return *this;}
73 
77  inline CloudwatchMetricAction& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
78 
82  inline const Aws::String& GetMetricNamespace() const{ return m_metricNamespace; }
83 
87  inline void SetMetricNamespace(const Aws::String& value) { m_metricNamespaceHasBeenSet = true; m_metricNamespace = value; }
88 
92  inline void SetMetricNamespace(Aws::String&& value) { m_metricNamespaceHasBeenSet = true; m_metricNamespace = value; }
93 
97  inline void SetMetricNamespace(const char* value) { m_metricNamespaceHasBeenSet = true; m_metricNamespace.assign(value); }
98 
102  inline CloudwatchMetricAction& WithMetricNamespace(const Aws::String& value) { SetMetricNamespace(value); return *this;}
103 
107  inline CloudwatchMetricAction& WithMetricNamespace(Aws::String&& value) { SetMetricNamespace(value); return *this;}
108 
112  inline CloudwatchMetricAction& WithMetricNamespace(const char* value) { SetMetricNamespace(value); return *this;}
113 
117  inline const Aws::String& GetMetricName() const{ return m_metricName; }
118 
122  inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
123 
127  inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
128 
132  inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
133 
137  inline CloudwatchMetricAction& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
138 
142  inline CloudwatchMetricAction& WithMetricName(Aws::String&& value) { SetMetricName(value); return *this;}
143 
147  inline CloudwatchMetricAction& WithMetricName(const char* value) { SetMetricName(value); return *this;}
148 
152  inline const Aws::String& GetMetricValue() const{ return m_metricValue; }
153 
157  inline void SetMetricValue(const Aws::String& value) { m_metricValueHasBeenSet = true; m_metricValue = value; }
158 
162  inline void SetMetricValue(Aws::String&& value) { m_metricValueHasBeenSet = true; m_metricValue = value; }
163 
167  inline void SetMetricValue(const char* value) { m_metricValueHasBeenSet = true; m_metricValue.assign(value); }
168 
172  inline CloudwatchMetricAction& WithMetricValue(const Aws::String& value) { SetMetricValue(value); return *this;}
173 
177  inline CloudwatchMetricAction& WithMetricValue(Aws::String&& value) { SetMetricValue(value); return *this;}
178 
182  inline CloudwatchMetricAction& WithMetricValue(const char* value) { SetMetricValue(value); return *this;}
183 
189  inline const Aws::String& GetMetricUnit() const{ return m_metricUnit; }
190 
196  inline void SetMetricUnit(const Aws::String& value) { m_metricUnitHasBeenSet = true; m_metricUnit = value; }
197 
203  inline void SetMetricUnit(Aws::String&& value) { m_metricUnitHasBeenSet = true; m_metricUnit = value; }
204 
210  inline void SetMetricUnit(const char* value) { m_metricUnitHasBeenSet = true; m_metricUnit.assign(value); }
211 
217  inline CloudwatchMetricAction& WithMetricUnit(const Aws::String& value) { SetMetricUnit(value); return *this;}
218 
224  inline CloudwatchMetricAction& WithMetricUnit(Aws::String&& value) { SetMetricUnit(value); return *this;}
225 
231  inline CloudwatchMetricAction& WithMetricUnit(const char* value) { SetMetricUnit(value); return *this;}
232 
238  inline const Aws::String& GetMetricTimestamp() const{ return m_metricTimestamp; }
239 
245  inline void SetMetricTimestamp(const Aws::String& value) { m_metricTimestampHasBeenSet = true; m_metricTimestamp = value; }
246 
252  inline void SetMetricTimestamp(Aws::String&& value) { m_metricTimestampHasBeenSet = true; m_metricTimestamp = value; }
253 
259  inline void SetMetricTimestamp(const char* value) { m_metricTimestampHasBeenSet = true; m_metricTimestamp.assign(value); }
260 
266  inline CloudwatchMetricAction& WithMetricTimestamp(const Aws::String& value) { SetMetricTimestamp(value); return *this;}
267 
273  inline CloudwatchMetricAction& WithMetricTimestamp(Aws::String&& value) { SetMetricTimestamp(value); return *this;}
274 
280  inline CloudwatchMetricAction& WithMetricTimestamp(const char* value) { SetMetricTimestamp(value); return *this;}
281 
282  private:
283  Aws::String m_roleArn;
284  bool m_roleArnHasBeenSet;
285  Aws::String m_metricNamespace;
286  bool m_metricNamespaceHasBeenSet;
287  Aws::String m_metricName;
288  bool m_metricNameHasBeenSet;
289  Aws::String m_metricValue;
290  bool m_metricValueHasBeenSet;
291  Aws::String m_metricUnit;
292  bool m_metricUnitHasBeenSet;
293  Aws::String m_metricTimestamp;
294  bool m_metricTimestampHasBeenSet;
295  };
296 
297 } // namespace Model
298 } // namespace IoT
299 } // namespace Aws
CloudwatchMetricAction & WithMetricTimestamp(Aws::String &&value)
CloudwatchMetricAction & WithMetricName(Aws::String &&value)
CloudwatchMetricAction & WithMetricNamespace(Aws::String &&value)
CloudwatchMetricAction & WithMetricUnit(Aws::String &&value)
const Aws::String & GetMetricTimestamp() const
void SetRoleArn(const Aws::String &value)
CloudwatchMetricAction & WithMetricValue(Aws::String &&value)
CloudwatchMetricAction & WithMetricUnit(const Aws::String &value)
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:34
void SetMetricNamespace(const Aws::String &value)
const Aws::String & GetMetricNamespace() const
CloudwatchMetricAction & WithMetricValue(const char *value)
CloudwatchMetricAction & WithRoleArn(const Aws::String &value)
CloudwatchMetricAction & WithMetricName(const Aws::String &value)
CloudwatchMetricAction & WithMetricTimestamp(const char *value)
CloudwatchMetricAction & WithRoleArn(const char *value)
CloudwatchMetricAction & WithMetricUnit(const char *value)
CloudwatchMetricAction & WithMetricValue(const Aws::String &value)
CloudwatchMetricAction & WithRoleArn(Aws::String &&value)
void SetMetricUnit(const Aws::String &value)
void SetMetricValue(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CloudwatchMetricAction & WithMetricName(const char *value)
CloudwatchMetricAction & WithMetricNamespace(const Aws::String &value)
CloudwatchMetricAction & WithMetricTimestamp(const Aws::String &value)
CloudwatchMetricAction & WithMetricNamespace(const char *value)
void SetMetricTimestamp(const Aws::String &value)
JSON (JavaScript Object Notation).
void SetMetricName(const Aws::String &value)