7#include <aws/iot-managed-integrations/IoTManagedIntegrations_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot-managed-integrations/model/OtaProtocol.h>
10#include <aws/iot-managed-integrations/model/OtaType.h>
11#include <aws/iot-managed-integrations/model/OtaMechanism.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/iot-managed-integrations/model/TaskProcessingDetails.h>
15#include <aws/iot-managed-integrations/model/OtaTaskSchedulingConfig.h>
16#include <aws/iot-managed-integrations/model/OtaTaskExecutionRetryConfig.h>
17#include <aws/iot-managed-integrations/model/OtaStatus.h>
18#include <aws/core/utils/memory/stl/AWSMap.h>
23template<
typename RESULT_TYPE>
24class AmazonWebServiceResult;
33namespace IoTManagedIntegrations
50 template<
typename TaskIdT = Aws::String>
51 void SetTaskId(TaskIdT&& value) { m_taskIdHasBeenSet =
true; m_taskId = std::forward<TaskIdT>(value); }
52 template<
typename TaskIdT = Aws::String>
61 template<
typename TaskArnT = Aws::String>
62 void SetTaskArn(TaskArnT&& value) { m_taskArnHasBeenSet =
true; m_taskArn = std::forward<TaskArnT>(value); }
63 template<
typename TaskArnT = Aws::String>
72 template<
typename DescriptionT = Aws::String>
73 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
74 template<
typename DescriptionT = Aws::String>
84 template<
typename S3UrlT = Aws::String>
85 void SetS3Url(S3UrlT&& value) { m_s3UrlHasBeenSet =
true; m_s3Url = std::forward<S3UrlT>(value); }
86 template<
typename S3UrlT = Aws::String>
114 template<
typename OtaTargetQueryStringT = Aws::String>
115 void SetOtaTargetQueryString(OtaTargetQueryStringT&& value) { m_otaTargetQueryStringHasBeenSet =
true; m_otaTargetQueryString = std::forward<OtaTargetQueryStringT>(value); }
116 template<
typename OtaTargetQueryStringT = Aws::String>
134 template<
typename TargetT = Aws::Vector<Aws::String>>
135 void SetTarget(TargetT&& value) { m_targetHasBeenSet =
true; m_target = std::forward<TargetT>(value); }
136 template<
typename TargetT = Aws::Vector<Aws::String>>
138 template<
typename TargetT = Aws::String>
139 GetOtaTaskResult&
AddTarget(TargetT&& value) { m_targetHasBeenSet =
true; m_target.emplace_back(std::forward<TargetT>(value));
return *
this; }
147 template<
typename CreatedAtT = Aws::Utils::DateTime>
148 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet =
true; m_createdAt = std::forward<CreatedAtT>(value); }
149 template<
typename CreatedAtT = Aws::Utils::DateTime>
159 template<
typename LastUpdatedAtT = Aws::Utils::DateTime>
160 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet =
true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
161 template<
typename LastUpdatedAtT = Aws::Utils::DateTime>
170 template<
typename TaskConfigurationIdT = Aws::String>
171 void SetTaskConfigurationId(TaskConfigurationIdT&& value) { m_taskConfigurationIdHasBeenSet =
true; m_taskConfigurationId = std::forward<TaskConfigurationIdT>(value); }
172 template<
typename TaskConfigurationIdT = Aws::String>
181 template<
typename TaskProcessingDetailsT = TaskProcessingDetails>
182 void SetTaskProcessingDetails(TaskProcessingDetailsT&& value) { m_taskProcessingDetailsHasBeenSet =
true; m_taskProcessingDetails = std::forward<TaskProcessingDetailsT>(value); }
183 template<
typename TaskProcessingDetailsT = TaskProcessingDetails>
190 template<
typename OtaSchedulingConfigT = OtaTaskSchedulingConfig>
191 void SetOtaSchedulingConfig(OtaSchedulingConfigT&& value) { m_otaSchedulingConfigHasBeenSet =
true; m_otaSchedulingConfig = std::forward<OtaSchedulingConfigT>(value); }
192 template<
typename OtaSchedulingConfigT = OtaTaskSchedulingConfig>
199 template<
typename OtaTaskExecutionRetryConfigT = OtaTaskExecutionRetryConfig>
200 void SetOtaTaskExecutionRetryConfig(OtaTaskExecutionRetryConfigT&& value) { m_otaTaskExecutionRetryConfigHasBeenSet =
true; m_otaTaskExecutionRetryConfig = std::forward<OtaTaskExecutionRetryConfigT>(value); }
201 template<
typename OtaTaskExecutionRetryConfigT = OtaTaskExecutionRetryConfig>
220 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
221 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
222 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
224 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
226 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
233 template<
typename RequestIdT = Aws::String>
234 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet =
true; m_requestId = std::forward<RequestIdT>(value); }
235 template<
typename RequestIdT = Aws::String>
241 bool m_taskIdHasBeenSet =
false;
244 bool m_taskArnHasBeenSet =
false;
247 bool m_descriptionHasBeenSet =
false;
250 bool m_s3UrlHasBeenSet =
false;
253 bool m_protocolHasBeenSet =
false;
256 bool m_otaTypeHasBeenSet =
false;
259 bool m_otaTargetQueryStringHasBeenSet =
false;
262 bool m_otaMechanismHasBeenSet =
false;
265 bool m_targetHasBeenSet =
false;
268 bool m_createdAtHasBeenSet =
false;
271 bool m_lastUpdatedAtHasBeenSet =
false;
274 bool m_taskConfigurationIdHasBeenSet =
false;
276 TaskProcessingDetails m_taskProcessingDetails;
277 bool m_taskProcessingDetailsHasBeenSet =
false;
279 OtaTaskSchedulingConfig m_otaSchedulingConfig;
280 bool m_otaSchedulingConfigHasBeenSet =
false;
282 OtaTaskExecutionRetryConfig m_otaTaskExecutionRetryConfig;
283 bool m_otaTaskExecutionRetryConfigHasBeenSet =
false;
286 bool m_statusHasBeenSet =
false;
289 bool m_tagsHasBeenSet =
false;
292 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)
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