7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot/model/CommandExecutionStatus.h>
10#include <aws/iot/model/StatusReason.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/iot/model/CommandExecutionResult.h>
14#include <aws/iot/model/CommandParameterValue.h>
19template<
typename RESULT_TYPE>
20class AmazonWebServiceResult;
46 template<
typename ExecutionIdT = Aws::String>
47 void SetExecutionId(ExecutionIdT&& value) { m_executionIdHasBeenSet =
true; m_executionId = std::forward<ExecutionIdT>(value); }
48 template<
typename ExecutionIdT = Aws::String>
58 template<
typename CommandArnT = Aws::String>
59 void SetCommandArn(CommandArnT&& value) { m_commandArnHasBeenSet =
true; m_commandArn = std::forward<CommandArnT>(value); }
60 template<
typename CommandArnT = Aws::String>
70 template<
typename TargetArnT = Aws::String>
71 void SetTargetArn(TargetArnT&& value) { m_targetArnHasBeenSet =
true; m_targetArn = std::forward<TargetArnT>(value); }
72 template<
typename TargetArnT = Aws::String>
94 template<
typename StatusReasonT = StatusReason>
95 void SetStatusReason(StatusReasonT&& value) { m_statusReasonHasBeenSet =
true; m_statusReason = std::forward<StatusReasonT>(value); }
96 template<
typename StatusReasonT = StatusReason>
110 template<
typename ResultT = Aws::Map<Aws::String, CommandExecutionResult>>
111 void SetResult(ResultT&& value) { m_resultHasBeenSet =
true; m_result = std::forward<ResultT>(value); }
112 template<
typename ResultT = Aws::Map<Aws::String, CommandExecutionResult>>
114 template<
typename ResultKeyT = Aws::String,
typename ResultValueT = CommandExecutionResult>
116 m_resultHasBeenSet =
true; m_result.emplace(std::forward<ResultKeyT>(key), std::forward<ResultValueT>(value));
return *
this;
126 template<
typename ParametersT = Aws::Map<Aws::String, CommandParameterValue>>
127 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet =
true; m_parameters = std::forward<ParametersT>(value); }
128 template<
typename ParametersT = Aws::Map<Aws::String, CommandParameterValue>>
130 template<
typename ParametersKeyT = Aws::String,
typename ParametersValueT = CommandParameterValue>
132 m_parametersHasBeenSet =
true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
return *
this;
153 template<
typename CreatedAtT = Aws::Utils::DateTime>
154 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet =
true; m_createdAt = std::forward<CreatedAtT>(value); }
155 template<
typename CreatedAtT = Aws::Utils::DateTime>
164 template<
typename LastUpdatedAtT = Aws::Utils::DateTime>
165 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet =
true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
166 template<
typename LastUpdatedAtT = Aws::Utils::DateTime>
175 template<
typename StartedAtT = Aws::Utils::DateTime>
176 void SetStartedAt(StartedAtT&& value) { m_startedAtHasBeenSet =
true; m_startedAt = std::forward<StartedAtT>(value); }
177 template<
typename StartedAtT = Aws::Utils::DateTime>
186 template<
typename CompletedAtT = Aws::Utils::DateTime>
187 void SetCompletedAt(CompletedAtT&& value) { m_completedAtHasBeenSet =
true; m_completedAt = std::forward<CompletedAtT>(value); }
188 template<
typename CompletedAtT = Aws::Utils::DateTime>
199 template<
typename TimeToLiveT = Aws::Utils::DateTime>
200 void SetTimeToLive(TimeToLiveT&& value) { m_timeToLiveHasBeenSet =
true; m_timeToLive = std::forward<TimeToLiveT>(value); }
201 template<
typename TimeToLiveT = Aws::Utils::DateTime>
208 template<
typename RequestIdT = Aws::String>
209 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet =
true; m_requestId = std::forward<RequestIdT>(value); }
210 template<
typename RequestIdT = Aws::String>
216 bool m_executionIdHasBeenSet =
false;
219 bool m_commandArnHasBeenSet =
false;
222 bool m_targetArnHasBeenSet =
false;
225 bool m_statusHasBeenSet =
false;
227 StatusReason m_statusReason;
228 bool m_statusReasonHasBeenSet =
false;
231 bool m_resultHasBeenSet =
false;
234 bool m_parametersHasBeenSet =
false;
236 long long m_executionTimeoutSeconds{0};
237 bool m_executionTimeoutSecondsHasBeenSet =
false;
240 bool m_createdAtHasBeenSet =
false;
243 bool m_lastUpdatedAtHasBeenSet =
false;
246 bool m_startedAtHasBeenSet =
false;
249 bool m_completedAtHasBeenSet =
false;
252 bool m_timeToLiveHasBeenSet =
false;
255 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
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