public CreateJobQueueRequest withPriority(Integer priority) {
        setPriority(priority);
        return this;
    }
<p>
The priority of the job queue. Job queues with a higher priority (or a higher integer value for the
<code>priority</code> 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 <code>10</code> is given
scheduling preference over a job queue with a priority value of <code>1</code>. All of the compute environments
must be either EC2 (<code>EC2</code> or <code>SPOT</code>) or Fargate (<code>FARGATE</code> or
<code>FARGATE_SPOT</code>); EC2 and Fargate compute environments can't be mixed.
</p>

@param priority
       The priority of the job queue. Job queues with a higher priority (or a higher integer value for the
       <code>priority</code> 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
       <code>10</code> is given scheduling preference over a job queue with a priority value of <code>1</code>.
       All of the compute environments must be either EC2 (<code>EC2</code> or <code>SPOT</code>) or Fargate (
       <code>FARGATE</code> or <code>FARGATE_SPOT</code>); EC2 and Fargate compute environments can't be mixed.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-batch/src/main/java/com/amazonaws/services/batch/model/CreateJobQueueRequest.java