Class CfnJobDefinition.TaskContainerDependencyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.batch.CfnJobDefinition.TaskContainerDependencyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnJobDefinition.TaskContainerDependencyProperty>
- Enclosing interface:
CfnJobDefinition.TaskContainerDependencyProperty
@Stability(Stable)
public static final class CfnJobDefinition.TaskContainerDependencyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnJobDefinition.TaskContainerDependencyProperty>
A builder for
CfnJobDefinition.TaskContainerDependencyProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnJobDefinition.TaskContainerDependencyProperty.getCondition()
containerName
(String containerName) Sets the value ofCfnJobDefinition.TaskContainerDependencyProperty.getContainerName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
condition
@Stability(Stable) public CfnJobDefinition.TaskContainerDependencyProperty.Builder condition(String condition) Sets the value ofCfnJobDefinition.TaskContainerDependencyProperty.getCondition()
- Parameters:
condition
- The dependency condition of the container. The following are the available conditions and their behavior:. This parameter is required.START
- This condition emulates the behavior of links and volumes today. It validates that a dependent container is started before permitting other containers to start.COMPLETE
- This condition validates that a dependent container runs to completion (exits) before permitting other containers to start. This can be useful for nonessential containers that run a script and then exit. This condition can't be set on an essential container.SUCCESS
- This condition is the same asCOMPLETE
, but it also requires that the container exits with a zero status. This condition can't be set on an essential container.
- Returns:
this
-
containerName
@Stability(Stable) public CfnJobDefinition.TaskContainerDependencyProperty.Builder containerName(String containerName) Sets the value ofCfnJobDefinition.TaskContainerDependencyProperty.getContainerName()
- Parameters:
containerName
- A unique identifier for the container. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnJobDefinition.TaskContainerDependencyProperty>
- Returns:
- a new instance of
CfnJobDefinition.TaskContainerDependencyProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-