7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/iot-managed-integrations/IoTManagedIntegrationsRequest.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/OtaTaskExecutionRetryConfig.h>
16#include <aws/iot-managed-integrations/model/OtaTaskSchedulingConfig.h>
17#include <aws/iot-managed-integrations/model/OtaType.h>
22namespace IoTManagedIntegrations {
45 template <
typename DescriptionT = Aws::String>
47 m_descriptionHasBeenSet =
true;
48 m_description = std::forward<DescriptionT>(value);
50 template <
typename DescriptionT = Aws::String>
64 template <
typename S3UrlT = Aws::String>
66 m_s3UrlHasBeenSet =
true;
67 m_s3Url = std::forward<S3UrlT>(value);
69 template <
typename S3UrlT = Aws::String>
71 SetS3Url(std::forward<S3UrlT>(value));
84 m_protocolHasBeenSet =
true;
99 template <
typename TargetT = Aws::Vector<Aws::String>>
101 m_targetHasBeenSet =
true;
102 m_target = std::forward<TargetT>(value);
104 template <
typename TargetT = Aws::Vector<Aws::String>>
109 template <
typename TargetT = Aws::String>
111 m_targetHasBeenSet =
true;
112 m_target.emplace_back(std::forward<TargetT>(value));
123 template <
typename TaskConfigurationIdT = Aws::String>
125 m_taskConfigurationIdHasBeenSet =
true;
126 m_taskConfigurationId = std::forward<TaskConfigurationIdT>(value);
128 template <
typename TaskConfigurationIdT = Aws::String>
142 m_otaMechanismHasBeenSet =
true;
143 m_otaMechanism = value;
158 m_otaTypeHasBeenSet =
true;
173 template <
typename OtaTargetQueryStringT = Aws::String>
175 m_otaTargetQueryStringHasBeenSet =
true;
176 m_otaTargetQueryString = std::forward<OtaTargetQueryStringT>(value);
178 template <
typename OtaTargetQueryStringT = Aws::String>
193 template <
typename ClientTokenT = Aws::String>
195 m_clientTokenHasBeenSet =
true;
196 m_clientToken = std::forward<ClientTokenT>(value);
198 template <
typename ClientTokenT = Aws::String>
209 template <
typename OtaSchedulingConfigT = OtaTaskSchedulingConfig>
211 m_otaSchedulingConfigHasBeenSet =
true;
212 m_otaSchedulingConfig = std::forward<OtaSchedulingConfigT>(value);
214 template <
typename OtaSchedulingConfigT = OtaTaskSchedulingConfig>
225 template <
typename OtaTaskExecutionRetryConfigT = OtaTaskExecutionRetryConfig>
227 m_otaTaskExecutionRetryConfigHasBeenSet =
true;
228 m_otaTaskExecutionRetryConfig = std::forward<OtaTaskExecutionRetryConfigT>(value);
230 template <
typename OtaTaskExecutionRetryConfigT = OtaTaskExecutionRetryConfig>
244 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
246 m_tagsHasBeenSet =
true;
247 m_tags = std::forward<TagsT>(value);
249 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
251 SetTags(std::forward<TagsT>(value));
254 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
256 m_tagsHasBeenSet =
true;
257 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
280 OtaTaskSchedulingConfig m_otaSchedulingConfig;
282 OtaTaskExecutionRetryConfig m_otaTaskExecutionRetryConfig;
285 bool m_descriptionHasBeenSet =
false;
286 bool m_s3UrlHasBeenSet =
false;
287 bool m_protocolHasBeenSet =
false;
288 bool m_targetHasBeenSet =
false;
289 bool m_taskConfigurationIdHasBeenSet =
false;
290 bool m_otaMechanismHasBeenSet =
false;
291 bool m_otaTypeHasBeenSet =
false;
292 bool m_otaTargetQueryStringHasBeenSet =
false;
293 bool m_clientTokenHasBeenSet =
true;
294 bool m_otaSchedulingConfigHasBeenSet =
false;
295 bool m_otaTaskExecutionRetryConfigHasBeenSet =
false;
296 bool m_tagsHasBeenSet =
false;
bool TagsHasBeenSet() const
bool S3UrlHasBeenSet() const
OtaMechanism GetOtaMechanism() const
void SetOtaTaskExecutionRetryConfig(OtaTaskExecutionRetryConfigT &&value)
CreateOtaTaskRequest & AddTarget(TargetT &&value)
bool OtaMechanismHasBeenSet() const
bool TargetHasBeenSet() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetTags(TagsT &&value)
void SetOtaSchedulingConfig(OtaSchedulingConfigT &&value)
CreateOtaTaskRequest & WithOtaTargetQueryString(OtaTargetQueryStringT &&value)
const Aws::String & GetClientToken() const
const Aws::String & GetTaskConfigurationId() const
void SetTaskConfigurationId(TaskConfigurationIdT &&value)
CreateOtaTaskRequest & WithS3Url(S3UrlT &&value)
const Aws::String & GetOtaTargetQueryString() const
CreateOtaTaskRequest & WithProtocol(OtaProtocol value)
void SetOtaTargetQueryString(OtaTargetQueryStringT &&value)
AWS_IOTMANAGEDINTEGRATIONS_API CreateOtaTaskRequest()=default
virtual const char * GetServiceRequestName() const override
bool ProtocolHasBeenSet() const
void SetProtocol(OtaProtocol value)
const Aws::String & GetS3Url() const
bool TaskConfigurationIdHasBeenSet() const
CreateOtaTaskRequest & WithOtaTaskExecutionRetryConfig(OtaTaskExecutionRetryConfigT &&value)
const Aws::Vector< Aws::String > & GetTarget() const
bool OtaSchedulingConfigHasBeenSet() const
bool OtaTypeHasBeenSet() const
const Aws::String & GetDescription() const
bool OtaTargetQueryStringHasBeenSet() const
bool ClientTokenHasBeenSet() const
CreateOtaTaskRequest & WithTarget(TargetT &&value)
void SetDescription(DescriptionT &&value)
void SetTarget(TargetT &&value)
const OtaTaskSchedulingConfig & GetOtaSchedulingConfig() const
bool DescriptionHasBeenSet() const
CreateOtaTaskRequest & WithClientToken(ClientTokenT &&value)
CreateOtaTaskRequest & WithOtaMechanism(OtaMechanism value)
bool OtaTaskExecutionRetryConfigHasBeenSet() const
void SetS3Url(S3UrlT &&value)
AWS_IOTMANAGEDINTEGRATIONS_API Aws::String SerializePayload() const override
OtaType GetOtaType() const
void SetOtaType(OtaType value)
CreateOtaTaskRequest & WithDescription(DescriptionT &&value)
CreateOtaTaskRequest & WithOtaSchedulingConfig(OtaSchedulingConfigT &&value)
void SetClientToken(ClientTokenT &&value)
CreateOtaTaskRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateOtaTaskRequest & WithTags(TagsT &&value)
OtaProtocol GetProtocol() const
const OtaTaskExecutionRetryConfig & GetOtaTaskExecutionRetryConfig() const
void SetOtaMechanism(OtaMechanism value)
CreateOtaTaskRequest & WithTaskConfigurationId(TaskConfigurationIdT &&value)
CreateOtaTaskRequest & WithOtaType(OtaType value)
static Aws::Utils::UUID PseudoRandomUUID()
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