AWS SDK for C++  1.9.132
AWS SDK for C++
StartDetectMitigationActionsTaskRequest.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 "StartDetectMitigationActionsTask"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
42  inline const Aws::String& GetTaskId() const{ return m_taskId; }
43 
47  inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
48 
52  inline void SetTaskId(const Aws::String& value) { m_taskIdHasBeenSet = true; m_taskId = value; }
53 
57  inline void SetTaskId(Aws::String&& value) { m_taskIdHasBeenSet = true; m_taskId = std::move(value); }
58 
62  inline void SetTaskId(const char* value) { m_taskIdHasBeenSet = true; m_taskId.assign(value); }
63 
67  inline StartDetectMitigationActionsTaskRequest& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;}
68 
72  inline StartDetectMitigationActionsTaskRequest& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;}
73 
77  inline StartDetectMitigationActionsTaskRequest& WithTaskId(const char* value) { SetTaskId(value); return *this;}
78 
79 
84  inline const DetectMitigationActionsTaskTarget& GetTarget() const{ return m_target; }
85 
90  inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
91 
96  inline void SetTarget(const DetectMitigationActionsTaskTarget& value) { m_targetHasBeenSet = true; m_target = value; }
97 
102  inline void SetTarget(DetectMitigationActionsTaskTarget&& value) { m_targetHasBeenSet = true; m_target = std::move(value); }
103 
108  inline StartDetectMitigationActionsTaskRequest& WithTarget(const DetectMitigationActionsTaskTarget& value) { SetTarget(value); return *this;}
109 
114  inline StartDetectMitigationActionsTaskRequest& WithTarget(DetectMitigationActionsTaskTarget&& value) { SetTarget(std::move(value)); return *this;}
115 
116 
120  inline const Aws::Vector<Aws::String>& GetActions() const{ return m_actions; }
121 
125  inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
126 
130  inline void SetActions(const Aws::Vector<Aws::String>& value) { m_actionsHasBeenSet = true; m_actions = value; }
131 
135  inline void SetActions(Aws::Vector<Aws::String>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
136 
140  inline StartDetectMitigationActionsTaskRequest& WithActions(const Aws::Vector<Aws::String>& value) { SetActions(value); return *this;}
141 
145  inline StartDetectMitigationActionsTaskRequest& WithActions(Aws::Vector<Aws::String>&& value) { SetActions(std::move(value)); return *this;}
146 
150  inline StartDetectMitigationActionsTaskRequest& AddActions(const Aws::String& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
151 
155  inline StartDetectMitigationActionsTaskRequest& AddActions(Aws::String&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
156 
160  inline StartDetectMitigationActionsTaskRequest& AddActions(const char* value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
161 
162 
166  inline const ViolationEventOccurrenceRange& GetViolationEventOccurrenceRange() const{ return m_violationEventOccurrenceRange; }
167 
171  inline bool ViolationEventOccurrenceRangeHasBeenSet() const { return m_violationEventOccurrenceRangeHasBeenSet; }
172 
176  inline void SetViolationEventOccurrenceRange(const ViolationEventOccurrenceRange& value) { m_violationEventOccurrenceRangeHasBeenSet = true; m_violationEventOccurrenceRange = value; }
177 
181  inline void SetViolationEventOccurrenceRange(ViolationEventOccurrenceRange&& value) { m_violationEventOccurrenceRangeHasBeenSet = true; m_violationEventOccurrenceRange = std::move(value); }
182 
186  inline StartDetectMitigationActionsTaskRequest& WithViolationEventOccurrenceRange(const ViolationEventOccurrenceRange& value) { SetViolationEventOccurrenceRange(value); return *this;}
187 
191  inline StartDetectMitigationActionsTaskRequest& WithViolationEventOccurrenceRange(ViolationEventOccurrenceRange&& value) { SetViolationEventOccurrenceRange(std::move(value)); return *this;}
192 
193 
197  inline bool GetIncludeOnlyActiveViolations() const{ return m_includeOnlyActiveViolations; }
198 
202  inline bool IncludeOnlyActiveViolationsHasBeenSet() const { return m_includeOnlyActiveViolationsHasBeenSet; }
203 
207  inline void SetIncludeOnlyActiveViolations(bool value) { m_includeOnlyActiveViolationsHasBeenSet = true; m_includeOnlyActiveViolations = value; }
208 
212  inline StartDetectMitigationActionsTaskRequest& WithIncludeOnlyActiveViolations(bool value) { SetIncludeOnlyActiveViolations(value); return *this;}
213 
214 
218  inline bool GetIncludeSuppressedAlerts() const{ return m_includeSuppressedAlerts; }
219 
223  inline bool IncludeSuppressedAlertsHasBeenSet() const { return m_includeSuppressedAlertsHasBeenSet; }
224 
228  inline void SetIncludeSuppressedAlerts(bool value) { m_includeSuppressedAlertsHasBeenSet = true; m_includeSuppressedAlerts = value; }
229 
233  inline StartDetectMitigationActionsTaskRequest& WithIncludeSuppressedAlerts(bool value) { SetIncludeSuppressedAlerts(value); return *this;}
234 
235 
242  inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
243 
250  inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
251 
258  inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
259 
266  inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
267 
274  inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
275 
282  inline StartDetectMitigationActionsTaskRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
283 
290  inline StartDetectMitigationActionsTaskRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
291 
298  inline StartDetectMitigationActionsTaskRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
299 
300  private:
301 
302  Aws::String m_taskId;
303  bool m_taskIdHasBeenSet;
304 
306  bool m_targetHasBeenSet;
307 
308  Aws::Vector<Aws::String> m_actions;
309  bool m_actionsHasBeenSet;
310 
311  ViolationEventOccurrenceRange m_violationEventOccurrenceRange;
312  bool m_violationEventOccurrenceRangeHasBeenSet;
313 
314  bool m_includeOnlyActiveViolations;
315  bool m_includeOnlyActiveViolationsHasBeenSet;
316 
317  bool m_includeSuppressedAlerts;
318  bool m_includeSuppressedAlertsHasBeenSet;
319 
320  Aws::String m_clientRequestToken;
321  bool m_clientRequestTokenHasBeenSet;
322  };
323 
324 } // namespace Model
325 } // namespace IoT
326 } // namespace Aws
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest::SetTaskId
void SetTaskId(const char *value)
Definition: StartDetectMitigationActionsTaskRequest.h:62
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest::SetViolationEventOccurrenceRange
void SetViolationEventOccurrenceRange(ViolationEventOccurrenceRange &&value)
Definition: StartDetectMitigationActionsTaskRequest.h:181
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest::SetTarget
void SetTarget(DetectMitigationActionsTaskTarget &&value)
Definition: StartDetectMitigationActionsTaskRequest.h:102
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest::WithViolationEventOccurrenceRange
StartDetectMitigationActionsTaskRequest & WithViolationEventOccurrenceRange(ViolationEventOccurrenceRange &&value)
Definition: StartDetectMitigationActionsTaskRequest.h:191
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest::GetTaskId
const Aws::String & GetTaskId() const
Definition: StartDetectMitigationActionsTaskRequest.h:42
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest::IncludeOnlyActiveViolationsHasBeenSet
bool IncludeOnlyActiveViolationsHasBeenSet() const
Definition: StartDetectMitigationActionsTaskRequest.h:202
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest::WithClientRequestToken
StartDetectMitigationActionsTaskRequest & WithClientRequestToken(Aws::String &&value)
Definition: StartDetectMitigationActionsTaskRequest.h:290
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest::GetClientRequestToken
const Aws::String & GetClientRequestToken() const
Definition: StartDetectMitigationActionsTaskRequest.h:242
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest::WithTaskId
StartDetectMitigationActionsTaskRequest & WithTaskId(const Aws::String &value)
Definition: StartDetectMitigationActionsTaskRequest.h:67
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest::WithTaskId
StartDetectMitigationActionsTaskRequest & WithTaskId(const char *value)
Definition: StartDetectMitigationActionsTaskRequest.h:77
Aws::IoT::Model::DetectMitigationActionsTaskTarget
Definition: DetectMitigationActionsTaskTarget.h:33
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest::GetViolationEventOccurrenceRange
const ViolationEventOccurrenceRange & GetViolationEventOccurrenceRange() const
Definition: StartDetectMitigationActionsTaskRequest.h:166
ViolationEventOccurrenceRange.h
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest::ClientRequestTokenHasBeenSet
bool ClientRequestTokenHasBeenSet() const
Definition: StartDetectMitigationActionsTaskRequest.h:250
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest::GetTarget
const DetectMitigationActionsTaskTarget & GetTarget() const
Definition: StartDetectMitigationActionsTaskRequest.h:84
DetectMitigationActionsTaskTarget.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest::GetActions
const Aws::Vector< Aws::String > & GetActions() const
Definition: StartDetectMitigationActionsTaskRequest.h:120
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest::GetIncludeOnlyActiveViolations
bool GetIncludeOnlyActiveViolations() const
Definition: StartDetectMitigationActionsTaskRequest.h:197
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest::SetTaskId
void SetTaskId(const Aws::String &value)
Definition: StartDetectMitigationActionsTaskRequest.h:52
AWSVector.h
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest::AddActions
StartDetectMitigationActionsTaskRequest & AddActions(Aws::String &&value)
Definition: StartDetectMitigationActionsTaskRequest.h:155
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest::SetClientRequestToken
void SetClientRequestToken(Aws::String &&value)
Definition: StartDetectMitigationActionsTaskRequest.h:266
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest::ViolationEventOccurrenceRangeHasBeenSet
bool ViolationEventOccurrenceRangeHasBeenSet() const
Definition: StartDetectMitigationActionsTaskRequest.h:171
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest::SetClientRequestToken
void SetClientRequestToken(const Aws::String &value)
Definition: StartDetectMitigationActionsTaskRequest.h:258
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest::WithViolationEventOccurrenceRange
StartDetectMitigationActionsTaskRequest & WithViolationEventOccurrenceRange(const ViolationEventOccurrenceRange &value)
Definition: StartDetectMitigationActionsTaskRequest.h:186
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest::SetClientRequestToken
void SetClientRequestToken(const char *value)
Definition: StartDetectMitigationActionsTaskRequest.h:274
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest
Definition: StartDetectMitigationActionsTaskRequest.h:26
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest::WithTaskId
StartDetectMitigationActionsTaskRequest & WithTaskId(Aws::String &&value)
Definition: StartDetectMitigationActionsTaskRequest.h:72
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest::WithIncludeOnlyActiveViolations
StartDetectMitigationActionsTaskRequest & WithIncludeOnlyActiveViolations(bool value)
Definition: StartDetectMitigationActionsTaskRequest.h:212
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest::SetTaskId
void SetTaskId(Aws::String &&value)
Definition: StartDetectMitigationActionsTaskRequest.h:57
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest::WithClientRequestToken
StartDetectMitigationActionsTaskRequest & WithClientRequestToken(const Aws::String &value)
Definition: StartDetectMitigationActionsTaskRequest.h:282
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest::SetActions
void SetActions(Aws::Vector< Aws::String > &&value)
Definition: StartDetectMitigationActionsTaskRequest.h:135
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest::WithIncludeSuppressedAlerts
StartDetectMitigationActionsTaskRequest & WithIncludeSuppressedAlerts(bool value)
Definition: StartDetectMitigationActionsTaskRequest.h:233
Aws::IoT::Model::ViolationEventOccurrenceRange
Definition: ViolationEventOccurrenceRange.h:33
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest::WithActions
StartDetectMitigationActionsTaskRequest & WithActions(const Aws::Vector< Aws::String > &value)
Definition: StartDetectMitigationActionsTaskRequest.h:140
AWSString.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest::TargetHasBeenSet
bool TargetHasBeenSet() const
Definition: StartDetectMitigationActionsTaskRequest.h:90
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest::AddActions
StartDetectMitigationActionsTaskRequest & AddActions(const char *value)
Definition: StartDetectMitigationActionsTaskRequest.h:160
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest::WithTarget
StartDetectMitigationActionsTaskRequest & WithTarget(DetectMitigationActionsTaskTarget &&value)
Definition: StartDetectMitigationActionsTaskRequest.h:114
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest::ActionsHasBeenSet
bool ActionsHasBeenSet() const
Definition: StartDetectMitigationActionsTaskRequest.h:125
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest::WithTarget
StartDetectMitigationActionsTaskRequest & WithTarget(const DetectMitigationActionsTaskTarget &value)
Definition: StartDetectMitigationActionsTaskRequest.h:108
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest::SetActions
void SetActions(const Aws::Vector< Aws::String > &value)
Definition: StartDetectMitigationActionsTaskRequest.h:130
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest::StartDetectMitigationActionsTaskRequest
StartDetectMitigationActionsTaskRequest()
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest::WithActions
StartDetectMitigationActionsTaskRequest & WithActions(Aws::Vector< Aws::String > &&value)
Definition: StartDetectMitigationActionsTaskRequest.h:145
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest::SetViolationEventOccurrenceRange
void SetViolationEventOccurrenceRange(const ViolationEventOccurrenceRange &value)
Definition: StartDetectMitigationActionsTaskRequest.h:176
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::StartDetectMitigationActionsTaskRequest::WithClientRequestToken
StartDetectMitigationActionsTaskRequest & WithClientRequestToken(const char *value)
Definition: StartDetectMitigationActionsTaskRequest.h:298
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest::IncludeSuppressedAlertsHasBeenSet
bool IncludeSuppressedAlertsHasBeenSet() const
Definition: StartDetectMitigationActionsTaskRequest.h:223
IoTRequest.h
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest::AddActions
StartDetectMitigationActionsTaskRequest & AddActions(const Aws::String &value)
Definition: StartDetectMitigationActionsTaskRequest.h:150
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest::SetIncludeOnlyActiveViolations
void SetIncludeOnlyActiveViolations(bool value)
Definition: StartDetectMitigationActionsTaskRequest.h:207
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: StartDetectMitigationActionsTaskRequest.h:34
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest::SerializePayload
Aws::String SerializePayload() const override
UUID.h
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest::TaskIdHasBeenSet
bool TaskIdHasBeenSet() const
Definition: StartDetectMitigationActionsTaskRequest.h:47
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest::SetIncludeSuppressedAlerts
void SetIncludeSuppressedAlerts(bool value)
Definition: StartDetectMitigationActionsTaskRequest.h:228
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest::SetTarget
void SetTarget(const DetectMitigationActionsTaskTarget &value)
Definition: StartDetectMitigationActionsTaskRequest.h:96
IoT_EXPORTS.h
Aws::IoT::Model::StartDetectMitigationActionsTaskRequest::GetIncludeSuppressedAlerts
bool GetIncludeSuppressedAlerts() const
Definition: StartDetectMitigationActionsTaskRequest.h:218