@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ComputeEnvironmentOrder extends Object implements Serializable, Cloneable, StructuredPojo
The order that compute environments are tried in for job placement within a queue. Compute environments are tried in
ascending order. For example, if two compute environments are associated with a job queue, the compute environment
with a lower order integer value is tried for job placement first. Compute environments must be in the
VALID
state before you can associate them with a job queue. All of the compute environments must be
either EC2 (EC2
or SPOT
) or Fargate (FARGATE
or FARGATE_SPOT
);
Amazon EC2 and Fargate compute environments can't be mixed.
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.
Constructor and Description |
---|
ComputeEnvironmentOrder() |
Modifier and Type | Method and Description |
---|---|
ComputeEnvironmentOrder |
clone() |
boolean |
equals(Object obj) |
String |
getComputeEnvironment()
The Amazon Resource Name (ARN) of the compute environment.
|
Integer |
getOrder()
The order of the compute environment.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setComputeEnvironment(String computeEnvironment)
The Amazon Resource Name (ARN) of the compute environment.
|
void |
setOrder(Integer order)
The order of the compute environment.
|
String |
toString()
Returns a string representation of this object.
|
ComputeEnvironmentOrder |
withComputeEnvironment(String computeEnvironment)
The Amazon Resource Name (ARN) of the compute environment.
|
ComputeEnvironmentOrder |
withOrder(Integer order)
The order of the compute environment.
|
public void setOrder(Integer order)
The order of the compute environment. Compute environments are tried in ascending order. For example, if two
compute environments are associated with a job queue, the compute environment with a lower order
integer value is tried for job placement first.
order
- The order of the compute environment. Compute environments are tried in ascending order. For example, if
two compute environments are associated with a job queue, the compute environment with a lower
order
integer value is tried for job placement first.public Integer getOrder()
The order of the compute environment. Compute environments are tried in ascending order. For example, if two
compute environments are associated with a job queue, the compute environment with a lower order
integer value is tried for job placement first.
order
integer value is tried for job placement first.public ComputeEnvironmentOrder withOrder(Integer order)
The order of the compute environment. Compute environments are tried in ascending order. For example, if two
compute environments are associated with a job queue, the compute environment with a lower order
integer value is tried for job placement first.
order
- The order of the compute environment. Compute environments are tried in ascending order. For example, if
two compute environments are associated with a job queue, the compute environment with a lower
order
integer value is tried for job placement first.public void setComputeEnvironment(String computeEnvironment)
The Amazon Resource Name (ARN) of the compute environment.
computeEnvironment
- The Amazon Resource Name (ARN) of the compute environment.public String getComputeEnvironment()
The Amazon Resource Name (ARN) of the compute environment.
public ComputeEnvironmentOrder withComputeEnvironment(String computeEnvironment)
The Amazon Resource Name (ARN) of the compute environment.
computeEnvironment
- The Amazon Resource Name (ARN) of the compute environment.public String toString()
toString
in class Object
Object.toString()
public ComputeEnvironmentOrder clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.