Class CfnJobQueue.ComputeEnvironmentOrderProperty.Builder
java.lang.Object
software.amazon.awscdk.services.batch.CfnJobQueue.ComputeEnvironmentOrderProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnJobQueue.ComputeEnvironmentOrderProperty>
- Enclosing interface:
CfnJobQueue.ComputeEnvironmentOrderProperty
@Stability(Stable)
public static final class CfnJobQueue.ComputeEnvironmentOrderProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnJobQueue.ComputeEnvironmentOrderProperty>
A builder for
CfnJobQueue.ComputeEnvironmentOrderProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.computeEnvironment
(String computeEnvironment) Sets the value ofCfnJobQueue.ComputeEnvironmentOrderProperty.getComputeEnvironment()
Sets the value ofCfnJobQueue.ComputeEnvironmentOrderProperty.getOrder()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
computeEnvironment
@Stability(Stable) public CfnJobQueue.ComputeEnvironmentOrderProperty.Builder computeEnvironment(String computeEnvironment) Sets the value ofCfnJobQueue.ComputeEnvironmentOrderProperty.getComputeEnvironment()
- Parameters:
computeEnvironment
- The Amazon Resource Name (ARN) of the compute environment. This parameter is required.- Returns:
this
-
order
Sets the value ofCfnJobQueue.ComputeEnvironmentOrderProperty.getOrder()
- Parameters:
order
- The order of the compute environment. This parameter is required. Compute environments are tried in ascending order. For example, if two compute environments are associated with a job queue, the compute environment with a lowerorder
integer value is tried for job placement first.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnJobQueue.ComputeEnvironmentOrderProperty>
- Returns:
- a new instance of
CfnJobQueue.ComputeEnvironmentOrderProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-