AWS SDK for C++  1.9.123
AWS SDK for C++
StartAuditMitigationActionsTaskRequest.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>
13 #include <utility>
14 #include <aws/core/utils/UUID.h>
15 
16 namespace Aws
17 {
18 namespace IoT
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "StartAuditMitigationActionsTask"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
43  inline const Aws::String& GetTaskId() const{ return m_taskId; }
44 
49  inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
50 
55  inline void SetTaskId(const Aws::String& value) { m_taskIdHasBeenSet = true; m_taskId = value; }
56 
61  inline void SetTaskId(Aws::String&& value) { m_taskIdHasBeenSet = true; m_taskId = std::move(value); }
62 
67  inline void SetTaskId(const char* value) { m_taskIdHasBeenSet = true; m_taskId.assign(value); }
68 
73  inline StartAuditMitigationActionsTaskRequest& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;}
74 
79  inline StartAuditMitigationActionsTaskRequest& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;}
80 
85  inline StartAuditMitigationActionsTaskRequest& WithTaskId(const char* value) { SetTaskId(value); return *this;}
86 
87 
93  inline const AuditMitigationActionsTaskTarget& GetTarget() const{ return m_target; }
94 
100  inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
101 
107  inline void SetTarget(const AuditMitigationActionsTaskTarget& value) { m_targetHasBeenSet = true; m_target = value; }
108 
114  inline void SetTarget(AuditMitigationActionsTaskTarget&& value) { m_targetHasBeenSet = true; m_target = std::move(value); }
115 
121  inline StartAuditMitigationActionsTaskRequest& WithTarget(const AuditMitigationActionsTaskTarget& value) { SetTarget(value); return *this;}
122 
128  inline StartAuditMitigationActionsTaskRequest& WithTarget(AuditMitigationActionsTaskTarget&& value) { SetTarget(std::move(value)); return *this;}
129 
130 
135  inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetAuditCheckToActionsMapping() const{ return m_auditCheckToActionsMapping; }
136 
141  inline bool AuditCheckToActionsMappingHasBeenSet() const { return m_auditCheckToActionsMappingHasBeenSet; }
142 
147  inline void SetAuditCheckToActionsMapping(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_auditCheckToActionsMappingHasBeenSet = true; m_auditCheckToActionsMapping = value; }
148 
153  inline void SetAuditCheckToActionsMapping(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_auditCheckToActionsMappingHasBeenSet = true; m_auditCheckToActionsMapping = std::move(value); }
154 
159  inline StartAuditMitigationActionsTaskRequest& WithAuditCheckToActionsMapping(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { SetAuditCheckToActionsMapping(value); return *this;}
160 
165  inline StartAuditMitigationActionsTaskRequest& WithAuditCheckToActionsMapping(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { SetAuditCheckToActionsMapping(std::move(value)); return *this;}
166 
171  inline StartAuditMitigationActionsTaskRequest& AddAuditCheckToActionsMapping(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_auditCheckToActionsMappingHasBeenSet = true; m_auditCheckToActionsMapping.emplace(key, value); return *this; }
172 
177  inline StartAuditMitigationActionsTaskRequest& AddAuditCheckToActionsMapping(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_auditCheckToActionsMappingHasBeenSet = true; m_auditCheckToActionsMapping.emplace(std::move(key), value); return *this; }
178 
183  inline StartAuditMitigationActionsTaskRequest& AddAuditCheckToActionsMapping(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_auditCheckToActionsMappingHasBeenSet = true; m_auditCheckToActionsMapping.emplace(key, std::move(value)); return *this; }
184 
189  inline StartAuditMitigationActionsTaskRequest& AddAuditCheckToActionsMapping(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_auditCheckToActionsMappingHasBeenSet = true; m_auditCheckToActionsMapping.emplace(std::move(key), std::move(value)); return *this; }
190 
195  inline StartAuditMitigationActionsTaskRequest& AddAuditCheckToActionsMapping(const char* key, Aws::Vector<Aws::String>&& value) { m_auditCheckToActionsMappingHasBeenSet = true; m_auditCheckToActionsMapping.emplace(key, std::move(value)); return *this; }
196 
201  inline StartAuditMitigationActionsTaskRequest& AddAuditCheckToActionsMapping(const char* key, const Aws::Vector<Aws::String>& value) { m_auditCheckToActionsMappingHasBeenSet = true; m_auditCheckToActionsMapping.emplace(key, value); return *this; }
202 
203 
210  inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
211 
218  inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
219 
226  inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
227 
234  inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
235 
242  inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
243 
250  inline StartAuditMitigationActionsTaskRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
251 
258  inline StartAuditMitigationActionsTaskRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
259 
266  inline StartAuditMitigationActionsTaskRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
267 
268  private:
269 
270  Aws::String m_taskId;
271  bool m_taskIdHasBeenSet;
272 
274  bool m_targetHasBeenSet;
275 
276  Aws::Map<Aws::String, Aws::Vector<Aws::String>> m_auditCheckToActionsMapping;
277  bool m_auditCheckToActionsMappingHasBeenSet;
278 
279  Aws::String m_clientRequestToken;
280  bool m_clientRequestTokenHasBeenSet;
281  };
282 
283 } // namespace Model
284 } // namespace IoT
285 } // namespace Aws
Aws::IoT::Model::StartAuditMitigationActionsTaskRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: StartAuditMitigationActionsTaskRequest.h:34
Aws::IoT::Model::StartAuditMitigationActionsTaskRequest::AddAuditCheckToActionsMapping
StartAuditMitigationActionsTaskRequest & AddAuditCheckToActionsMapping(Aws::String &&key, Aws::Vector< Aws::String > &&value)
Definition: StartAuditMitigationActionsTaskRequest.h:189
Aws::IoT::Model::StartAuditMitigationActionsTaskRequest::GetAuditCheckToActionsMapping
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetAuditCheckToActionsMapping() const
Definition: StartAuditMitigationActionsTaskRequest.h:135
Aws::IoT::Model::StartAuditMitigationActionsTaskRequest::TaskIdHasBeenSet
bool TaskIdHasBeenSet() const
Definition: StartAuditMitigationActionsTaskRequest.h:49
Aws::IoT::Model::StartAuditMitigationActionsTaskRequest::WithTarget
StartAuditMitigationActionsTaskRequest & WithTarget(const AuditMitigationActionsTaskTarget &value)
Definition: StartAuditMitigationActionsTaskRequest.h:121
Aws::IoT::Model::StartAuditMitigationActionsTaskRequest::SetAuditCheckToActionsMapping
void SetAuditCheckToActionsMapping(Aws::Map< Aws::String, Aws::Vector< Aws::String >> &&value)
Definition: StartAuditMitigationActionsTaskRequest.h:153
Aws::IoT::Model::StartAuditMitigationActionsTaskRequest::AddAuditCheckToActionsMapping
StartAuditMitigationActionsTaskRequest & AddAuditCheckToActionsMapping(const Aws::String &key, const Aws::Vector< Aws::String > &value)
Definition: StartAuditMitigationActionsTaskRequest.h:171
Aws::IoT::Model::StartAuditMitigationActionsTaskRequest::WithClientRequestToken
StartAuditMitigationActionsTaskRequest & WithClientRequestToken(Aws::String &&value)
Definition: StartAuditMitigationActionsTaskRequest.h:258
Aws::IoT::Model::StartAuditMitigationActionsTaskRequest::GetTaskId
const Aws::String & GetTaskId() const
Definition: StartAuditMitigationActionsTaskRequest.h:43
Aws::IoT::Model::AuditMitigationActionsTaskTarget
Definition: AuditMitigationActionsTaskTarget.h:36
Aws::IoT::Model::StartAuditMitigationActionsTaskRequest::SetTaskId
void SetTaskId(const char *value)
Definition: StartAuditMitigationActionsTaskRequest.h:67
Aws::IoT::Model::StartAuditMitigationActionsTaskRequest::WithAuditCheckToActionsMapping
StartAuditMitigationActionsTaskRequest & WithAuditCheckToActionsMapping(const Aws::Map< Aws::String, Aws::Vector< Aws::String >> &value)
Definition: StartAuditMitigationActionsTaskRequest.h:159
Aws::IoT::Model::StartAuditMitigationActionsTaskRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::StartAuditMitigationActionsTaskRequest::SetTaskId
void SetTaskId(Aws::String &&value)
Definition: StartAuditMitigationActionsTaskRequest.h:61
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IoT::Model::StartAuditMitigationActionsTaskRequest::WithClientRequestToken
StartAuditMitigationActionsTaskRequest & WithClientRequestToken(const char *value)
Definition: StartAuditMitigationActionsTaskRequest.h:266
Aws::IoT::Model::StartAuditMitigationActionsTaskRequest::AddAuditCheckToActionsMapping
StartAuditMitigationActionsTaskRequest & AddAuditCheckToActionsMapping(Aws::String &&key, const Aws::Vector< Aws::String > &value)
Definition: StartAuditMitigationActionsTaskRequest.h:177
AWSVector.h
Aws::IoT::Model::StartAuditMitigationActionsTaskRequest::WithTaskId
StartAuditMitigationActionsTaskRequest & WithTaskId(const Aws::String &value)
Definition: StartAuditMitigationActionsTaskRequest.h:73
Aws::IoT::Model::StartAuditMitigationActionsTaskRequest::WithClientRequestToken
StartAuditMitigationActionsTaskRequest & WithClientRequestToken(const Aws::String &value)
Definition: StartAuditMitigationActionsTaskRequest.h:250
Aws::IoT::Model::StartAuditMitigationActionsTaskRequest::WithTaskId
StartAuditMitigationActionsTaskRequest & WithTaskId(Aws::String &&value)
Definition: StartAuditMitigationActionsTaskRequest.h:79
Aws::IoT::Model::StartAuditMitigationActionsTaskRequest::ClientRequestTokenHasBeenSet
bool ClientRequestTokenHasBeenSet() const
Definition: StartAuditMitigationActionsTaskRequest.h:218
Aws::IoT::Model::StartAuditMitigationActionsTaskRequest::GetClientRequestToken
const Aws::String & GetClientRequestToken() const
Definition: StartAuditMitigationActionsTaskRequest.h:210
Aws::IoT::Model::StartAuditMitigationActionsTaskRequest::WithAuditCheckToActionsMapping
StartAuditMitigationActionsTaskRequest & WithAuditCheckToActionsMapping(Aws::Map< Aws::String, Aws::Vector< Aws::String >> &&value)
Definition: StartAuditMitigationActionsTaskRequest.h:165
Aws::IoT::Model::StartAuditMitigationActionsTaskRequest::SetClientRequestToken
void SetClientRequestToken(const Aws::String &value)
Definition: StartAuditMitigationActionsTaskRequest.h:226
AuditMitigationActionsTaskTarget.h
Aws::IoT::Model::StartAuditMitigationActionsTaskRequest::AddAuditCheckToActionsMapping
StartAuditMitigationActionsTaskRequest & AddAuditCheckToActionsMapping(const char *key, Aws::Vector< Aws::String > &&value)
Definition: StartAuditMitigationActionsTaskRequest.h:195
Aws::IoT::Model::StartAuditMitigationActionsTaskRequest::AddAuditCheckToActionsMapping
StartAuditMitigationActionsTaskRequest & AddAuditCheckToActionsMapping(const char *key, const Aws::Vector< Aws::String > &value)
Definition: StartAuditMitigationActionsTaskRequest.h:201
AWSString.h
Aws::IoT::Model::StartAuditMitigationActionsTaskRequest::WithTarget
StartAuditMitigationActionsTaskRequest & WithTarget(AuditMitigationActionsTaskTarget &&value)
Definition: StartAuditMitigationActionsTaskRequest.h:128
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::StartAuditMitigationActionsTaskRequest::WithTaskId
StartAuditMitigationActionsTaskRequest & WithTaskId(const char *value)
Definition: StartAuditMitigationActionsTaskRequest.h:85
Aws::IoT::Model::StartAuditMitigationActionsTaskRequest::SetTarget
void SetTarget(AuditMitigationActionsTaskTarget &&value)
Definition: StartAuditMitigationActionsTaskRequest.h:114
Aws::IoT::Model::StartAuditMitigationActionsTaskRequest::StartAuditMitigationActionsTaskRequest
StartAuditMitigationActionsTaskRequest()
Aws::IoT::Model::StartAuditMitigationActionsTaskRequest::AuditCheckToActionsMappingHasBeenSet
bool AuditCheckToActionsMappingHasBeenSet() const
Definition: StartAuditMitigationActionsTaskRequest.h:141
Aws::IoT::Model::StartAuditMitigationActionsTaskRequest::SetClientRequestToken
void SetClientRequestToken(Aws::String &&value)
Definition: StartAuditMitigationActionsTaskRequest.h:234
Aws::IoT::Model::StartAuditMitigationActionsTaskRequest
Definition: StartAuditMitigationActionsTaskRequest.h:26
Aws::IoT::Model::StartAuditMitigationActionsTaskRequest::TargetHasBeenSet
bool TargetHasBeenSet() const
Definition: StartAuditMitigationActionsTaskRequest.h:100
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::StartAuditMitigationActionsTaskRequest::SetAuditCheckToActionsMapping
void SetAuditCheckToActionsMapping(const Aws::Map< Aws::String, Aws::Vector< Aws::String >> &value)
Definition: StartAuditMitigationActionsTaskRequest.h:147
Aws::IoT::Model::StartAuditMitigationActionsTaskRequest::AddAuditCheckToActionsMapping
StartAuditMitigationActionsTaskRequest & AddAuditCheckToActionsMapping(const Aws::String &key, Aws::Vector< Aws::String > &&value)
Definition: StartAuditMitigationActionsTaskRequest.h:183
Aws::IoT::Model::StartAuditMitigationActionsTaskRequest::SetClientRequestToken
void SetClientRequestToken(const char *value)
Definition: StartAuditMitigationActionsTaskRequest.h:242
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::StartAuditMitigationActionsTaskRequest::SetTarget
void SetTarget(const AuditMitigationActionsTaskTarget &value)
Definition: StartAuditMitigationActionsTaskRequest.h:107
IoTRequest.h
UUID.h
AWSMap.h
Aws::IoT::Model::StartAuditMitigationActionsTaskRequest::GetTarget
const AuditMitigationActionsTaskTarget & GetTarget() const
Definition: StartAuditMitigationActionsTaskRequest.h:93
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::IoT::Model::StartAuditMitigationActionsTaskRequest::SetTaskId
void SetTaskId(const Aws::String &value)
Definition: StartAuditMitigationActionsTaskRequest.h:55
IoT_EXPORTS.h