AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
DetectMitigationActionExecution.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot/IoT_EXPORTS.h>
10#include <aws/iot/model/DetectMitigationActionExecutionStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IoT {
22namespace Model {
23
31 public:
32 AWS_IOT_API DetectMitigationActionExecution() = default;
36
38
41 inline const Aws::String& GetTaskId() const { return m_taskId; }
42 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
43 template <typename TaskIdT = Aws::String>
44 void SetTaskId(TaskIdT&& value) {
45 m_taskIdHasBeenSet = true;
46 m_taskId = std::forward<TaskIdT>(value);
47 }
48 template <typename TaskIdT = Aws::String>
50 SetTaskId(std::forward<TaskIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetViolationId() const { return m_violationId; }
60 inline bool ViolationIdHasBeenSet() const { return m_violationIdHasBeenSet; }
61 template <typename ViolationIdT = Aws::String>
62 void SetViolationId(ViolationIdT&& value) {
63 m_violationIdHasBeenSet = true;
64 m_violationId = std::forward<ViolationIdT>(value);
65 }
66 template <typename ViolationIdT = Aws::String>
68 SetViolationId(std::forward<ViolationIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetActionName() const { return m_actionName; }
78 inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
79 template <typename ActionNameT = Aws::String>
80 void SetActionName(ActionNameT&& value) {
81 m_actionNameHasBeenSet = true;
82 m_actionName = std::forward<ActionNameT>(value);
83 }
84 template <typename ActionNameT = Aws::String>
86 SetActionName(std::forward<ActionNameT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetThingName() const { return m_thingName; }
96 inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
97 template <typename ThingNameT = Aws::String>
98 void SetThingName(ThingNameT&& value) {
99 m_thingNameHasBeenSet = true;
100 m_thingName = std::forward<ThingNameT>(value);
101 }
102 template <typename ThingNameT = Aws::String>
104 SetThingName(std::forward<ThingNameT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::Utils::DateTime& GetExecutionStartDate() const { return m_executionStartDate; }
114 inline bool ExecutionStartDateHasBeenSet() const { return m_executionStartDateHasBeenSet; }
115 template <typename ExecutionStartDateT = Aws::Utils::DateTime>
116 void SetExecutionStartDate(ExecutionStartDateT&& value) {
117 m_executionStartDateHasBeenSet = true;
118 m_executionStartDate = std::forward<ExecutionStartDateT>(value);
119 }
120 template <typename ExecutionStartDateT = Aws::Utils::DateTime>
122 SetExecutionStartDate(std::forward<ExecutionStartDateT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::Utils::DateTime& GetExecutionEndDate() const { return m_executionEndDate; }
132 inline bool ExecutionEndDateHasBeenSet() const { return m_executionEndDateHasBeenSet; }
133 template <typename ExecutionEndDateT = Aws::Utils::DateTime>
134 void SetExecutionEndDate(ExecutionEndDateT&& value) {
135 m_executionEndDateHasBeenSet = true;
136 m_executionEndDate = std::forward<ExecutionEndDateT>(value);
137 }
138 template <typename ExecutionEndDateT = Aws::Utils::DateTime>
140 SetExecutionEndDate(std::forward<ExecutionEndDateT>(value));
141 return *this;
142 }
144
146
149 inline DetectMitigationActionExecutionStatus GetStatus() const { return m_status; }
150 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
152 m_statusHasBeenSet = true;
153 m_status = value;
154 }
156 SetStatus(value);
157 return *this;
158 }
160
162
165 inline const Aws::String& GetErrorCode() const { return m_errorCode; }
166 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
167 template <typename ErrorCodeT = Aws::String>
168 void SetErrorCode(ErrorCodeT&& value) {
169 m_errorCodeHasBeenSet = true;
170 m_errorCode = std::forward<ErrorCodeT>(value);
171 }
172 template <typename ErrorCodeT = Aws::String>
174 SetErrorCode(std::forward<ErrorCodeT>(value));
175 return *this;
176 }
178
180
183 inline const Aws::String& GetMessage() const { return m_message; }
184 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
185 template <typename MessageT = Aws::String>
186 void SetMessage(MessageT&& value) {
187 m_messageHasBeenSet = true;
188 m_message = std::forward<MessageT>(value);
189 }
190 template <typename MessageT = Aws::String>
192 SetMessage(std::forward<MessageT>(value));
193 return *this;
194 }
196 private:
197 Aws::String m_taskId;
198
199 Aws::String m_violationId;
200
201 Aws::String m_actionName;
202
203 Aws::String m_thingName;
204
205 Aws::Utils::DateTime m_executionStartDate{};
206
207 Aws::Utils::DateTime m_executionEndDate{};
208
210
211 Aws::String m_errorCode;
212
213 Aws::String m_message;
214 bool m_taskIdHasBeenSet = false;
215 bool m_violationIdHasBeenSet = false;
216 bool m_actionNameHasBeenSet = false;
217 bool m_thingNameHasBeenSet = false;
218 bool m_executionStartDateHasBeenSet = false;
219 bool m_executionEndDateHasBeenSet = false;
220 bool m_statusHasBeenSet = false;
221 bool m_errorCodeHasBeenSet = false;
222 bool m_messageHasBeenSet = false;
223};
224
225} // namespace Model
226} // namespace IoT
227} // namespace Aws
DetectMitigationActionExecution & WithThingName(ThingNameT &&value)
AWS_IOT_API DetectMitigationActionExecution & operator=(Aws::Utils::Json::JsonView jsonValue)
DetectMitigationActionExecution & WithTaskId(TaskIdT &&value)
void SetStatus(DetectMitigationActionExecutionStatus value)
DetectMitigationActionExecutionStatus GetStatus() const
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
DetectMitigationActionExecution & WithExecutionEndDate(ExecutionEndDateT &&value)
DetectMitigationActionExecution & WithMessage(MessageT &&value)
DetectMitigationActionExecution & WithActionName(ActionNameT &&value)
AWS_IOT_API DetectMitigationActionExecution(Aws::Utils::Json::JsonView jsonValue)
DetectMitigationActionExecution & WithViolationId(ViolationIdT &&value)
DetectMitigationActionExecution & WithStatus(DetectMitigationActionExecutionStatus value)
DetectMitigationActionExecution & WithExecutionStartDate(ExecutionStartDateT &&value)
DetectMitigationActionExecution & WithErrorCode(ErrorCodeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue