AWS SDK for C++  1.9.47
AWS SDK for C++
DetectMitigationActionExecution.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace IoT
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
46  inline const Aws::String& GetTaskId() const{ return m_taskId; }
47 
51  inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
52 
56  inline void SetTaskId(const Aws::String& value) { m_taskIdHasBeenSet = true; m_taskId = value; }
57 
61  inline void SetTaskId(Aws::String&& value) { m_taskIdHasBeenSet = true; m_taskId = std::move(value); }
62 
66  inline void SetTaskId(const char* value) { m_taskIdHasBeenSet = true; m_taskId.assign(value); }
67 
71  inline DetectMitigationActionExecution& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;}
72 
76  inline DetectMitigationActionExecution& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;}
77 
81  inline DetectMitigationActionExecution& WithTaskId(const char* value) { SetTaskId(value); return *this;}
82 
83 
87  inline const Aws::String& GetViolationId() const{ return m_violationId; }
88 
92  inline bool ViolationIdHasBeenSet() const { return m_violationIdHasBeenSet; }
93 
97  inline void SetViolationId(const Aws::String& value) { m_violationIdHasBeenSet = true; m_violationId = value; }
98 
102  inline void SetViolationId(Aws::String&& value) { m_violationIdHasBeenSet = true; m_violationId = std::move(value); }
103 
107  inline void SetViolationId(const char* value) { m_violationIdHasBeenSet = true; m_violationId.assign(value); }
108 
112  inline DetectMitigationActionExecution& WithViolationId(const Aws::String& value) { SetViolationId(value); return *this;}
113 
117  inline DetectMitigationActionExecution& WithViolationId(Aws::String&& value) { SetViolationId(std::move(value)); return *this;}
118 
122  inline DetectMitigationActionExecution& WithViolationId(const char* value) { SetViolationId(value); return *this;}
123 
124 
128  inline const Aws::String& GetActionName() const{ return m_actionName; }
129 
133  inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
134 
138  inline void SetActionName(const Aws::String& value) { m_actionNameHasBeenSet = true; m_actionName = value; }
139 
143  inline void SetActionName(Aws::String&& value) { m_actionNameHasBeenSet = true; m_actionName = std::move(value); }
144 
148  inline void SetActionName(const char* value) { m_actionNameHasBeenSet = true; m_actionName.assign(value); }
149 
153  inline DetectMitigationActionExecution& WithActionName(const Aws::String& value) { SetActionName(value); return *this;}
154 
158  inline DetectMitigationActionExecution& WithActionName(Aws::String&& value) { SetActionName(std::move(value)); return *this;}
159 
163  inline DetectMitigationActionExecution& WithActionName(const char* value) { SetActionName(value); return *this;}
164 
165 
169  inline const Aws::String& GetThingName() const{ return m_thingName; }
170 
174  inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
175 
179  inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; }
180 
184  inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = std::move(value); }
185 
189  inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); }
190 
194  inline DetectMitigationActionExecution& WithThingName(const Aws::String& value) { SetThingName(value); return *this;}
195 
199  inline DetectMitigationActionExecution& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;}
200 
204  inline DetectMitigationActionExecution& WithThingName(const char* value) { SetThingName(value); return *this;}
205 
206 
210  inline const Aws::Utils::DateTime& GetExecutionStartDate() const{ return m_executionStartDate; }
211 
215  inline bool ExecutionStartDateHasBeenSet() const { return m_executionStartDateHasBeenSet; }
216 
220  inline void SetExecutionStartDate(const Aws::Utils::DateTime& value) { m_executionStartDateHasBeenSet = true; m_executionStartDate = value; }
221 
225  inline void SetExecutionStartDate(Aws::Utils::DateTime&& value) { m_executionStartDateHasBeenSet = true; m_executionStartDate = std::move(value); }
226 
230  inline DetectMitigationActionExecution& WithExecutionStartDate(const Aws::Utils::DateTime& value) { SetExecutionStartDate(value); return *this;}
231 
235  inline DetectMitigationActionExecution& WithExecutionStartDate(Aws::Utils::DateTime&& value) { SetExecutionStartDate(std::move(value)); return *this;}
236 
237 
241  inline const Aws::Utils::DateTime& GetExecutionEndDate() const{ return m_executionEndDate; }
242 
246  inline bool ExecutionEndDateHasBeenSet() const { return m_executionEndDateHasBeenSet; }
247 
251  inline void SetExecutionEndDate(const Aws::Utils::DateTime& value) { m_executionEndDateHasBeenSet = true; m_executionEndDate = value; }
252 
256  inline void SetExecutionEndDate(Aws::Utils::DateTime&& value) { m_executionEndDateHasBeenSet = true; m_executionEndDate = std::move(value); }
257 
261  inline DetectMitigationActionExecution& WithExecutionEndDate(const Aws::Utils::DateTime& value) { SetExecutionEndDate(value); return *this;}
262 
266  inline DetectMitigationActionExecution& WithExecutionEndDate(Aws::Utils::DateTime&& value) { SetExecutionEndDate(std::move(value)); return *this;}
267 
268 
272  inline const DetectMitigationActionExecutionStatus& GetStatus() const{ return m_status; }
273 
277  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
278 
282  inline void SetStatus(const DetectMitigationActionExecutionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
283 
287  inline void SetStatus(DetectMitigationActionExecutionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
288 
292  inline DetectMitigationActionExecution& WithStatus(const DetectMitigationActionExecutionStatus& value) { SetStatus(value); return *this;}
293 
297  inline DetectMitigationActionExecution& WithStatus(DetectMitigationActionExecutionStatus&& value) { SetStatus(std::move(value)); return *this;}
298 
299 
303  inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
304 
308  inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
309 
313  inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
314 
318  inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
319 
323  inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
324 
328  inline DetectMitigationActionExecution& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
329 
333  inline DetectMitigationActionExecution& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
334 
338  inline DetectMitigationActionExecution& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
339 
340 
344  inline const Aws::String& GetMessage() const{ return m_message; }
345 
349  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
350 
354  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
355 
359  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
360 
364  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
365 
369  inline DetectMitigationActionExecution& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
370 
374  inline DetectMitigationActionExecution& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
375 
379  inline DetectMitigationActionExecution& WithMessage(const char* value) { SetMessage(value); return *this;}
380 
381  private:
382 
383  Aws::String m_taskId;
384  bool m_taskIdHasBeenSet;
385 
386  Aws::String m_violationId;
387  bool m_violationIdHasBeenSet;
388 
389  Aws::String m_actionName;
390  bool m_actionNameHasBeenSet;
391 
392  Aws::String m_thingName;
393  bool m_thingNameHasBeenSet;
394 
395  Aws::Utils::DateTime m_executionStartDate;
396  bool m_executionStartDateHasBeenSet;
397 
398  Aws::Utils::DateTime m_executionEndDate;
399  bool m_executionEndDateHasBeenSet;
400 
402  bool m_statusHasBeenSet;
403 
404  Aws::String m_errorCode;
405  bool m_errorCodeHasBeenSet;
406 
407  Aws::String m_message;
408  bool m_messageHasBeenSet;
409  };
410 
411 } // namespace Model
412 } // namespace IoT
413 } // namespace Aws
Aws::IoT::Model::DetectMitigationActionExecution::SetMessage
void SetMessage(const char *value)
Definition: DetectMitigationActionExecution.h:364
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::IoT::Model::DetectMitigationActionExecution::WithExecutionStartDate
DetectMitigationActionExecution & WithExecutionStartDate(Aws::Utils::DateTime &&value)
Definition: DetectMitigationActionExecution.h:235
Aws::IoT::Model::DetectMitigationActionExecution::SetActionName
void SetActionName(Aws::String &&value)
Definition: DetectMitigationActionExecution.h:143
Aws::IoT::Model::DetectMitigationActionExecution::SetThingName
void SetThingName(const char *value)
Definition: DetectMitigationActionExecution.h:189
Aws::IoT::Model::DetectMitigationActionExecution::SetExecutionStartDate
void SetExecutionStartDate(Aws::Utils::DateTime &&value)
Definition: DetectMitigationActionExecution.h:225
Aws::IoT::Model::DetectMitigationActionExecution::GetMessage
const Aws::String & GetMessage() const
Definition: DetectMitigationActionExecution.h:344
Aws::IoT::Model::DetectMitigationActionExecution::WithThingName
DetectMitigationActionExecution & WithThingName(Aws::String &&value)
Definition: DetectMitigationActionExecution.h:199
Aws::IoT::Model::DetectMitigationActionExecution::SetExecutionEndDate
void SetExecutionEndDate(Aws::Utils::DateTime &&value)
Definition: DetectMitigationActionExecution.h:256
Aws::IoT::Model::DetectMitigationActionExecution::SetStatus
void SetStatus(const DetectMitigationActionExecutionStatus &value)
Definition: DetectMitigationActionExecution.h:282
Aws::IoT::Model::DetectMitigationActionExecution::GetExecutionEndDate
const Aws::Utils::DateTime & GetExecutionEndDate() const
Definition: DetectMitigationActionExecution.h:241
DateTime.h
Aws::IoT::Model::DetectMitigationActionExecution::GetExecutionStartDate
const Aws::Utils::DateTime & GetExecutionStartDate() const
Definition: DetectMitigationActionExecution.h:210
Aws::IoT::Model::DetectMitigationActionExecution::ActionNameHasBeenSet
bool ActionNameHasBeenSet() const
Definition: DetectMitigationActionExecution.h:133
Aws::IoT::Model::DetectMitigationActionExecution::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: DetectMitigationActionExecution.h:277
Aws::IoT::Model::DetectMitigationActionExecution::SetMessage
void SetMessage(Aws::String &&value)
Definition: DetectMitigationActionExecution.h:359
Aws::IoT::Model::DetectMitigationActionExecution::SetActionName
void SetActionName(const char *value)
Definition: DetectMitigationActionExecution.h:148
Aws::IoT::Model::DetectMitigationActionExecution::SetTaskId
void SetTaskId(const char *value)
Definition: DetectMitigationActionExecution.h:66
Aws::IoT::Model::DetectMitigationActionExecution::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::DetectMitigationActionExecution::GetErrorCode
const Aws::String & GetErrorCode() const
Definition: DetectMitigationActionExecution.h:303
Aws::IoT::Model::DetectMitigationActionExecution::SetExecutionStartDate
void SetExecutionStartDate(const Aws::Utils::DateTime &value)
Definition: DetectMitigationActionExecution.h:220
Aws::IoT::Model::DetectMitigationActionExecution::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: DetectMitigationActionExecution.h:349
Aws::IoT::Model::DetectMitigationActionExecution::WithActionName
DetectMitigationActionExecution & WithActionName(const char *value)
Definition: DetectMitigationActionExecution.h:163
Aws::IoT::Model::DetectMitigationActionExecution::WithThingName
DetectMitigationActionExecution & WithThingName(const char *value)
Definition: DetectMitigationActionExecution.h:204
Aws::IoT::Model::DetectMitigationActionExecution::WithTaskId
DetectMitigationActionExecution & WithTaskId(Aws::String &&value)
Definition: DetectMitigationActionExecution.h:76
Aws::IoT::Model::DetectMitigationActionExecution::SetViolationId
void SetViolationId(const char *value)
Definition: DetectMitigationActionExecution.h:107
Aws::IoT::Model::DetectMitigationActionExecution::WithViolationId
DetectMitigationActionExecution & WithViolationId(const Aws::String &value)
Definition: DetectMitigationActionExecution.h:112
Aws::IoT::Model::DetectMitigationActionExecution::SetActionName
void SetActionName(const Aws::String &value)
Definition: DetectMitigationActionExecution.h:138
Aws::IoT::Model::DetectMitigationActionExecution::GetActionName
const Aws::String & GetActionName() const
Definition: DetectMitigationActionExecution.h:128
Aws::IoT::Model::DetectMitigationActionExecution::WithTaskId
DetectMitigationActionExecution & WithTaskId(const Aws::String &value)
Definition: DetectMitigationActionExecution.h:71
Aws::IoT::Model::DetectMitigationActionExecution::WithExecutionStartDate
DetectMitigationActionExecution & WithExecutionStartDate(const Aws::Utils::DateTime &value)
Definition: DetectMitigationActionExecution.h:230
Aws::IoT::Model::DetectMitigationActionExecution::WithExecutionEndDate
DetectMitigationActionExecution & WithExecutionEndDate(const Aws::Utils::DateTime &value)
Definition: DetectMitigationActionExecution.h:261
Aws::IoT::Model::DetectMitigationActionExecution::WithMessage
DetectMitigationActionExecution & WithMessage(const Aws::String &value)
Definition: DetectMitigationActionExecution.h:369
Aws::IoT::Model::DetectMitigationActionExecution::WithViolationId
DetectMitigationActionExecution & WithViolationId(const char *value)
Definition: DetectMitigationActionExecution.h:122
Aws::IoT::Model::DetectMitigationActionExecution::SetThingName
void SetThingName(const Aws::String &value)
Definition: DetectMitigationActionExecution.h:179
Aws::IoT::Model::DetectMitigationActionExecution::WithStatus
DetectMitigationActionExecution & WithStatus(const DetectMitigationActionExecutionStatus &value)
Definition: DetectMitigationActionExecution.h:292
Aws::IoT::Model::DetectMitigationActionExecution::WithErrorCode
DetectMitigationActionExecution & WithErrorCode(const char *value)
Definition: DetectMitigationActionExecution.h:338
Aws::IoT::Model::DetectMitigationActionExecution::WithTaskId
DetectMitigationActionExecution & WithTaskId(const char *value)
Definition: DetectMitigationActionExecution.h:81
Aws::IoT::Model::DetectMitigationActionExecution::ThingNameHasBeenSet
bool ThingNameHasBeenSet() const
Definition: DetectMitigationActionExecution.h:174
Aws::IoT::Model::DetectMitigationActionExecution::SetTaskId
void SetTaskId(Aws::String &&value)
Definition: DetectMitigationActionExecution.h:61
Aws::IoT::Model::DetectMitigationActionExecution::operator=
DetectMitigationActionExecution & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::DetectMitigationActionExecution::SetViolationId
void SetViolationId(Aws::String &&value)
Definition: DetectMitigationActionExecution.h:102
Aws::IoT::Model::DetectMitigationActionExecution::ErrorCodeHasBeenSet
bool ErrorCodeHasBeenSet() const
Definition: DetectMitigationActionExecution.h:308
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::IoT::Model::DetectMitigationActionExecution::SetStatus
void SetStatus(DetectMitigationActionExecutionStatus &&value)
Definition: DetectMitigationActionExecution.h:287
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::IoT::Model::DetectMitigationActionExecution::GetViolationId
const Aws::String & GetViolationId() const
Definition: DetectMitigationActionExecution.h:87
Aws::IoT::Model::DetectMitigationActionExecution::WithExecutionEndDate
DetectMitigationActionExecution & WithExecutionEndDate(Aws::Utils::DateTime &&value)
Definition: DetectMitigationActionExecution.h:266
Aws::IoT::Model::DetectMitigationActionExecution::WithMessage
DetectMitigationActionExecution & WithMessage(const char *value)
Definition: DetectMitigationActionExecution.h:379
Aws::IoT::Model::DetectMitigationActionExecution::GetTaskId
const Aws::String & GetTaskId() const
Definition: DetectMitigationActionExecution.h:46
Aws::IoT::Model::DetectMitigationActionExecution
Definition: DetectMitigationActionExecution.h:35
Aws::IoT::Model::DetectMitigationActionExecution::GetThingName
const Aws::String & GetThingName() const
Definition: DetectMitigationActionExecution.h:169
Aws::IoT::Model::DetectMitigationActionExecution::WithActionName
DetectMitigationActionExecution & WithActionName(const Aws::String &value)
Definition: DetectMitigationActionExecution.h:153
Aws::IoT::Model::DetectMitigationActionExecution::WithErrorCode
DetectMitigationActionExecution & WithErrorCode(const Aws::String &value)
Definition: DetectMitigationActionExecution.h:328
Aws::IoT::Model::DetectMitigationActionExecution::WithActionName
DetectMitigationActionExecution & WithActionName(Aws::String &&value)
Definition: DetectMitigationActionExecution.h:158
Aws::IoT::Model::DetectMitigationActionExecution::ExecutionStartDateHasBeenSet
bool ExecutionStartDateHasBeenSet() const
Definition: DetectMitigationActionExecution.h:215
Aws::IoT::Model::DetectMitigationActionExecution::SetErrorCode
void SetErrorCode(const char *value)
Definition: DetectMitigationActionExecution.h:323
Aws::IoT::Model::DetectMitigationActionExecution::SetViolationId
void SetViolationId(const Aws::String &value)
Definition: DetectMitigationActionExecution.h:97
Aws::IoT::Model::DetectMitigationActionExecution::SetThingName
void SetThingName(Aws::String &&value)
Definition: DetectMitigationActionExecution.h:184
Aws::IoT::Model::DetectMitigationActionExecution::WithErrorCode
DetectMitigationActionExecution & WithErrorCode(Aws::String &&value)
Definition: DetectMitigationActionExecution.h:333
Aws::IoT::Model::DetectMitigationActionExecution::SetExecutionEndDate
void SetExecutionEndDate(const Aws::Utils::DateTime &value)
Definition: DetectMitigationActionExecution.h:251
Aws::IoT::Model::DetectMitigationActionExecution::ViolationIdHasBeenSet
bool ViolationIdHasBeenSet() const
Definition: DetectMitigationActionExecution.h:92
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::DetectMitigationActionExecution::ExecutionEndDateHasBeenSet
bool ExecutionEndDateHasBeenSet() const
Definition: DetectMitigationActionExecution.h:246
Aws::IoT::Model::DetectMitigationActionExecution::TaskIdHasBeenSet
bool TaskIdHasBeenSet() const
Definition: DetectMitigationActionExecution.h:51
Aws::IoT::Model::DetectMitigationActionExecution::SetErrorCode
void SetErrorCode(const Aws::String &value)
Definition: DetectMitigationActionExecution.h:313
Aws::IoT::Model::DetectMitigationActionExecution::WithStatus
DetectMitigationActionExecution & WithStatus(DetectMitigationActionExecutionStatus &&value)
Definition: DetectMitigationActionExecution.h:297
Aws::IoT::Model::DetectMitigationActionExecution::GetStatus
const DetectMitigationActionExecutionStatus & GetStatus() const
Definition: DetectMitigationActionExecution.h:272
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::DetectMitigationActionExecution::SetMessage
void SetMessage(const Aws::String &value)
Definition: DetectMitigationActionExecution.h:354
Aws::IoT::Model::DetectMitigationActionExecution::SetTaskId
void SetTaskId(const Aws::String &value)
Definition: DetectMitigationActionExecution.h:56
Aws::IoT::Model::DetectMitigationActionExecution::WithMessage
DetectMitigationActionExecution & WithMessage(Aws::String &&value)
Definition: DetectMitigationActionExecution.h:374
DetectMitigationActionExecutionStatus.h
Aws::IoT::Model::DetectMitigationActionExecutionStatus
DetectMitigationActionExecutionStatus
Definition: DetectMitigationActionExecutionStatus.h:17
Aws::IoT::Model::DetectMitigationActionExecution::WithThingName
DetectMitigationActionExecution & WithThingName(const Aws::String &value)
Definition: DetectMitigationActionExecution.h:194
Aws::IoT::Model::DetectMitigationActionExecution::DetectMitigationActionExecution
DetectMitigationActionExecution()
Aws::IoT::Model::DetectMitigationActionExecution::WithViolationId
DetectMitigationActionExecution & WithViolationId(Aws::String &&value)
Definition: DetectMitigationActionExecution.h:117
Aws::IoT::Model::DetectMitigationActionExecution::SetErrorCode
void SetErrorCode(Aws::String &&value)
Definition: DetectMitigationActionExecution.h:318
Aws::IoT::Model::DetectMitigationActionExecution::DetectMitigationActionExecution
DetectMitigationActionExecution(Aws::Utils::Json::JsonView jsonValue)
IoT_EXPORTS.h