AWS SDK for C++  1.9.130
AWS SDK for C++
MitigationAction.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace IoT
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetName() const{ return m_name; }
46 
50  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 
55  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
56 
60  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
61 
65  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 
70  inline MitigationAction& WithName(const Aws::String& value) { SetName(value); return *this;}
71 
75  inline MitigationAction& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
76 
80  inline MitigationAction& WithName(const char* value) { SetName(value); return *this;}
81 
82 
86  inline const Aws::String& GetId() const{ return m_id; }
87 
91  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
92 
96  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
97 
101  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
102 
106  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
107 
111  inline MitigationAction& WithId(const Aws::String& value) { SetId(value); return *this;}
112 
116  inline MitigationAction& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
117 
121  inline MitigationAction& WithId(const char* value) { SetId(value); return *this;}
122 
123 
127  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
128 
132  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
133 
137  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
138 
142  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
143 
147  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
148 
152  inline MitigationAction& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
153 
157  inline MitigationAction& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
158 
162  inline MitigationAction& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
163 
164 
169  inline const MitigationActionParams& GetActionParams() const{ return m_actionParams; }
170 
175  inline bool ActionParamsHasBeenSet() const { return m_actionParamsHasBeenSet; }
176 
181  inline void SetActionParams(const MitigationActionParams& value) { m_actionParamsHasBeenSet = true; m_actionParams = value; }
182 
187  inline void SetActionParams(MitigationActionParams&& value) { m_actionParamsHasBeenSet = true; m_actionParams = std::move(value); }
188 
193  inline MitigationAction& WithActionParams(const MitigationActionParams& value) { SetActionParams(value); return *this;}
194 
199  inline MitigationAction& WithActionParams(MitigationActionParams&& value) { SetActionParams(std::move(value)); return *this;}
200 
201  private:
202 
203  Aws::String m_name;
204  bool m_nameHasBeenSet;
205 
206  Aws::String m_id;
207  bool m_idHasBeenSet;
208 
209  Aws::String m_roleArn;
210  bool m_roleArnHasBeenSet;
211 
212  MitigationActionParams m_actionParams;
213  bool m_actionParamsHasBeenSet;
214  };
215 
216 } // namespace Model
217 } // namespace IoT
218 } // namespace Aws
Aws::IoT::Model::MitigationAction::GetRoleArn
const Aws::String & GetRoleArn() const
Definition: MitigationAction.h:127
Aws::IoT::Model::MitigationAction::SetRoleArn
void SetRoleArn(Aws::String &&value)
Definition: MitigationAction.h:142
Aws::IoT::Model::MitigationAction::SetId
void SetId(Aws::String &&value)
Definition: MitigationAction.h:101
Aws::IoT::Model::MitigationAction::GetActionParams
const MitigationActionParams & GetActionParams() const
Definition: MitigationAction.h:169
Aws::IoT::Model::MitigationAction::WithName
MitigationAction & WithName(Aws::String &&value)
Definition: MitigationAction.h:75
Aws::IoT::Model::MitigationAction::SetActionParams
void SetActionParams(MitigationActionParams &&value)
Definition: MitigationAction.h:187
Aws::IoT::Model::MitigationAction::WithRoleArn
MitigationAction & WithRoleArn(const Aws::String &value)
Definition: MitigationAction.h:152
Aws::IoT::Model::MitigationAction::WithId
MitigationAction & WithId(const Aws::String &value)
Definition: MitigationAction.h:111
Aws::IoT::Model::MitigationAction
Definition: MitigationAction.h:34
Aws::IoT::Model::MitigationAction::SetRoleArn
void SetRoleArn(const Aws::String &value)
Definition: MitigationAction.h:137
Aws::IoT::Model::MitigationAction::WithRoleArn
MitigationAction & WithRoleArn(Aws::String &&value)
Definition: MitigationAction.h:157
MitigationActionParams.h
Aws::IoT::Model::MitigationAction::WithRoleArn
MitigationAction & WithRoleArn(const char *value)
Definition: MitigationAction.h:162
Aws::IoT::Model::MitigationAction::WithName
MitigationAction & WithName(const char *value)
Definition: MitigationAction.h:80
Aws::IoT::Model::MitigationAction::RoleArnHasBeenSet
bool RoleArnHasBeenSet() const
Definition: MitigationAction.h:132
Aws::IoT::Model::MitigationAction::IdHasBeenSet
bool IdHasBeenSet() const
Definition: MitigationAction.h:91
Aws::IoT::Model::MitigationAction::WithId
MitigationAction & WithId(const char *value)
Definition: MitigationAction.h:121
Aws::IoT::Model::MitigationAction::SetName
void SetName(const char *value)
Definition: MitigationAction.h:65
Aws::IoT::Model::MitigationAction::ActionParamsHasBeenSet
bool ActionParamsHasBeenSet() const
Definition: MitigationAction.h:175
Aws::IoT::Model::MitigationAction::WithId
MitigationAction & WithId(Aws::String &&value)
Definition: MitigationAction.h:116
Aws::IoT::Model::MitigationAction::SetName
void SetName(const Aws::String &value)
Definition: MitigationAction.h:55
Aws::IoT::Model::MitigationAction::MitigationAction
MitigationAction()
Aws::IoT::Model::MitigationAction::SetActionParams
void SetActionParams(const MitigationActionParams &value)
Definition: MitigationAction.h:181
Aws::IoT::Model::MitigationAction::GetName
const Aws::String & GetName() const
Definition: MitigationAction.h:45
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::MitigationActionParams
Definition: MitigationActionParams.h:39
Aws::IoT::Model::MitigationAction::NameHasBeenSet
bool NameHasBeenSet() const
Definition: MitigationAction.h:50
Aws::IoT::Model::MitigationAction::SetRoleArn
void SetRoleArn(const char *value)
Definition: MitigationAction.h:147
Aws::IoT::Model::MitigationAction::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::MitigationAction::operator=
MitigationAction & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::MitigationAction::SetId
void SetId(const Aws::String &value)
Definition: MitigationAction.h:96
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::MitigationAction::SetId
void SetId(const char *value)
Definition: MitigationAction.h:106
Aws::IoT::Model::MitigationAction::GetId
const Aws::String & GetId() const
Definition: MitigationAction.h:86
Aws::IoT::Model::MitigationAction::WithName
MitigationAction & WithName(const Aws::String &value)
Definition: MitigationAction.h:70
Aws::IoT::Model::MitigationAction::MitigationAction
MitigationAction(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::MitigationAction::WithActionParams
MitigationAction & WithActionParams(MitigationActionParams &&value)
Definition: MitigationAction.h:199
Aws::IoT::Model::MitigationAction::SetName
void SetName(Aws::String &&value)
Definition: MitigationAction.h:60
IoT_EXPORTS.h
Aws::IoT::Model::MitigationAction::WithActionParams
MitigationAction & WithActionParams(const MitigationActionParams &value)
Definition: MitigationAction.h:193