Interface CreateJobRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateJobRequest.Builder,
,CreateJobRequest> IotRequest.Builder
,SdkBuilder<CreateJobRequest.Builder,
,CreateJobRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateJobRequest
-
Method Summary
Modifier and TypeMethodDescriptiondefault CreateJobRequest.Builder
abortConfig
(Consumer<AbortConfig.Builder> abortConfig) Allows you to create the criteria to abort a job.abortConfig
(AbortConfig abortConfig) Allows you to create the criteria to abort a job.description
(String description) A short text description of the job.destinationPackageVersions
(String... destinationPackageVersions) The package version Amazon Resource Names (ARNs) that are installed on the device when the job successfully completes.destinationPackageVersions
(Collection<String> destinationPackageVersions) The package version Amazon Resource Names (ARNs) that are installed on the device when the job successfully completes.The job document.documentParameters
(Map<String, String> documentParameters) Parameters of an Amazon Web Services managed template that you can specify to create the job document.documentSource
(String documentSource) An S3 link, or S3 object URL, to the job document.default CreateJobRequest.Builder
jobExecutionsRetryConfig
(Consumer<JobExecutionsRetryConfig.Builder> jobExecutionsRetryConfig) Allows you to create the criteria to retry a job.jobExecutionsRetryConfig
(JobExecutionsRetryConfig jobExecutionsRetryConfig) Allows you to create the criteria to retry a job.default CreateJobRequest.Builder
jobExecutionsRolloutConfig
(Consumer<JobExecutionsRolloutConfig.Builder> jobExecutionsRolloutConfig) Allows you to create a staged rollout of the job.jobExecutionsRolloutConfig
(JobExecutionsRolloutConfig jobExecutionsRolloutConfig) Allows you to create a staged rollout of the job.A job identifier which must be unique for your Amazon Web Services account.jobTemplateArn
(String jobTemplateArn) The ARN of the job template used to create the job.namespaceId
(String namespaceId) The namespace used to indicate that a job is a customer-managed job.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.default CreateJobRequest.Builder
presignedUrlConfig
(Consumer<PresignedUrlConfig.Builder> presignedUrlConfig) Configuration information for pre-signed S3 URLs.presignedUrlConfig
(PresignedUrlConfig presignedUrlConfig) Configuration information for pre-signed S3 URLs.default CreateJobRequest.Builder
schedulingConfig
(Consumer<SchedulingConfig.Builder> schedulingConfig) The configuration that allows you to schedule a job for a future date and time in addition to specifying the end behavior for each job execution.schedulingConfig
(SchedulingConfig schedulingConfig) The configuration that allows you to schedule a job for a future date and time in addition to specifying the end behavior for each job execution.tags
(Collection<Tag> tags) Metadata which can be used to manage the job.tags
(Consumer<Tag.Builder>... tags) Metadata which can be used to manage the job.Metadata which can be used to manage the job.A list of things and thing groups to which the job should be sent.targets
(Collection<String> targets) A list of things and thing groups to which the job should be sent.targetSelection
(String targetSelection) Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those things specified as targets have completed the job (SNAPSHOT).targetSelection
(TargetSelection targetSelection) Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those things specified as targets have completed the job (SNAPSHOT).default CreateJobRequest.Builder
timeoutConfig
(Consumer<TimeoutConfig.Builder> timeoutConfig) Specifies the amount of time each device has to finish its execution of the job.timeoutConfig
(TimeoutConfig timeoutConfig) Specifies the amount of time each device has to finish its execution of the job.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.iot.model.IotRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
jobId
A job identifier which must be unique for your Amazon Web Services account. We recommend using a UUID. Alpha-numeric characters, "-" and "_" are valid for use here.
- Parameters:
jobId
- A job identifier which must be unique for your Amazon Web Services account. We recommend using a UUID. Alpha-numeric characters, "-" and "_" are valid for use here.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targets
A list of things and thing groups to which the job should be sent.
- Parameters:
targets
- A list of things and thing groups to which the job should be sent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targets
A list of things and thing groups to which the job should be sent.
- Parameters:
targets
- A list of things and thing groups to which the job should be sent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentSource
An S3 link, or S3 object URL, to the job document. The link is an Amazon S3 object URL and is required if you don't specify a value for
document
.For example,
--document-source https://s3.region-code.amazonaws.com/example-firmware/device-firmware.1.0
For more information, see Methods for accessing a bucket.
- Parameters:
documentSource
- An S3 link, or S3 object URL, to the job document. The link is an Amazon S3 object URL and is required if you don't specify a value fordocument
.For example,
--document-source https://s3.region-code.amazonaws.com/example-firmware/device-firmware.1.0
For more information, see Methods for accessing a bucket.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
document
The job document. Required if you don't specify a value for
documentSource
.- Parameters:
document
- The job document. Required if you don't specify a value fordocumentSource
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A short text description of the job.
- Parameters:
description
- A short text description of the job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
presignedUrlConfig
Configuration information for pre-signed S3 URLs.
- Parameters:
presignedUrlConfig
- Configuration information for pre-signed S3 URLs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
presignedUrlConfig
default CreateJobRequest.Builder presignedUrlConfig(Consumer<PresignedUrlConfig.Builder> presignedUrlConfig) Configuration information for pre-signed S3 URLs.
This is a convenience method that creates an instance of thePresignedUrlConfig.Builder
avoiding the need to create one manually viaPresignedUrlConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topresignedUrlConfig(PresignedUrlConfig)
.- Parameters:
presignedUrlConfig
- a consumer that will call methods onPresignedUrlConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
targetSelection
Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those things specified as targets have completed the job (SNAPSHOT). If continuous, the job may also be run on a thing when a change is detected in a target. For example, a job will run on a thing when the thing is added to a target group, even after the job was completed by all things originally in the group.
We recommend that you use continuous jobs instead of snapshot jobs for dynamic thing group targets. By using continuous jobs, devices that join the group receive the job execution even after the job has been created.
- Parameters:
targetSelection
- Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those things specified as targets have completed the job (SNAPSHOT). If continuous, the job may also be run on a thing when a change is detected in a target. For example, a job will run on a thing when the thing is added to a target group, even after the job was completed by all things originally in the group.We recommend that you use continuous jobs instead of snapshot jobs for dynamic thing group targets. By using continuous jobs, devices that join the group receive the job execution even after the job has been created.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
targetSelection
Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those things specified as targets have completed the job (SNAPSHOT). If continuous, the job may also be run on a thing when a change is detected in a target. For example, a job will run on a thing when the thing is added to a target group, even after the job was completed by all things originally in the group.
We recommend that you use continuous jobs instead of snapshot jobs for dynamic thing group targets. By using continuous jobs, devices that join the group receive the job execution even after the job has been created.
- Parameters:
targetSelection
- Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those things specified as targets have completed the job (SNAPSHOT). If continuous, the job may also be run on a thing when a change is detected in a target. For example, a job will run on a thing when the thing is added to a target group, even after the job was completed by all things originally in the group.We recommend that you use continuous jobs instead of snapshot jobs for dynamic thing group targets. By using continuous jobs, devices that join the group receive the job execution even after the job has been created.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
jobExecutionsRolloutConfig
CreateJobRequest.Builder jobExecutionsRolloutConfig(JobExecutionsRolloutConfig jobExecutionsRolloutConfig) Allows you to create a staged rollout of the job.
- Parameters:
jobExecutionsRolloutConfig
- Allows you to create a staged rollout of the job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
jobExecutionsRolloutConfig
default CreateJobRequest.Builder jobExecutionsRolloutConfig(Consumer<JobExecutionsRolloutConfig.Builder> jobExecutionsRolloutConfig) Allows you to create a staged rollout of the job.
This is a convenience method that creates an instance of theJobExecutionsRolloutConfig.Builder
avoiding the need to create one manually viaJobExecutionsRolloutConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tojobExecutionsRolloutConfig(JobExecutionsRolloutConfig)
.- Parameters:
jobExecutionsRolloutConfig
- a consumer that will call methods onJobExecutionsRolloutConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
abortConfig
Allows you to create the criteria to abort a job.
- Parameters:
abortConfig
- Allows you to create the criteria to abort a job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
abortConfig
Allows you to create the criteria to abort a job.
This is a convenience method that creates an instance of theAbortConfig.Builder
avoiding the need to create one manually viaAbortConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toabortConfig(AbortConfig)
.- Parameters:
abortConfig
- a consumer that will call methods onAbortConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
timeoutConfig
Specifies the amount of time each device has to finish its execution of the job. The timer is started when the job execution status is set to
IN_PROGRESS
. If the job execution status is not set to another terminal state before the time expires, it will be automatically set toTIMED_OUT
.- Parameters:
timeoutConfig
- Specifies the amount of time each device has to finish its execution of the job. The timer is started when the job execution status is set toIN_PROGRESS
. If the job execution status is not set to another terminal state before the time expires, it will be automatically set toTIMED_OUT
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeoutConfig
Specifies the amount of time each device has to finish its execution of the job. The timer is started when the job execution status is set to
This is a convenience method that creates an instance of theIN_PROGRESS
. If the job execution status is not set to another terminal state before the time expires, it will be automatically set toTIMED_OUT
.TimeoutConfig.Builder
avoiding the need to create one manually viaTimeoutConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totimeoutConfig(TimeoutConfig)
.- Parameters:
timeoutConfig
- a consumer that will call methods onTimeoutConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
Metadata which can be used to manage the job.
- Parameters:
tags
- Metadata which can be used to manage the job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Metadata which can be used to manage the job.
- Parameters:
tags
- Metadata which can be used to manage the job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Metadata which can be used to manage the job.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
namespaceId
The namespace used to indicate that a job is a customer-managed job.
When you specify a value for this parameter, Amazon Web Services IoT Core sends jobs notifications to MQTT topics that contain the value in the following format.
$aws/things/THING_NAME/jobs/JOB_ID/notify-namespace-NAMESPACE_ID/
The
namespaceId
feature is in public preview.- Parameters:
namespaceId
- The namespace used to indicate that a job is a customer-managed job.When you specify a value for this parameter, Amazon Web Services IoT Core sends jobs notifications to MQTT topics that contain the value in the following format.
$aws/things/THING_NAME/jobs/JOB_ID/notify-namespace-NAMESPACE_ID/
The
namespaceId
feature is in public preview.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
jobTemplateArn
The ARN of the job template used to create the job.
- Parameters:
jobTemplateArn
- The ARN of the job template used to create the job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
jobExecutionsRetryConfig
CreateJobRequest.Builder jobExecutionsRetryConfig(JobExecutionsRetryConfig jobExecutionsRetryConfig) Allows you to create the criteria to retry a job.
- Parameters:
jobExecutionsRetryConfig
- Allows you to create the criteria to retry a job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
jobExecutionsRetryConfig
default CreateJobRequest.Builder jobExecutionsRetryConfig(Consumer<JobExecutionsRetryConfig.Builder> jobExecutionsRetryConfig) Allows you to create the criteria to retry a job.
This is a convenience method that creates an instance of theJobExecutionsRetryConfig.Builder
avoiding the need to create one manually viaJobExecutionsRetryConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tojobExecutionsRetryConfig(JobExecutionsRetryConfig)
.- Parameters:
jobExecutionsRetryConfig
- a consumer that will call methods onJobExecutionsRetryConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
documentParameters
Parameters of an Amazon Web Services managed template that you can specify to create the job document.
documentParameters
can only be used when creating jobs from Amazon Web Services managed templates. This parameter can't be used with custom job templates or to create jobs from them.- Parameters:
documentParameters
- Parameters of an Amazon Web Services managed template that you can specify to create the job document.documentParameters
can only be used when creating jobs from Amazon Web Services managed templates. This parameter can't be used with custom job templates or to create jobs from them.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
schedulingConfig
The configuration that allows you to schedule a job for a future date and time in addition to specifying the end behavior for each job execution.
- Parameters:
schedulingConfig
- The configuration that allows you to schedule a job for a future date and time in addition to specifying the end behavior for each job execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
schedulingConfig
default CreateJobRequest.Builder schedulingConfig(Consumer<SchedulingConfig.Builder> schedulingConfig) The configuration that allows you to schedule a job for a future date and time in addition to specifying the end behavior for each job execution.
This is a convenience method that creates an instance of theSchedulingConfig.Builder
avoiding the need to create one manually viaSchedulingConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toschedulingConfig(SchedulingConfig)
.- Parameters:
schedulingConfig
- a consumer that will call methods onSchedulingConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
destinationPackageVersions
The package version Amazon Resource Names (ARNs) that are installed on the device when the job successfully completes.
Note:The following Length Constraints relates to a single string. Up to five strings are allowed.
- Parameters:
destinationPackageVersions
- The package version Amazon Resource Names (ARNs) that are installed on the device when the job successfully completes.Note:The following Length Constraints relates to a single string. Up to five strings are allowed.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destinationPackageVersions
The package version Amazon Resource Names (ARNs) that are installed on the device when the job successfully completes.
Note:The following Length Constraints relates to a single string. Up to five strings are allowed.
- Parameters:
destinationPackageVersions
- The package version Amazon Resource Names (ARNs) that are installed on the device when the job successfully completes.Note:The following Length Constraints relates to a single string. Up to five strings are allowed.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateJobRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateJobRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-