AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DetectMitigationActionsTaskSummary.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot/model/DetectMitigationActionsTaskStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/iot/model/DetectMitigationActionsTaskTarget.h>
12#include <aws/iot/model/ViolationEventOccurrenceRange.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/iot/model/DetectMitigationActionsTaskStatistics.h>
15#include <aws/iot/model/MitigationAction.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace IoT
29{
30namespace Model
31{
32
39 {
40 public:
45
46
48
51 inline const Aws::String& GetTaskId() const{ return m_taskId; }
52 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
53 inline void SetTaskId(const Aws::String& value) { m_taskIdHasBeenSet = true; m_taskId = value; }
54 inline void SetTaskId(Aws::String&& value) { m_taskIdHasBeenSet = true; m_taskId = std::move(value); }
55 inline void SetTaskId(const char* value) { m_taskIdHasBeenSet = true; m_taskId.assign(value); }
56 inline DetectMitigationActionsTaskSummary& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;}
57 inline DetectMitigationActionsTaskSummary& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;}
58 inline DetectMitigationActionsTaskSummary& WithTaskId(const char* value) { SetTaskId(value); return *this;}
60
62
65 inline const DetectMitigationActionsTaskStatus& GetTaskStatus() const{ return m_taskStatus; }
66 inline bool TaskStatusHasBeenSet() const { return m_taskStatusHasBeenSet; }
67 inline void SetTaskStatus(const DetectMitigationActionsTaskStatus& value) { m_taskStatusHasBeenSet = true; m_taskStatus = value; }
68 inline void SetTaskStatus(DetectMitigationActionsTaskStatus&& value) { m_taskStatusHasBeenSet = true; m_taskStatus = std::move(value); }
72
74
77 inline const Aws::Utils::DateTime& GetTaskStartTime() const{ return m_taskStartTime; }
78 inline bool TaskStartTimeHasBeenSet() const { return m_taskStartTimeHasBeenSet; }
79 inline void SetTaskStartTime(const Aws::Utils::DateTime& value) { m_taskStartTimeHasBeenSet = true; m_taskStartTime = value; }
80 inline void SetTaskStartTime(Aws::Utils::DateTime&& value) { m_taskStartTimeHasBeenSet = true; m_taskStartTime = std::move(value); }
84
86
89 inline const Aws::Utils::DateTime& GetTaskEndTime() const{ return m_taskEndTime; }
90 inline bool TaskEndTimeHasBeenSet() const { return m_taskEndTimeHasBeenSet; }
91 inline void SetTaskEndTime(const Aws::Utils::DateTime& value) { m_taskEndTimeHasBeenSet = true; m_taskEndTime = value; }
92 inline void SetTaskEndTime(Aws::Utils::DateTime&& value) { m_taskEndTimeHasBeenSet = true; m_taskEndTime = std::move(value); }
96
98
102 inline const DetectMitigationActionsTaskTarget& GetTarget() const{ return m_target; }
103 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
104 inline void SetTarget(const DetectMitigationActionsTaskTarget& value) { m_targetHasBeenSet = true; m_target = value; }
105 inline void SetTarget(DetectMitigationActionsTaskTarget&& value) { m_targetHasBeenSet = true; m_target = std::move(value); }
109
111
114 inline const ViolationEventOccurrenceRange& GetViolationEventOccurrenceRange() const{ return m_violationEventOccurrenceRange; }
115 inline bool ViolationEventOccurrenceRangeHasBeenSet() const { return m_violationEventOccurrenceRangeHasBeenSet; }
116 inline void SetViolationEventOccurrenceRange(const ViolationEventOccurrenceRange& value) { m_violationEventOccurrenceRangeHasBeenSet = true; m_violationEventOccurrenceRange = value; }
117 inline void SetViolationEventOccurrenceRange(ViolationEventOccurrenceRange&& value) { m_violationEventOccurrenceRangeHasBeenSet = true; m_violationEventOccurrenceRange = std::move(value); }
121
123
126 inline bool GetOnlyActiveViolationsIncluded() const{ return m_onlyActiveViolationsIncluded; }
127 inline bool OnlyActiveViolationsIncludedHasBeenSet() const { return m_onlyActiveViolationsIncludedHasBeenSet; }
128 inline void SetOnlyActiveViolationsIncluded(bool value) { m_onlyActiveViolationsIncludedHasBeenSet = true; m_onlyActiveViolationsIncluded = value; }
131
133
136 inline bool GetSuppressedAlertsIncluded() const{ return m_suppressedAlertsIncluded; }
137 inline bool SuppressedAlertsIncludedHasBeenSet() const { return m_suppressedAlertsIncludedHasBeenSet; }
138 inline void SetSuppressedAlertsIncluded(bool value) { m_suppressedAlertsIncludedHasBeenSet = true; m_suppressedAlertsIncluded = value; }
141
143
146 inline const Aws::Vector<MitigationAction>& GetActionsDefinition() const{ return m_actionsDefinition; }
147 inline bool ActionsDefinitionHasBeenSet() const { return m_actionsDefinitionHasBeenSet; }
148 inline void SetActionsDefinition(const Aws::Vector<MitigationAction>& value) { m_actionsDefinitionHasBeenSet = true; m_actionsDefinition = value; }
149 inline void SetActionsDefinition(Aws::Vector<MitigationAction>&& value) { m_actionsDefinitionHasBeenSet = true; m_actionsDefinition = std::move(value); }
152 inline DetectMitigationActionsTaskSummary& AddActionsDefinition(const MitigationAction& value) { m_actionsDefinitionHasBeenSet = true; m_actionsDefinition.push_back(value); return *this; }
153 inline DetectMitigationActionsTaskSummary& AddActionsDefinition(MitigationAction&& value) { m_actionsDefinitionHasBeenSet = true; m_actionsDefinition.push_back(std::move(value)); return *this; }
155
157
160 inline const DetectMitigationActionsTaskStatistics& GetTaskStatistics() const{ return m_taskStatistics; }
161 inline bool TaskStatisticsHasBeenSet() const { return m_taskStatisticsHasBeenSet; }
162 inline void SetTaskStatistics(const DetectMitigationActionsTaskStatistics& value) { m_taskStatisticsHasBeenSet = true; m_taskStatistics = value; }
163 inline void SetTaskStatistics(DetectMitigationActionsTaskStatistics&& value) { m_taskStatisticsHasBeenSet = true; m_taskStatistics = std::move(value); }
167 private:
168
169 Aws::String m_taskId;
170 bool m_taskIdHasBeenSet = false;
171
173 bool m_taskStatusHasBeenSet = false;
174
175 Aws::Utils::DateTime m_taskStartTime;
176 bool m_taskStartTimeHasBeenSet = false;
177
178 Aws::Utils::DateTime m_taskEndTime;
179 bool m_taskEndTimeHasBeenSet = false;
180
182 bool m_targetHasBeenSet = false;
183
184 ViolationEventOccurrenceRange m_violationEventOccurrenceRange;
185 bool m_violationEventOccurrenceRangeHasBeenSet = false;
186
187 bool m_onlyActiveViolationsIncluded;
188 bool m_onlyActiveViolationsIncludedHasBeenSet = false;
189
190 bool m_suppressedAlertsIncluded;
191 bool m_suppressedAlertsIncludedHasBeenSet = false;
192
193 Aws::Vector<MitigationAction> m_actionsDefinition;
194 bool m_actionsDefinitionHasBeenSet = false;
195
197 bool m_taskStatisticsHasBeenSet = false;
198 };
199
200} // namespace Model
201} // namespace IoT
202} // namespace Aws
void SetActionsDefinition(Aws::Vector< MitigationAction > &&value)
AWS_IOT_API DetectMitigationActionsTaskSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
DetectMitigationActionsTaskSummary & WithTaskId(Aws::String &&value)
DetectMitigationActionsTaskSummary & AddActionsDefinition(const MitigationAction &value)
void SetTarget(DetectMitigationActionsTaskTarget &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
DetectMitigationActionsTaskSummary & WithTaskStartTime(Aws::Utils::DateTime &&value)
DetectMitigationActionsTaskSummary & WithTarget(DetectMitigationActionsTaskTarget &&value)
DetectMitigationActionsTaskSummary & WithViolationEventOccurrenceRange(ViolationEventOccurrenceRange &&value)
const ViolationEventOccurrenceRange & GetViolationEventOccurrenceRange() const
DetectMitigationActionsTaskSummary & WithTaskStartTime(const Aws::Utils::DateTime &value)
const DetectMitigationActionsTaskTarget & GetTarget() const
const Aws::Vector< MitigationAction > & GetActionsDefinition() const
void SetViolationEventOccurrenceRange(ViolationEventOccurrenceRange &&value)
DetectMitigationActionsTaskSummary & WithTaskStatistics(const DetectMitigationActionsTaskStatistics &value)
DetectMitigationActionsTaskSummary & WithActionsDefinition(Aws::Vector< MitigationAction > &&value)
DetectMitigationActionsTaskSummary & WithTaskStatus(DetectMitigationActionsTaskStatus &&value)
DetectMitigationActionsTaskSummary & WithTaskEndTime(Aws::Utils::DateTime &&value)
DetectMitigationActionsTaskSummary & AddActionsDefinition(MitigationAction &&value)
DetectMitigationActionsTaskSummary & WithViolationEventOccurrenceRange(const ViolationEventOccurrenceRange &value)
DetectMitigationActionsTaskSummary & WithActionsDefinition(const Aws::Vector< MitigationAction > &value)
AWS_IOT_API DetectMitigationActionsTaskSummary(Aws::Utils::Json::JsonView jsonValue)
DetectMitigationActionsTaskSummary & WithTaskStatus(const DetectMitigationActionsTaskStatus &value)
void SetViolationEventOccurrenceRange(const ViolationEventOccurrenceRange &value)
const DetectMitigationActionsTaskStatistics & GetTaskStatistics() const
DetectMitigationActionsTaskSummary & WithTaskId(const char *value)
void SetTaskStatistics(const DetectMitigationActionsTaskStatistics &value)
void SetTarget(const DetectMitigationActionsTaskTarget &value)
DetectMitigationActionsTaskSummary & WithOnlyActiveViolationsIncluded(bool value)
DetectMitigationActionsTaskSummary & WithTaskId(const Aws::String &value)
void SetTaskStatistics(DetectMitigationActionsTaskStatistics &&value)
DetectMitigationActionsTaskSummary & WithTaskEndTime(const Aws::Utils::DateTime &value)
DetectMitigationActionsTaskSummary & WithSuppressedAlertsIncluded(bool value)
const DetectMitigationActionsTaskStatus & GetTaskStatus() const
void SetTaskStatus(DetectMitigationActionsTaskStatus &&value)
void SetTaskStatus(const DetectMitigationActionsTaskStatus &value)
void SetActionsDefinition(const Aws::Vector< MitigationAction > &value)
DetectMitigationActionsTaskSummary & WithTaskStatistics(DetectMitigationActionsTaskStatistics &&value)
DetectMitigationActionsTaskSummary & WithTarget(const DetectMitigationActionsTaskTarget &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue