Class CfnJobDefinitionPropsMixin.RetryStrategyProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.batch.CfnJobDefinitionPropsMixin.RetryStrategyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnJobDefinitionPropsMixin.RetryStrategyProperty>
- Enclosing interface:
CfnJobDefinitionPropsMixin.RetryStrategyProperty
@Stability(Stable)
public static final class CfnJobDefinitionPropsMixin.RetryStrategyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnJobDefinitionPropsMixin.RetryStrategyProperty>
A builder for
CfnJobDefinitionPropsMixin.RetryStrategyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnJobDefinitionPropsMixin.RetryStrategyProperty.getAttempts()build()Builds the configured instance.evaluateOnExit(List<? extends Object> evaluateOnExit) Sets the value ofCfnJobDefinitionPropsMixin.RetryStrategyProperty.getEvaluateOnExit()evaluateOnExit(IResolvable evaluateOnExit) Sets the value ofCfnJobDefinitionPropsMixin.RetryStrategyProperty.getEvaluateOnExit()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
attempts
@Stability(Stable) public CfnJobDefinitionPropsMixin.RetryStrategyProperty.Builder attempts(Number attempts) Sets the value ofCfnJobDefinitionPropsMixin.RetryStrategyProperty.getAttempts()- Parameters:
attempts- The number of times to move a job to theRUNNABLEstatus. You can specify between 1 and 10 attempts. If the value ofattemptsis greater than one, the job is retried on failure the same number of attempts as the value.- Returns:
this
-
evaluateOnExit
@Stability(Stable) public CfnJobDefinitionPropsMixin.RetryStrategyProperty.Builder evaluateOnExit(IResolvable evaluateOnExit) Sets the value ofCfnJobDefinitionPropsMixin.RetryStrategyProperty.getEvaluateOnExit()- Parameters:
evaluateOnExit- Array of up to 5 objects that specify the conditions where jobs are retried or failed. If this parameter is specified, then theattemptsparameter must also be specified. If none of the listed conditions match, then the job is retried.- Returns:
this
-
evaluateOnExit
@Stability(Stable) public CfnJobDefinitionPropsMixin.RetryStrategyProperty.Builder evaluateOnExit(List<? extends Object> evaluateOnExit) Sets the value ofCfnJobDefinitionPropsMixin.RetryStrategyProperty.getEvaluateOnExit()- Parameters:
evaluateOnExit- Array of up to 5 objects that specify the conditions where jobs are retried or failed. If this parameter is specified, then theattemptsparameter must also be specified. If none of the listed conditions match, then the job is retried.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnJobDefinitionPropsMixin.RetryStrategyProperty>- Returns:
- a new instance of
CfnJobDefinitionPropsMixin.RetryStrategyProperty - Throws:
NullPointerException- if any required attribute was not provided
-