Class CfnJobTemplate.RetryCriteriaProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnJobTemplate.RetryCriteriaProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnJobTemplate.RetryCriteriaProperty>
- Enclosing interface:
CfnJobTemplate.RetryCriteriaProperty
@Stability(Stable)
public static final class CfnJobTemplate.RetryCriteriaProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnJobTemplate.RetryCriteriaProperty>
A builder for
CfnJobTemplate.RetryCriteriaProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.failureType
(String failureType) Sets the value ofCfnJobTemplate.RetryCriteriaProperty.getFailureType()
numberOfRetries
(Number numberOfRetries) Sets the value ofCfnJobTemplate.RetryCriteriaProperty.getNumberOfRetries()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
failureType
@Stability(Stable) public CfnJobTemplate.RetryCriteriaProperty.Builder failureType(String failureType) Sets the value ofCfnJobTemplate.RetryCriteriaProperty.getFailureType()
- Parameters:
failureType
- The type of job execution failures that can initiate a job retry.- Returns:
this
-
numberOfRetries
@Stability(Stable) public CfnJobTemplate.RetryCriteriaProperty.Builder numberOfRetries(Number numberOfRetries) Sets the value ofCfnJobTemplate.RetryCriteriaProperty.getNumberOfRetries()
- Parameters:
numberOfRetries
- The number of retries allowed for a failure type for the job.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnJobTemplate.RetryCriteriaProperty>
- Returns:
- a new instance of
CfnJobTemplate.RetryCriteriaProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-