com.amazonaws.services.batch.model.ComputeEnvironmentDetail Maven / Gradle / Ivy
Show all versions of aws-java-sdk-batch Show documentation
/*
* Copyright 2019-2024 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 an Batch compute environment.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ComputeEnvironmentDetail implements Serializable, Cloneable, StructuredPojo {
/**
*
* The name of the compute environment. It can be up to 128 characters long. It can contain uppercase and lowercase
* letters, numbers, hyphens (-), and underscores (_).
*
*/
private String computeEnvironmentName;
/**
*
* The Amazon Resource Name (ARN) of the compute environment.
*
*/
private String computeEnvironmentArn;
/**
*
* The maximum number of VCPUs expected to be used for an unmanaged compute environment.
*
*/
private Integer unmanagedvCpus;
/**
*
* The Amazon Resource Name (ARN) of the underlying Amazon ECS cluster that the compute environment uses.
*
*/
private String ecsClusterArn;
/**
*
* The tags applied to the compute environment.
*
*/
private java.util.Map tags;
/**
*
* The type of the compute environment: MANAGED
or UNMANAGED
. For more information, see Compute environments in
* the Batch User Guide.
*
*/
private String type;
/**
*
* The state of the compute environment. The valid values are ENABLED
or DISABLED
.
*
*
* If the state is ENABLED
, then the Batch scheduler can attempt to place jobs from an associated job
* queue on the compute resources within the environment. If the compute environment is managed, then it can scale
* its instances out or in automatically based on the job queue demand.
*
*
* If the state is DISABLED
, then the Batch scheduler doesn't attempt to place jobs within the
* environment. Jobs in a STARTING
or RUNNING
state continue to progress normally. Managed
* compute environments in the DISABLED
state don't scale out.
*
*
*
* Compute environments in a DISABLED
state may continue to incur billing charges. To prevent
* additional charges, turn off and then delete the compute environment. For more information, see State in the Batch User Guide.
*
*
*
* When an instance is idle, the instance scales down to the minvCpus
value. However, the instance size
* doesn't change. For example, consider a c5.8xlarge
instance with a minvCpus
value of
* 4
and a desiredvCpus
value of 36
. This instance doesn't scale down to a
* c5.large
instance.
*
*/
private String state;
/**
*
* The current status of the compute environment (for example, CREATING
or VALID
).
*
*/
private String status;
/**
*
* A short, human-readable string to provide additional details for the current status of the compute environment.
*
*/
private String statusReason;
/**
*
* The compute resources defined for the compute environment. For more information, see Compute environments in
* the Batch User Guide.
*
*/
private ComputeResource computeResources;
/**
*
* The service role that's associated with the compute environment that allows Batch to make calls to Amazon Web
* Services API operations on your behalf. For more information, see Batch service IAM role in the
* Batch User Guide.
*
*/
private String serviceRole;
/**
*
* Specifies the infrastructure update policy for the compute environment. For more information about infrastructure
* updates, see Updating compute
* environments in the Batch User Guide.
*
*/
private UpdatePolicy updatePolicy;
/**
*
* The configuration for the Amazon EKS cluster that supports the Batch compute environment. Only specify this
* parameter if the containerOrchestrationType
is EKS
.
*
*/
private EksConfiguration eksConfiguration;
/**
*
* The orchestration type of the compute environment. The valid values are ECS
(default) or
* EKS
.
*
*/
private String containerOrchestrationType;
/**
*
* Unique identifier for the compute environment.
*
*/
private String uuid;
/**
*
* The name of the compute environment. It can be up to 128 characters long. It can contain uppercase and lowercase
* letters, numbers, hyphens (-), and underscores (_).
*
*
* @param computeEnvironmentName
* The name of the compute environment. It can be up to 128 characters long. It can contain uppercase and
* lowercase letters, numbers, hyphens (-), and underscores (_).
*/
public void setComputeEnvironmentName(String computeEnvironmentName) {
this.computeEnvironmentName = computeEnvironmentName;
}
/**
*
* The name of the compute environment. It can be up to 128 characters long. It can contain uppercase and lowercase
* letters, numbers, hyphens (-), and underscores (_).
*
*
* @return The name of the compute environment. It can be up to 128 characters long. It can contain uppercase and
* lowercase letters, numbers, hyphens (-), and underscores (_).
*/
public String getComputeEnvironmentName() {
return this.computeEnvironmentName;
}
/**
*
* The name of the compute environment. It can be up to 128 characters long. It can contain uppercase and lowercase
* letters, numbers, hyphens (-), and underscores (_).
*
*
* @param computeEnvironmentName
* The name of the compute environment. It can be up to 128 characters long. It can contain uppercase and
* lowercase letters, numbers, hyphens (-), and underscores (_).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ComputeEnvironmentDetail withComputeEnvironmentName(String computeEnvironmentName) {
setComputeEnvironmentName(computeEnvironmentName);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the compute environment.
*
*
* @param computeEnvironmentArn
* The Amazon Resource Name (ARN) of the compute environment.
*/
public void setComputeEnvironmentArn(String computeEnvironmentArn) {
this.computeEnvironmentArn = computeEnvironmentArn;
}
/**
*
* The Amazon Resource Name (ARN) of the compute environment.
*
*
* @return The Amazon Resource Name (ARN) of the compute environment.
*/
public String getComputeEnvironmentArn() {
return this.computeEnvironmentArn;
}
/**
*
* The Amazon Resource Name (ARN) of the compute environment.
*
*
* @param computeEnvironmentArn
* The Amazon Resource Name (ARN) of the compute environment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ComputeEnvironmentDetail withComputeEnvironmentArn(String computeEnvironmentArn) {
setComputeEnvironmentArn(computeEnvironmentArn);
return this;
}
/**
*
* The maximum number of VCPUs expected to be used for an unmanaged compute environment.
*
*
* @param unmanagedvCpus
* The maximum number of VCPUs expected to be used for an unmanaged compute environment.
*/
public void setUnmanagedvCpus(Integer unmanagedvCpus) {
this.unmanagedvCpus = unmanagedvCpus;
}
/**
*
* The maximum number of VCPUs expected to be used for an unmanaged compute environment.
*
*
* @return The maximum number of VCPUs expected to be used for an unmanaged compute environment.
*/
public Integer getUnmanagedvCpus() {
return this.unmanagedvCpus;
}
/**
*
* The maximum number of VCPUs expected to be used for an unmanaged compute environment.
*
*
* @param unmanagedvCpus
* The maximum number of VCPUs expected to be used for an unmanaged compute environment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ComputeEnvironmentDetail withUnmanagedvCpus(Integer unmanagedvCpus) {
setUnmanagedvCpus(unmanagedvCpus);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the underlying Amazon ECS cluster that the compute environment uses.
*
*
* @param ecsClusterArn
* The Amazon Resource Name (ARN) of the underlying Amazon ECS cluster that the compute environment uses.
*/
public void setEcsClusterArn(String ecsClusterArn) {
this.ecsClusterArn = ecsClusterArn;
}
/**
*
* The Amazon Resource Name (ARN) of the underlying Amazon ECS cluster that the compute environment uses.
*
*
* @return The Amazon Resource Name (ARN) of the underlying Amazon ECS cluster that the compute environment uses.
*/
public String getEcsClusterArn() {
return this.ecsClusterArn;
}
/**
*
* The Amazon Resource Name (ARN) of the underlying Amazon ECS cluster that the compute environment uses.
*
*
* @param ecsClusterArn
* The Amazon Resource Name (ARN) of the underlying Amazon ECS cluster that the compute environment uses.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ComputeEnvironmentDetail withEcsClusterArn(String ecsClusterArn) {
setEcsClusterArn(ecsClusterArn);
return this;
}
/**
*
* The tags applied to the compute environment.
*
*
* @return The tags applied to the compute environment.
*/
public java.util.Map getTags() {
return tags;
}
/**
*
* The tags applied to the compute environment.
*
*
* @param tags
* The tags applied to the compute environment.
*/
public void setTags(java.util.Map tags) {
this.tags = tags;
}
/**
*
* The tags applied to the compute environment.
*
*
* @param tags
* The tags applied to the compute environment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ComputeEnvironmentDetail withTags(java.util.Map tags) {
setTags(tags);
return this;
}
/**
* Add a single Tags entry
*
* @see ComputeEnvironmentDetail#withTags
* @returns a reference to this object so that method calls can be chained together.
*/
public ComputeEnvironmentDetail addTagsEntry(String key, String value) {
if (null == this.tags) {
this.tags = new java.util.HashMap();
}
if (this.tags.containsKey(key))
throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
this.tags.put(key, value);
return this;
}
/**
* Removes all the entries added into Tags.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ComputeEnvironmentDetail clearTagsEntries() {
this.tags = null;
return this;
}
/**
*
* The type of the compute environment: MANAGED
or UNMANAGED
. For more information, see Compute environments in
* the Batch User Guide.
*
*
* @param type
* The type of the compute environment: MANAGED
or UNMANAGED
. For more information,
* see Compute
* environments in the Batch User Guide.
* @see CEType
*/
public void setType(String type) {
this.type = type;
}
/**
*
* The type of the compute environment: MANAGED
or UNMANAGED
. For more information, see Compute environments in
* the Batch User Guide.
*
*
* @return The type of the compute environment: MANAGED
or UNMANAGED
. For more
* information, see Compute
* environments in the Batch User Guide.
* @see CEType
*/
public String getType() {
return this.type;
}
/**
*
* The type of the compute environment: MANAGED
or UNMANAGED
. For more information, see Compute environments in
* the Batch User Guide.
*
*
* @param type
* The type of the compute environment: MANAGED
or UNMANAGED
. For more information,
* see Compute
* environments in the Batch User Guide.
* @return Returns a reference to this object so that method calls can be chained together.
* @see CEType
*/
public ComputeEnvironmentDetail withType(String type) {
setType(type);
return this;
}
/**
*
* The type of the compute environment: MANAGED
or UNMANAGED
. For more information, see Compute environments in
* the Batch User Guide.
*
*
* @param type
* The type of the compute environment: MANAGED
or UNMANAGED
. For more information,
* see Compute
* environments in the Batch User Guide.
* @see CEType
*/
public void setType(CEType type) {
withType(type);
}
/**
*
* The type of the compute environment: MANAGED
or UNMANAGED
. For more information, see Compute environments in
* the Batch User Guide.
*
*
* @param type
* The type of the compute environment: MANAGED
or UNMANAGED
. For more information,
* see Compute
* environments in the Batch User Guide.
* @return Returns a reference to this object so that method calls can be chained together.
* @see CEType
*/
public ComputeEnvironmentDetail withType(CEType type) {
this.type = type.toString();
return this;
}
/**
*
* The state of the compute environment. The valid values are ENABLED
or DISABLED
.
*
*
* If the state is ENABLED
, then the Batch scheduler can attempt to place jobs from an associated job
* queue on the compute resources within the environment. If the compute environment is managed, then it can scale
* its instances out or in automatically based on the job queue demand.
*
*
* If the state is DISABLED
, then the Batch scheduler doesn't attempt to place jobs within the
* environment. Jobs in a STARTING
or RUNNING
state continue to progress normally. Managed
* compute environments in the DISABLED
state don't scale out.
*
*
*
* Compute environments in a DISABLED
state may continue to incur billing charges. To prevent
* additional charges, turn off and then delete the compute environment. For more information, see State in the Batch User Guide.
*
*
*
* When an instance is idle, the instance scales down to the minvCpus
value. However, the instance size
* doesn't change. For example, consider a c5.8xlarge
instance with a minvCpus
value of
* 4
and a desiredvCpus
value of 36
. This instance doesn't scale down to a
* c5.large
instance.
*
*
* @param state
* The state of the compute environment. The valid values are ENABLED
or DISABLED
* .
*
* If the state is ENABLED
, then the Batch scheduler can attempt to place jobs from an
* associated job queue on the compute resources within the environment. If the compute environment is
* managed, then it can scale its instances out or in automatically based on the job queue demand.
*
*
* If the state is DISABLED
, then the Batch scheduler doesn't attempt to place jobs within the
* environment. Jobs in a STARTING
or RUNNING
state continue to progress normally.
* Managed compute environments in the DISABLED
state don't scale out.
*
*
*
* Compute environments in a DISABLED
state may continue to incur billing charges. To prevent
* additional charges, turn off and then delete the compute environment. For more information, see State in the Batch User Guide.
*
*
*
* When an instance is idle, the instance scales down to the minvCpus
value. However, the
* instance size doesn't change. For example, consider a c5.8xlarge
instance with a
* minvCpus
value of 4
and a desiredvCpus
value of 36
.
* This instance doesn't scale down to a c5.large
instance.
* @see CEState
*/
public void setState(String state) {
this.state = state;
}
/**
*
* The state of the compute environment. The valid values are ENABLED
or DISABLED
.
*
*
* If the state is ENABLED
, then the Batch scheduler can attempt to place jobs from an associated job
* queue on the compute resources within the environment. If the compute environment is managed, then it can scale
* its instances out or in automatically based on the job queue demand.
*
*
* If the state is DISABLED
, then the Batch scheduler doesn't attempt to place jobs within the
* environment. Jobs in a STARTING
or RUNNING
state continue to progress normally. Managed
* compute environments in the DISABLED
state don't scale out.
*
*
*
* Compute environments in a DISABLED
state may continue to incur billing charges. To prevent
* additional charges, turn off and then delete the compute environment. For more information, see State in the Batch User Guide.
*
*
*
* When an instance is idle, the instance scales down to the minvCpus
value. However, the instance size
* doesn't change. For example, consider a c5.8xlarge
instance with a minvCpus
value of
* 4
and a desiredvCpus
value of 36
. This instance doesn't scale down to a
* c5.large
instance.
*
*
* @return The state of the compute environment. The valid values are ENABLED
or DISABLED
* .
*
* If the state is ENABLED
, then the Batch scheduler can attempt to place jobs from an
* associated job queue on the compute resources within the environment. If the compute environment is
* managed, then it can scale its instances out or in automatically based on the job queue demand.
*
*
* If the state is DISABLED
, then the Batch scheduler doesn't attempt to place jobs within the
* environment. Jobs in a STARTING
or RUNNING
state continue to progress normally.
* Managed compute environments in the DISABLED
state don't scale out.
*
*
*
* Compute environments in a DISABLED
state may continue to incur billing charges. To prevent
* additional charges, turn off and then delete the compute environment. For more information, see State in the Batch User Guide.
*
*
*
* When an instance is idle, the instance scales down to the minvCpus
value. However, the
* instance size doesn't change. For example, consider a c5.8xlarge
instance with a
* minvCpus
value of 4
and a desiredvCpus
value of 36
.
* This instance doesn't scale down to a c5.large
instance.
* @see CEState
*/
public String getState() {
return this.state;
}
/**
*
* The state of the compute environment. The valid values are ENABLED
or DISABLED
.
*
*
* If the state is ENABLED
, then the Batch scheduler can attempt to place jobs from an associated job
* queue on the compute resources within the environment. If the compute environment is managed, then it can scale
* its instances out or in automatically based on the job queue demand.
*
*
* If the state is DISABLED
, then the Batch scheduler doesn't attempt to place jobs within the
* environment. Jobs in a STARTING
or RUNNING
state continue to progress normally. Managed
* compute environments in the DISABLED
state don't scale out.
*
*
*
* Compute environments in a DISABLED
state may continue to incur billing charges. To prevent
* additional charges, turn off and then delete the compute environment. For more information, see State in the Batch User Guide.
*
*
*
* When an instance is idle, the instance scales down to the minvCpus
value. However, the instance size
* doesn't change. For example, consider a c5.8xlarge
instance with a minvCpus
value of
* 4
and a desiredvCpus
value of 36
. This instance doesn't scale down to a
* c5.large
instance.
*
*
* @param state
* The state of the compute environment. The valid values are ENABLED
or DISABLED
* .
*
* If the state is ENABLED
, then the Batch scheduler can attempt to place jobs from an
* associated job queue on the compute resources within the environment. If the compute environment is
* managed, then it can scale its instances out or in automatically based on the job queue demand.
*
*
* If the state is DISABLED
, then the Batch scheduler doesn't attempt to place jobs within the
* environment. Jobs in a STARTING
or RUNNING
state continue to progress normally.
* Managed compute environments in the DISABLED
state don't scale out.
*
*
*
* Compute environments in a DISABLED
state may continue to incur billing charges. To prevent
* additional charges, turn off and then delete the compute environment. For more information, see State in the Batch User Guide.
*
*
*
* When an instance is idle, the instance scales down to the minvCpus
value. However, the
* instance size doesn't change. For example, consider a c5.8xlarge
instance with a
* minvCpus
value of 4
and a desiredvCpus
value of 36
.
* This instance doesn't scale down to a c5.large
instance.
* @return Returns a reference to this object so that method calls can be chained together.
* @see CEState
*/
public ComputeEnvironmentDetail withState(String state) {
setState(state);
return this;
}
/**
*
* The state of the compute environment. The valid values are ENABLED
or DISABLED
.
*
*
* If the state is ENABLED
, then the Batch scheduler can attempt to place jobs from an associated job
* queue on the compute resources within the environment. If the compute environment is managed, then it can scale
* its instances out or in automatically based on the job queue demand.
*
*
* If the state is DISABLED
, then the Batch scheduler doesn't attempt to place jobs within the
* environment. Jobs in a STARTING
or RUNNING
state continue to progress normally. Managed
* compute environments in the DISABLED
state don't scale out.
*
*
*
* Compute environments in a DISABLED
state may continue to incur billing charges. To prevent
* additional charges, turn off and then delete the compute environment. For more information, see State in the Batch User Guide.
*
*
*
* When an instance is idle, the instance scales down to the minvCpus
value. However, the instance size
* doesn't change. For example, consider a c5.8xlarge
instance with a minvCpus
value of
* 4
and a desiredvCpus
value of 36
. This instance doesn't scale down to a
* c5.large
instance.
*
*
* @param state
* The state of the compute environment. The valid values are ENABLED
or DISABLED
* .
*
* If the state is ENABLED
, then the Batch scheduler can attempt to place jobs from an
* associated job queue on the compute resources within the environment. If the compute environment is
* managed, then it can scale its instances out or in automatically based on the job queue demand.
*
*
* If the state is DISABLED
, then the Batch scheduler doesn't attempt to place jobs within the
* environment. Jobs in a STARTING
or RUNNING
state continue to progress normally.
* Managed compute environments in the DISABLED
state don't scale out.
*
*
*
* Compute environments in a DISABLED
state may continue to incur billing charges. To prevent
* additional charges, turn off and then delete the compute environment. For more information, see State in the Batch User Guide.
*
*
*
* When an instance is idle, the instance scales down to the minvCpus
value. However, the
* instance size doesn't change. For example, consider a c5.8xlarge
instance with a
* minvCpus
value of 4
and a desiredvCpus
value of 36
.
* This instance doesn't scale down to a c5.large
instance.
* @see CEState
*/
public void setState(CEState state) {
withState(state);
}
/**
*
* The state of the compute environment. The valid values are ENABLED
or DISABLED
.
*
*
* If the state is ENABLED
, then the Batch scheduler can attempt to place jobs from an associated job
* queue on the compute resources within the environment. If the compute environment is managed, then it can scale
* its instances out or in automatically based on the job queue demand.
*
*
* If the state is DISABLED
, then the Batch scheduler doesn't attempt to place jobs within the
* environment. Jobs in a STARTING
or RUNNING
state continue to progress normally. Managed
* compute environments in the DISABLED
state don't scale out.
*
*
*
* Compute environments in a DISABLED
state may continue to incur billing charges. To prevent
* additional charges, turn off and then delete the compute environment. For more information, see State in the Batch User Guide.
*
*
*
* When an instance is idle, the instance scales down to the minvCpus
value. However, the instance size
* doesn't change. For example, consider a c5.8xlarge
instance with a minvCpus
value of
* 4
and a desiredvCpus
value of 36
. This instance doesn't scale down to a
* c5.large
instance.
*
*
* @param state
* The state of the compute environment. The valid values are ENABLED
or DISABLED
* .
*
* If the state is ENABLED
, then the Batch scheduler can attempt to place jobs from an
* associated job queue on the compute resources within the environment. If the compute environment is
* managed, then it can scale its instances out or in automatically based on the job queue demand.
*
*
* If the state is DISABLED
, then the Batch scheduler doesn't attempt to place jobs within the
* environment. Jobs in a STARTING
or RUNNING
state continue to progress normally.
* Managed compute environments in the DISABLED
state don't scale out.
*
*
*
* Compute environments in a DISABLED
state may continue to incur billing charges. To prevent
* additional charges, turn off and then delete the compute environment. For more information, see State in the Batch User Guide.
*
*
*
* When an instance is idle, the instance scales down to the minvCpus
value. However, the
* instance size doesn't change. For example, consider a c5.8xlarge
instance with a
* minvCpus
value of 4
and a desiredvCpus
value of 36
.
* This instance doesn't scale down to a c5.large
instance.
* @return Returns a reference to this object so that method calls can be chained together.
* @see CEState
*/
public ComputeEnvironmentDetail withState(CEState state) {
this.state = state.toString();
return this;
}
/**
*
* The current status of the compute environment (for example, CREATING
or VALID
).
*
*
* @param status
* The current status of the compute environment (for example, CREATING
or VALID
).
* @see CEStatus
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* The current status of the compute environment (for example, CREATING
or VALID
).
*
*
* @return The current status of the compute environment (for example, CREATING
or VALID
).
* @see CEStatus
*/
public String getStatus() {
return this.status;
}
/**
*
* The current status of the compute environment (for example, CREATING
or VALID
).
*
*
* @param status
* The current status of the compute environment (for example, CREATING
or VALID
).
* @return Returns a reference to this object so that method calls can be chained together.
* @see CEStatus
*/
public ComputeEnvironmentDetail withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* The current status of the compute environment (for example, CREATING
or VALID
).
*
*
* @param status
* The current status of the compute environment (for example, CREATING
or VALID
).
* @see CEStatus
*/
public void setStatus(CEStatus status) {
withStatus(status);
}
/**
*
* The current status of the compute environment (for example, CREATING
or VALID
).
*
*
* @param status
* The current status of the compute environment (for example, CREATING
or VALID
).
* @return Returns a reference to this object so that method calls can be chained together.
* @see CEStatus
*/
public ComputeEnvironmentDetail withStatus(CEStatus status) {
this.status = status.toString();
return this;
}
/**
*
* A short, human-readable string to provide additional details for the current status of the compute environment.
*
*
* @param statusReason
* A short, human-readable string to provide additional details for the current status of the compute
* environment.
*/
public void setStatusReason(String statusReason) {
this.statusReason = statusReason;
}
/**
*
* A short, human-readable string to provide additional details for the current status of the compute environment.
*
*
* @return A short, human-readable string to provide additional details for the current status of the compute
* environment.
*/
public String getStatusReason() {
return this.statusReason;
}
/**
*
* A short, human-readable string to provide additional details for the current status of the compute environment.
*
*
* @param statusReason
* A short, human-readable string to provide additional details for the current status of the compute
* environment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ComputeEnvironmentDetail withStatusReason(String statusReason) {
setStatusReason(statusReason);
return this;
}
/**
*
* The compute resources defined for the compute environment. For more information, see Compute environments in
* the Batch User Guide.
*
*
* @param computeResources
* The compute resources defined for the compute environment. For more information, see Compute
* environments in the Batch User Guide.
*/
public void setComputeResources(ComputeResource computeResources) {
this.computeResources = computeResources;
}
/**
*
* The compute resources defined for the compute environment. For more information, see Compute environments in
* the Batch User Guide.
*
*
* @return The compute resources defined for the compute environment. For more information, see Compute
* environments in the Batch User Guide.
*/
public ComputeResource getComputeResources() {
return this.computeResources;
}
/**
*
* The compute resources defined for the compute environment. For more information, see Compute environments in
* the Batch User Guide.
*
*
* @param computeResources
* The compute resources defined for the compute environment. For more information, see Compute
* environments in the Batch User Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ComputeEnvironmentDetail withComputeResources(ComputeResource computeResources) {
setComputeResources(computeResources);
return this;
}
/**
*
* The service role that's associated with the compute environment that allows Batch to make calls to Amazon Web
* Services API operations on your behalf. For more information, see Batch service IAM role in the
* Batch User Guide.
*
*
* @param serviceRole
* The service role that's associated with the compute environment that allows Batch to make calls to Amazon
* Web Services API operations on your behalf. For more information, see Batch service IAM role
* in the Batch User Guide.
*/
public void setServiceRole(String serviceRole) {
this.serviceRole = serviceRole;
}
/**
*
* The service role that's associated with the compute environment that allows Batch to make calls to Amazon Web
* Services API operations on your behalf. For more information, see Batch service IAM role in the
* Batch User Guide.
*
*
* @return The service role that's associated with the compute environment that allows Batch to make calls to Amazon
* Web Services API operations on your behalf. For more information, see Batch service IAM
* role in the Batch User Guide.
*/
public String getServiceRole() {
return this.serviceRole;
}
/**
*
* The service role that's associated with the compute environment that allows Batch to make calls to Amazon Web
* Services API operations on your behalf. For more information, see Batch service IAM role in the
* Batch User Guide.
*
*
* @param serviceRole
* The service role that's associated with the compute environment that allows Batch to make calls to Amazon
* Web Services API operations on your behalf. For more information, see Batch service IAM role
* in the Batch User Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ComputeEnvironmentDetail withServiceRole(String serviceRole) {
setServiceRole(serviceRole);
return this;
}
/**
*
* Specifies the infrastructure update policy for the compute environment. For more information about infrastructure
* updates, see Updating compute
* environments in the Batch User Guide.
*
*
* @param updatePolicy
* Specifies the infrastructure update policy for the compute environment. For more information about
* infrastructure updates, see Updating
* compute environments in the Batch User Guide.
*/
public void setUpdatePolicy(UpdatePolicy updatePolicy) {
this.updatePolicy = updatePolicy;
}
/**
*
* Specifies the infrastructure update policy for the compute environment. For more information about infrastructure
* updates, see Updating compute
* environments in the Batch User Guide.
*
*
* @return Specifies the infrastructure update policy for the compute environment. For more information about
* infrastructure updates, see Updating
* compute environments in the Batch User Guide.
*/
public UpdatePolicy getUpdatePolicy() {
return this.updatePolicy;
}
/**
*
* Specifies the infrastructure update policy for the compute environment. For more information about infrastructure
* updates, see Updating compute
* environments in the Batch User Guide.
*
*
* @param updatePolicy
* Specifies the infrastructure update policy for the compute environment. For more information about
* infrastructure updates, see Updating
* compute environments in the Batch User Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ComputeEnvironmentDetail withUpdatePolicy(UpdatePolicy updatePolicy) {
setUpdatePolicy(updatePolicy);
return this;
}
/**
*
* The configuration for the Amazon EKS cluster that supports the Batch compute environment. Only specify this
* parameter if the containerOrchestrationType
is EKS
.
*
*
* @param eksConfiguration
* The configuration for the Amazon EKS cluster that supports the Batch compute environment. Only specify
* this parameter if the containerOrchestrationType
is EKS
.
*/
public void setEksConfiguration(EksConfiguration eksConfiguration) {
this.eksConfiguration = eksConfiguration;
}
/**
*
* The configuration for the Amazon EKS cluster that supports the Batch compute environment. Only specify this
* parameter if the containerOrchestrationType
is EKS
.
*
*
* @return The configuration for the Amazon EKS cluster that supports the Batch compute environment. Only specify
* this parameter if the containerOrchestrationType
is EKS
.
*/
public EksConfiguration getEksConfiguration() {
return this.eksConfiguration;
}
/**
*
* The configuration for the Amazon EKS cluster that supports the Batch compute environment. Only specify this
* parameter if the containerOrchestrationType
is EKS
.
*
*
* @param eksConfiguration
* The configuration for the Amazon EKS cluster that supports the Batch compute environment. Only specify
* this parameter if the containerOrchestrationType
is EKS
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ComputeEnvironmentDetail withEksConfiguration(EksConfiguration eksConfiguration) {
setEksConfiguration(eksConfiguration);
return this;
}
/**
*
* The orchestration type of the compute environment. The valid values are ECS
(default) or
* EKS
.
*
*
* @param containerOrchestrationType
* The orchestration type of the compute environment. The valid values are ECS
(default) or
* EKS
.
* @see OrchestrationType
*/
public void setContainerOrchestrationType(String containerOrchestrationType) {
this.containerOrchestrationType = containerOrchestrationType;
}
/**
*
* The orchestration type of the compute environment. The valid values are ECS
(default) or
* EKS
.
*
*
* @return The orchestration type of the compute environment. The valid values are ECS
(default) or
* EKS
.
* @see OrchestrationType
*/
public String getContainerOrchestrationType() {
return this.containerOrchestrationType;
}
/**
*
* The orchestration type of the compute environment. The valid values are ECS
(default) or
* EKS
.
*
*
* @param containerOrchestrationType
* The orchestration type of the compute environment. The valid values are ECS
(default) or
* EKS
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see OrchestrationType
*/
public ComputeEnvironmentDetail withContainerOrchestrationType(String containerOrchestrationType) {
setContainerOrchestrationType(containerOrchestrationType);
return this;
}
/**
*
* The orchestration type of the compute environment. The valid values are ECS
(default) or
* EKS
.
*
*
* @param containerOrchestrationType
* The orchestration type of the compute environment. The valid values are ECS
(default) or
* EKS
.
* @see OrchestrationType
*/
public void setContainerOrchestrationType(OrchestrationType containerOrchestrationType) {
withContainerOrchestrationType(containerOrchestrationType);
}
/**
*
* The orchestration type of the compute environment. The valid values are ECS
(default) or
* EKS
.
*
*
* @param containerOrchestrationType
* The orchestration type of the compute environment. The valid values are ECS
(default) or
* EKS
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see OrchestrationType
*/
public ComputeEnvironmentDetail withContainerOrchestrationType(OrchestrationType containerOrchestrationType) {
this.containerOrchestrationType = containerOrchestrationType.toString();
return this;
}
/**
*
* Unique identifier for the compute environment.
*
*
* @param uuid
* Unique identifier for the compute environment.
*/
public void setUuid(String uuid) {
this.uuid = uuid;
}
/**
*
* Unique identifier for the compute environment.
*
*
* @return Unique identifier for the compute environment.
*/
public String getUuid() {
return this.uuid;
}
/**
*
* Unique identifier for the compute environment.
*
*
* @param uuid
* Unique identifier for the compute environment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ComputeEnvironmentDetail withUuid(String uuid) {
setUuid(uuid);
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getComputeEnvironmentName() != null)
sb.append("ComputeEnvironmentName: ").append(getComputeEnvironmentName()).append(",");
if (getComputeEnvironmentArn() != null)
sb.append("ComputeEnvironmentArn: ").append(getComputeEnvironmentArn()).append(",");
if (getUnmanagedvCpus() != null)
sb.append("UnmanagedvCpus: ").append(getUnmanagedvCpus()).append(",");
if (getEcsClusterArn() != null)
sb.append("EcsClusterArn: ").append(getEcsClusterArn()).append(",");
if (getTags() != null)
sb.append("Tags: ").append(getTags()).append(",");
if (getType() != null)
sb.append("Type: ").append(getType()).append(",");
if (getState() != null)
sb.append("State: ").append(getState()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getStatusReason() != null)
sb.append("StatusReason: ").append(getStatusReason()).append(",");
if (getComputeResources() != null)
sb.append("ComputeResources: ").append(getComputeResources()).append(",");
if (getServiceRole() != null)
sb.append("ServiceRole: ").append(getServiceRole()).append(",");
if (getUpdatePolicy() != null)
sb.append("UpdatePolicy: ").append(getUpdatePolicy()).append(",");
if (getEksConfiguration() != null)
sb.append("EksConfiguration: ").append(getEksConfiguration()).append(",");
if (getContainerOrchestrationType() != null)
sb.append("ContainerOrchestrationType: ").append(getContainerOrchestrationType()).append(",");
if (getUuid() != null)
sb.append("Uuid: ").append(getUuid());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ComputeEnvironmentDetail == false)
return false;
ComputeEnvironmentDetail other = (ComputeEnvironmentDetail) obj;
if (other.getComputeEnvironmentName() == null ^ this.getComputeEnvironmentName() == null)
return false;
if (other.getComputeEnvironmentName() != null && other.getComputeEnvironmentName().equals(this.getComputeEnvironmentName()) == false)
return false;
if (other.getComputeEnvironmentArn() == null ^ this.getComputeEnvironmentArn() == null)
return false;
if (other.getComputeEnvironmentArn() != null && other.getComputeEnvironmentArn().equals(this.getComputeEnvironmentArn()) == false)
return false;
if (other.getUnmanagedvCpus() == null ^ this.getUnmanagedvCpus() == null)
return false;
if (other.getUnmanagedvCpus() != null && other.getUnmanagedvCpus().equals(this.getUnmanagedvCpus()) == false)
return false;
if (other.getEcsClusterArn() == null ^ this.getEcsClusterArn() == null)
return false;
if (other.getEcsClusterArn() != null && other.getEcsClusterArn().equals(this.getEcsClusterArn()) == false)
return false;
if (other.getTags() == null ^ this.getTags() == null)
return false;
if (other.getTags() != null && other.getTags().equals(this.getTags()) == false)
return false;
if (other.getType() == null ^ this.getType() == null)
return false;
if (other.getType() != null && other.getType().equals(this.getType()) == false)
return false;
if (other.getState() == null ^ this.getState() == null)
return false;
if (other.getState() != null && other.getState().equals(this.getState()) == false)
return false;
if (other.getStatus() == null ^ this.getStatus() == null)
return false;
if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false)
return false;
if (other.getStatusReason() == null ^ this.getStatusReason() == null)
return false;
if (other.getStatusReason() != null && other.getStatusReason().equals(this.getStatusReason()) == false)
return false;
if (other.getComputeResources() == null ^ this.getComputeResources() == null)
return false;
if (other.getComputeResources() != null && other.getComputeResources().equals(this.getComputeResources()) == false)
return false;
if (other.getServiceRole() == null ^ this.getServiceRole() == null)
return false;
if (other.getServiceRole() != null && other.getServiceRole().equals(this.getServiceRole()) == false)
return false;
if (other.getUpdatePolicy() == null ^ this.getUpdatePolicy() == null)
return false;
if (other.getUpdatePolicy() != null && other.getUpdatePolicy().equals(this.getUpdatePolicy()) == false)
return false;
if (other.getEksConfiguration() == null ^ this.getEksConfiguration() == null)
return false;
if (other.getEksConfiguration() != null && other.getEksConfiguration().equals(this.getEksConfiguration()) == false)
return false;
if (other.getContainerOrchestrationType() == null ^ this.getContainerOrchestrationType() == null)
return false;
if (other.getContainerOrchestrationType() != null && other.getContainerOrchestrationType().equals(this.getContainerOrchestrationType()) == false)
return false;
if (other.getUuid() == null ^ this.getUuid() == null)
return false;
if (other.getUuid() != null && other.getUuid().equals(this.getUuid()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getComputeEnvironmentName() == null) ? 0 : getComputeEnvironmentName().hashCode());
hashCode = prime * hashCode + ((getComputeEnvironmentArn() == null) ? 0 : getComputeEnvironmentArn().hashCode());
hashCode = prime * hashCode + ((getUnmanagedvCpus() == null) ? 0 : getUnmanagedvCpus().hashCode());
hashCode = prime * hashCode + ((getEcsClusterArn() == null) ? 0 : getEcsClusterArn().hashCode());
hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode());
hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode());
hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getStatusReason() == null) ? 0 : getStatusReason().hashCode());
hashCode = prime * hashCode + ((getComputeResources() == null) ? 0 : getComputeResources().hashCode());
hashCode = prime * hashCode + ((getServiceRole() == null) ? 0 : getServiceRole().hashCode());
hashCode = prime * hashCode + ((getUpdatePolicy() == null) ? 0 : getUpdatePolicy().hashCode());
hashCode = prime * hashCode + ((getEksConfiguration() == null) ? 0 : getEksConfiguration().hashCode());
hashCode = prime * hashCode + ((getContainerOrchestrationType() == null) ? 0 : getContainerOrchestrationType().hashCode());
hashCode = prime * hashCode + ((getUuid() == null) ? 0 : getUuid().hashCode());
return hashCode;
}
@Override
public ComputeEnvironmentDetail clone() {
try {
return (ComputeEnvironmentDetail) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
@com.amazonaws.annotation.SdkInternalApi
@Override
public void marshall(ProtocolMarshaller protocolMarshaller) {
com.amazonaws.services.batch.model.transform.ComputeEnvironmentDetailMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}