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