Class CfnJobTemplateProps.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnJobTemplateProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnJobTemplateProps>
- Enclosing interface:
CfnJobTemplateProps
@Stability(Stable)
public static final class CfnJobTemplateProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnJobTemplateProps>
A builder for
CfnJobTemplateProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabortConfig(Object abortConfig) Sets the value ofCfnJobTemplateProps.getAbortConfig()build()Builds the configured instance.description(String description) Sets the value ofCfnJobTemplateProps.getDescription()destinationPackageVersions(List<String> destinationPackageVersions) Sets the value ofCfnJobTemplateProps.getDestinationPackageVersions()Sets the value ofCfnJobTemplateProps.getDocument()documentSource(String documentSource) Sets the value ofCfnJobTemplateProps.getDocumentSource()Sets the value ofCfnJobTemplateProps.getJobArn()jobExecutionsRetryConfig(IResolvable jobExecutionsRetryConfig) Sets the value ofCfnJobTemplateProps.getJobExecutionsRetryConfig()jobExecutionsRetryConfig(CfnJobTemplate.JobExecutionsRetryConfigProperty jobExecutionsRetryConfig) Sets the value ofCfnJobTemplateProps.getJobExecutionsRetryConfig()jobExecutionsRolloutConfig(Object jobExecutionsRolloutConfig) Sets the value ofCfnJobTemplateProps.getJobExecutionsRolloutConfig()jobTemplateId(String jobTemplateId) Sets the value ofCfnJobTemplateProps.getJobTemplateId()maintenanceWindows(List<? extends Object> maintenanceWindows) Sets the value ofCfnJobTemplateProps.getMaintenanceWindows()maintenanceWindows(IResolvable maintenanceWindows) Sets the value ofCfnJobTemplateProps.getMaintenanceWindows()presignedUrlConfig(Object presignedUrlConfig) Sets the value ofCfnJobTemplateProps.getPresignedUrlConfig()Sets the value ofCfnJobTemplateProps.getTags()timeoutConfig(Object timeoutConfig) Sets the value ofCfnJobTemplateProps.getTimeoutConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
Sets the value ofCfnJobTemplateProps.getDescription()- Parameters:
description- A description of the job template. This parameter is required.- Returns:
this
-
jobTemplateId
Sets the value ofCfnJobTemplateProps.getJobTemplateId()- Parameters:
jobTemplateId- A unique identifier for the job template. This parameter is required. We recommend using a UUID. Alpha-numeric characters, "-", and "_" are valid for use here.- Returns:
this
-
abortConfig
Sets the value ofCfnJobTemplateProps.getAbortConfig()- Parameters:
abortConfig- The criteria that determine when and how a job abort takes place.- Returns:
this
-
destinationPackageVersions
@Stability(Stable) public CfnJobTemplateProps.Builder destinationPackageVersions(List<String> destinationPackageVersions) Sets the value ofCfnJobTemplateProps.getDestinationPackageVersions()- Parameters:
destinationPackageVersions- The package version Amazon Resource Names (ARNs) that are installed on the device’s reserved named shadow ($package) when the job successfully completes. Note: Up to 25 package version ARNS are allowed.- Returns:
this
-
document
Sets the value ofCfnJobTemplateProps.getDocument()- Parameters:
document- The job document. Required if you don't specify a value fordocumentSource.- Returns:
this
-
documentSource
Sets the value ofCfnJobTemplateProps.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 fordocument.For example,
--document-source https://s3. *region-code* .amazonaws.com/example-firmware/device-firmware.1.0For more information, see Methods for accessing a bucket .
- Returns:
this
-
jobArn
Sets the value ofCfnJobTemplateProps.getJobArn()- Parameters:
jobArn- The ARN of the job to use as the basis for the job template.- Returns:
this
-
jobExecutionsRetryConfig
@Stability(Stable) public CfnJobTemplateProps.Builder jobExecutionsRetryConfig(IResolvable jobExecutionsRetryConfig) Sets the value ofCfnJobTemplateProps.getJobExecutionsRetryConfig()- Parameters:
jobExecutionsRetryConfig- Allows you to create the criteria to retry a job.- Returns:
this
-
jobExecutionsRetryConfig
@Stability(Stable) public CfnJobTemplateProps.Builder jobExecutionsRetryConfig(CfnJobTemplate.JobExecutionsRetryConfigProperty jobExecutionsRetryConfig) Sets the value ofCfnJobTemplateProps.getJobExecutionsRetryConfig()- Parameters:
jobExecutionsRetryConfig- Allows you to create the criteria to retry a job.- Returns:
this
-
jobExecutionsRolloutConfig
@Stability(Stable) public CfnJobTemplateProps.Builder jobExecutionsRolloutConfig(Object jobExecutionsRolloutConfig) Sets the value ofCfnJobTemplateProps.getJobExecutionsRolloutConfig()- Parameters:
jobExecutionsRolloutConfig- Allows you to create a staged rollout of a job.- Returns:
this
-
maintenanceWindows
@Stability(Stable) public CfnJobTemplateProps.Builder maintenanceWindows(IResolvable maintenanceWindows) Sets the value ofCfnJobTemplateProps.getMaintenanceWindows()- Parameters:
maintenanceWindows- An optional configuration within the SchedulingConfig to setup a recurring maintenance window with a predetermined start time and duration for the rollout of a job document to all devices in a target group for a job.- Returns:
this
-
maintenanceWindows
@Stability(Stable) public CfnJobTemplateProps.Builder maintenanceWindows(List<? extends Object> maintenanceWindows) Sets the value ofCfnJobTemplateProps.getMaintenanceWindows()- Parameters:
maintenanceWindows- An optional configuration within the SchedulingConfig to setup a recurring maintenance window with a predetermined start time and duration for the rollout of a job document to all devices in a target group for a job.- Returns:
this
-
presignedUrlConfig
Sets the value ofCfnJobTemplateProps.getPresignedUrlConfig()- Parameters:
presignedUrlConfig- Configuration for pre-signed S3 URLs.- Returns:
this
-
tags
Sets the value ofCfnJobTemplateProps.getTags()- Parameters:
tags- Metadata that can be used to manage the job template.- Returns:
this
-
timeoutConfig
Sets the value ofCfnJobTemplateProps.getTimeoutConfig()- Parameters:
timeoutConfig- Specifies the amount of time each device has to finish its execution of the job. A 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 timer expires, it will be automatically set toTIMED_OUT.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnJobTemplateProps>- Returns:
- a new instance of
CfnJobTemplateProps - Throws:
NullPointerException- if any required attribute was not provided
-