AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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:
37 AWS_IOT_API DetectMitigationActionExecution() = default;
41
42
44
47 inline const Aws::String& GetTaskId() const { return m_taskId; }
48 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
49 template<typename TaskIdT = Aws::String>
50 void SetTaskId(TaskIdT&& value) { m_taskIdHasBeenSet = true; m_taskId = std::forward<TaskIdT>(value); }
51 template<typename TaskIdT = Aws::String>
52 DetectMitigationActionExecution& WithTaskId(TaskIdT&& value) { SetTaskId(std::forward<TaskIdT>(value)); return *this;}
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) { m_violationIdHasBeenSet = true; m_violationId = std::forward<ViolationIdT>(value); }
63 template<typename ViolationIdT = Aws::String>
64 DetectMitigationActionExecution& WithViolationId(ViolationIdT&& value) { SetViolationId(std::forward<ViolationIdT>(value)); return *this;}
66
68
71 inline const Aws::String& GetActionName() const { return m_actionName; }
72 inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
73 template<typename ActionNameT = Aws::String>
74 void SetActionName(ActionNameT&& value) { m_actionNameHasBeenSet = true; m_actionName = std::forward<ActionNameT>(value); }
75 template<typename ActionNameT = Aws::String>
76 DetectMitigationActionExecution& WithActionName(ActionNameT&& value) { SetActionName(std::forward<ActionNameT>(value)); return *this;}
78
80
83 inline const Aws::String& GetThingName() const { return m_thingName; }
84 inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
85 template<typename ThingNameT = Aws::String>
86 void SetThingName(ThingNameT&& value) { m_thingNameHasBeenSet = true; m_thingName = std::forward<ThingNameT>(value); }
87 template<typename ThingNameT = Aws::String>
88 DetectMitigationActionExecution& WithThingName(ThingNameT&& value) { SetThingName(std::forward<ThingNameT>(value)); return *this;}
90
92
95 inline const Aws::Utils::DateTime& GetExecutionStartDate() const { return m_executionStartDate; }
96 inline bool ExecutionStartDateHasBeenSet() const { return m_executionStartDateHasBeenSet; }
97 template<typename ExecutionStartDateT = Aws::Utils::DateTime>
98 void SetExecutionStartDate(ExecutionStartDateT&& value) { m_executionStartDateHasBeenSet = true; m_executionStartDate = std::forward<ExecutionStartDateT>(value); }
99 template<typename ExecutionStartDateT = Aws::Utils::DateTime>
100 DetectMitigationActionExecution& WithExecutionStartDate(ExecutionStartDateT&& value) { SetExecutionStartDate(std::forward<ExecutionStartDateT>(value)); return *this;}
102
104
107 inline const Aws::Utils::DateTime& GetExecutionEndDate() const { return m_executionEndDate; }
108 inline bool ExecutionEndDateHasBeenSet() const { return m_executionEndDateHasBeenSet; }
109 template<typename ExecutionEndDateT = Aws::Utils::DateTime>
110 void SetExecutionEndDate(ExecutionEndDateT&& value) { m_executionEndDateHasBeenSet = true; m_executionEndDate = std::forward<ExecutionEndDateT>(value); }
111 template<typename ExecutionEndDateT = Aws::Utils::DateTime>
112 DetectMitigationActionExecution& WithExecutionEndDate(ExecutionEndDateT&& value) { SetExecutionEndDate(std::forward<ExecutionEndDateT>(value)); return *this;}
114
116
119 inline DetectMitigationActionExecutionStatus GetStatus() const { return m_status; }
120 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
121 inline void SetStatus(DetectMitigationActionExecutionStatus value) { m_statusHasBeenSet = true; m_status = value; }
124
126
129 inline const Aws::String& GetErrorCode() const { return m_errorCode; }
130 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
131 template<typename ErrorCodeT = Aws::String>
132 void SetErrorCode(ErrorCodeT&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::forward<ErrorCodeT>(value); }
133 template<typename ErrorCodeT = Aws::String>
134 DetectMitigationActionExecution& WithErrorCode(ErrorCodeT&& value) { SetErrorCode(std::forward<ErrorCodeT>(value)); return *this;}
136
138
141 inline const Aws::String& GetMessage() const { return m_message; }
142 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
143 template<typename MessageT = Aws::String>
144 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
145 template<typename MessageT = Aws::String>
146 DetectMitigationActionExecution& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
148 private:
149
150 Aws::String m_taskId;
151 bool m_taskIdHasBeenSet = false;
152
153 Aws::String m_violationId;
154 bool m_violationIdHasBeenSet = false;
155
156 Aws::String m_actionName;
157 bool m_actionNameHasBeenSet = false;
158
159 Aws::String m_thingName;
160 bool m_thingNameHasBeenSet = false;
161
162 Aws::Utils::DateTime m_executionStartDate{};
163 bool m_executionStartDateHasBeenSet = false;
164
165 Aws::Utils::DateTime m_executionEndDate{};
166 bool m_executionEndDateHasBeenSet = false;
167
169 bool m_statusHasBeenSet = false;
170
171 Aws::String m_errorCode;
172 bool m_errorCodeHasBeenSet = false;
173
174 Aws::String m_message;
175 bool m_messageHasBeenSet = false;
176 };
177
178} // namespace Model
179} // namespace IoT
180} // 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