AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
GetCommandExecutionResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/iot/IoT_EXPORTS.h>
12#include <aws/iot/model/CommandExecutionResult.h>
13#include <aws/iot/model/CommandExecutionStatus.h>
14#include <aws/iot/model/CommandParameterValue.h>
15#include <aws/iot/model/StatusReason.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace IoT {
29namespace Model {
31 public:
32 AWS_IOT_API GetCommandExecutionResult() = default;
35
37
40 inline const Aws::String& GetExecutionId() const { return m_executionId; }
41 template <typename ExecutionIdT = Aws::String>
42 void SetExecutionId(ExecutionIdT&& value) {
43 m_executionIdHasBeenSet = true;
44 m_executionId = std::forward<ExecutionIdT>(value);
45 }
46 template <typename ExecutionIdT = Aws::String>
48 SetExecutionId(std::forward<ExecutionIdT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetCommandArn() const { return m_commandArn; }
59 template <typename CommandArnT = Aws::String>
60 void SetCommandArn(CommandArnT&& value) {
61 m_commandArnHasBeenSet = true;
62 m_commandArn = std::forward<CommandArnT>(value);
63 }
64 template <typename CommandArnT = Aws::String>
66 SetCommandArn(std::forward<CommandArnT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::String& GetTargetArn() const { return m_targetArn; }
77 template <typename TargetArnT = Aws::String>
78 void SetTargetArn(TargetArnT&& value) {
79 m_targetArnHasBeenSet = true;
80 m_targetArn = std::forward<TargetArnT>(value);
81 }
82 template <typename TargetArnT = Aws::String>
84 SetTargetArn(std::forward<TargetArnT>(value));
85 return *this;
86 }
88
90
96 inline CommandExecutionStatus GetStatus() const { return m_status; }
97 inline void SetStatus(CommandExecutionStatus value) {
98 m_statusHasBeenSet = true;
99 m_status = value;
100 }
102 SetStatus(value);
103 return *this;
104 }
106
108
112 inline const StatusReason& GetStatusReason() const { return m_statusReason; }
113 template <typename StatusReasonT = StatusReason>
114 void SetStatusReason(StatusReasonT&& value) {
115 m_statusReasonHasBeenSet = true;
116 m_statusReason = std::forward<StatusReasonT>(value);
117 }
118 template <typename StatusReasonT = StatusReason>
120 SetStatusReason(std::forward<StatusReasonT>(value));
121 return *this;
122 }
124
126
134 inline const Aws::Map<Aws::String, CommandExecutionResult>& GetResult() const { return m_result; }
135 template <typename ResultT = Aws::Map<Aws::String, CommandExecutionResult>>
136 void SetResult(ResultT&& value) {
137 m_resultHasBeenSet = true;
138 m_result = std::forward<ResultT>(value);
139 }
140 template <typename ResultT = Aws::Map<Aws::String, CommandExecutionResult>>
142 SetResult(std::forward<ResultT>(value));
143 return *this;
144 }
145 template <typename ResultKeyT = Aws::String, typename ResultValueT = CommandExecutionResult>
146 GetCommandExecutionResult& AddResult(ResultKeyT&& key, ResultValueT&& value) {
147 m_resultHasBeenSet = true;
148 m_result.emplace(std::forward<ResultKeyT>(key), std::forward<ResultValueT>(value));
149 return *this;
150 }
152
154
158 inline const Aws::Map<Aws::String, CommandParameterValue>& GetParameters() const { return m_parameters; }
159 template <typename ParametersT = Aws::Map<Aws::String, CommandParameterValue>>
160 void SetParameters(ParametersT&& value) {
161 m_parametersHasBeenSet = true;
162 m_parameters = std::forward<ParametersT>(value);
163 }
164 template <typename ParametersT = Aws::Map<Aws::String, CommandParameterValue>>
166 SetParameters(std::forward<ParametersT>(value));
167 return *this;
168 }
169 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = CommandParameterValue>
170 GetCommandExecutionResult& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
171 m_parametersHasBeenSet = true;
172 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
173 return *this;
174 }
176
178
184 inline long long GetExecutionTimeoutSeconds() const { return m_executionTimeoutSeconds; }
185 inline void SetExecutionTimeoutSeconds(long long value) {
186 m_executionTimeoutSecondsHasBeenSet = true;
187 m_executionTimeoutSeconds = value;
188 }
191 return *this;
192 }
194
196
199 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
200 template <typename CreatedAtT = Aws::Utils::DateTime>
201 void SetCreatedAt(CreatedAtT&& value) {
202 m_createdAtHasBeenSet = true;
203 m_createdAt = std::forward<CreatedAtT>(value);
204 }
205 template <typename CreatedAtT = Aws::Utils::DateTime>
207 SetCreatedAt(std::forward<CreatedAtT>(value));
208 return *this;
209 }
211
213
216 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
217 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
218 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
219 m_lastUpdatedAtHasBeenSet = true;
220 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
221 }
222 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
224 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
225 return *this;
226 }
228
230
233 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
234 template <typename StartedAtT = Aws::Utils::DateTime>
235 void SetStartedAt(StartedAtT&& value) {
236 m_startedAtHasBeenSet = true;
237 m_startedAt = std::forward<StartedAtT>(value);
238 }
239 template <typename StartedAtT = Aws::Utils::DateTime>
241 SetStartedAt(std::forward<StartedAtT>(value));
242 return *this;
243 }
245
247
250 inline const Aws::Utils::DateTime& GetCompletedAt() const { return m_completedAt; }
251 template <typename CompletedAtT = Aws::Utils::DateTime>
252 void SetCompletedAt(CompletedAtT&& value) {
253 m_completedAtHasBeenSet = true;
254 m_completedAt = std::forward<CompletedAtT>(value);
255 }
256 template <typename CompletedAtT = Aws::Utils::DateTime>
258 SetCompletedAt(std::forward<CompletedAtT>(value));
259 return *this;
260 }
262
264
269 inline const Aws::Utils::DateTime& GetTimeToLive() const { return m_timeToLive; }
270 template <typename TimeToLiveT = Aws::Utils::DateTime>
271 void SetTimeToLive(TimeToLiveT&& value) {
272 m_timeToLiveHasBeenSet = true;
273 m_timeToLive = std::forward<TimeToLiveT>(value);
274 }
275 template <typename TimeToLiveT = Aws::Utils::DateTime>
277 SetTimeToLive(std::forward<TimeToLiveT>(value));
278 return *this;
279 }
281
283
284 inline const Aws::String& GetRequestId() const { return m_requestId; }
285 template <typename RequestIdT = Aws::String>
286 void SetRequestId(RequestIdT&& value) {
287 m_requestIdHasBeenSet = true;
288 m_requestId = std::forward<RequestIdT>(value);
289 }
290 template <typename RequestIdT = Aws::String>
292 SetRequestId(std::forward<RequestIdT>(value));
293 return *this;
294 }
296 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
297
298 private:
299 Aws::String m_executionId;
300
301 Aws::String m_commandArn;
302
303 Aws::String m_targetArn;
304
306
307 StatusReason m_statusReason;
308
310
312
313 long long m_executionTimeoutSeconds{0};
314
315 Aws::Utils::DateTime m_createdAt{};
316
317 Aws::Utils::DateTime m_lastUpdatedAt{};
318
319 Aws::Utils::DateTime m_startedAt{};
320
321 Aws::Utils::DateTime m_completedAt{};
322
323 Aws::Utils::DateTime m_timeToLive{};
324
325 Aws::String m_requestId;
326 Aws::Http::HttpResponseCode m_HttpResponseCode;
327 bool m_executionIdHasBeenSet = false;
328 bool m_commandArnHasBeenSet = false;
329 bool m_targetArnHasBeenSet = false;
330 bool m_statusHasBeenSet = false;
331 bool m_statusReasonHasBeenSet = false;
332 bool m_resultHasBeenSet = false;
333 bool m_parametersHasBeenSet = false;
334 bool m_executionTimeoutSecondsHasBeenSet = false;
335 bool m_createdAtHasBeenSet = false;
336 bool m_lastUpdatedAtHasBeenSet = false;
337 bool m_startedAtHasBeenSet = false;
338 bool m_completedAtHasBeenSet = false;
339 bool m_timeToLiveHasBeenSet = false;
340 bool m_requestIdHasBeenSet = false;
341};
342
343} // namespace Model
344} // namespace IoT
345} // namespace Aws
const Aws::Utils::DateTime & GetTimeToLive() const
GetCommandExecutionResult & WithRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetCompletedAt() const
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::Utils::DateTime & GetLastUpdatedAt() const
GetCommandExecutionResult & WithTimeToLive(TimeToLiveT &&value)
const Aws::Map< Aws::String, CommandExecutionResult > & GetResult() const
GetCommandExecutionResult & WithTargetArn(TargetArnT &&value)
GetCommandExecutionResult & WithStartedAt(StartedAtT &&value)
AWS_IOT_API GetCommandExecutionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetStartedAt() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetCommandExecutionResult & WithCompletedAt(CompletedAtT &&value)
GetCommandExecutionResult & WithResult(ResultT &&value)
GetCommandExecutionResult & WithExecutionId(ExecutionIdT &&value)
GetCommandExecutionResult & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
GetCommandExecutionResult & WithExecutionTimeoutSeconds(long long value)
GetCommandExecutionResult & WithParameters(ParametersT &&value)
GetCommandExecutionResult & AddResult(ResultKeyT &&key, ResultValueT &&value)
const Aws::Map< Aws::String, CommandParameterValue > & GetParameters() const
GetCommandExecutionResult & WithStatus(CommandExecutionStatus value)
AWS_IOT_API GetCommandExecutionResult()=default
AWS_IOT_API GetCommandExecutionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetCommandExecutionResult & WithStatusReason(StatusReasonT &&value)
GetCommandExecutionResult & WithCreatedAt(CreatedAtT &&value)
GetCommandExecutionResult & WithCommandArn(CommandArnT &&value)
GetCommandExecutionResult & WithLastUpdatedAt(LastUpdatedAtT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue