Class CfnJobDefinition.RetryStrategyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.batch.CfnJobDefinition.RetryStrategyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnJobDefinition.RetryStrategyProperty>
- Enclosing interface:
- CfnJobDefinition.RetryStrategyProperty
@Stability(Stable)
public static final class CfnJobDefinition.RetryStrategyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnJobDefinition.RetryStrategyProperty>
A builder for
CfnJobDefinition.RetryStrategyProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnJobDefinition.RetryStrategyProperty.getAttempts()
build()
Builds the configured instance.evaluateOnExit
(List<? extends Object> evaluateOnExit) Sets the value ofCfnJobDefinition.RetryStrategyProperty.getEvaluateOnExit()
evaluateOnExit
(IResolvable evaluateOnExit) Sets the value ofCfnJobDefinition.RetryStrategyProperty.getEvaluateOnExit()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
attempts
Sets the value ofCfnJobDefinition.RetryStrategyProperty.getAttempts()
- Parameters:
attempts
- The number of times to move a job to theRUNNABLE
status. You can specify between 1 and 10 attempts. If the value ofattempts
is greater than one, the job is retried on failure the same number of attempts as the value.- Returns:
this
-
evaluateOnExit
@Stability(Stable) public CfnJobDefinition.RetryStrategyProperty.Builder evaluateOnExit(IResolvable evaluateOnExit) Sets the value ofCfnJobDefinition.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 theattempts
parameter must also be specified. If none of the listed conditions match, then the job is retried.- Returns:
this
-
evaluateOnExit
@Stability(Stable) public CfnJobDefinition.RetryStrategyProperty.Builder evaluateOnExit(List<? extends Object> evaluateOnExit) Sets the value ofCfnJobDefinition.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 theattempts
parameter 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:
build
in interfacesoftware.amazon.jsii.Builder<CfnJobDefinition.RetryStrategyProperty>
- Returns:
- a new instance of
CfnJobDefinition.RetryStrategyProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-