Class CfnJobDefinition.EvaluateOnExitProperty.Builder
java.lang.Object
software.amazon.awscdk.services.batch.CfnJobDefinition.EvaluateOnExitProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnJobDefinition.EvaluateOnExitProperty>
- Enclosing interface:
- CfnJobDefinition.EvaluateOnExitProperty
@Stability(Stable)
public static final class CfnJobDefinition.EvaluateOnExitProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnJobDefinition.EvaluateOnExitProperty>
A builder for
CfnJobDefinition.EvaluateOnExitProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnJobDefinition.EvaluateOnExitProperty.getAction()build()Builds the configured instance.onExitCode(String onExitCode) Sets the value ofCfnJobDefinition.EvaluateOnExitProperty.getOnExitCode()Sets the value ofCfnJobDefinition.EvaluateOnExitProperty.getOnReason()onStatusReason(String onStatusReason) Sets the value ofCfnJobDefinition.EvaluateOnExitProperty.getOnStatusReason()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
action
Sets the value ofCfnJobDefinition.EvaluateOnExitProperty.getAction()- Parameters:
action- Specifies the action to take if all of the specified conditions (onStatusReason,onReason, andonExitCode) are met. This parameter is required. The values aren't case sensitive.- Returns:
this
-
onExitCode
@Stability(Stable) public CfnJobDefinition.EvaluateOnExitProperty.Builder onExitCode(String onExitCode) Sets the value ofCfnJobDefinition.EvaluateOnExitProperty.getOnExitCode()- Parameters:
onExitCode- Contains a glob pattern to match against the decimal representation of theExitCodereturned for a job. The pattern can be up to 512 characters long. It can contain only numbers, and can end with an asterisk (*) so that only the start of the string needs to be an exact match.The string can contain up to 512 characters.
- Returns:
this
-
onReason
Sets the value ofCfnJobDefinition.EvaluateOnExitProperty.getOnReason()- Parameters:
onReason- Contains a glob pattern to match against theReasonreturned for a job. The pattern can contain up to 512 characters. It can contain letters, numbers, periods (.), colons (:), and white space (including spaces and tabs). It can optionally end with an asterisk (*) so that only the start of the string needs to be an exact match.- Returns:
this
-
onStatusReason
@Stability(Stable) public CfnJobDefinition.EvaluateOnExitProperty.Builder onStatusReason(String onStatusReason) Sets the value ofCfnJobDefinition.EvaluateOnExitProperty.getOnStatusReason()- Parameters:
onStatusReason- Contains a glob pattern to match against theStatusReasonreturned for a job. The pattern can contain up to 512 characters. It can contain letters, numbers, periods (.), colons (:), and white spaces (including spaces or tabs). It can optionally end with an asterisk (*) so that only the start of the string needs to be an exact match.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnJobDefinition.EvaluateOnExitProperty>- Returns:
- a new instance of
CfnJobDefinition.EvaluateOnExitProperty - Throws:
NullPointerException- if any required attribute was not provided
-