7#include <aws/core/utils/DateTime.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/IoT_EXPORTS.h>
12#include <aws/iot/model/AbortConfig.h>
13#include <aws/iot/model/JobExecutionsRetryConfig.h>
14#include <aws/iot/model/JobExecutionsRolloutConfig.h>
15#include <aws/iot/model/JobProcessDetails.h>
16#include <aws/iot/model/JobStatus.h>
17#include <aws/iot/model/PresignedUrlConfig.h>
18#include <aws/iot/model/ScheduledJobRollout.h>
19#include <aws/iot/model/SchedulingConfig.h>
20#include <aws/iot/model/TargetSelection.h>
21#include <aws/iot/model/TimeoutConfig.h>
43 AWS_IOT_API
Job() =
default;
55 template <
typename JobArnT = Aws::String>
57 m_jobArnHasBeenSet =
true;
58 m_jobArn = std::forward<JobArnT>(value);
60 template <
typename JobArnT = Aws::String>
73 template <
typename JobIdT = Aws::String>
75 m_jobIdHasBeenSet =
true;
76 m_jobId = std::forward<JobIdT>(value);
78 template <
typename JobIdT = Aws::String>
80 SetJobId(std::forward<JobIdT>(value));
100 m_targetSelectionHasBeenSet =
true;
101 m_targetSelection = value;
118 m_statusHasBeenSet =
true;
135 m_forceCanceledHasBeenSet =
true;
136 m_forceCanceled = value;
150 template <
typename ReasonCodeT = Aws::String>
152 m_reasonCodeHasBeenSet =
true;
153 m_reasonCode = std::forward<ReasonCodeT>(value);
155 template <
typename ReasonCodeT = Aws::String>
168 template <
typename CommentT = Aws::String>
170 m_commentHasBeenSet =
true;
171 m_comment = std::forward<CommentT>(value);
173 template <
typename CommentT = Aws::String>
186 template <
typename TargetsT = Aws::Vector<Aws::String>>
188 m_targetsHasBeenSet =
true;
189 m_targets = std::forward<TargetsT>(value);
191 template <
typename TargetsT = Aws::Vector<Aws::String>>
196 template <
typename TargetsT = Aws::String>
198 m_targetsHasBeenSet =
true;
199 m_targets.emplace_back(std::forward<TargetsT>(value));
210 template <
typename DescriptionT = Aws::String>
212 m_descriptionHasBeenSet =
true;
213 m_description = std::forward<DescriptionT>(value);
215 template <
typename DescriptionT = Aws::String>
228 template <
typename Pre
signedUrlConfigT = Pre
signedUrlConfig>
230 m_presignedUrlConfigHasBeenSet =
true;
231 m_presignedUrlConfig = std::forward<PresignedUrlConfigT>(value);
233 template <
typename Pre
signedUrlConfigT = Pre
signedUrlConfig>
246 template <
typename JobExecutionsRolloutConfigT = JobExecutionsRolloutConfig>
248 m_jobExecutionsRolloutConfigHasBeenSet =
true;
249 m_jobExecutionsRolloutConfig = std::forward<JobExecutionsRolloutConfigT>(value);
251 template <
typename JobExecutionsRolloutConfigT = JobExecutionsRolloutConfig>
264 template <
typename AbortConfigT = AbortConfig>
266 m_abortConfigHasBeenSet =
true;
267 m_abortConfig = std::forward<AbortConfigT>(value);
269 template <
typename AbortConfigT = AbortConfig>
282 template <
typename CreatedAtT = Aws::Utils::DateTime>
284 m_createdAtHasBeenSet =
true;
285 m_createdAt = std::forward<CreatedAtT>(value);
287 template <
typename CreatedAtT = Aws::Utils::DateTime>
300 template <
typename LastUpdatedAtT = Aws::Utils::DateTime>
302 m_lastUpdatedAtHasBeenSet =
true;
303 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
305 template <
typename LastUpdatedAtT = Aws::Utils::DateTime>
318 template <
typename CompletedAtT = Aws::Utils::DateTime>
320 m_completedAtHasBeenSet =
true;
321 m_completedAt = std::forward<CompletedAtT>(value);
323 template <
typename CompletedAtT = Aws::Utils::DateTime>
336 template <
typename JobProcessDetailsT = JobProcessDetails>
338 m_jobProcessDetailsHasBeenSet =
true;
339 m_jobProcessDetails = std::forward<JobProcessDetailsT>(value);
341 template <
typename JobProcessDetailsT = JobProcessDetails>
358 template <
typename TimeoutConfigT = TimeoutConfig>
360 m_timeoutConfigHasBeenSet =
true;
361 m_timeoutConfig = std::forward<TimeoutConfigT>(value);
363 template <
typename TimeoutConfigT = TimeoutConfig>
384 template <
typename NamespaceIdT = Aws::String>
386 m_namespaceIdHasBeenSet =
true;
387 m_namespaceId = std::forward<NamespaceIdT>(value);
389 template <
typename NamespaceIdT = Aws::String>
402 template <
typename JobTemplateArnT = Aws::String>
404 m_jobTemplateArnHasBeenSet =
true;
405 m_jobTemplateArn = std::forward<JobTemplateArnT>(value);
407 template <
typename JobTemplateArnT = Aws::String>
420 template <
typename JobExecutionsRetryConfigT = JobExecutionsRetryConfig>
422 m_jobExecutionsRetryConfigHasBeenSet =
true;
423 m_jobExecutionsRetryConfig = std::forward<JobExecutionsRetryConfigT>(value);
425 template <
typename JobExecutionsRetryConfigT = JobExecutionsRetryConfig>
443 template <
typename DocumentParametersT = Aws::Map<Aws::String, Aws::String>>
445 m_documentParametersHasBeenSet =
true;
446 m_documentParameters = std::forward<DocumentParametersT>(value);
448 template <
typename DocumentParametersT = Aws::Map<Aws::String, Aws::String>>
453 template <
typename DocumentParametersKeyT = Aws::String,
typename DocumentParametersValueT = Aws::String>
455 m_documentParametersHasBeenSet =
true;
456 m_documentParameters.emplace(std::forward<DocumentParametersKeyT>(key), std::forward<DocumentParametersValueT>(value));
470 m_isConcurrentHasBeenSet =
true;
471 m_isConcurrent = value;
486 template <
typename SchedulingConfigT = SchedulingConfig>
488 m_schedulingConfigHasBeenSet =
true;
489 m_schedulingConfig = std::forward<SchedulingConfigT>(value);
491 template <
typename SchedulingConfigT = SchedulingConfig>
505 template <
typename ScheduledJobRolloutsT = Aws::Vector<ScheduledJobRollout>>
507 m_scheduledJobRolloutsHasBeenSet =
true;
508 m_scheduledJobRollouts = std::forward<ScheduledJobRolloutsT>(value);
510 template <
typename ScheduledJobRolloutsT = Aws::Vector<ScheduledJobRollout>>
515 template <
typename ScheduledJobRolloutsT = ScheduledJobRollout>
517 m_scheduledJobRolloutsHasBeenSet =
true;
518 m_scheduledJobRollouts.emplace_back(std::forward<ScheduledJobRolloutsT>(value));
538 template <
typename DestinationPackageVersionsT = Aws::Vector<Aws::String>>
540 m_destinationPackageVersionsHasBeenSet =
true;
541 m_destinationPackageVersions = std::forward<DestinationPackageVersionsT>(value);
543 template <
typename DestinationPackageVersionsT = Aws::Vector<Aws::String>>
548 template <
typename DestinationPackageVersionsT = Aws::String>
550 m_destinationPackageVersionsHasBeenSet =
true;
551 m_destinationPackageVersions.emplace_back(std::forward<DestinationPackageVersionsT>(value));
564 bool m_forceCanceled{
false};
574 PresignedUrlConfig m_presignedUrlConfig;
576 JobExecutionsRolloutConfig m_jobExecutionsRolloutConfig;
578 AbortConfig m_abortConfig;
586 JobProcessDetails m_jobProcessDetails;
588 TimeoutConfig m_timeoutConfig;
594 JobExecutionsRetryConfig m_jobExecutionsRetryConfig;
598 bool m_isConcurrent{
false};
600 SchedulingConfig m_schedulingConfig;
605 bool m_jobArnHasBeenSet =
false;
606 bool m_jobIdHasBeenSet =
false;
607 bool m_targetSelectionHasBeenSet =
false;
608 bool m_statusHasBeenSet =
false;
609 bool m_forceCanceledHasBeenSet =
false;
610 bool m_reasonCodeHasBeenSet =
false;
611 bool m_commentHasBeenSet =
false;
612 bool m_targetsHasBeenSet =
false;
613 bool m_descriptionHasBeenSet =
false;
614 bool m_presignedUrlConfigHasBeenSet =
false;
615 bool m_jobExecutionsRolloutConfigHasBeenSet =
false;
616 bool m_abortConfigHasBeenSet =
false;
617 bool m_createdAtHasBeenSet =
false;
618 bool m_lastUpdatedAtHasBeenSet =
false;
619 bool m_completedAtHasBeenSet =
false;
620 bool m_jobProcessDetailsHasBeenSet =
false;
621 bool m_timeoutConfigHasBeenSet =
false;
622 bool m_namespaceIdHasBeenSet =
false;
623 bool m_jobTemplateArnHasBeenSet =
false;
624 bool m_jobExecutionsRetryConfigHasBeenSet =
false;
625 bool m_documentParametersHasBeenSet =
false;
626 bool m_isConcurrentHasBeenSet =
false;
627 bool m_schedulingConfigHasBeenSet =
false;
628 bool m_scheduledJobRolloutsHasBeenSet =
false;
629 bool m_destinationPackageVersionsHasBeenSet =
false;
void SetForceCanceled(bool value)
bool CommentHasBeenSet() const
void SetDestinationPackageVersions(DestinationPackageVersionsT &&value)
const Aws::String & GetJobId() const
bool AbortConfigHasBeenSet() const
const Aws::String & GetComment() const
const AbortConfig & GetAbortConfig() const
Job & WithPresignedUrlConfig(PresignedUrlConfigT &&value)
bool SchedulingConfigHasBeenSet() const
void SetJobProcessDetails(JobProcessDetailsT &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLastUpdatedAt(LastUpdatedAtT &&value)
bool TargetSelectionHasBeenSet() const
AWS_IOT_API Job(Aws::Utils::Json::JsonView jsonValue)
bool JobExecutionsRolloutConfigHasBeenSet() const
const Aws::String & GetNamespaceId() const
Job & WithStatus(JobStatus value)
bool DocumentParametersHasBeenSet() const
const JobProcessDetails & GetJobProcessDetails() const
Job & AddScheduledJobRollouts(ScheduledJobRolloutsT &&value)
Job & WithIsConcurrent(bool value)
Job & WithTargets(TargetsT &&value)
bool TimeoutConfigHasBeenSet() const
bool ForceCanceledHasBeenSet() const
const Aws::String & GetReasonCode() const
void SetDocumentParameters(DocumentParametersT &&value)
const JobExecutionsRolloutConfig & GetJobExecutionsRolloutConfig() const
void SetAbortConfig(AbortConfigT &&value)
Job & WithSchedulingConfig(SchedulingConfigT &&value)
Job & WithLastUpdatedAt(LastUpdatedAtT &&value)
Job & WithDescription(DescriptionT &&value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
Job & AddTargets(TargetsT &&value)
void SetIsConcurrent(bool value)
const Aws::String & GetDescription() const
TargetSelection GetTargetSelection() const
bool GetIsConcurrent() const
Job & WithJobProcessDetails(JobProcessDetailsT &&value)
void SetPresignedUrlConfig(PresignedUrlConfigT &&value)
Job & WithForceCanceled(bool value)
Job & WithCompletedAt(CompletedAtT &&value)
Job & WithJobExecutionsRolloutConfig(JobExecutionsRolloutConfigT &&value)
Job & WithScheduledJobRollouts(ScheduledJobRolloutsT &&value)
AWS_IOT_API Job()=default
void SetJobExecutionsRetryConfig(JobExecutionsRetryConfigT &&value)
Job & WithCreatedAt(CreatedAtT &&value)
Job & WithTargetSelection(TargetSelection value)
bool CompletedAtHasBeenSet() const
const SchedulingConfig & GetSchedulingConfig() const
bool DestinationPackageVersionsHasBeenSet() const
const TimeoutConfig & GetTimeoutConfig() const
void SetComment(CommentT &&value)
const Aws::Map< Aws::String, Aws::String > & GetDocumentParameters() const
Job & WithDestinationPackageVersions(DestinationPackageVersionsT &&value)
void SetStatus(JobStatus value)
const Aws::Vector< ScheduledJobRollout > & GetScheduledJobRollouts() const
void SetCreatedAt(CreatedAtT &&value)
void SetTimeoutConfig(TimeoutConfigT &&value)
void SetScheduledJobRollouts(ScheduledJobRolloutsT &&value)
bool NamespaceIdHasBeenSet() const
const Aws::Utils::DateTime & GetCompletedAt() const
const Aws::String & GetJobArn() const
bool JobProcessDetailsHasBeenSet() const
void SetJobTemplateArn(JobTemplateArnT &&value)
Job & WithJobId(JobIdT &&value)
bool LastUpdatedAtHasBeenSet() const
void SetDescription(DescriptionT &&value)
const Aws::Vector< Aws::String > & GetDestinationPackageVersions() const
bool ReasonCodeHasBeenSet() const
bool CreatedAtHasBeenSet() const
const PresignedUrlConfig & GetPresignedUrlConfig() const
Job & WithNamespaceId(NamespaceIdT &&value)
const Aws::String & GetJobTemplateArn() const
void SetTargetSelection(TargetSelection value)
Job & WithComment(CommentT &&value)
void SetJobArn(JobArnT &&value)
Job & AddDocumentParameters(DocumentParametersKeyT &&key, DocumentParametersValueT &&value)
bool StatusHasBeenSet() const
void SetSchedulingConfig(SchedulingConfigT &&value)
bool JobArnHasBeenSet() const
const Aws::Vector< Aws::String > & GetTargets() const
bool TargetsHasBeenSet() const
const Aws::Utils::DateTime & GetCreatedAt() const
Job & WithReasonCode(ReasonCodeT &&value)
Job & WithDocumentParameters(DocumentParametersT &&value)
Job & AddDestinationPackageVersions(DestinationPackageVersionsT &&value)
bool PresignedUrlConfigHasBeenSet() const
bool DescriptionHasBeenSet() const
Job & WithJobArn(JobArnT &&value)
void SetTargets(TargetsT &&value)
bool ScheduledJobRolloutsHasBeenSet() const
bool IsConcurrentHasBeenSet() const
const JobExecutionsRetryConfig & GetJobExecutionsRetryConfig() const
bool JobIdHasBeenSet() const
void SetJobExecutionsRolloutConfig(JobExecutionsRolloutConfigT &&value)
void SetCompletedAt(CompletedAtT &&value)
AWS_IOT_API Job & operator=(Aws::Utils::Json::JsonView jsonValue)
Job & WithJobExecutionsRetryConfig(JobExecutionsRetryConfigT &&value)
Job & WithJobTemplateArn(JobTemplateArnT &&value)
bool GetForceCanceled() const
JobStatus GetStatus() const
bool JobExecutionsRetryConfigHasBeenSet() const
Job & WithAbortConfig(AbortConfigT &&value)
void SetJobId(JobIdT &&value)
bool JobTemplateArnHasBeenSet() const
void SetReasonCode(ReasonCodeT &&value)
Job & WithTimeoutConfig(TimeoutConfigT &&value)
void SetNamespaceId(NamespaceIdT &&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