Class JobQueueProps.Builder
java.lang.Object
software.amazon.awscdk.services.batch.JobQueueProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<JobQueueProps>
- Enclosing interface:
- JobQueueProps
@Stability(Experimental)
public static final class JobQueueProps.Builder
extends Object
implements software.amazon.jsii.Builder<JobQueueProps>
A builder for
JobQueueProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.computeEnvironments
(List<? extends JobQueueComputeEnvironment> computeEnvironments) Sets the value ofJobQueueProps.getComputeEnvironments()
Sets the value ofJobQueueProps.getEnabled()
jobQueueName
(String jobQueueName) Sets the value ofJobQueueProps.getJobQueueName()
Sets the value ofJobQueueProps.getPriority()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
computeEnvironments
@Stability(Experimental) public JobQueueProps.Builder computeEnvironments(List<? extends JobQueueComputeEnvironment> computeEnvironments) Sets the value ofJobQueueProps.getComputeEnvironments()
- Parameters:
computeEnvironments
- The set of compute environments mapped to a job queue and their order relative to each other. This parameter is required. The job scheduler uses this parameter to determine which compute environment should execute a given job. Compute environments must be in the VALID state before you can associate them with a job queue. You can associate up to three compute environments with a job queue.- Returns:
this
-
enabled
Sets the value ofJobQueueProps.getEnabled()
- Parameters:
enabled
- The state of the job queue. If set to true, it is able to accept jobs.- Returns:
this
-
jobQueueName
Sets the value ofJobQueueProps.getJobQueueName()
- Parameters:
jobQueueName
- A name for the job queue. Up to 128 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.- Returns:
this
-
priority
Sets the value ofJobQueueProps.getPriority()
- Parameters:
priority
- The priority of the job queue. Job queues with a higher priority (or a higher integer value for the priority parameter) are evaluated first when associated with the same compute environment. Priority is determined in descending order, for example, a job queue with a priority value of 10 is given scheduling preference over a job queue with a priority value of 1.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<JobQueueProps>
- Returns:
- a new instance of
JobQueueProps
- Throws:
NullPointerException
- if any required attribute was not provided
-