AWS SDK for C++  1.9.129
AWS SDK for C++
CloudwatchAlarmAction.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 CloudwatchAlarmAction& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
70 
74  inline CloudwatchAlarmAction& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
75 
79  inline CloudwatchAlarmAction& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
80 
81 
85  inline const Aws::String& GetAlarmName() const{ return m_alarmName; }
86 
90  inline bool AlarmNameHasBeenSet() const { return m_alarmNameHasBeenSet; }
91 
95  inline void SetAlarmName(const Aws::String& value) { m_alarmNameHasBeenSet = true; m_alarmName = value; }
96 
100  inline void SetAlarmName(Aws::String&& value) { m_alarmNameHasBeenSet = true; m_alarmName = std::move(value); }
101 
105  inline void SetAlarmName(const char* value) { m_alarmNameHasBeenSet = true; m_alarmName.assign(value); }
106 
110  inline CloudwatchAlarmAction& WithAlarmName(const Aws::String& value) { SetAlarmName(value); return *this;}
111 
115  inline CloudwatchAlarmAction& WithAlarmName(Aws::String&& value) { SetAlarmName(std::move(value)); return *this;}
116 
120  inline CloudwatchAlarmAction& WithAlarmName(const char* value) { SetAlarmName(value); return *this;}
121 
122 
126  inline const Aws::String& GetStateReason() const{ return m_stateReason; }
127 
131  inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
132 
136  inline void SetStateReason(const Aws::String& value) { m_stateReasonHasBeenSet = true; m_stateReason = value; }
137 
141  inline void SetStateReason(Aws::String&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::move(value); }
142 
146  inline void SetStateReason(const char* value) { m_stateReasonHasBeenSet = true; m_stateReason.assign(value); }
147 
151  inline CloudwatchAlarmAction& WithStateReason(const Aws::String& value) { SetStateReason(value); return *this;}
152 
156  inline CloudwatchAlarmAction& WithStateReason(Aws::String&& value) { SetStateReason(std::move(value)); return *this;}
157 
161  inline CloudwatchAlarmAction& WithStateReason(const char* value) { SetStateReason(value); return *this;}
162 
163 
168  inline const Aws::String& GetStateValue() const{ return m_stateValue; }
169 
174  inline bool StateValueHasBeenSet() const { return m_stateValueHasBeenSet; }
175 
180  inline void SetStateValue(const Aws::String& value) { m_stateValueHasBeenSet = true; m_stateValue = value; }
181 
186  inline void SetStateValue(Aws::String&& value) { m_stateValueHasBeenSet = true; m_stateValue = std::move(value); }
187 
192  inline void SetStateValue(const char* value) { m_stateValueHasBeenSet = true; m_stateValue.assign(value); }
193 
198  inline CloudwatchAlarmAction& WithStateValue(const Aws::String& value) { SetStateValue(value); return *this;}
199 
204  inline CloudwatchAlarmAction& WithStateValue(Aws::String&& value) { SetStateValue(std::move(value)); return *this;}
205 
210  inline CloudwatchAlarmAction& WithStateValue(const char* value) { SetStateValue(value); return *this;}
211 
212  private:
213 
214  Aws::String m_roleArn;
215  bool m_roleArnHasBeenSet;
216 
217  Aws::String m_alarmName;
218  bool m_alarmNameHasBeenSet;
219 
220  Aws::String m_stateReason;
221  bool m_stateReasonHasBeenSet;
222 
223  Aws::String m_stateValue;
224  bool m_stateValueHasBeenSet;
225  };
226 
227 } // namespace Model
228 } // namespace IoT
229 } // namespace Aws
Aws::IoT::Model::CloudwatchAlarmAction
Definition: CloudwatchAlarmAction.h:33
Aws::IoT::Model::CloudwatchAlarmAction::SetRoleArn
void SetRoleArn(Aws::String &&value)
Definition: CloudwatchAlarmAction.h:59
Aws::IoT::Model::CloudwatchAlarmAction::GetStateReason
const Aws::String & GetStateReason() const
Definition: CloudwatchAlarmAction.h:126
Aws::IoT::Model::CloudwatchAlarmAction::GetStateValue
const Aws::String & GetStateValue() const
Definition: CloudwatchAlarmAction.h:168
Aws::IoT::Model::CloudwatchAlarmAction::WithAlarmName
CloudwatchAlarmAction & WithAlarmName(const char *value)
Definition: CloudwatchAlarmAction.h:120
Aws::IoT::Model::CloudwatchAlarmAction::WithRoleArn
CloudwatchAlarmAction & WithRoleArn(Aws::String &&value)
Definition: CloudwatchAlarmAction.h:74
Aws::IoT::Model::CloudwatchAlarmAction::CloudwatchAlarmAction
CloudwatchAlarmAction()
Aws::IoT::Model::CloudwatchAlarmAction::CloudwatchAlarmAction
CloudwatchAlarmAction(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::CloudwatchAlarmAction::SetRoleArn
void SetRoleArn(const Aws::String &value)
Definition: CloudwatchAlarmAction.h:54
Aws::IoT::Model::CloudwatchAlarmAction::WithStateValue
CloudwatchAlarmAction & WithStateValue(const Aws::String &value)
Definition: CloudwatchAlarmAction.h:198
Aws::IoT::Model::CloudwatchAlarmAction::WithStateReason
CloudwatchAlarmAction & WithStateReason(const Aws::String &value)
Definition: CloudwatchAlarmAction.h:151
Aws::IoT::Model::CloudwatchAlarmAction::SetAlarmName
void SetAlarmName(const char *value)
Definition: CloudwatchAlarmAction.h:105
Aws::IoT::Model::CloudwatchAlarmAction::GetAlarmName
const Aws::String & GetAlarmName() const
Definition: CloudwatchAlarmAction.h:85
Aws::IoT::Model::CloudwatchAlarmAction::SetStateValue
void SetStateValue(Aws::String &&value)
Definition: CloudwatchAlarmAction.h:186
Aws::IoT::Model::CloudwatchAlarmAction::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::CloudwatchAlarmAction::SetAlarmName
void SetAlarmName(Aws::String &&value)
Definition: CloudwatchAlarmAction.h:100
Aws::IoT::Model::CloudwatchAlarmAction::WithAlarmName
CloudwatchAlarmAction & WithAlarmName(const Aws::String &value)
Definition: CloudwatchAlarmAction.h:110
Aws::IoT::Model::CloudwatchAlarmAction::SetStateValue
void SetStateValue(const char *value)
Definition: CloudwatchAlarmAction.h:192
Aws::IoT::Model::CloudwatchAlarmAction::AlarmNameHasBeenSet
bool AlarmNameHasBeenSet() const
Definition: CloudwatchAlarmAction.h:90
Aws::IoT::Model::CloudwatchAlarmAction::SetStateReason
void SetStateReason(const char *value)
Definition: CloudwatchAlarmAction.h:146
Aws::IoT::Model::CloudwatchAlarmAction::SetRoleArn
void SetRoleArn(const char *value)
Definition: CloudwatchAlarmAction.h:64
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::CloudwatchAlarmAction::WithRoleArn
CloudwatchAlarmAction & WithRoleArn(const char *value)
Definition: CloudwatchAlarmAction.h:79
Aws::IoT::Model::CloudwatchAlarmAction::operator=
CloudwatchAlarmAction & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::CloudwatchAlarmAction::WithStateValue
CloudwatchAlarmAction & WithStateValue(const char *value)
Definition: CloudwatchAlarmAction.h:210
Aws::IoT::Model::CloudwatchAlarmAction::WithStateValue
CloudwatchAlarmAction & WithStateValue(Aws::String &&value)
Definition: CloudwatchAlarmAction.h:204
Aws::IoT::Model::CloudwatchAlarmAction::WithStateReason
CloudwatchAlarmAction & WithStateReason(Aws::String &&value)
Definition: CloudwatchAlarmAction.h:156
Aws::IoT::Model::CloudwatchAlarmAction::SetStateReason
void SetStateReason(Aws::String &&value)
Definition: CloudwatchAlarmAction.h:141
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::CloudwatchAlarmAction::StateReasonHasBeenSet
bool StateReasonHasBeenSet() const
Definition: CloudwatchAlarmAction.h:131
Aws::IoT::Model::CloudwatchAlarmAction::RoleArnHasBeenSet
bool RoleArnHasBeenSet() const
Definition: CloudwatchAlarmAction.h:49
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::CloudwatchAlarmAction::StateValueHasBeenSet
bool StateValueHasBeenSet() const
Definition: CloudwatchAlarmAction.h:174
Aws::IoT::Model::CloudwatchAlarmAction::WithAlarmName
CloudwatchAlarmAction & WithAlarmName(Aws::String &&value)
Definition: CloudwatchAlarmAction.h:115
Aws::IoT::Model::CloudwatchAlarmAction::SetStateReason
void SetStateReason(const Aws::String &value)
Definition: CloudwatchAlarmAction.h:136
Aws::IoT::Model::CloudwatchAlarmAction::GetRoleArn
const Aws::String & GetRoleArn() const
Definition: CloudwatchAlarmAction.h:44
Aws::IoT::Model::CloudwatchAlarmAction::SetAlarmName
void SetAlarmName(const Aws::String &value)
Definition: CloudwatchAlarmAction.h:95
Aws::IoT::Model::CloudwatchAlarmAction::SetStateValue
void SetStateValue(const Aws::String &value)
Definition: CloudwatchAlarmAction.h:180
Aws::IoT::Model::CloudwatchAlarmAction::WithStateReason
CloudwatchAlarmAction & WithStateReason(const char *value)
Definition: CloudwatchAlarmAction.h:161
IoT_EXPORTS.h
Aws::IoT::Model::CloudwatchAlarmAction::WithRoleArn
CloudwatchAlarmAction & WithRoleArn(const Aws::String &value)
Definition: CloudwatchAlarmAction.h:69