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