public CreateJobQueueRequest withComputeEnvironmentOrder(ComputeEnvironmentOrder... computeEnvironmentOrder) {
        if (this.computeEnvironmentOrder == null) {
            setComputeEnvironmentOrder(new java.util.ArrayList<ComputeEnvironmentOrder>(computeEnvironmentOrder.length));
        }
        for (ComputeEnvironmentOrder ele : computeEnvironmentOrder) {
            this.computeEnvironmentOrder.add(ele);
        }
        return this;
    }
<p>
The set of compute environments mapped to a job queue and their order relative to each other. The job scheduler
uses this parameter to determine which compute environment runs a specific job. Compute environments must be in
the <code>VALID</code> state before you can associate them with a job queue. You can associate up to three
compute environments with a job queue. 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>
<note>
<p>
All compute environments that are associated with a job queue must share the same architecture. Batch doesn't
support mixing compute environment architecture types in a single job queue.
</p>
</note>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setComputeEnvironmentOrder(java.util.Collection)} or
{@link #withComputeEnvironmentOrder(java.util.Collection)} if you want to override the existing values.
</p>

@param computeEnvironmentOrder
       The set of compute environments mapped to a job queue and their order relative to each other. The job
       scheduler uses this parameter to determine which compute environment runs a specific job. Compute
       environments must be in the <code>VALID</code> state before you can associate them with a job queue. You
       can associate up to three compute environments with a job queue. 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> <note>
       <p>
       All compute environments that are associated with a job queue must share the same architecture. Batch
       doesn't support mixing compute environment architecture types in a single job queue.
       </p>
@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