AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
StartDetectMitigationActionsTaskRequest.h
1
6#pragma once
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>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace IoT
19{
20namespace 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_IOT_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetTaskId() const { return m_taskId; }
44 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
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>
48 StartDetectMitigationActionsTaskRequest& WithTaskId(TaskIdT&& value) { SetTaskId(std::forward<TaskIdT>(value)); return *this;}
50
52
56 inline const DetectMitigationActionsTaskTarget& GetTarget() const { return m_target; }
57 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
58 template<typename TargetT = DetectMitigationActionsTaskTarget>
59 void SetTarget(TargetT&& value) { m_targetHasBeenSet = true; m_target = std::forward<TargetT>(value); }
60 template<typename TargetT = DetectMitigationActionsTaskTarget>
61 StartDetectMitigationActionsTaskRequest& WithTarget(TargetT&& value) { SetTarget(std::forward<TargetT>(value)); return *this;}
63
65
68 inline const Aws::Vector<Aws::String>& GetActions() const { return m_actions; }
69 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
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>>
73 StartDetectMitigationActionsTaskRequest& WithActions(ActionsT&& value) { SetActions(std::forward<ActionsT>(value)); return *this;}
74 template<typename ActionsT = Aws::String>
75 StartDetectMitigationActionsTaskRequest& AddActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions.emplace_back(std::forward<ActionsT>(value)); return *this; }
77
79
82 inline const ViolationEventOccurrenceRange& GetViolationEventOccurrenceRange() const { return m_violationEventOccurrenceRange; }
83 inline bool ViolationEventOccurrenceRangeHasBeenSet() const { return m_violationEventOccurrenceRangeHasBeenSet; }
84 template<typename ViolationEventOccurrenceRangeT = ViolationEventOccurrenceRange>
85 void SetViolationEventOccurrenceRange(ViolationEventOccurrenceRangeT&& value) { m_violationEventOccurrenceRangeHasBeenSet = true; m_violationEventOccurrenceRange = std::forward<ViolationEventOccurrenceRangeT>(value); }
86 template<typename ViolationEventOccurrenceRangeT = ViolationEventOccurrenceRange>
87 StartDetectMitigationActionsTaskRequest& WithViolationEventOccurrenceRange(ViolationEventOccurrenceRangeT&& value) { SetViolationEventOccurrenceRange(std::forward<ViolationEventOccurrenceRangeT>(value)); return *this;}
89
91
94 inline bool GetIncludeOnlyActiveViolations() const { return m_includeOnlyActiveViolations; }
95 inline bool IncludeOnlyActiveViolationsHasBeenSet() const { return m_includeOnlyActiveViolationsHasBeenSet; }
96 inline void SetIncludeOnlyActiveViolations(bool value) { m_includeOnlyActiveViolationsHasBeenSet = true; m_includeOnlyActiveViolations = value; }
99
101
104 inline bool GetIncludeSuppressedAlerts() const { return m_includeSuppressedAlerts; }
105 inline bool IncludeSuppressedAlertsHasBeenSet() const { return m_includeSuppressedAlertsHasBeenSet; }
106 inline void SetIncludeSuppressedAlerts(bool value) { m_includeSuppressedAlertsHasBeenSet = true; m_includeSuppressedAlerts = value; }
109
111
117 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
118 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
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>
122 StartDetectMitigationActionsTaskRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
124 private:
125
126 Aws::String m_taskId;
127 bool m_taskIdHasBeenSet = false;
128
130 bool m_targetHasBeenSet = false;
131
132 Aws::Vector<Aws::String> m_actions;
133 bool m_actionsHasBeenSet = false;
134
135 ViolationEventOccurrenceRange m_violationEventOccurrenceRange;
136 bool m_violationEventOccurrenceRangeHasBeenSet = false;
137
138 bool m_includeOnlyActiveViolations{false};
139 bool m_includeOnlyActiveViolationsHasBeenSet = false;
140
141 bool m_includeSuppressedAlerts{false};
142 bool m_includeSuppressedAlertsHasBeenSet = false;
143
144 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
145 bool m_clientRequestTokenHasBeenSet = true;
146 };
147
148} // namespace Model
149} // namespace IoT
150} // namespace Aws
StartDetectMitigationActionsTaskRequest & WithIncludeOnlyActiveViolations(bool value)
AWS_IOT_API Aws::String SerializePayload() const override
StartDetectMitigationActionsTaskRequest & WithIncludeSuppressedAlerts(bool value)
StartDetectMitigationActionsTaskRequest & WithClientRequestToken(ClientRequestTokenT &&value)
StartDetectMitigationActionsTaskRequest & WithTarget(TargetT &&value)
StartDetectMitigationActionsTaskRequest & WithTaskId(TaskIdT &&value)
StartDetectMitigationActionsTaskRequest & AddActions(ActionsT &&value)
StartDetectMitigationActionsTaskRequest & WithViolationEventOccurrenceRange(ViolationEventOccurrenceRangeT &&value)
StartDetectMitigationActionsTaskRequest & WithActions(ActionsT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector