Interface CreateJobTemplateRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateJobTemplateRequest.Builder,
,CreateJobTemplateRequest> IotRequest.Builder
,SdkBuilder<CreateJobTemplateRequest.Builder,
,CreateJobTemplateRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateJobTemplateRequest
-
Method Summary
Modifier and TypeMethodDescriptiondefault CreateJobTemplateRequest.Builder
abortConfig
(Consumer<AbortConfig.Builder> abortConfig) Sets the value of the AbortConfig property for this object.abortConfig
(AbortConfig abortConfig) Sets the value of the AbortConfig property for this object.description
(String description) A description of the job document.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.documentSource
(String documentSource) An S3 link, or S3 object URL, to the job document.The ARN of the job to use as the basis for the job template.default CreateJobTemplateRequest.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 CreateJobTemplateRequest.Builder
jobExecutionsRolloutConfig
(Consumer<JobExecutionsRolloutConfig.Builder> jobExecutionsRolloutConfig) Sets the value of the JobExecutionsRolloutConfig property for this object.jobExecutionsRolloutConfig
(JobExecutionsRolloutConfig jobExecutionsRolloutConfig) Sets the value of the JobExecutionsRolloutConfig property for this object.jobTemplateId
(String jobTemplateId) A unique identifier for the job template.maintenanceWindows
(Collection<MaintenanceWindow> maintenanceWindows) Allows you to configure an optional maintenance window for the rollout of a job document to all devices in the target group for a job.maintenanceWindows
(Consumer<MaintenanceWindow.Builder>... maintenanceWindows) Allows you to configure an optional maintenance window for the rollout of a job document to all devices in the target group for a job.maintenanceWindows
(MaintenanceWindow... maintenanceWindows) Allows you to configure an optional maintenance window for the rollout of a job document to all devices in the target group for a job.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.default CreateJobTemplateRequest.Builder
presignedUrlConfig
(Consumer<PresignedUrlConfig.Builder> presignedUrlConfig) Sets the value of the PresignedUrlConfig property for this object.presignedUrlConfig
(PresignedUrlConfig presignedUrlConfig) Sets the value of the PresignedUrlConfig property for this object.tags
(Collection<Tag> tags) Metadata that can be used to manage the job template.tags
(Consumer<Tag.Builder>... tags) Metadata that can be used to manage the job template.Metadata that can be used to manage the job template.default CreateJobTemplateRequest.Builder
timeoutConfig
(Consumer<TimeoutConfig.Builder> timeoutConfig) Sets the value of the TimeoutConfig property for this object.timeoutConfig
(TimeoutConfig timeoutConfig) Sets the value of the TimeoutConfig property for this object.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
-
jobTemplateId
A unique identifier for the job template. We recommend using a UUID. Alpha-numeric characters, "-", and "_" are valid for use here.
- Parameters:
jobTemplateId
- A unique identifier for the job template. 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.
-
jobArn
The ARN of the job to use as the basis for the job template.
- Parameters:
jobArn
- The ARN of the job to use as the basis for the job template.- 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 description of the job document.
- Parameters:
description
- A description of the job document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
presignedUrlConfig
Sets the value of the PresignedUrlConfig property for this object.- Parameters:
presignedUrlConfig
- The new value for the PresignedUrlConfig property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
presignedUrlConfig
default CreateJobTemplateRequest.Builder presignedUrlConfig(Consumer<PresignedUrlConfig.Builder> presignedUrlConfig) Sets the value of the PresignedUrlConfig property for this object. 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:
-
jobExecutionsRolloutConfig
CreateJobTemplateRequest.Builder jobExecutionsRolloutConfig(JobExecutionsRolloutConfig jobExecutionsRolloutConfig) Sets the value of the JobExecutionsRolloutConfig property for this object.- Parameters:
jobExecutionsRolloutConfig
- The new value for the JobExecutionsRolloutConfig property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
jobExecutionsRolloutConfig
default CreateJobTemplateRequest.Builder jobExecutionsRolloutConfig(Consumer<JobExecutionsRolloutConfig.Builder> jobExecutionsRolloutConfig) Sets the value of the JobExecutionsRolloutConfig property for this object. 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
Sets the value of the AbortConfig property for this object.- Parameters:
abortConfig
- The new value for the AbortConfig property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
abortConfig
Sets the value of the AbortConfig property for this object. 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
Sets the value of the TimeoutConfig property for this object.- Parameters:
timeoutConfig
- The new value for the TimeoutConfig property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeoutConfig
default CreateJobTemplateRequest.Builder timeoutConfig(Consumer<TimeoutConfig.Builder> timeoutConfig) Sets the value of the TimeoutConfig property for this object. This is a convenience method that creates an instance of theTimeoutConfig.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 that can be used to manage the job template.
- Parameters:
tags
- Metadata that can be used to manage the job template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Metadata that can be used to manage the job template.
- Parameters:
tags
- Metadata that can be used to manage the job template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Metadata that can be used to manage the job template.
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:
-
jobExecutionsRetryConfig
CreateJobTemplateRequest.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 CreateJobTemplateRequest.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:
-
maintenanceWindows
CreateJobTemplateRequest.Builder maintenanceWindows(Collection<MaintenanceWindow> maintenanceWindows) Allows you to configure an optional maintenance window for the rollout of a job document to all devices in the target group for a job.
- Parameters:
maintenanceWindows
- Allows you to configure an optional maintenance window for the rollout of a job document to all devices in the target group for a job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maintenanceWindows
Allows you to configure an optional maintenance window for the rollout of a job document to all devices in the target group for a job.
- Parameters:
maintenanceWindows
- Allows you to configure an optional maintenance window for the rollout of a job document to all devices in the target group for a job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maintenanceWindows
CreateJobTemplateRequest.Builder maintenanceWindows(Consumer<MaintenanceWindow.Builder>... maintenanceWindows) Allows you to configure an optional maintenance window for the rollout of a job document to all devices in the target group for a job.
This is a convenience method that creates an instance of theMaintenanceWindow.Builder
avoiding the need to create one manually viaMaintenanceWindow.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomaintenanceWindows(List<MaintenanceWindow>)
.- Parameters:
maintenanceWindows
- a consumer that will call methods onMaintenanceWindow.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
destinationPackageVersions
CreateJobTemplateRequest.Builder destinationPackageVersions(Collection<String> destinationPackageVersions) The package version Amazon Resource Names (ARNs) that are installed on the device when the job successfully completes. The package version must be in either the Published or Deprecated state when the job deploys. For more information, see Package version lifecycle.
Note:The following Length Constraints relates to a single ARN. Up to 25 package version ARNs are allowed.
- Parameters:
destinationPackageVersions
- The package version Amazon Resource Names (ARNs) that are installed on the device when the job successfully completes. The package version must be in either the Published or Deprecated state when the job deploys. For more information, see Package version lifecycle.Note:The following Length Constraints relates to a single ARN. Up to 25 package version ARNs 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. The package version must be in either the Published or Deprecated state when the job deploys. For more information, see Package version lifecycle.
Note:The following Length Constraints relates to a single ARN. Up to 25 package version ARNs are allowed.
- Parameters:
destinationPackageVersions
- The package version Amazon Resource Names (ARNs) that are installed on the device when the job successfully completes. The package version must be in either the Published or Deprecated state when the job deploys. For more information, see Package version lifecycle.Note:The following Length Constraints relates to a single ARN. Up to 25 package version ARNs are allowed.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateJobTemplateRequest.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
CreateJobTemplateRequest.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.
-