Class CfnJobQueue.ServiceEnvironmentOrderProperty.Builder
java.lang.Object
software.amazon.awscdk.services.batch.CfnJobQueue.ServiceEnvironmentOrderProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnJobQueue.ServiceEnvironmentOrderProperty>
- Enclosing interface:
CfnJobQueue.ServiceEnvironmentOrderProperty
@Stability(Stable)
public static final class CfnJobQueue.ServiceEnvironmentOrderProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnJobQueue.ServiceEnvironmentOrderProperty>
A builder for
CfnJobQueue.ServiceEnvironmentOrderProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnJobQueue.ServiceEnvironmentOrderProperty.getOrder()serviceEnvironment(String serviceEnvironment) Sets the value ofCfnJobQueue.ServiceEnvironmentOrderProperty.getServiceEnvironment()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
order
Sets the value ofCfnJobQueue.ServiceEnvironmentOrderProperty.getOrder()- Parameters:
order- The order of the service environment. This parameter is required. Job queues with a higher priority are evaluated first when associated with the same service environment.- Returns:
this
-
serviceEnvironment
@Stability(Stable) public CfnJobQueue.ServiceEnvironmentOrderProperty.Builder serviceEnvironment(String serviceEnvironment) Sets the value ofCfnJobQueue.ServiceEnvironmentOrderProperty.getServiceEnvironment()- Parameters:
serviceEnvironment- The name or ARN of the service environment. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnJobQueue.ServiceEnvironmentOrderProperty>- Returns:
- a new instance of
CfnJobQueue.ServiceEnvironmentOrderProperty - Throws:
NullPointerException- if any required attribute was not provided
-