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>
24template <
typename RESULT_TYPE>
25class AmazonWebServiceResult;
32namespace IoTManagedIntegrations {
45 template <
typename TaskIdT = Aws::String>
47 m_taskIdHasBeenSet =
true;
48 m_taskId = std::forward<TaskIdT>(value);
50 template <
typename TaskIdT = Aws::String>
62 template <
typename TaskArnT = Aws::String>
64 m_taskArnHasBeenSet =
true;
65 m_taskArn = std::forward<TaskArnT>(value);
67 template <
typename TaskArnT = Aws::String>
79 template <
typename DescriptionT = Aws::String>
81 m_descriptionHasBeenSet =
true;
82 m_description = std::forward<DescriptionT>(value);
84 template <
typename DescriptionT = Aws::String>
97 template <
typename S3UrlT = Aws::String>
99 m_s3UrlHasBeenSet =
true;
100 m_s3Url = std::forward<S3UrlT>(value);
102 template <
typename S3UrlT = Aws::String>
104 SetS3Url(std::forward<S3UrlT>(value));
116 m_protocolHasBeenSet =
true;
131 m_otaTypeHasBeenSet =
true;
145 template <
typename OtaTargetQueryStringT = Aws::String>
147 m_otaTargetQueryStringHasBeenSet =
true;
148 m_otaTargetQueryString = std::forward<OtaTargetQueryStringT>(value);
150 template <
typename OtaTargetQueryStringT = Aws::String>
163 m_otaMechanismHasBeenSet =
true;
164 m_otaMechanism = value;
177 template <
typename TargetT = Aws::Vector<Aws::String>>
179 m_targetHasBeenSet =
true;
180 m_target = std::forward<TargetT>(value);
182 template <
typename TargetT = Aws::Vector<Aws::String>>
187 template <
typename TargetT = Aws::String>
189 m_targetHasBeenSet =
true;
190 m_target.emplace_back(std::forward<TargetT>(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>
218 template <
typename LastUpdatedAtT = Aws::Utils::DateTime>
220 m_lastUpdatedAtHasBeenSet =
true;
221 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
223 template <
typename LastUpdatedAtT = Aws::Utils::DateTime>
235 template <
typename TaskConfigurationIdT = Aws::String>
237 m_taskConfigurationIdHasBeenSet =
true;
238 m_taskConfigurationId = std::forward<TaskConfigurationIdT>(value);
240 template <
typename TaskConfigurationIdT = Aws::String>
252 template <
typename TaskProcessingDetailsT = TaskProcessingDetails>
254 m_taskProcessingDetailsHasBeenSet =
true;
255 m_taskProcessingDetails = std::forward<TaskProcessingDetailsT>(value);
257 template <
typename TaskProcessingDetailsT = TaskProcessingDetails>
267 template <
typename OtaSchedulingConfigT = OtaTaskSchedulingConfig>
269 m_otaSchedulingConfigHasBeenSet =
true;
270 m_otaSchedulingConfig = std::forward<OtaSchedulingConfigT>(value);
272 template <
typename OtaSchedulingConfigT = OtaTaskSchedulingConfig>
282 template <
typename OtaTaskExecutionRetryConfigT = OtaTaskExecutionRetryConfig>
284 m_otaTaskExecutionRetryConfigHasBeenSet =
true;
285 m_otaTaskExecutionRetryConfig = std::forward<OtaTaskExecutionRetryConfigT>(value);
287 template <
typename OtaTaskExecutionRetryConfigT = OtaTaskExecutionRetryConfig>
300 m_statusHasBeenSet =
true;
315 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
317 m_tagsHasBeenSet =
true;
318 m_tags = std::forward<TagsT>(value);
320 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
322 SetTags(std::forward<TagsT>(value));
325 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
327 m_tagsHasBeenSet =
true;
328 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
336 template <
typename RequestIdT = Aws::String>
338 m_requestIdHasBeenSet =
true;
339 m_requestId = std::forward<RequestIdT>(value);
341 template <
typename RequestIdT = Aws::String>
374 TaskProcessingDetails m_taskProcessingDetails;
376 OtaTaskSchedulingConfig m_otaSchedulingConfig;
378 OtaTaskExecutionRetryConfig m_otaTaskExecutionRetryConfig;
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;
void SetOtaTargetQueryString(OtaTargetQueryStringT &&value)
void SetOtaTaskExecutionRetryConfig(OtaTaskExecutionRetryConfigT &&value)
const Aws::String & GetTaskId() const
const OtaTaskExecutionRetryConfig & GetOtaTaskExecutionRetryConfig() const
GetOtaTaskResult & WithOtaType(OtaType value)
void SetS3Url(S3UrlT &&value)
void SetCreatedAt(CreatedAtT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetTaskArn(TaskArnT &&value)
OtaType GetOtaType() const
const Aws::Utils::DateTime & GetLastUpdatedAt() const
GetOtaTaskResult & WithTaskArn(TaskArnT &&value)
const Aws::String & GetOtaTargetQueryString() const
void SetTaskProcessingDetails(TaskProcessingDetailsT &&value)
AWS_IOTMANAGEDINTEGRATIONS_API GetOtaTaskResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const OtaTaskSchedulingConfig & GetOtaSchedulingConfig() const
const Aws::String & GetTaskArn() const
void SetOtaMechanism(OtaMechanism value)
GetOtaTaskResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
GetOtaTaskResult & WithTaskConfigurationId(TaskConfigurationIdT &&value)
GetOtaTaskResult & WithOtaMechanism(OtaMechanism value)
void SetTags(TagsT &&value)
OtaProtocol GetProtocol() const
GetOtaTaskResult & WithTaskId(TaskIdT &&value)
GetOtaTaskResult & WithTaskProcessingDetails(TaskProcessingDetailsT &&value)
void SetRequestId(RequestIdT &&value)
GetOtaTaskResult & WithOtaTargetQueryString(OtaTargetQueryStringT &&value)
const Aws::String & GetS3Url() const
const Aws::String & GetDescription() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_IOTMANAGEDINTEGRATIONS_API GetOtaTaskResult()=default
void SetTarget(TargetT &&value)
void SetTaskConfigurationId(TaskConfigurationIdT &&value)
GetOtaTaskResult & WithS3Url(S3UrlT &&value)
GetOtaTaskResult & WithTags(TagsT &&value)
GetOtaTaskResult & WithRequestId(RequestIdT &&value)
const TaskProcessingDetails & GetTaskProcessingDetails() const
AWS_IOTMANAGEDINTEGRATIONS_API GetOtaTaskResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetOtaType(OtaType value)
GetOtaTaskResult & WithOtaSchedulingConfig(OtaSchedulingConfigT &&value)
GetOtaTaskResult & AddTarget(TargetT &&value)
void SetProtocol(OtaProtocol value)
GetOtaTaskResult & WithProtocol(OtaProtocol value)
GetOtaTaskResult & WithLastUpdatedAt(LastUpdatedAtT &&value)
GetOtaTaskResult & WithDescription(DescriptionT &&value)
OtaMechanism GetOtaMechanism() const
void SetTaskId(TaskIdT &&value)
GetOtaTaskResult & WithStatus(OtaStatus value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
void SetLastUpdatedAt(LastUpdatedAtT &&value)
GetOtaTaskResult & WithOtaTaskExecutionRetryConfig(OtaTaskExecutionRetryConfigT &&value)
const Aws::String & GetRequestId() const
void SetDescription(DescriptionT &&value)
OtaStatus GetStatus() const
const Aws::Vector< Aws::String > & GetTarget() const
void SetStatus(OtaStatus value)
void SetOtaSchedulingConfig(OtaSchedulingConfigT &&value)
GetOtaTaskResult & WithTarget(TargetT &&value)
const Aws::String & GetTaskConfigurationId() const
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