AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DetectMitigationActionExecution.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/iot/model/DetectMitigationActionExecutionStatus.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace IoT
24{
25namespace Model
26{
27
35 {
36 public:
41
42
44
47 inline const Aws::String& GetTaskId() const{ return m_taskId; }
48 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
49 inline void SetTaskId(const Aws::String& value) { m_taskIdHasBeenSet = true; m_taskId = value; }
50 inline void SetTaskId(Aws::String&& value) { m_taskIdHasBeenSet = true; m_taskId = std::move(value); }
51 inline void SetTaskId(const char* value) { m_taskIdHasBeenSet = true; m_taskId.assign(value); }
52 inline DetectMitigationActionExecution& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;}
53 inline DetectMitigationActionExecution& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;}
54 inline DetectMitigationActionExecution& WithTaskId(const char* value) { SetTaskId(value); return *this;}
56
58
61 inline const Aws::String& GetViolationId() const{ return m_violationId; }
62 inline bool ViolationIdHasBeenSet() const { return m_violationIdHasBeenSet; }
63 inline void SetViolationId(const Aws::String& value) { m_violationIdHasBeenSet = true; m_violationId = value; }
64 inline void SetViolationId(Aws::String&& value) { m_violationIdHasBeenSet = true; m_violationId = std::move(value); }
65 inline void SetViolationId(const char* value) { m_violationIdHasBeenSet = true; m_violationId.assign(value); }
66 inline DetectMitigationActionExecution& WithViolationId(const Aws::String& value) { SetViolationId(value); return *this;}
67 inline DetectMitigationActionExecution& WithViolationId(Aws::String&& value) { SetViolationId(std::move(value)); return *this;}
68 inline DetectMitigationActionExecution& WithViolationId(const char* value) { SetViolationId(value); return *this;}
70
72
75 inline const Aws::String& GetActionName() const{ return m_actionName; }
76 inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
77 inline void SetActionName(const Aws::String& value) { m_actionNameHasBeenSet = true; m_actionName = value; }
78 inline void SetActionName(Aws::String&& value) { m_actionNameHasBeenSet = true; m_actionName = std::move(value); }
79 inline void SetActionName(const char* value) { m_actionNameHasBeenSet = true; m_actionName.assign(value); }
80 inline DetectMitigationActionExecution& WithActionName(const Aws::String& value) { SetActionName(value); return *this;}
81 inline DetectMitigationActionExecution& WithActionName(Aws::String&& value) { SetActionName(std::move(value)); return *this;}
82 inline DetectMitigationActionExecution& WithActionName(const char* value) { SetActionName(value); return *this;}
84
86
89 inline const Aws::String& GetThingName() const{ return m_thingName; }
90 inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
91 inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; }
92 inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = std::move(value); }
93 inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); }
94 inline DetectMitigationActionExecution& WithThingName(const Aws::String& value) { SetThingName(value); return *this;}
95 inline DetectMitigationActionExecution& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;}
96 inline DetectMitigationActionExecution& WithThingName(const char* value) { SetThingName(value); return *this;}
98
100
103 inline const Aws::Utils::DateTime& GetExecutionStartDate() const{ return m_executionStartDate; }
104 inline bool ExecutionStartDateHasBeenSet() const { return m_executionStartDateHasBeenSet; }
105 inline void SetExecutionStartDate(const Aws::Utils::DateTime& value) { m_executionStartDateHasBeenSet = true; m_executionStartDate = value; }
106 inline void SetExecutionStartDate(Aws::Utils::DateTime&& value) { m_executionStartDateHasBeenSet = true; m_executionStartDate = std::move(value); }
110
112
115 inline const Aws::Utils::DateTime& GetExecutionEndDate() const{ return m_executionEndDate; }
116 inline bool ExecutionEndDateHasBeenSet() const { return m_executionEndDateHasBeenSet; }
117 inline void SetExecutionEndDate(const Aws::Utils::DateTime& value) { m_executionEndDateHasBeenSet = true; m_executionEndDate = value; }
118 inline void SetExecutionEndDate(Aws::Utils::DateTime&& value) { m_executionEndDateHasBeenSet = true; m_executionEndDate = std::move(value); }
122
124
127 inline const DetectMitigationActionExecutionStatus& GetStatus() const{ return m_status; }
128 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
129 inline void SetStatus(const DetectMitigationActionExecutionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
130 inline void SetStatus(DetectMitigationActionExecutionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
134
136
139 inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
140 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
141 inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
142 inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
143 inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
144 inline DetectMitigationActionExecution& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
145 inline DetectMitigationActionExecution& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
146 inline DetectMitigationActionExecution& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
148
150
153 inline const Aws::String& GetMessage() const{ return m_message; }
154 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
155 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
156 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
157 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
158 inline DetectMitigationActionExecution& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
159 inline DetectMitigationActionExecution& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
160 inline DetectMitigationActionExecution& WithMessage(const char* value) { SetMessage(value); return *this;}
162 private:
163
164 Aws::String m_taskId;
165 bool m_taskIdHasBeenSet = false;
166
167 Aws::String m_violationId;
168 bool m_violationIdHasBeenSet = false;
169
170 Aws::String m_actionName;
171 bool m_actionNameHasBeenSet = false;
172
173 Aws::String m_thingName;
174 bool m_thingNameHasBeenSet = false;
175
176 Aws::Utils::DateTime m_executionStartDate;
177 bool m_executionStartDateHasBeenSet = false;
178
179 Aws::Utils::DateTime m_executionEndDate;
180 bool m_executionEndDateHasBeenSet = false;
181
183 bool m_statusHasBeenSet = false;
184
185 Aws::String m_errorCode;
186 bool m_errorCodeHasBeenSet = false;
187
188 Aws::String m_message;
189 bool m_messageHasBeenSet = false;
190 };
191
192} // namespace Model
193} // namespace IoT
194} // namespace Aws
DetectMitigationActionExecution & WithExecutionStartDate(const Aws::Utils::DateTime &value)
DetectMitigationActionExecution & WithMessage(const Aws::String &value)
AWS_IOT_API DetectMitigationActionExecution & operator=(Aws::Utils::Json::JsonView jsonValue)
DetectMitigationActionExecution & WithThingName(Aws::String &&value)
DetectMitigationActionExecution & WithActionName(const Aws::String &value)
DetectMitigationActionExecution & WithMessage(Aws::String &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
DetectMitigationActionExecution & WithErrorCode(const char *value)
DetectMitigationActionExecution & WithExecutionEndDate(const Aws::Utils::DateTime &value)
void SetStatus(const DetectMitigationActionExecutionStatus &value)
DetectMitigationActionExecution & WithViolationId(const char *value)
AWS_IOT_API DetectMitigationActionExecution(Aws::Utils::Json::JsonView jsonValue)
DetectMitigationActionExecution & WithMessage(const char *value)
DetectMitigationActionExecution & WithViolationId(const Aws::String &value)
void SetStatus(DetectMitigationActionExecutionStatus &&value)
DetectMitigationActionExecution & WithStatus(DetectMitigationActionExecutionStatus &&value)
DetectMitigationActionExecution & WithThingName(const char *value)
DetectMitigationActionExecution & WithActionName(const char *value)
DetectMitigationActionExecution & WithExecutionEndDate(Aws::Utils::DateTime &&value)
DetectMitigationActionExecution & WithErrorCode(Aws::String &&value)
DetectMitigationActionExecution & WithViolationId(Aws::String &&value)
const DetectMitigationActionExecutionStatus & GetStatus() const
DetectMitigationActionExecution & WithStatus(const DetectMitigationActionExecutionStatus &value)
DetectMitigationActionExecution & WithExecutionStartDate(Aws::Utils::DateTime &&value)
DetectMitigationActionExecution & WithTaskId(Aws::String &&value)
DetectMitigationActionExecution & WithTaskId(const Aws::String &value)
DetectMitigationActionExecution & WithThingName(const Aws::String &value)
DetectMitigationActionExecution & WithErrorCode(const Aws::String &value)
DetectMitigationActionExecution & WithTaskId(const char *value)
void SetExecutionStartDate(const Aws::Utils::DateTime &value)
DetectMitigationActionExecution & WithActionName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue