7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iot/model/DetectMitigationActionsTaskTarget.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/iot/model/ViolationEventOccurrenceRange.h>
14#include <aws/core/utils/UUID.h>
34 inline virtual const char*
GetServiceRequestName()
const override {
return "StartDetectMitigationActionsTask"; }
45 template<
typename TaskIdT = Aws::String>
46 void SetTaskId(TaskIdT&& value) { m_taskIdHasBeenSet =
true; m_taskId = std::forward<TaskIdT>(value); }
47 template<
typename TaskIdT = Aws::String>
58 template<
typename TargetT = DetectMitigationActionsTaskTarget>
59 void SetTarget(TargetT&& value) { m_targetHasBeenSet =
true; m_target = std::forward<TargetT>(value); }
60 template<
typename TargetT = DetectMitigationActionsTaskTarget>
70 template<
typename ActionsT = Aws::Vector<Aws::String>>
71 void SetActions(ActionsT&& value) { m_actionsHasBeenSet =
true; m_actions = std::forward<ActionsT>(value); }
72 template<
typename ActionsT = Aws::Vector<Aws::String>>
74 template<
typename ActionsT = Aws::String>
84 template<
typename ViolationEventOccurrenceRangeT = ViolationEventOccurrenceRange>
85 void SetViolationEventOccurrenceRange(ViolationEventOccurrenceRangeT&& value) { m_violationEventOccurrenceRangeHasBeenSet =
true; m_violationEventOccurrenceRange = std::forward<ViolationEventOccurrenceRangeT>(value); }
86 template<
typename ViolationEventOccurrenceRangeT = ViolationEventOccurrenceRange>
119 template<
typename ClientRequestTokenT = Aws::String>
120 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet =
true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
121 template<
typename ClientRequestTokenT = Aws::String>
127 bool m_taskIdHasBeenSet =
false;
130 bool m_targetHasBeenSet =
false;
133 bool m_actionsHasBeenSet =
false;
136 bool m_violationEventOccurrenceRangeHasBeenSet =
false;
138 bool m_includeOnlyActiveViolations{
false};
139 bool m_includeOnlyActiveViolationsHasBeenSet =
false;
141 bool m_includeSuppressedAlerts{
false};
142 bool m_includeSuppressedAlertsHasBeenSet =
false;
145 bool m_clientRequestTokenHasBeenSet =
true;
void SetIncludeOnlyActiveViolations(bool value)
const Aws::String & GetTaskId() const
void SetTarget(TargetT &&value)
bool ViolationEventOccurrenceRangeHasBeenSet() const
void SetClientRequestToken(ClientRequestTokenT &&value)
void SetTaskId(TaskIdT &&value)
StartDetectMitigationActionsTaskRequest & WithIncludeOnlyActiveViolations(bool value)
AWS_IOT_API Aws::String SerializePayload() const override
StartDetectMitigationActionsTaskRequest & WithIncludeSuppressedAlerts(bool value)
void SetViolationEventOccurrenceRange(ViolationEventOccurrenceRangeT &&value)
void SetIncludeSuppressedAlerts(bool value)
StartDetectMitigationActionsTaskRequest & WithClientRequestToken(ClientRequestTokenT &&value)
bool TargetHasBeenSet() const
StartDetectMitigationActionsTaskRequest & WithTarget(TargetT &&value)
AWS_IOT_API StartDetectMitigationActionsTaskRequest()=default
bool GetIncludeOnlyActiveViolations() const
bool ClientRequestTokenHasBeenSet() const
bool GetIncludeSuppressedAlerts() const
StartDetectMitigationActionsTaskRequest & WithTaskId(TaskIdT &&value)
StartDetectMitigationActionsTaskRequest & AddActions(ActionsT &&value)
StartDetectMitigationActionsTaskRequest & WithViolationEventOccurrenceRange(ViolationEventOccurrenceRangeT &&value)
const Aws::Vector< Aws::String > & GetActions() const
bool TaskIdHasBeenSet() const
const ViolationEventOccurrenceRange & GetViolationEventOccurrenceRange() const
bool IncludeSuppressedAlertsHasBeenSet() const
bool ActionsHasBeenSet() const
void SetActions(ActionsT &&value)
virtual const char * GetServiceRequestName() const override
bool IncludeOnlyActiveViolationsHasBeenSet() const
const Aws::String & GetClientRequestToken() const
StartDetectMitigationActionsTaskRequest & WithActions(ActionsT &&value)
const DetectMitigationActionsTaskTarget & GetTarget() const
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector