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