AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 inline void SetTaskId(const Aws::String& value) { m_taskIdHasBeenSet = true; m_taskId = value; }
46 inline void SetTaskId(Aws::String&& value) { m_taskIdHasBeenSet = true; m_taskId = std::move(value); }
47 inline void SetTaskId(const char* value) { m_taskIdHasBeenSet = true; m_taskId.assign(value); }
48 inline StartDetectMitigationActionsTaskRequest& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;}
49 inline StartDetectMitigationActionsTaskRequest& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;}
50 inline StartDetectMitigationActionsTaskRequest& WithTaskId(const char* value) { SetTaskId(value); return *this;}
52
54
58 inline const DetectMitigationActionsTaskTarget& GetTarget() const{ return m_target; }
59 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
60 inline void SetTarget(const DetectMitigationActionsTaskTarget& value) { m_targetHasBeenSet = true; m_target = value; }
61 inline void SetTarget(DetectMitigationActionsTaskTarget&& value) { m_targetHasBeenSet = true; m_target = std::move(value); }
65
67
70 inline const Aws::Vector<Aws::String>& GetActions() const{ return m_actions; }
71 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
72 inline void SetActions(const Aws::Vector<Aws::String>& value) { m_actionsHasBeenSet = true; m_actions = value; }
73 inline void SetActions(Aws::Vector<Aws::String>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
76 inline StartDetectMitigationActionsTaskRequest& AddActions(const Aws::String& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
77 inline StartDetectMitigationActionsTaskRequest& AddActions(Aws::String&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
78 inline StartDetectMitigationActionsTaskRequest& AddActions(const char* value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
80
82
85 inline const ViolationEventOccurrenceRange& GetViolationEventOccurrenceRange() const{ return m_violationEventOccurrenceRange; }
86 inline bool ViolationEventOccurrenceRangeHasBeenSet() const { return m_violationEventOccurrenceRangeHasBeenSet; }
87 inline void SetViolationEventOccurrenceRange(const ViolationEventOccurrenceRange& value) { m_violationEventOccurrenceRangeHasBeenSet = true; m_violationEventOccurrenceRange = value; }
88 inline void SetViolationEventOccurrenceRange(ViolationEventOccurrenceRange&& value) { m_violationEventOccurrenceRangeHasBeenSet = true; m_violationEventOccurrenceRange = std::move(value); }
92
94
97 inline bool GetIncludeOnlyActiveViolations() const{ return m_includeOnlyActiveViolations; }
98 inline bool IncludeOnlyActiveViolationsHasBeenSet() const { return m_includeOnlyActiveViolationsHasBeenSet; }
99 inline void SetIncludeOnlyActiveViolations(bool value) { m_includeOnlyActiveViolationsHasBeenSet = true; m_includeOnlyActiveViolations = value; }
102
104
107 inline bool GetIncludeSuppressedAlerts() const{ return m_includeSuppressedAlerts; }
108 inline bool IncludeSuppressedAlertsHasBeenSet() const { return m_includeSuppressedAlertsHasBeenSet; }
109 inline void SetIncludeSuppressedAlerts(bool value) { m_includeSuppressedAlertsHasBeenSet = true; m_includeSuppressedAlerts = value; }
112
114
120 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
121 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
122 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
123 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
124 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
129 private:
130
131 Aws::String m_taskId;
132 bool m_taskIdHasBeenSet = false;
133
135 bool m_targetHasBeenSet = false;
136
137 Aws::Vector<Aws::String> m_actions;
138 bool m_actionsHasBeenSet = false;
139
140 ViolationEventOccurrenceRange m_violationEventOccurrenceRange;
141 bool m_violationEventOccurrenceRangeHasBeenSet = false;
142
143 bool m_includeOnlyActiveViolations;
144 bool m_includeOnlyActiveViolationsHasBeenSet = false;
145
146 bool m_includeSuppressedAlerts;
147 bool m_includeSuppressedAlertsHasBeenSet = false;
148
149 Aws::String m_clientRequestToken;
150 bool m_clientRequestTokenHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace IoT
155} // namespace Aws
StartDetectMitigationActionsTaskRequest & AddActions(Aws::String &&value)
StartDetectMitigationActionsTaskRequest & WithIncludeOnlyActiveViolations(bool value)
StartDetectMitigationActionsTaskRequest & WithTarget(DetectMitigationActionsTaskTarget &&value)
AWS_IOT_API Aws::String SerializePayload() const override
StartDetectMitigationActionsTaskRequest & WithIncludeSuppressedAlerts(bool value)
StartDetectMitigationActionsTaskRequest & WithClientRequestToken(const char *value)
StartDetectMitigationActionsTaskRequest & WithTaskId(const Aws::String &value)
void SetViolationEventOccurrenceRange(const ViolationEventOccurrenceRange &value)
StartDetectMitigationActionsTaskRequest & WithViolationEventOccurrenceRange(ViolationEventOccurrenceRange &&value)
StartDetectMitigationActionsTaskRequest & AddActions(const char *value)
StartDetectMitigationActionsTaskRequest & WithTaskId(const char *value)
StartDetectMitigationActionsTaskRequest & WithTarget(const DetectMitigationActionsTaskTarget &value)
StartDetectMitigationActionsTaskRequest & WithTaskId(Aws::String &&value)
StartDetectMitigationActionsTaskRequest & WithViolationEventOccurrenceRange(const ViolationEventOccurrenceRange &value)
StartDetectMitigationActionsTaskRequest & WithClientRequestToken(Aws::String &&value)
StartDetectMitigationActionsTaskRequest & WithActions(const Aws::Vector< Aws::String > &value)
StartDetectMitigationActionsTaskRequest & WithActions(Aws::Vector< Aws::String > &&value)
StartDetectMitigationActionsTaskRequest & WithClientRequestToken(const Aws::String &value)
StartDetectMitigationActionsTaskRequest & AddActions(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector