Class CfnJobTemplatePropsMixin.AbortCriteriaProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.iot.CfnJobTemplatePropsMixin.AbortCriteriaProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnJobTemplatePropsMixin.AbortCriteriaProperty>
- Enclosing interface:
CfnJobTemplatePropsMixin.AbortCriteriaProperty
@Stability(Stable)
public static final class CfnJobTemplatePropsMixin.AbortCriteriaProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnJobTemplatePropsMixin.AbortCriteriaProperty>
A builder for
CfnJobTemplatePropsMixin.AbortCriteriaProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnJobTemplatePropsMixin.AbortCriteriaProperty.getAction()build()Builds the configured instance.failureType(String failureType) Sets the value ofCfnJobTemplatePropsMixin.AbortCriteriaProperty.getFailureType()minNumberOfExecutedThings(Number minNumberOfExecutedThings) thresholdPercentage(Number thresholdPercentage) Sets the value ofCfnJobTemplatePropsMixin.AbortCriteriaProperty.getThresholdPercentage()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
action
@Stability(Stable) public CfnJobTemplatePropsMixin.AbortCriteriaProperty.Builder action(String action) Sets the value ofCfnJobTemplatePropsMixin.AbortCriteriaProperty.getAction()- Parameters:
action- The type of job action to take to initiate the job abort.- Returns:
this
-
failureType
@Stability(Stable) public CfnJobTemplatePropsMixin.AbortCriteriaProperty.Builder failureType(String failureType) Sets the value ofCfnJobTemplatePropsMixin.AbortCriteriaProperty.getFailureType()- Parameters:
failureType- The type of job execution failures that can initiate a job abort.- Returns:
this
-
minNumberOfExecutedThings
@Stability(Stable) public CfnJobTemplatePropsMixin.AbortCriteriaProperty.Builder minNumberOfExecutedThings(Number minNumberOfExecutedThings) - Parameters:
minNumberOfExecutedThings- The minimum number of things which must receive job execution notifications before the job can be aborted.- Returns:
this
-
thresholdPercentage
@Stability(Stable) public CfnJobTemplatePropsMixin.AbortCriteriaProperty.Builder thresholdPercentage(Number thresholdPercentage) Sets the value ofCfnJobTemplatePropsMixin.AbortCriteriaProperty.getThresholdPercentage()- Parameters:
thresholdPercentage- The minimum percentage of job execution failures that must occur to initiate the job abort. AWS IoT Core supports up to two digits after the decimal (for example, 10.9 and 10.99, but not 10.999).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnJobTemplatePropsMixin.AbortCriteriaProperty>- Returns:
- a new instance of
CfnJobTemplatePropsMixin.AbortCriteriaProperty - Throws:
NullPointerException- if any required attribute was not provided
-