Class CfnJobPropsMixin.AbortCriteriaProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.iot.CfnJobPropsMixin.AbortCriteriaProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnJobPropsMixin.AbortCriteriaProperty>
- Enclosing interface:
CfnJobPropsMixin.AbortCriteriaProperty
@Stability(Stable)
public static final class CfnJobPropsMixin.AbortCriteriaProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnJobPropsMixin.AbortCriteriaProperty>
A builder for
CfnJobPropsMixin.AbortCriteriaProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnJobPropsMixin.AbortCriteriaProperty.getAction()build()Builds the configured instance.failureType(String failureType) Sets the value ofCfnJobPropsMixin.AbortCriteriaProperty.getFailureType()minNumberOfExecutedThings(Number minNumberOfExecutedThings) Sets the value ofCfnJobPropsMixin.AbortCriteriaProperty.getMinNumberOfExecutedThings()thresholdPercentage(Number thresholdPercentage) Sets the value ofCfnJobPropsMixin.AbortCriteriaProperty.getThresholdPercentage()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
action
Sets the value ofCfnJobPropsMixin.AbortCriteriaProperty.getAction()- Parameters:
action- The type of job action to take to initiate the job abort.- Returns:
this
-
failureType
@Stability(Stable) public CfnJobPropsMixin.AbortCriteriaProperty.Builder failureType(String failureType) Sets the value ofCfnJobPropsMixin.AbortCriteriaProperty.getFailureType()- Parameters:
failureType- The type of job execution failures that can initiate a job abort.- Returns:
this
-
minNumberOfExecutedThings
@Stability(Stable) public CfnJobPropsMixin.AbortCriteriaProperty.Builder minNumberOfExecutedThings(Number minNumberOfExecutedThings) Sets the value ofCfnJobPropsMixin.AbortCriteriaProperty.getMinNumberOfExecutedThings()- 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 CfnJobPropsMixin.AbortCriteriaProperty.Builder thresholdPercentage(Number thresholdPercentage) Sets the value ofCfnJobPropsMixin.AbortCriteriaProperty.getThresholdPercentage()- Parameters:
thresholdPercentage- The minimum percentage of job execution failures that must occur to initiate the job abort.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnJobPropsMixin.AbortCriteriaProperty>- Returns:
- a new instance of
CfnJobPropsMixin.AbortCriteriaProperty - Throws:
NullPointerException- if any required attribute was not provided
-