/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.batch.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* An object that represents the details for an Batch job queue. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class JobQueueDetail implements Serializable, Cloneable, StructuredPojo { /** ** The job queue name. *
*/ private String jobQueueName; /** ** The Amazon Resource Name (ARN) of the job queue. *
*/ private String jobQueueArn; /** *
* Describes the ability of the queue to accept new jobs. If the job queue state is ENABLED
, it can
* accept jobs. If the job queue state is DISABLED
, new jobs can't be added to the queue, but jobs
* already in the queue can finish.
*
* The Amazon Resource Name (ARN) of the scheduling policy. The format is
* aws:Partition:batch:Region:Account:scheduling-policy/Name
. For example,
* aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy
.
*
* The status of the job queue (for example, CREATING
or VALID
).
*
* A short, human-readable string to provide additional details for the current status of the job queue. *
*/ private String statusReason; /** *
* 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
. All of the compute environments
* must be either EC2 (EC2
or SPOT
) or Fargate (FARGATE
or
* FARGATE_SPOT
). EC2 and Fargate compute environments can't be mixed.
*
* The compute environments that are attached to the job queue and the order that job placement is preferred. * Compute environments are selected for job placement in ascending order. *
*/ private java.util.List* The tags that are applied to the job queue. For more information, see Tagging your Batch resources in * Batch User Guide. *
*/ private java.util.Map* The job queue name. *
* * @param jobQueueName * The job queue name. */ public void setJobQueueName(String jobQueueName) { this.jobQueueName = jobQueueName; } /** ** The job queue name. *
* * @return The job queue name. */ public String getJobQueueName() { return this.jobQueueName; } /** ** The job queue name. *
* * @param jobQueueName * The job queue name. * @return Returns a reference to this object so that method calls can be chained together. */ public JobQueueDetail withJobQueueName(String jobQueueName) { setJobQueueName(jobQueueName); return this; } /** ** The Amazon Resource Name (ARN) of the job queue. *
* * @param jobQueueArn * The Amazon Resource Name (ARN) of the job queue. */ public void setJobQueueArn(String jobQueueArn) { this.jobQueueArn = jobQueueArn; } /** ** The Amazon Resource Name (ARN) of the job queue. *
* * @return The Amazon Resource Name (ARN) of the job queue. */ public String getJobQueueArn() { return this.jobQueueArn; } /** ** The Amazon Resource Name (ARN) of the job queue. *
* * @param jobQueueArn * The Amazon Resource Name (ARN) of the job queue. * @return Returns a reference to this object so that method calls can be chained together. */ public JobQueueDetail withJobQueueArn(String jobQueueArn) { setJobQueueArn(jobQueueArn); return this; } /** *
* Describes the ability of the queue to accept new jobs. If the job queue state is ENABLED
, it can
* accept jobs. If the job queue state is DISABLED
, new jobs can't be added to the queue, but jobs
* already in the queue can finish.
*
ENABLED
, it
* can accept jobs. If the job queue state is DISABLED
, new jobs can't be added to the queue,
* but jobs already in the queue can finish.
* @see JQState
*/
public void setState(String state) {
this.state = state;
}
/**
*
* Describes the ability of the queue to accept new jobs. If the job queue state is ENABLED
, it can
* accept jobs. If the job queue state is DISABLED
, new jobs can't be added to the queue, but jobs
* already in the queue can finish.
*
ENABLED
, it
* can accept jobs. If the job queue state is DISABLED
, new jobs can't be added to the queue,
* but jobs already in the queue can finish.
* @see JQState
*/
public String getState() {
return this.state;
}
/**
*
* Describes the ability of the queue to accept new jobs. If the job queue state is ENABLED
, it can
* accept jobs. If the job queue state is DISABLED
, new jobs can't be added to the queue, but jobs
* already in the queue can finish.
*
ENABLED
, it
* can accept jobs. If the job queue state is DISABLED
, new jobs can't be added to the queue,
* but jobs already in the queue can finish.
* @return Returns a reference to this object so that method calls can be chained together.
* @see JQState
*/
public JobQueueDetail withState(String state) {
setState(state);
return this;
}
/**
*
* Describes the ability of the queue to accept new jobs. If the job queue state is ENABLED
, it can
* accept jobs. If the job queue state is DISABLED
, new jobs can't be added to the queue, but jobs
* already in the queue can finish.
*
ENABLED
, it
* can accept jobs. If the job queue state is DISABLED
, new jobs can't be added to the queue,
* but jobs already in the queue can finish.
* @see JQState
*/
public void setState(JQState state) {
withState(state);
}
/**
*
* Describes the ability of the queue to accept new jobs. If the job queue state is ENABLED
, it can
* accept jobs. If the job queue state is DISABLED
, new jobs can't be added to the queue, but jobs
* already in the queue can finish.
*
ENABLED
, it
* can accept jobs. If the job queue state is DISABLED
, new jobs can't be added to the queue,
* but jobs already in the queue can finish.
* @return Returns a reference to this object so that method calls can be chained together.
* @see JQState
*/
public JobQueueDetail withState(JQState state) {
this.state = state.toString();
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the scheduling policy. The format is
* aws:Partition:batch:Region:Account:scheduling-policy/Name
. For example,
* aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy
.
*
aws:Partition:batch:Region:Account:scheduling-policy/Name
. For
* example, aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy
.
*/
public void setSchedulingPolicyArn(String schedulingPolicyArn) {
this.schedulingPolicyArn = schedulingPolicyArn;
}
/**
*
* The Amazon Resource Name (ARN) of the scheduling policy. The format is
* aws:Partition:batch:Region:Account:scheduling-policy/Name
. For example,
* aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy
.
*
aws:Partition:batch:Region:Account:scheduling-policy/Name
. For
* example, aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy
.
*/
public String getSchedulingPolicyArn() {
return this.schedulingPolicyArn;
}
/**
*
* The Amazon Resource Name (ARN) of the scheduling policy. The format is
* aws:Partition:batch:Region:Account:scheduling-policy/Name
. For example,
* aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy
.
*
aws:Partition:batch:Region:Account:scheduling-policy/Name
. For
* example, aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public JobQueueDetail withSchedulingPolicyArn(String schedulingPolicyArn) {
setSchedulingPolicyArn(schedulingPolicyArn);
return this;
}
/**
*
* The status of the job queue (for example, CREATING
or VALID
).
*
CREATING
or VALID
).
* @see JQStatus
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* The status of the job queue (for example, CREATING
or VALID
).
*
CREATING
or VALID
).
* @see JQStatus
*/
public String getStatus() {
return this.status;
}
/**
*
* The status of the job queue (for example, CREATING
or VALID
).
*
CREATING
or VALID
).
* @return Returns a reference to this object so that method calls can be chained together.
* @see JQStatus
*/
public JobQueueDetail withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* The status of the job queue (for example, CREATING
or VALID
).
*
CREATING
or VALID
).
* @see JQStatus
*/
public void setStatus(JQStatus status) {
withStatus(status);
}
/**
*
* The status of the job queue (for example, CREATING
or VALID
).
*
CREATING
or VALID
).
* @return Returns a reference to this object so that method calls can be chained together.
* @see JQStatus
*/
public JobQueueDetail withStatus(JQStatus status) {
this.status = status.toString();
return this;
}
/**
* * A short, human-readable string to provide additional details for the current status of the job queue. *
* * @param statusReason * A short, human-readable string to provide additional details for the current status of the job queue. */ public void setStatusReason(String statusReason) { this.statusReason = statusReason; } /** ** A short, human-readable string to provide additional details for the current status of the job queue. *
* * @return A short, human-readable string to provide additional details for the current status of the job queue. */ public String getStatusReason() { return this.statusReason; } /** ** A short, human-readable string to provide additional details for the current status of the job queue. *
* * @param statusReason * A short, human-readable string to provide additional details for the current status of the job queue. * @return Returns a reference to this object so that method calls can be chained together. */ public JobQueueDetail withStatusReason(String statusReason) { setStatusReason(statusReason); return this; } /** *
* 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
. All of the compute environments
* must be either EC2 (EC2
or SPOT
) or Fargate (FARGATE
or
* FARGATE_SPOT
). EC2 and Fargate compute environments can't be mixed.
*
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
.
* All of the compute environments must be either EC2 (EC2
or SPOT
) or Fargate (
* FARGATE
or FARGATE_SPOT
). EC2 and Fargate compute environments can't be mixed.
*/
public void setPriority(Integer priority) {
this.priority = 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
. All of the compute environments
* must be either EC2 (EC2
or SPOT
) or Fargate (FARGATE
or
* FARGATE_SPOT
). EC2 and Fargate compute environments can't be mixed.
*
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
.
* All of the compute environments must be either EC2 (EC2
or SPOT
) or Fargate (
* FARGATE
or FARGATE_SPOT
). EC2 and Fargate compute environments can't be mixed.
*/
public Integer getPriority() {
return this.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
. All of the compute environments
* must be either EC2 (EC2
or SPOT
) or Fargate (FARGATE
or
* FARGATE_SPOT
). EC2 and Fargate compute environments can't be mixed.
*
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
.
* All of the compute environments must be either EC2 (EC2
or SPOT
) or Fargate (
* FARGATE
or FARGATE_SPOT
). EC2 and Fargate compute environments can't be mixed.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public JobQueueDetail withPriority(Integer priority) {
setPriority(priority);
return this;
}
/**
* * The compute environments that are attached to the job queue and the order that job placement is preferred. * Compute environments are selected for job placement in ascending order. *
* * @return The compute environments that are attached to the job queue and the order that job placement is * preferred. Compute environments are selected for job placement in ascending order. */ public java.util.List* The compute environments that are attached to the job queue and the order that job placement is preferred. * Compute environments are selected for job placement in ascending order. *
* * @param computeEnvironmentOrder * The compute environments that are attached to the job queue and the order that job placement is preferred. * Compute environments are selected for job placement in ascending order. */ public void setComputeEnvironmentOrder(java.util.Collection* The compute environments that are attached to the job queue and the order that job placement is preferred. * Compute environments are selected for job placement in ascending order. *
** NOTE: 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. *
* * @param computeEnvironmentOrder * The compute environments that are attached to the job queue and the order that job placement is preferred. * Compute environments are selected for job placement in ascending order. * @return Returns a reference to this object so that method calls can be chained together. */ public JobQueueDetail withComputeEnvironmentOrder(ComputeEnvironmentOrder... computeEnvironmentOrder) { if (this.computeEnvironmentOrder == null) { setComputeEnvironmentOrder(new java.util.ArrayList* The compute environments that are attached to the job queue and the order that job placement is preferred. * Compute environments are selected for job placement in ascending order. *
* * @param computeEnvironmentOrder * The compute environments that are attached to the job queue and the order that job placement is preferred. * Compute environments are selected for job placement in ascending order. * @return Returns a reference to this object so that method calls can be chained together. */ public JobQueueDetail withComputeEnvironmentOrder(java.util.Collection* The tags that are applied to the job queue. For more information, see Tagging your Batch resources in * Batch User Guide. *
* * @return The tags that are applied to the job queue. For more information, see Tagging your Batch * resources in Batch User Guide. */ public java.util.Map* The tags that are applied to the job queue. For more information, see Tagging your Batch resources in * Batch User Guide. *
* * @param tags * The tags that are applied to the job queue. For more information, see Tagging your Batch resources * in Batch User Guide. */ public void setTags(java.util.Map* The tags that are applied to the job queue. For more information, see Tagging your Batch resources in * Batch User Guide. *
* * @param tags * The tags that are applied to the job queue. For more information, see Tagging your Batch resources * in Batch User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public JobQueueDetail withTags(java.util.Map