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>
20template <
typename RESULT_TYPE>
21class AmazonWebServiceResult;
41 template <
typename ExecutionIdT = Aws::String>
43 m_executionIdHasBeenSet =
true;
44 m_executionId = std::forward<ExecutionIdT>(value);
46 template <
typename ExecutionIdT = Aws::String>
59 template <
typename CommandArnT = Aws::String>
61 m_commandArnHasBeenSet =
true;
62 m_commandArn = std::forward<CommandArnT>(value);
64 template <
typename CommandArnT = Aws::String>
77 template <
typename TargetArnT = Aws::String>
79 m_targetArnHasBeenSet =
true;
80 m_targetArn = std::forward<TargetArnT>(value);
82 template <
typename TargetArnT = Aws::String>
98 m_statusHasBeenSet =
true;
113 template <
typename StatusReasonT = StatusReason>
115 m_statusReasonHasBeenSet =
true;
116 m_statusReason = std::forward<StatusReasonT>(value);
118 template <
typename StatusReasonT = StatusReason>
135 template <
typename ResultT = Aws::Map<Aws::String, CommandExecutionResult>>
137 m_resultHasBeenSet =
true;
138 m_result = std::forward<ResultT>(value);
140 template <
typename ResultT = Aws::Map<Aws::String, CommandExecutionResult>>
145 template <
typename ResultKeyT = Aws::String,
typename ResultValueT = CommandExecutionResult>
147 m_resultHasBeenSet =
true;
148 m_result.emplace(std::forward<ResultKeyT>(key), std::forward<ResultValueT>(value));
159 template <
typename ParametersT = Aws::Map<Aws::String, CommandParameterValue>>
161 m_parametersHasBeenSet =
true;
162 m_parameters = std::forward<ParametersT>(value);
164 template <
typename ParametersT = Aws::Map<Aws::String, CommandParameterValue>>
169 template <
typename ParametersKeyT = Aws::String,
typename ParametersValueT = CommandParameterValue>
171 m_parametersHasBeenSet =
true;
172 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
186 m_executionTimeoutSecondsHasBeenSet =
true;
187 m_executionTimeoutSeconds = value;
200 template <
typename CreatedAtT = Aws::Utils::DateTime>
202 m_createdAtHasBeenSet =
true;
203 m_createdAt = std::forward<CreatedAtT>(value);
205 template <
typename CreatedAtT = Aws::Utils::DateTime>
217 template <
typename LastUpdatedAtT = Aws::Utils::DateTime>
219 m_lastUpdatedAtHasBeenSet =
true;
220 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
222 template <
typename LastUpdatedAtT = Aws::Utils::DateTime>
234 template <
typename StartedAtT = Aws::Utils::DateTime>
236 m_startedAtHasBeenSet =
true;
237 m_startedAt = std::forward<StartedAtT>(value);
239 template <
typename StartedAtT = Aws::Utils::DateTime>
251 template <
typename CompletedAtT = Aws::Utils::DateTime>
253 m_completedAtHasBeenSet =
true;
254 m_completedAt = std::forward<CompletedAtT>(value);
256 template <
typename CompletedAtT = Aws::Utils::DateTime>
270 template <
typename TimeToLiveT = Aws::Utils::DateTime>
272 m_timeToLiveHasBeenSet =
true;
273 m_timeToLive = std::forward<TimeToLiveT>(value);
275 template <
typename TimeToLiveT = Aws::Utils::DateTime>
285 template <
typename RequestIdT = Aws::String>
287 m_requestIdHasBeenSet =
true;
288 m_requestId = std::forward<RequestIdT>(value);
290 template <
typename RequestIdT = Aws::String>
307 StatusReason m_statusReason;
313 long long m_executionTimeoutSeconds{0};
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;
void SetTargetArn(TargetArnT &&value)
void SetCreatedAt(CreatedAtT &&value)
void SetCompletedAt(CompletedAtT &&value)
void SetRequestId(RequestIdT &&value)
const Aws::String & GetRequestId() const
void SetCommandArn(CommandArnT &&value)
const Aws::Utils::DateTime & GetTimeToLive() const
GetCommandExecutionResult & WithRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetCompletedAt() const
CommandExecutionStatus GetStatus() 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
void SetExecutionTimeoutSeconds(long long value)
void SetLastUpdatedAt(LastUpdatedAtT &&value)
const Aws::String & GetExecutionId() 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
const Aws::String & GetTargetArn() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
long long GetExecutionTimeoutSeconds() const
void SetExecutionId(ExecutionIdT &&value)
void SetParameters(ParametersT &&value)
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)
const StatusReason & GetStatusReason() const
void SetTimeToLive(TimeToLiveT &&value)
GetCommandExecutionResult & AddResult(ResultKeyT &&key, ResultValueT &&value)
const Aws::String & GetCommandArn() const
void SetStatusReason(StatusReasonT &&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)
void SetStartedAt(StartedAtT &&value)
GetCommandExecutionResult & WithLastUpdatedAt(LastUpdatedAtT &&value)
void SetResult(ResultT &&value)
void SetStatus(CommandExecutionStatus 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