AWS SDK for C++  1.9.125
AWS SDK for C++
UpdateMitigationActionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
8 #include <aws/iot/IoTRequest.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace IoT
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "UpdateMitigationAction"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
41  inline const Aws::String& GetActionName() const{ return m_actionName; }
42 
48  inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
49 
55  inline void SetActionName(const Aws::String& value) { m_actionNameHasBeenSet = true; m_actionName = value; }
56 
62  inline void SetActionName(Aws::String&& value) { m_actionNameHasBeenSet = true; m_actionName = std::move(value); }
63 
69  inline void SetActionName(const char* value) { m_actionNameHasBeenSet = true; m_actionName.assign(value); }
70 
76  inline UpdateMitigationActionRequest& WithActionName(const Aws::String& value) { SetActionName(value); return *this;}
77 
83  inline UpdateMitigationActionRequest& WithActionName(Aws::String&& value) { SetActionName(std::move(value)); return *this;}
84 
90  inline UpdateMitigationActionRequest& WithActionName(const char* value) { SetActionName(value); return *this;}
91 
92 
96  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
97 
101  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
102 
106  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
107 
111  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
112 
116  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
117 
121  inline UpdateMitigationActionRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
122 
126  inline UpdateMitigationActionRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
127 
131  inline UpdateMitigationActionRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
132 
133 
137  inline const MitigationActionParams& GetActionParams() const{ return m_actionParams; }
138 
142  inline bool ActionParamsHasBeenSet() const { return m_actionParamsHasBeenSet; }
143 
147  inline void SetActionParams(const MitigationActionParams& value) { m_actionParamsHasBeenSet = true; m_actionParams = value; }
148 
152  inline void SetActionParams(MitigationActionParams&& value) { m_actionParamsHasBeenSet = true; m_actionParams = std::move(value); }
153 
157  inline UpdateMitigationActionRequest& WithActionParams(const MitigationActionParams& value) { SetActionParams(value); return *this;}
158 
162  inline UpdateMitigationActionRequest& WithActionParams(MitigationActionParams&& value) { SetActionParams(std::move(value)); return *this;}
163 
164  private:
165 
166  Aws::String m_actionName;
167  bool m_actionNameHasBeenSet;
168 
169  Aws::String m_roleArn;
170  bool m_roleArnHasBeenSet;
171 
172  MitigationActionParams m_actionParams;
173  bool m_actionParamsHasBeenSet;
174  };
175 
176 } // namespace Model
177 } // namespace IoT
178 } // namespace Aws
Aws::IoT::Model::UpdateMitigationActionRequest::GetRoleArn
const Aws::String & GetRoleArn() const
Definition: UpdateMitigationActionRequest.h:96
Aws::IoT::Model::UpdateMitigationActionRequest::UpdateMitigationActionRequest
UpdateMitigationActionRequest()
Aws::IoT::Model::UpdateMitigationActionRequest::WithRoleArn
UpdateMitigationActionRequest & WithRoleArn(const char *value)
Definition: UpdateMitigationActionRequest.h:131
Aws::IoT::Model::UpdateMitigationActionRequest::WithActionParams
UpdateMitigationActionRequest & WithActionParams(const MitigationActionParams &value)
Definition: UpdateMitigationActionRequest.h:157
Aws::IoT::Model::UpdateMitigationActionRequest::SetRoleArn
void SetRoleArn(const Aws::String &value)
Definition: UpdateMitigationActionRequest.h:106
Aws::IoT::Model::UpdateMitigationActionRequest::SetActionParams
void SetActionParams(MitigationActionParams &&value)
Definition: UpdateMitigationActionRequest.h:152
Aws::IoT::Model::UpdateMitigationActionRequest::SetActionName
void SetActionName(const char *value)
Definition: UpdateMitigationActionRequest.h:69
Aws::IoT::Model::UpdateMitigationActionRequest::ActionNameHasBeenSet
bool ActionNameHasBeenSet() const
Definition: UpdateMitigationActionRequest.h:48
MitigationActionParams.h
Aws::IoT::Model::UpdateMitigationActionRequest::SetRoleArn
void SetRoleArn(Aws::String &&value)
Definition: UpdateMitigationActionRequest.h:111
Aws::IoT::Model::UpdateMitigationActionRequest::WithRoleArn
UpdateMitigationActionRequest & WithRoleArn(const Aws::String &value)
Definition: UpdateMitigationActionRequest.h:121
Aws::IoT::Model::UpdateMitigationActionRequest
Definition: UpdateMitigationActionRequest.h:23
Aws::IoT::Model::UpdateMitigationActionRequest::WithActionName
UpdateMitigationActionRequest & WithActionName(const Aws::String &value)
Definition: UpdateMitigationActionRequest.h:76
Aws::IoT::Model::UpdateMitigationActionRequest::WithRoleArn
UpdateMitigationActionRequest & WithRoleArn(Aws::String &&value)
Definition: UpdateMitigationActionRequest.h:126
Aws::IoT::Model::UpdateMitigationActionRequest::SetActionName
void SetActionName(Aws::String &&value)
Definition: UpdateMitigationActionRequest.h:62
Aws::IoT::Model::UpdateMitigationActionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::UpdateMitigationActionRequest::WithActionName
UpdateMitigationActionRequest & WithActionName(const char *value)
Definition: UpdateMitigationActionRequest.h:90
AWSString.h
Aws::IoT::Model::MitigationActionParams
Definition: MitigationActionParams.h:39
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::UpdateMitigationActionRequest::GetActionParams
const MitigationActionParams & GetActionParams() const
Definition: UpdateMitigationActionRequest.h:137
Aws::IoT::Model::UpdateMitigationActionRequest::RoleArnHasBeenSet
bool RoleArnHasBeenSet() const
Definition: UpdateMitigationActionRequest.h:101
Aws::IoT::Model::UpdateMitigationActionRequest::WithActionName
UpdateMitigationActionRequest & WithActionName(Aws::String &&value)
Definition: UpdateMitigationActionRequest.h:83
Aws::IoT::Model::UpdateMitigationActionRequest::ActionParamsHasBeenSet
bool ActionParamsHasBeenSet() const
Definition: UpdateMitigationActionRequest.h:142
Aws::IoT::Model::UpdateMitigationActionRequest::SetActionParams
void SetActionParams(const MitigationActionParams &value)
Definition: UpdateMitigationActionRequest.h:147
Aws::IoT::Model::UpdateMitigationActionRequest::WithActionParams
UpdateMitigationActionRequest & WithActionParams(MitigationActionParams &&value)
Definition: UpdateMitigationActionRequest.h:162
Aws
Definition: AccessManagementClient.h:15
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::UpdateMitigationActionRequest::SetActionName
void SetActionName(const Aws::String &value)
Definition: UpdateMitigationActionRequest.h:55
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::UpdateMitigationActionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateMitigationActionRequest.h:31
IoTRequest.h
Aws::IoT::Model::UpdateMitigationActionRequest::SetRoleArn
void SetRoleArn(const char *value)
Definition: UpdateMitigationActionRequest.h:116
IoT_EXPORTS.h
Aws::IoT::Model::UpdateMitigationActionRequest::GetActionName
const Aws::String & GetActionName() const
Definition: UpdateMitigationActionRequest.h:41