AWS SDK for C++  0.12.9
AWS SDK for C++
CloudwatchAlarmAction.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  CloudwatchAlarmAction& 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 CloudwatchAlarmAction& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
68 
72  inline CloudwatchAlarmAction& WithRoleArn(Aws::String&& value) { SetRoleArn(value); return *this;}
73 
77  inline CloudwatchAlarmAction& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
78 
82  inline const Aws::String& GetAlarmName() const{ return m_alarmName; }
83 
87  inline void SetAlarmName(const Aws::String& value) { m_alarmNameHasBeenSet = true; m_alarmName = value; }
88 
92  inline void SetAlarmName(Aws::String&& value) { m_alarmNameHasBeenSet = true; m_alarmName = value; }
93 
97  inline void SetAlarmName(const char* value) { m_alarmNameHasBeenSet = true; m_alarmName.assign(value); }
98 
102  inline CloudwatchAlarmAction& WithAlarmName(const Aws::String& value) { SetAlarmName(value); return *this;}
103 
107  inline CloudwatchAlarmAction& WithAlarmName(Aws::String&& value) { SetAlarmName(value); return *this;}
108 
112  inline CloudwatchAlarmAction& WithAlarmName(const char* value) { SetAlarmName(value); return *this;}
113 
117  inline const Aws::String& GetStateReason() const{ return m_stateReason; }
118 
122  inline void SetStateReason(const Aws::String& value) { m_stateReasonHasBeenSet = true; m_stateReason = value; }
123 
127  inline void SetStateReason(Aws::String&& value) { m_stateReasonHasBeenSet = true; m_stateReason = value; }
128 
132  inline void SetStateReason(const char* value) { m_stateReasonHasBeenSet = true; m_stateReason.assign(value); }
133 
137  inline CloudwatchAlarmAction& WithStateReason(const Aws::String& value) { SetStateReason(value); return *this;}
138 
142  inline CloudwatchAlarmAction& WithStateReason(Aws::String&& value) { SetStateReason(value); return *this;}
143 
147  inline CloudwatchAlarmAction& WithStateReason(const char* value) { SetStateReason(value); return *this;}
148 
153  inline const Aws::String& GetStateValue() const{ return m_stateValue; }
154 
159  inline void SetStateValue(const Aws::String& value) { m_stateValueHasBeenSet = true; m_stateValue = value; }
160 
165  inline void SetStateValue(Aws::String&& value) { m_stateValueHasBeenSet = true; m_stateValue = value; }
166 
171  inline void SetStateValue(const char* value) { m_stateValueHasBeenSet = true; m_stateValue.assign(value); }
172 
177  inline CloudwatchAlarmAction& WithStateValue(const Aws::String& value) { SetStateValue(value); return *this;}
178 
183  inline CloudwatchAlarmAction& WithStateValue(Aws::String&& value) { SetStateValue(value); return *this;}
184 
189  inline CloudwatchAlarmAction& WithStateValue(const char* value) { SetStateValue(value); return *this;}
190 
191  private:
192  Aws::String m_roleArn;
193  bool m_roleArnHasBeenSet;
194  Aws::String m_alarmName;
195  bool m_alarmNameHasBeenSet;
196  Aws::String m_stateReason;
197  bool m_stateReasonHasBeenSet;
198  Aws::String m_stateValue;
199  bool m_stateValueHasBeenSet;
200  };
201 
202 } // namespace Model
203 } // namespace IoT
204 } // namespace Aws
CloudwatchAlarmAction & WithAlarmName(const Aws::String &value)
CloudwatchAlarmAction & WithStateReason(const Aws::String &value)
CloudwatchAlarmAction & WithStateReason(const char *value)
const Aws::String & GetStateValue() const
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:34
const Aws::String & GetStateReason() const
void SetRoleArn(const Aws::String &value)
CloudwatchAlarmAction & WithStateValue(Aws::String &&value)
const Aws::String & GetRoleArn() const
void SetStateValue(const Aws::String &value)
const Aws::String & GetAlarmName() const
void SetStateReason(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CloudwatchAlarmAction & WithRoleArn(Aws::String &&value)
void SetAlarmName(const Aws::String &value)
CloudwatchAlarmAction & WithAlarmName(const char *value)
CloudwatchAlarmAction & WithStateReason(Aws::String &&value)
CloudwatchAlarmAction & WithRoleArn(const Aws::String &value)
CloudwatchAlarmAction & WithRoleArn(const char *value)
CloudwatchAlarmAction & WithStateValue(const Aws::String &value)
CloudwatchAlarmAction & WithStateValue(const char *value)
CloudwatchAlarmAction & WithAlarmName(Aws::String &&value)
JSON (JavaScript Object Notation).