AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetCommandExecutionResult.h
1
6#pragma once
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>
15#include <utility>
16
17namespace Aws
18{
19template<typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace IoT
30{
31namespace Model
32{
34 {
35 public:
36 AWS_IOT_API GetCommandExecutionResult() = default;
39
40
42
45 inline const Aws::String& GetExecutionId() const { return m_executionId; }
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>
49 GetCommandExecutionResult& WithExecutionId(ExecutionIdT&& value) { SetExecutionId(std::forward<ExecutionIdT>(value)); return *this;}
51
53
57 inline const Aws::String& GetCommandArn() const { return m_commandArn; }
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>
61 GetCommandExecutionResult& WithCommandArn(CommandArnT&& value) { SetCommandArn(std::forward<CommandArnT>(value)); return *this;}
63
65
69 inline const Aws::String& GetTargetArn() const { return m_targetArn; }
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>
73 GetCommandExecutionResult& WithTargetArn(TargetArnT&& value) { SetTargetArn(std::forward<TargetArnT>(value)); return *this;}
75
77
83 inline CommandExecutionStatus GetStatus() const { return m_status; }
84 inline void SetStatus(CommandExecutionStatus value) { m_statusHasBeenSet = true; m_status = value; }
87
89
93 inline const StatusReason& GetStatusReason() const { return m_statusReason; }
94 template<typename StatusReasonT = StatusReason>
95 void SetStatusReason(StatusReasonT&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::forward<StatusReasonT>(value); }
96 template<typename StatusReasonT = StatusReason>
97 GetCommandExecutionResult& WithStatusReason(StatusReasonT&& value) { SetStatusReason(std::forward<StatusReasonT>(value)); return *this;}
99
101
109 inline const Aws::Map<Aws::String, CommandExecutionResult>& GetResult() const { return m_result; }
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>>
113 GetCommandExecutionResult& WithResult(ResultT&& value) { SetResult(std::forward<ResultT>(value)); return *this;}
114 template<typename ResultKeyT = Aws::String, typename ResultValueT = CommandExecutionResult>
115 GetCommandExecutionResult& AddResult(ResultKeyT&& key, ResultValueT&& value) {
116 m_resultHasBeenSet = true; m_result.emplace(std::forward<ResultKeyT>(key), std::forward<ResultValueT>(value)); return *this;
117 }
119
121
125 inline const Aws::Map<Aws::String, CommandParameterValue>& GetParameters() const { return m_parameters; }
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>>
129 GetCommandExecutionResult& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
130 template<typename ParametersKeyT = Aws::String, typename ParametersValueT = CommandParameterValue>
131 GetCommandExecutionResult& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
132 m_parametersHasBeenSet = true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value)); return *this;
133 }
135
137
143 inline long long GetExecutionTimeoutSeconds() const { return m_executionTimeoutSeconds; }
144 inline void SetExecutionTimeoutSeconds(long long value) { m_executionTimeoutSecondsHasBeenSet = true; m_executionTimeoutSeconds = value; }
147
149
152 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
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>
156 GetCommandExecutionResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
158
160
163 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
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>
167 GetCommandExecutionResult& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
169
171
174 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
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>
178 GetCommandExecutionResult& WithStartedAt(StartedAtT&& value) { SetStartedAt(std::forward<StartedAtT>(value)); return *this;}
180
182
185 inline const Aws::Utils::DateTime& GetCompletedAt() const { return m_completedAt; }
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>
189 GetCommandExecutionResult& WithCompletedAt(CompletedAtT&& value) { SetCompletedAt(std::forward<CompletedAtT>(value)); return *this;}
191
193
198 inline const Aws::Utils::DateTime& GetTimeToLive() const { return m_timeToLive; }
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>
202 GetCommandExecutionResult& WithTimeToLive(TimeToLiveT&& value) { SetTimeToLive(std::forward<TimeToLiveT>(value)); return *this;}
204
206
207 inline const Aws::String& GetRequestId() const { return m_requestId; }
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>
211 GetCommandExecutionResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
213 private:
214
215 Aws::String m_executionId;
216 bool m_executionIdHasBeenSet = false;
217
218 Aws::String m_commandArn;
219 bool m_commandArnHasBeenSet = false;
220
221 Aws::String m_targetArn;
222 bool m_targetArnHasBeenSet = false;
223
225 bool m_statusHasBeenSet = false;
226
227 StatusReason m_statusReason;
228 bool m_statusReasonHasBeenSet = false;
229
231 bool m_resultHasBeenSet = false;
232
234 bool m_parametersHasBeenSet = false;
235
236 long long m_executionTimeoutSeconds{0};
237 bool m_executionTimeoutSecondsHasBeenSet = false;
238
239 Aws::Utils::DateTime m_createdAt{};
240 bool m_createdAtHasBeenSet = false;
241
242 Aws::Utils::DateTime m_lastUpdatedAt{};
243 bool m_lastUpdatedAtHasBeenSet = false;
244
245 Aws::Utils::DateTime m_startedAt{};
246 bool m_startedAtHasBeenSet = false;
247
248 Aws::Utils::DateTime m_completedAt{};
249 bool m_completedAtHasBeenSet = false;
250
251 Aws::Utils::DateTime m_timeToLive{};
252 bool m_timeToLiveHasBeenSet = false;
253
254 Aws::String m_requestId;
255 bool m_requestIdHasBeenSet = false;
256 };
257
258} // namespace Model
259} // namespace IoT
260} // 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
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