7#include <aws/iot-managed-integrations/IoTManagedIntegrations_EXPORTS.h>
8#include <aws/iot-managed-integrations/IoTManagedIntegrationsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iot-managed-integrations/model/OtaProtocol.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/iot-managed-integrations/model/OtaMechanism.h>
13#include <aws/iot-managed-integrations/model/OtaType.h>
14#include <aws/iot-managed-integrations/model/OtaTaskSchedulingConfig.h>
15#include <aws/iot-managed-integrations/model/OtaTaskExecutionRetryConfig.h>
16#include <aws/core/utils/memory/stl/AWSMap.h>
18#include <aws/core/utils/UUID.h>
22namespace IoTManagedIntegrations
49 template<
typename DescriptionT = Aws::String>
50 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
51 template<
typename DescriptionT = Aws::String>
62 template<
typename S3UrlT = Aws::String>
63 void SetS3Url(S3UrlT&& value) { m_s3UrlHasBeenSet =
true; m_s3Url = std::forward<S3UrlT>(value); }
64 template<
typename S3UrlT = Aws::String>
85 template<
typename TargetT = Aws::Vector<Aws::String>>
86 void SetTarget(TargetT&& value) { m_targetHasBeenSet =
true; m_target = std::forward<TargetT>(value); }
87 template<
typename TargetT = Aws::Vector<Aws::String>>
89 template<
typename TargetT = Aws::String>
99 template<
typename TaskConfigurationIdT = Aws::String>
100 void SetTaskConfigurationId(TaskConfigurationIdT&& value) { m_taskConfigurationIdHasBeenSet =
true; m_taskConfigurationId = std::forward<TaskConfigurationIdT>(value); }
101 template<
typename TaskConfigurationIdT = Aws::String>
131 template<
typename OtaTargetQueryStringT = Aws::String>
132 void SetOtaTargetQueryString(OtaTargetQueryStringT&& value) { m_otaTargetQueryStringHasBeenSet =
true; m_otaTargetQueryString = std::forward<OtaTargetQueryStringT>(value); }
133 template<
typename OtaTargetQueryStringT = Aws::String>
145 template<
typename ClientTokenT = Aws::String>
146 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet =
true; m_clientToken = std::forward<ClientTokenT>(value); }
147 template<
typename ClientTokenT = Aws::String>
155 template<
typename OtaSchedulingConfigT = OtaTaskSchedulingConfig>
156 void SetOtaSchedulingConfig(OtaSchedulingConfigT&& value) { m_otaSchedulingConfigHasBeenSet =
true; m_otaSchedulingConfig = std::forward<OtaSchedulingConfigT>(value); }
157 template<
typename OtaSchedulingConfigT = OtaTaskSchedulingConfig>
165 template<
typename OtaTaskExecutionRetryConfigT = OtaTaskExecutionRetryConfig>
166 void SetOtaTaskExecutionRetryConfig(OtaTaskExecutionRetryConfigT&& value) { m_otaTaskExecutionRetryConfigHasBeenSet =
true; m_otaTaskExecutionRetryConfig = std::forward<OtaTaskExecutionRetryConfigT>(value); }
167 template<
typename OtaTaskExecutionRetryConfigT = OtaTaskExecutionRetryConfig>
178 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
179 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
180 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
182 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
184 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
190 bool m_descriptionHasBeenSet =
false;
193 bool m_s3UrlHasBeenSet =
false;
196 bool m_protocolHasBeenSet =
false;
199 bool m_targetHasBeenSet =
false;
202 bool m_taskConfigurationIdHasBeenSet =
false;
205 bool m_otaMechanismHasBeenSet =
false;
208 bool m_otaTypeHasBeenSet =
false;
211 bool m_otaTargetQueryStringHasBeenSet =
false;
214 bool m_clientTokenHasBeenSet =
true;
216 OtaTaskSchedulingConfig m_otaSchedulingConfig;
217 bool m_otaSchedulingConfigHasBeenSet =
false;
219 OtaTaskExecutionRetryConfig m_otaTaskExecutionRetryConfig;
220 bool m_otaTaskExecutionRetryConfigHasBeenSet =
false;
223 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