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 Details

    • Builder

      public Builder()
  • Method Details

    • computeEnvironments

      @Stability(Experimental) public JobQueueProps.Builder computeEnvironments(List<? extends JobQueueComputeEnvironment> computeEnvironments)
      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

      @Stability(Experimental) public JobQueueProps.Builder enabled(Boolean enabled)
      Sets the value of JobQueueProps.getEnabled()
      Parameters:
      enabled - The state of the job queue. If set to true, it is able to accept jobs.
      Returns:
      this
    • jobQueueName

      @Stability(Experimental) public JobQueueProps.Builder jobQueueName(String jobQueueName)
      Parameters:
      jobQueueName - A name for the job queue. Up to 128 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.
      Returns:
      this
    • priority

      @Stability(Experimental) public JobQueueProps.Builder priority(Number priority)
      Sets the value of JobQueueProps.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

      @Stability(Experimental) public JobQueueProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<JobQueueProps>
      Returns:
      a new instance of JobQueueProps
      Throws:
      NullPointerException - if any required attribute was not provided