AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
GetOtaTaskResult.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/core/utils/memory/stl/AWSVector.h>
12#include <aws/iot-managed-integrations/IoTManagedIntegrations_EXPORTS.h>
13#include <aws/iot-managed-integrations/model/OtaMechanism.h>
14#include <aws/iot-managed-integrations/model/OtaProtocol.h>
15#include <aws/iot-managed-integrations/model/OtaStatus.h>
16#include <aws/iot-managed-integrations/model/OtaTaskExecutionRetryConfig.h>
17#include <aws/iot-managed-integrations/model/OtaTaskSchedulingConfig.h>
18#include <aws/iot-managed-integrations/model/OtaType.h>
19#include <aws/iot-managed-integrations/model/TaskProcessingDetails.h>
20
21#include <utility>
22
23namespace Aws {
24template <typename RESULT_TYPE>
25class AmazonWebServiceResult;
26
27namespace Utils {
28namespace Json {
29class JsonValue;
30} // namespace Json
31} // namespace Utils
32namespace IoTManagedIntegrations {
33namespace Model {
35 public:
36 AWS_IOTMANAGEDINTEGRATIONS_API GetOtaTaskResult() = default;
39
41
44 inline const Aws::String& GetTaskId() const { return m_taskId; }
45 template <typename TaskIdT = Aws::String>
46 void SetTaskId(TaskIdT&& value) {
47 m_taskIdHasBeenSet = true;
48 m_taskId = std::forward<TaskIdT>(value);
49 }
50 template <typename TaskIdT = Aws::String>
51 GetOtaTaskResult& WithTaskId(TaskIdT&& value) {
52 SetTaskId(std::forward<TaskIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetTaskArn() const { return m_taskArn; }
62 template <typename TaskArnT = Aws::String>
63 void SetTaskArn(TaskArnT&& value) {
64 m_taskArnHasBeenSet = true;
65 m_taskArn = std::forward<TaskArnT>(value);
66 }
67 template <typename TaskArnT = Aws::String>
68 GetOtaTaskResult& WithTaskArn(TaskArnT&& value) {
69 SetTaskArn(std::forward<TaskArnT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetDescription() const { return m_description; }
79 template <typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) {
81 m_descriptionHasBeenSet = true;
82 m_description = std::forward<DescriptionT>(value);
83 }
84 template <typename DescriptionT = Aws::String>
85 GetOtaTaskResult& WithDescription(DescriptionT&& value) {
86 SetDescription(std::forward<DescriptionT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::String& GetS3Url() const { return m_s3Url; }
97 template <typename S3UrlT = Aws::String>
98 void SetS3Url(S3UrlT&& value) {
99 m_s3UrlHasBeenSet = true;
100 m_s3Url = std::forward<S3UrlT>(value);
101 }
102 template <typename S3UrlT = Aws::String>
103 GetOtaTaskResult& WithS3Url(S3UrlT&& value) {
104 SetS3Url(std::forward<S3UrlT>(value));
105 return *this;
106 }
108
110
114 inline OtaProtocol GetProtocol() const { return m_protocol; }
115 inline void SetProtocol(OtaProtocol value) {
116 m_protocolHasBeenSet = true;
117 m_protocol = value;
118 }
120 SetProtocol(value);
121 return *this;
122 }
124
126
129 inline OtaType GetOtaType() const { return m_otaType; }
130 inline void SetOtaType(OtaType value) {
131 m_otaTypeHasBeenSet = true;
132 m_otaType = value;
133 }
135 SetOtaType(value);
136 return *this;
137 }
139
141
144 inline const Aws::String& GetOtaTargetQueryString() const { return m_otaTargetQueryString; }
145 template <typename OtaTargetQueryStringT = Aws::String>
146 void SetOtaTargetQueryString(OtaTargetQueryStringT&& value) {
147 m_otaTargetQueryStringHasBeenSet = true;
148 m_otaTargetQueryString = std::forward<OtaTargetQueryStringT>(value);
149 }
150 template <typename OtaTargetQueryStringT = Aws::String>
151 GetOtaTaskResult& WithOtaTargetQueryString(OtaTargetQueryStringT&& value) {
152 SetOtaTargetQueryString(std::forward<OtaTargetQueryStringT>(value));
153 return *this;
154 }
156
158
161 inline OtaMechanism GetOtaMechanism() const { return m_otaMechanism; }
162 inline void SetOtaMechanism(OtaMechanism value) {
163 m_otaMechanismHasBeenSet = true;
164 m_otaMechanism = value;
165 }
167 SetOtaMechanism(value);
168 return *this;
169 }
171
173
176 inline const Aws::Vector<Aws::String>& GetTarget() const { return m_target; }
177 template <typename TargetT = Aws::Vector<Aws::String>>
178 void SetTarget(TargetT&& value) {
179 m_targetHasBeenSet = true;
180 m_target = std::forward<TargetT>(value);
181 }
182 template <typename TargetT = Aws::Vector<Aws::String>>
183 GetOtaTaskResult& WithTarget(TargetT&& value) {
184 SetTarget(std::forward<TargetT>(value));
185 return *this;
186 }
187 template <typename TargetT = Aws::String>
188 GetOtaTaskResult& AddTarget(TargetT&& value) {
189 m_targetHasBeenSet = true;
190 m_target.emplace_back(std::forward<TargetT>(value));
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>
206 GetOtaTaskResult& WithCreatedAt(CreatedAtT&& value) {
207 SetCreatedAt(std::forward<CreatedAtT>(value));
208 return *this;
209 }
211
213
217 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
218 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
219 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
220 m_lastUpdatedAtHasBeenSet = true;
221 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
222 }
223 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
224 GetOtaTaskResult& WithLastUpdatedAt(LastUpdatedAtT&& value) {
225 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
226 return *this;
227 }
229
231
234 inline const Aws::String& GetTaskConfigurationId() const { return m_taskConfigurationId; }
235 template <typename TaskConfigurationIdT = Aws::String>
236 void SetTaskConfigurationId(TaskConfigurationIdT&& value) {
237 m_taskConfigurationIdHasBeenSet = true;
238 m_taskConfigurationId = std::forward<TaskConfigurationIdT>(value);
239 }
240 template <typename TaskConfigurationIdT = Aws::String>
241 GetOtaTaskResult& WithTaskConfigurationId(TaskConfigurationIdT&& value) {
242 SetTaskConfigurationId(std::forward<TaskConfigurationIdT>(value));
243 return *this;
244 }
246
248
251 inline const TaskProcessingDetails& GetTaskProcessingDetails() const { return m_taskProcessingDetails; }
252 template <typename TaskProcessingDetailsT = TaskProcessingDetails>
253 void SetTaskProcessingDetails(TaskProcessingDetailsT&& value) {
254 m_taskProcessingDetailsHasBeenSet = true;
255 m_taskProcessingDetails = std::forward<TaskProcessingDetailsT>(value);
256 }
257 template <typename TaskProcessingDetailsT = TaskProcessingDetails>
258 GetOtaTaskResult& WithTaskProcessingDetails(TaskProcessingDetailsT&& value) {
259 SetTaskProcessingDetails(std::forward<TaskProcessingDetailsT>(value));
260 return *this;
261 }
263
265
266 inline const OtaTaskSchedulingConfig& GetOtaSchedulingConfig() const { return m_otaSchedulingConfig; }
267 template <typename OtaSchedulingConfigT = OtaTaskSchedulingConfig>
268 void SetOtaSchedulingConfig(OtaSchedulingConfigT&& value) {
269 m_otaSchedulingConfigHasBeenSet = true;
270 m_otaSchedulingConfig = std::forward<OtaSchedulingConfigT>(value);
271 }
272 template <typename OtaSchedulingConfigT = OtaTaskSchedulingConfig>
273 GetOtaTaskResult& WithOtaSchedulingConfig(OtaSchedulingConfigT&& value) {
274 SetOtaSchedulingConfig(std::forward<OtaSchedulingConfigT>(value));
275 return *this;
276 }
278
280
281 inline const OtaTaskExecutionRetryConfig& GetOtaTaskExecutionRetryConfig() const { return m_otaTaskExecutionRetryConfig; }
282 template <typename OtaTaskExecutionRetryConfigT = OtaTaskExecutionRetryConfig>
283 void SetOtaTaskExecutionRetryConfig(OtaTaskExecutionRetryConfigT&& value) {
284 m_otaTaskExecutionRetryConfigHasBeenSet = true;
285 m_otaTaskExecutionRetryConfig = std::forward<OtaTaskExecutionRetryConfigT>(value);
286 }
287 template <typename OtaTaskExecutionRetryConfigT = OtaTaskExecutionRetryConfig>
288 GetOtaTaskResult& WithOtaTaskExecutionRetryConfig(OtaTaskExecutionRetryConfigT&& value) {
289 SetOtaTaskExecutionRetryConfig(std::forward<OtaTaskExecutionRetryConfigT>(value));
290 return *this;
291 }
293
295
298 inline OtaStatus GetStatus() const { return m_status; }
299 inline void SetStatus(OtaStatus value) {
300 m_statusHasBeenSet = true;
301 m_status = value;
302 }
304 SetStatus(value);
305 return *this;
306 }
308
310
314 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
315 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
316 void SetTags(TagsT&& value) {
317 m_tagsHasBeenSet = true;
318 m_tags = std::forward<TagsT>(value);
319 }
320 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
321 GetOtaTaskResult& WithTags(TagsT&& value) {
322 SetTags(std::forward<TagsT>(value));
323 return *this;
324 }
325 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
326 GetOtaTaskResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
327 m_tagsHasBeenSet = true;
328 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
329 return *this;
330 }
332
334
335 inline const Aws::String& GetRequestId() const { return m_requestId; }
336 template <typename RequestIdT = Aws::String>
337 void SetRequestId(RequestIdT&& value) {
338 m_requestIdHasBeenSet = true;
339 m_requestId = std::forward<RequestIdT>(value);
340 }
341 template <typename RequestIdT = Aws::String>
342 GetOtaTaskResult& WithRequestId(RequestIdT&& value) {
343 SetRequestId(std::forward<RequestIdT>(value));
344 return *this;
345 }
347 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
348
349 private:
350 Aws::String m_taskId;
351
352 Aws::String m_taskArn;
353
354 Aws::String m_description;
355
356 Aws::String m_s3Url;
357
359
360 OtaType m_otaType{OtaType::NOT_SET};
361
362 Aws::String m_otaTargetQueryString;
363
364 OtaMechanism m_otaMechanism{OtaMechanism::NOT_SET};
365
367
368 Aws::Utils::DateTime m_createdAt{};
369
370 Aws::Utils::DateTime m_lastUpdatedAt{};
371
372 Aws::String m_taskConfigurationId;
373
374 TaskProcessingDetails m_taskProcessingDetails;
375
376 OtaTaskSchedulingConfig m_otaSchedulingConfig;
377
378 OtaTaskExecutionRetryConfig m_otaTaskExecutionRetryConfig;
379
381
383
384 Aws::String m_requestId;
385 Aws::Http::HttpResponseCode m_HttpResponseCode;
386 bool m_taskIdHasBeenSet = false;
387 bool m_taskArnHasBeenSet = false;
388 bool m_descriptionHasBeenSet = false;
389 bool m_s3UrlHasBeenSet = false;
390 bool m_protocolHasBeenSet = false;
391 bool m_otaTypeHasBeenSet = false;
392 bool m_otaTargetQueryStringHasBeenSet = false;
393 bool m_otaMechanismHasBeenSet = false;
394 bool m_targetHasBeenSet = false;
395 bool m_createdAtHasBeenSet = false;
396 bool m_lastUpdatedAtHasBeenSet = false;
397 bool m_taskConfigurationIdHasBeenSet = false;
398 bool m_taskProcessingDetailsHasBeenSet = false;
399 bool m_otaSchedulingConfigHasBeenSet = false;
400 bool m_otaTaskExecutionRetryConfigHasBeenSet = false;
401 bool m_statusHasBeenSet = false;
402 bool m_tagsHasBeenSet = false;
403 bool m_requestIdHasBeenSet = false;
404};
405
406} // namespace Model
407} // namespace IoTManagedIntegrations
408} // namespace Aws
void SetOtaTargetQueryString(OtaTargetQueryStringT &&value)
void SetOtaTaskExecutionRetryConfig(OtaTaskExecutionRetryConfigT &&value)
const OtaTaskExecutionRetryConfig & GetOtaTaskExecutionRetryConfig() const
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::Utils::DateTime & GetLastUpdatedAt() const
GetOtaTaskResult & WithTaskArn(TaskArnT &&value)
void SetTaskProcessingDetails(TaskProcessingDetailsT &&value)
AWS_IOTMANAGEDINTEGRATIONS_API GetOtaTaskResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const OtaTaskSchedulingConfig & GetOtaSchedulingConfig() const
GetOtaTaskResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
GetOtaTaskResult & WithTaskConfigurationId(TaskConfigurationIdT &&value)
GetOtaTaskResult & WithOtaMechanism(OtaMechanism value)
GetOtaTaskResult & WithTaskId(TaskIdT &&value)
GetOtaTaskResult & WithTaskProcessingDetails(TaskProcessingDetailsT &&value)
GetOtaTaskResult & WithOtaTargetQueryString(OtaTargetQueryStringT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_IOTMANAGEDINTEGRATIONS_API GetOtaTaskResult()=default
void SetTaskConfigurationId(TaskConfigurationIdT &&value)
GetOtaTaskResult & WithRequestId(RequestIdT &&value)
const TaskProcessingDetails & GetTaskProcessingDetails() const
AWS_IOTMANAGEDINTEGRATIONS_API GetOtaTaskResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetOtaTaskResult & WithOtaSchedulingConfig(OtaSchedulingConfigT &&value)
GetOtaTaskResult & WithProtocol(OtaProtocol value)
GetOtaTaskResult & WithLastUpdatedAt(LastUpdatedAtT &&value)
GetOtaTaskResult & WithDescription(DescriptionT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetOtaTaskResult & WithOtaTaskExecutionRetryConfig(OtaTaskExecutionRetryConfigT &&value)
const Aws::Vector< Aws::String > & GetTarget() const
void SetOtaSchedulingConfig(OtaSchedulingConfigT &&value)
GetOtaTaskResult & WithCreatedAt(CreatedAtT &&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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue