7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/iot/model/PresignedUrlConfig.h>
12#include <aws/iot/model/TargetSelection.h>
13#include <aws/iot/model/JobExecutionsRolloutConfig.h>
14#include <aws/iot/model/AbortConfig.h>
15#include <aws/iot/model/TimeoutConfig.h>
16#include <aws/iot/model/JobExecutionsRetryConfig.h>
17#include <aws/core/utils/memory/stl/AWSMap.h>
18#include <aws/iot/model/SchedulingConfig.h>
19#include <aws/iot/model/Tag.h>
52 template<
typename JobIdT = Aws::String>
53 void SetJobId(JobIdT&& value) { m_jobIdHasBeenSet =
true; m_jobId = std::forward<JobIdT>(value); }
54 template<
typename JobIdT = Aws::String>
64 template<
typename TargetsT = Aws::Vector<Aws::String>>
65 void SetTargets(TargetsT&& value) { m_targetsHasBeenSet =
true; m_targets = std::forward<TargetsT>(value); }
66 template<
typename TargetsT = Aws::Vector<Aws::String>>
68 template<
typename TargetsT = Aws::String>
69 CreateJobRequest&
AddTargets(TargetsT&& value) { m_targetsHasBeenSet =
true; m_targets.emplace_back(std::forward<TargetsT>(value));
return *
this; }
84 template<
typename DocumentSourceT = Aws::String>
85 void SetDocumentSource(DocumentSourceT&& value) { m_documentSourceHasBeenSet =
true; m_documentSource = std::forward<DocumentSourceT>(value); }
86 template<
typename DocumentSourceT = Aws::String>
97 template<
typename DocumentT = Aws::String>
98 void SetDocument(DocumentT&& value) { m_documentHasBeenSet =
true; m_document = std::forward<DocumentT>(value); }
99 template<
typename DocumentT = Aws::String>
109 template<
typename DescriptionT = Aws::String>
110 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
111 template<
typename DescriptionT = Aws::String>
121 template<
typename Pre
signedUrlConfigT = Pre
signedUrlConfig>
122 void SetPresignedUrlConfig(PresignedUrlConfigT&& value) { m_presignedUrlConfigHasBeenSet =
true; m_presignedUrlConfig = std::forward<PresignedUrlConfigT>(value); }
123 template<
typename Pre
signedUrlConfigT = Pre
signedUrlConfig>
151 template<
typename JobExecutionsRolloutConfigT = JobExecutionsRolloutConfig>
152 void SetJobExecutionsRolloutConfig(JobExecutionsRolloutConfigT&& value) { m_jobExecutionsRolloutConfigHasBeenSet =
true; m_jobExecutionsRolloutConfig = std::forward<JobExecutionsRolloutConfigT>(value); }
153 template<
typename JobExecutionsRolloutConfigT = JobExecutionsRolloutConfig>
163 template<
typename AbortConfigT = AbortConfig>
164 void SetAbortConfig(AbortConfigT&& value) { m_abortConfigHasBeenSet =
true; m_abortConfig = std::forward<AbortConfigT>(value); }
165 template<
typename AbortConfigT = AbortConfig>
179 template<
typename TimeoutConfigT = TimeoutConfig>
180 void SetTimeoutConfig(TimeoutConfigT&& value) { m_timeoutConfigHasBeenSet =
true; m_timeoutConfig = std::forward<TimeoutConfigT>(value); }
181 template<
typename TimeoutConfigT = TimeoutConfig>
191 template<
typename TagsT = Aws::Vector<Tag>>
192 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
193 template<
typename TagsT = Aws::Vector<Tag>>
195 template<
typename TagsT = Tag>
196 CreateJobRequest&
AddTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags.emplace_back(std::forward<TagsT>(value));
return *
this; }
213 template<
typename NamespaceIdT = Aws::String>
214 void SetNamespaceId(NamespaceIdT&& value) { m_namespaceIdHasBeenSet =
true; m_namespaceId = std::forward<NamespaceIdT>(value); }
215 template<
typename NamespaceIdT = Aws::String>
225 template<
typename JobTemplateArnT = Aws::String>
226 void SetJobTemplateArn(JobTemplateArnT&& value) { m_jobTemplateArnHasBeenSet =
true; m_jobTemplateArn = std::forward<JobTemplateArnT>(value); }
227 template<
typename JobTemplateArnT = Aws::String>
237 template<
typename JobExecutionsRetryConfigT = JobExecutionsRetryConfig>
238 void SetJobExecutionsRetryConfig(JobExecutionsRetryConfigT&& value) { m_jobExecutionsRetryConfigHasBeenSet =
true; m_jobExecutionsRetryConfig = std::forward<JobExecutionsRetryConfigT>(value); }
239 template<
typename JobExecutionsRetryConfigT = JobExecutionsRetryConfig>
253 template<
typename DocumentParametersT = Aws::Map<Aws::String, Aws::String>>
254 void SetDocumentParameters(DocumentParametersT&& value) { m_documentParametersHasBeenSet =
true; m_documentParameters = std::forward<DocumentParametersT>(value); }
255 template<
typename DocumentParametersT = Aws::Map<Aws::String, Aws::String>>
257 template<
typename DocumentParametersKeyT = Aws::String,
typename DocumentParametersValueT = Aws::String>
259 m_documentParametersHasBeenSet =
true; m_documentParameters.emplace(std::forward<DocumentParametersKeyT>(key), std::forward<DocumentParametersValueT>(value));
return *
this;
270 template<
typename SchedulingConfigT = SchedulingConfig>
271 void SetSchedulingConfig(SchedulingConfigT&& value) { m_schedulingConfigHasBeenSet =
true; m_schedulingConfig = std::forward<SchedulingConfigT>(value); }
272 template<
typename SchedulingConfigT = SchedulingConfig>
288 template<
typename DestinationPackageVersionsT = Aws::Vector<Aws::String>>
289 void SetDestinationPackageVersions(DestinationPackageVersionsT&& value) { m_destinationPackageVersionsHasBeenSet =
true; m_destinationPackageVersions = std::forward<DestinationPackageVersionsT>(value); }
290 template<
typename DestinationPackageVersionsT = Aws::Vector<Aws::String>>
292 template<
typename DestinationPackageVersionsT = Aws::String>
293 CreateJobRequest&
AddDestinationPackageVersions(DestinationPackageVersionsT&& value) { m_destinationPackageVersionsHasBeenSet =
true; m_destinationPackageVersions.emplace_back(std::forward<DestinationPackageVersionsT>(value));
return *
this; }
298 bool m_jobIdHasBeenSet =
false;
301 bool m_targetsHasBeenSet =
false;
304 bool m_documentSourceHasBeenSet =
false;
307 bool m_documentHasBeenSet =
false;
310 bool m_descriptionHasBeenSet =
false;
313 bool m_presignedUrlConfigHasBeenSet =
false;
316 bool m_targetSelectionHasBeenSet =
false;
318 JobExecutionsRolloutConfig m_jobExecutionsRolloutConfig;
319 bool m_jobExecutionsRolloutConfigHasBeenSet =
false;
321 AbortConfig m_abortConfig;
322 bool m_abortConfigHasBeenSet =
false;
324 TimeoutConfig m_timeoutConfig;
325 bool m_timeoutConfigHasBeenSet =
false;
328 bool m_tagsHasBeenSet =
false;
331 bool m_namespaceIdHasBeenSet =
false;
334 bool m_jobTemplateArnHasBeenSet =
false;
336 JobExecutionsRetryConfig m_jobExecutionsRetryConfig;
337 bool m_jobExecutionsRetryConfigHasBeenSet =
false;
340 bool m_documentParametersHasBeenSet =
false;
342 SchedulingConfig m_schedulingConfig;
343 bool m_schedulingConfigHasBeenSet =
false;
346 bool m_destinationPackageVersionsHasBeenSet =
false;
void SetJobExecutionsRolloutConfig(JobExecutionsRolloutConfigT &&value)
bool JobTemplateArnHasBeenSet() const
AWS_IOT_API CreateJobRequest()=default
CreateJobRequest & WithDocumentSource(DocumentSourceT &&value)
const Aws::String & GetNamespaceId() const
void SetJobId(JobIdT &&value)
bool SchedulingConfigHasBeenSet() const
bool AbortConfigHasBeenSet() const
void SetPresignedUrlConfig(PresignedUrlConfigT &&value)
const TimeoutConfig & GetTimeoutConfig() const
bool DestinationPackageVersionsHasBeenSet() const
bool TargetsHasBeenSet() const
CreateJobRequest & WithDescription(DescriptionT &&value)
CreateJobRequest & AddDocumentParameters(DocumentParametersKeyT &&key, DocumentParametersValueT &&value)
bool DescriptionHasBeenSet() const
bool DocumentHasBeenSet() const
void SetNamespaceId(NamespaceIdT &&value)
void SetSchedulingConfig(SchedulingConfigT &&value)
CreateJobRequest & WithDocumentParameters(DocumentParametersT &&value)
const PresignedUrlConfig & GetPresignedUrlConfig() const
CreateJobRequest & WithJobId(JobIdT &&value)
const Aws::String & GetDocumentSource() const
bool TagsHasBeenSet() const
bool NamespaceIdHasBeenSet() const
CreateJobRequest & WithAbortConfig(AbortConfigT &&value)
CreateJobRequest & WithNamespaceId(NamespaceIdT &&value)
void SetTimeoutConfig(TimeoutConfigT &&value)
bool TargetSelectionHasBeenSet() const
void SetDestinationPackageVersions(DestinationPackageVersionsT &&value)
bool JobExecutionsRolloutConfigHasBeenSet() const
CreateJobRequest & WithDocument(DocumentT &&value)
bool DocumentSourceHasBeenSet() const
CreateJobRequest & WithTargetSelection(TargetSelection value)
bool DocumentParametersHasBeenSet() const
const Aws::String & GetDescription() const
bool TimeoutConfigHasBeenSet() const
const JobExecutionsRolloutConfig & GetJobExecutionsRolloutConfig() const
void SetAbortConfig(AbortConfigT &&value)
void SetJobTemplateArn(JobTemplateArnT &&value)
AWS_IOT_API Aws::String SerializePayload() const override
CreateJobRequest & WithJobTemplateArn(JobTemplateArnT &&value)
const Aws::Vector< Aws::String > & GetDestinationPackageVersions() const
void SetDocumentSource(DocumentSourceT &&value)
bool PresignedUrlConfigHasBeenSet() const
const Aws::String & GetDocument() const
CreateJobRequest & WithJobExecutionsRetryConfig(JobExecutionsRetryConfigT &&value)
CreateJobRequest & WithTimeoutConfig(TimeoutConfigT &&value)
const SchedulingConfig & GetSchedulingConfig() const
virtual const char * GetServiceRequestName() const override
CreateJobRequest & AddDestinationPackageVersions(DestinationPackageVersionsT &&value)
bool JobExecutionsRetryConfigHasBeenSet() const
const Aws::Map< Aws::String, Aws::String > & GetDocumentParameters() const
void SetDocument(DocumentT &&value)
const AbortConfig & GetAbortConfig() const
void SetDocumentParameters(DocumentParametersT &&value)
CreateJobRequest & AddTargets(TargetsT &&value)
CreateJobRequest & WithTags(TagsT &&value)
CreateJobRequest & WithSchedulingConfig(SchedulingConfigT &&value)
const JobExecutionsRetryConfig & GetJobExecutionsRetryConfig() const
TargetSelection GetTargetSelection() const
bool JobIdHasBeenSet() const
void SetDescription(DescriptionT &&value)
CreateJobRequest & WithDestinationPackageVersions(DestinationPackageVersionsT &&value)
void SetJobExecutionsRetryConfig(JobExecutionsRetryConfigT &&value)
void SetTargetSelection(TargetSelection value)
const Aws::String & GetJobId() const
const Aws::String & GetJobTemplateArn() const
CreateJobRequest & WithJobExecutionsRolloutConfig(JobExecutionsRolloutConfigT &&value)
const Aws::Vector< Aws::String > & GetTargets() const
CreateJobRequest & WithTargets(TargetsT &&value)
void SetTags(TagsT &&value)
void SetTargets(TargetsT &&value)
CreateJobRequest & AddTags(TagsT &&value)
CreateJobRequest & WithPresignedUrlConfig(PresignedUrlConfigT &&value)
const Aws::Vector< Tag > & GetTags() const
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