Class CfnJobProps.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnJobProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnJobProps>
- Enclosing interface:
CfnJobProps
@Stability(Stable)
public static final class CfnJobProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnJobProps>
A builder for
CfnJobProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabortConfig(IResolvable abortConfig) Sets the value ofCfnJobProps.getAbortConfig()abortConfig(CfnJob.AbortConfigProperty abortConfig) Sets the value ofCfnJobProps.getAbortConfig()build()Builds the configured instance.description(String description) Sets the value ofCfnJobProps.getDescription()destinationPackageVersions(List<String> destinationPackageVersions) Sets the value ofCfnJobProps.getDestinationPackageVersions()Sets the value ofCfnJobProps.getDocument()documentParameters(Map<String, String> documentParameters) Sets the value ofCfnJobProps.getDocumentParameters()documentParameters(IResolvable documentParameters) Sets the value ofCfnJobProps.getDocumentParameters()documentSource(String documentSource) Sets the value ofCfnJobProps.getDocumentSource()jobExecutionsRetryConfig(IResolvable jobExecutionsRetryConfig) Sets the value ofCfnJobProps.getJobExecutionsRetryConfig()jobExecutionsRetryConfig(CfnJob.JobExecutionsRetryConfigProperty jobExecutionsRetryConfig) Sets the value ofCfnJobProps.getJobExecutionsRetryConfig()jobExecutionsRolloutConfig(IResolvable jobExecutionsRolloutConfig) Sets the value ofCfnJobProps.getJobExecutionsRolloutConfig()jobExecutionsRolloutConfig(CfnJob.JobExecutionsRolloutConfigProperty jobExecutionsRolloutConfig) Sets the value ofCfnJobProps.getJobExecutionsRolloutConfig()Sets the value ofCfnJobProps.getJobId()jobTemplateArn(String jobTemplateArn) Sets the value ofCfnJobProps.getJobTemplateArn()presignedUrlConfig(IResolvable presignedUrlConfig) Sets the value ofCfnJobProps.getPresignedUrlConfig()presignedUrlConfig(CfnJob.PresignedUrlConfigProperty presignedUrlConfig) Sets the value ofCfnJobProps.getPresignedUrlConfig()schedulingConfig(IResolvable schedulingConfig) Sets the value ofCfnJobProps.getSchedulingConfig()schedulingConfig(CfnJob.SchedulingConfigProperty schedulingConfig) Sets the value ofCfnJobProps.getSchedulingConfig()Sets the value ofCfnJobProps.getTags()Sets the value ofCfnJobProps.getTargets()targetSelection(String targetSelection) Sets the value ofCfnJobProps.getTargetSelection()timeoutConfig(IResolvable timeoutConfig) Sets the value ofCfnJobProps.getTimeoutConfig()timeoutConfig(CfnJob.TimeoutConfigProperty timeoutConfig) Sets the value ofCfnJobProps.getTimeoutConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
jobId
Sets the value ofCfnJobProps.getJobId()- Parameters:
jobId- A job identifier which must be unique for your AWS account. This parameter is required. We recommend using a UUID. Alpha-numeric characters, '-' and '_' are valid for use here.- Returns:
this
-
targets
Sets the value ofCfnJobProps.getTargets()- Parameters:
targets- A list of things and thing groups to which the job should be sent. This parameter is required.- Returns:
this
-
abortConfig
Sets the value ofCfnJobProps.getAbortConfig()- Parameters:
abortConfig- The criteria that determine when and how a job abort takes place.- Returns:
this
-
abortConfig
Sets the value ofCfnJobProps.getAbortConfig()- Parameters:
abortConfig- The criteria that determine when and how a job abort takes place.- Returns:
this
-
description
Sets the value ofCfnJobProps.getDescription()- Parameters:
description- A short text description of the job.- Returns:
this
-
destinationPackageVersions
@Stability(Stable) public CfnJobProps.Builder destinationPackageVersions(List<String> destinationPackageVersions) Sets the value ofCfnJobProps.getDestinationPackageVersions()- Parameters:
destinationPackageVersions- The package version Amazon Resource Names (ARNs) that are installed on the device when the job successfully completes.- Returns:
this
-
document
Sets the value ofCfnJobProps.getDocument()- Parameters:
document- The job document. Required if you don't specify a value for documentSource.- Returns:
this
-
documentParameters
Sets the value ofCfnJobProps.getDocumentParameters()- Parameters:
documentParameters- Parameters of an Amazon Web Services managed template that you can specify to create the job document.- Returns:
this
-
documentParameters
@Stability(Stable) public CfnJobProps.Builder documentParameters(Map<String, String> documentParameters) Sets the value ofCfnJobProps.getDocumentParameters()- Parameters:
documentParameters- Parameters of an Amazon Web Services managed template that you can specify to create the job document.- Returns:
this
-
documentSource
Sets the value ofCfnJobProps.getDocumentSource()- 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 for document.- Returns:
this
-
jobExecutionsRetryConfig
@Stability(Stable) public CfnJobProps.Builder jobExecutionsRetryConfig(IResolvable jobExecutionsRetryConfig) Sets the value ofCfnJobProps.getJobExecutionsRetryConfig()- Parameters:
jobExecutionsRetryConfig- The configuration that determines how many retries are allowed for each failure type for a job.- Returns:
this
-
jobExecutionsRetryConfig
@Stability(Stable) public CfnJobProps.Builder jobExecutionsRetryConfig(CfnJob.JobExecutionsRetryConfigProperty jobExecutionsRetryConfig) Sets the value ofCfnJobProps.getJobExecutionsRetryConfig()- Parameters:
jobExecutionsRetryConfig- The configuration that determines how many retries are allowed for each failure type for a job.- Returns:
this
-
jobExecutionsRolloutConfig
@Stability(Stable) public CfnJobProps.Builder jobExecutionsRolloutConfig(IResolvable jobExecutionsRolloutConfig) Sets the value ofCfnJobProps.getJobExecutionsRolloutConfig()- Parameters:
jobExecutionsRolloutConfig- Allows you to create a staged rollout of a job.- Returns:
this
-
jobExecutionsRolloutConfig
@Stability(Stable) public CfnJobProps.Builder jobExecutionsRolloutConfig(CfnJob.JobExecutionsRolloutConfigProperty jobExecutionsRolloutConfig) Sets the value ofCfnJobProps.getJobExecutionsRolloutConfig()- Parameters:
jobExecutionsRolloutConfig- Allows you to create a staged rollout of a job.- Returns:
this
-
jobTemplateArn
Sets the value ofCfnJobProps.getJobTemplateArn()- Parameters:
jobTemplateArn- The ARN of the job template used to create the job.- Returns:
this
-
presignedUrlConfig
Sets the value ofCfnJobProps.getPresignedUrlConfig()- Parameters:
presignedUrlConfig- Configuration for pre-signed S3 URLs.- Returns:
this
-
presignedUrlConfig
@Stability(Stable) public CfnJobProps.Builder presignedUrlConfig(CfnJob.PresignedUrlConfigProperty presignedUrlConfig) Sets the value ofCfnJobProps.getPresignedUrlConfig()- Parameters:
presignedUrlConfig- Configuration for pre-signed S3 URLs.- Returns:
this
-
schedulingConfig
Sets the value ofCfnJobProps.getSchedulingConfig()- Parameters:
schedulingConfig- Specifies the date and time that a job will begin the rollout of the job document to all devices in the target group.- Returns:
this
-
schedulingConfig
@Stability(Stable) public CfnJobProps.Builder schedulingConfig(CfnJob.SchedulingConfigProperty schedulingConfig) Sets the value ofCfnJobProps.getSchedulingConfig()- Parameters:
schedulingConfig- Specifies the date and time that a job will begin the rollout of the job document to all devices in the target group.- Returns:
this
-
tags
Sets the value ofCfnJobProps.getTags()- Parameters:
tags- Metadata which can be used to manage the job.- Returns:
this
-
targetSelection
Sets the value ofCfnJobProps.getTargetSelection()- 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).- Returns:
this
-
timeoutConfig
Sets the value ofCfnJobProps.getTimeoutConfig()- Parameters:
timeoutConfig- Specifies the amount of time each device has to finish its execution of the job.- Returns:
this
-
timeoutConfig
@Stability(Stable) public CfnJobProps.Builder timeoutConfig(CfnJob.TimeoutConfigProperty timeoutConfig) Sets the value ofCfnJobProps.getTimeoutConfig()- Parameters:
timeoutConfig- Specifies the amount of time each device has to finish its execution of the job.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnJobProps>- Returns:
- a new instance of
CfnJobProps - Throws:
NullPointerException- if any required attribute was not provided
-