Class CfnDeploymentPropsMixin.IoTJobAbortCriteriaProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.greengrassv2.mixins.CfnDeploymentPropsMixin.IoTJobAbortCriteriaProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeploymentPropsMixin.IoTJobAbortCriteriaProperty>
- Enclosing interface:
CfnDeploymentPropsMixin.IoTJobAbortCriteriaProperty
@Stability(Stable)
public static final class CfnDeploymentPropsMixin.IoTJobAbortCriteriaProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeploymentPropsMixin.IoTJobAbortCriteriaProperty>
A builder for
CfnDeploymentPropsMixin.IoTJobAbortCriteriaProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnDeploymentPropsMixin.IoTJobAbortCriteriaProperty.getAction()build()Builds the configured instance.failureType(String failureType) Sets the value ofCfnDeploymentPropsMixin.IoTJobAbortCriteriaProperty.getFailureType()minNumberOfExecutedThings(Number minNumberOfExecutedThings) thresholdPercentage(Number thresholdPercentage)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
action
@Stability(Stable) public CfnDeploymentPropsMixin.IoTJobAbortCriteriaProperty.Builder action(String action) Sets the value ofCfnDeploymentPropsMixin.IoTJobAbortCriteriaProperty.getAction()- Parameters:
action- The action to perform when the criteria are met.- Returns:
this
-
failureType
@Stability(Stable) public CfnDeploymentPropsMixin.IoTJobAbortCriteriaProperty.Builder failureType(String failureType) Sets the value ofCfnDeploymentPropsMixin.IoTJobAbortCriteriaProperty.getFailureType()- Parameters:
failureType- The type of job deployment failure that can cancel a job.- Returns:
this
-
minNumberOfExecutedThings
@Stability(Stable) public CfnDeploymentPropsMixin.IoTJobAbortCriteriaProperty.Builder minNumberOfExecutedThings(Number minNumberOfExecutedThings) Sets the value ofCfnDeploymentPropsMixin.IoTJobAbortCriteriaProperty.getMinNumberOfExecutedThings()- Parameters:
minNumberOfExecutedThings- The minimum number of things that receive the configuration before the job can cancel.- Returns:
this
-
thresholdPercentage
@Stability(Stable) public CfnDeploymentPropsMixin.IoTJobAbortCriteriaProperty.Builder thresholdPercentage(Number thresholdPercentage) - Parameters:
thresholdPercentage- The minimum percentage offailureTypefailures that occur before the job can cancel. This parameter supports up to two digits after the decimal (for example, you can specify10.9or10.99, but not10.999).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDeploymentPropsMixin.IoTJobAbortCriteriaProperty>- Returns:
- a new instance of
CfnDeploymentPropsMixin.IoTJobAbortCriteriaProperty - Throws:
NullPointerException- if any required attribute was not provided
-