@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsEcsClusterDetails extends Object implements Serializable, Cloneable, StructuredPojo
Provides details about an Amazon ECS cluster.
Constructor and Description |
---|
AwsEcsClusterDetails() |
Modifier and Type | Method and Description |
---|---|
AwsEcsClusterDetails |
clone() |
boolean |
equals(Object obj) |
Integer |
getActiveServicesCount()
The number of services that are running on the cluster in an
ACTIVE state. |
List<String> |
getCapacityProviders()
The short name of one or more capacity providers to associate with the cluster.
|
String |
getClusterArn()
The Amazon Resource Name (ARN) that identifies the cluster.
|
String |
getClusterName()
A name that you use to identify your cluster.
|
List<AwsEcsClusterClusterSettingsDetails> |
getClusterSettings()
The setting to use to create the cluster.
|
AwsEcsClusterConfigurationDetails |
getConfiguration()
The run command configuration for the cluster.
|
List<AwsEcsClusterDefaultCapacityProviderStrategyDetails> |
getDefaultCapacityProviderStrategy()
The default capacity provider strategy for the cluster.
|
Integer |
getRegisteredContainerInstancesCount()
The number of container instances registered into the cluster.
|
Integer |
getRunningTasksCount()
The number of tasks in the cluster that are in the
RUNNING state. |
String |
getStatus()
The status of the cluster.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setActiveServicesCount(Integer activeServicesCount)
The number of services that are running on the cluster in an
ACTIVE state. |
void |
setCapacityProviders(Collection<String> capacityProviders)
The short name of one or more capacity providers to associate with the cluster.
|
void |
setClusterArn(String clusterArn)
The Amazon Resource Name (ARN) that identifies the cluster.
|
void |
setClusterName(String clusterName)
A name that you use to identify your cluster.
|
void |
setClusterSettings(Collection<AwsEcsClusterClusterSettingsDetails> clusterSettings)
The setting to use to create the cluster.
|
void |
setConfiguration(AwsEcsClusterConfigurationDetails configuration)
The run command configuration for the cluster.
|
void |
setDefaultCapacityProviderStrategy(Collection<AwsEcsClusterDefaultCapacityProviderStrategyDetails> defaultCapacityProviderStrategy)
The default capacity provider strategy for the cluster.
|
void |
setRegisteredContainerInstancesCount(Integer registeredContainerInstancesCount)
The number of container instances registered into the cluster.
|
void |
setRunningTasksCount(Integer runningTasksCount)
The number of tasks in the cluster that are in the
RUNNING state. |
void |
setStatus(String status)
The status of the cluster.
|
String |
toString()
Returns a string representation of this object.
|
AwsEcsClusterDetails |
withActiveServicesCount(Integer activeServicesCount)
The number of services that are running on the cluster in an
ACTIVE state. |
AwsEcsClusterDetails |
withCapacityProviders(Collection<String> capacityProviders)
The short name of one or more capacity providers to associate with the cluster.
|
AwsEcsClusterDetails |
withCapacityProviders(String... capacityProviders)
The short name of one or more capacity providers to associate with the cluster.
|
AwsEcsClusterDetails |
withClusterArn(String clusterArn)
The Amazon Resource Name (ARN) that identifies the cluster.
|
AwsEcsClusterDetails |
withClusterName(String clusterName)
A name that you use to identify your cluster.
|
AwsEcsClusterDetails |
withClusterSettings(AwsEcsClusterClusterSettingsDetails... clusterSettings)
The setting to use to create the cluster.
|
AwsEcsClusterDetails |
withClusterSettings(Collection<AwsEcsClusterClusterSettingsDetails> clusterSettings)
The setting to use to create the cluster.
|
AwsEcsClusterDetails |
withConfiguration(AwsEcsClusterConfigurationDetails configuration)
The run command configuration for the cluster.
|
AwsEcsClusterDetails |
withDefaultCapacityProviderStrategy(AwsEcsClusterDefaultCapacityProviderStrategyDetails... defaultCapacityProviderStrategy)
The default capacity provider strategy for the cluster.
|
AwsEcsClusterDetails |
withDefaultCapacityProviderStrategy(Collection<AwsEcsClusterDefaultCapacityProviderStrategyDetails> defaultCapacityProviderStrategy)
The default capacity provider strategy for the cluster.
|
AwsEcsClusterDetails |
withRegisteredContainerInstancesCount(Integer registeredContainerInstancesCount)
The number of container instances registered into the cluster.
|
AwsEcsClusterDetails |
withRunningTasksCount(Integer runningTasksCount)
The number of tasks in the cluster that are in the
RUNNING state. |
AwsEcsClusterDetails |
withStatus(String status)
The status of the cluster.
|
public void setClusterArn(String clusterArn)
The Amazon Resource Name (ARN) that identifies the cluster.
clusterArn
- The Amazon Resource Name (ARN) that identifies the cluster.public String getClusterArn()
The Amazon Resource Name (ARN) that identifies the cluster.
public AwsEcsClusterDetails withClusterArn(String clusterArn)
The Amazon Resource Name (ARN) that identifies the cluster.
clusterArn
- The Amazon Resource Name (ARN) that identifies the cluster.public void setActiveServicesCount(Integer activeServicesCount)
The number of services that are running on the cluster in an ACTIVE
state. You can view these
services with the Amazon ECS ListServices
API operation.
activeServicesCount
- The number of services that are running on the cluster in an ACTIVE
state. You can view these
services with the Amazon ECS
ListServices
API operation.public Integer getActiveServicesCount()
The number of services that are running on the cluster in an ACTIVE
state. You can view these
services with the Amazon ECS ListServices
API operation.
ACTIVE
state. You can view
these services with the Amazon ECS
ListServices
API operation.public AwsEcsClusterDetails withActiveServicesCount(Integer activeServicesCount)
The number of services that are running on the cluster in an ACTIVE
state. You can view these
services with the Amazon ECS ListServices
API operation.
activeServicesCount
- The number of services that are running on the cluster in an ACTIVE
state. You can view these
services with the Amazon ECS
ListServices
API operation.public List<String> getCapacityProviders()
The short name of one or more capacity providers to associate with the cluster.
public void setCapacityProviders(Collection<String> capacityProviders)
The short name of one or more capacity providers to associate with the cluster.
capacityProviders
- The short name of one or more capacity providers to associate with the cluster.public AwsEcsClusterDetails withCapacityProviders(String... capacityProviders)
The short name of one or more capacity providers to associate with the cluster.
NOTE: This method appends the values to the existing list (if any). Use
setCapacityProviders(java.util.Collection)
or withCapacityProviders(java.util.Collection)
if
you want to override the existing values.
capacityProviders
- The short name of one or more capacity providers to associate with the cluster.public AwsEcsClusterDetails withCapacityProviders(Collection<String> capacityProviders)
The short name of one or more capacity providers to associate with the cluster.
capacityProviders
- The short name of one or more capacity providers to associate with the cluster.public List<AwsEcsClusterClusterSettingsDetails> getClusterSettings()
The setting to use to create the cluster. Specifically used to configure whether to enable CloudWatch Container Insights for the cluster.
public void setClusterSettings(Collection<AwsEcsClusterClusterSettingsDetails> clusterSettings)
The setting to use to create the cluster. Specifically used to configure whether to enable CloudWatch Container Insights for the cluster.
clusterSettings
- The setting to use to create the cluster. Specifically used to configure whether to enable CloudWatch
Container Insights for the cluster.public AwsEcsClusterDetails withClusterSettings(AwsEcsClusterClusterSettingsDetails... clusterSettings)
The setting to use to create the cluster. Specifically used to configure whether to enable CloudWatch Container Insights for the cluster.
NOTE: This method appends the values to the existing list (if any). Use
setClusterSettings(java.util.Collection)
or withClusterSettings(java.util.Collection)
if you
want to override the existing values.
clusterSettings
- The setting to use to create the cluster. Specifically used to configure whether to enable CloudWatch
Container Insights for the cluster.public AwsEcsClusterDetails withClusterSettings(Collection<AwsEcsClusterClusterSettingsDetails> clusterSettings)
The setting to use to create the cluster. Specifically used to configure whether to enable CloudWatch Container Insights for the cluster.
clusterSettings
- The setting to use to create the cluster. Specifically used to configure whether to enable CloudWatch
Container Insights for the cluster.public void setConfiguration(AwsEcsClusterConfigurationDetails configuration)
The run command configuration for the cluster.
configuration
- The run command configuration for the cluster.public AwsEcsClusterConfigurationDetails getConfiguration()
The run command configuration for the cluster.
public AwsEcsClusterDetails withConfiguration(AwsEcsClusterConfigurationDetails configuration)
The run command configuration for the cluster.
configuration
- The run command configuration for the cluster.public List<AwsEcsClusterDefaultCapacityProviderStrategyDetails> getDefaultCapacityProviderStrategy()
The default capacity provider strategy for the cluster. The default capacity provider strategy is used when services or tasks are run without a specified launch type or capacity provider strategy.
public void setDefaultCapacityProviderStrategy(Collection<AwsEcsClusterDefaultCapacityProviderStrategyDetails> defaultCapacityProviderStrategy)
The default capacity provider strategy for the cluster. The default capacity provider strategy is used when services or tasks are run without a specified launch type or capacity provider strategy.
defaultCapacityProviderStrategy
- The default capacity provider strategy for the cluster. The default capacity provider strategy is used
when services or tasks are run without a specified launch type or capacity provider strategy.public AwsEcsClusterDetails withDefaultCapacityProviderStrategy(AwsEcsClusterDefaultCapacityProviderStrategyDetails... defaultCapacityProviderStrategy)
The default capacity provider strategy for the cluster. The default capacity provider strategy is used when services or tasks are run without a specified launch type or capacity provider strategy.
NOTE: This method appends the values to the existing list (if any). Use
setDefaultCapacityProviderStrategy(java.util.Collection)
or
withDefaultCapacityProviderStrategy(java.util.Collection)
if you want to override the existing values.
defaultCapacityProviderStrategy
- The default capacity provider strategy for the cluster. The default capacity provider strategy is used
when services or tasks are run without a specified launch type or capacity provider strategy.public AwsEcsClusterDetails withDefaultCapacityProviderStrategy(Collection<AwsEcsClusterDefaultCapacityProviderStrategyDetails> defaultCapacityProviderStrategy)
The default capacity provider strategy for the cluster. The default capacity provider strategy is used when services or tasks are run without a specified launch type or capacity provider strategy.
defaultCapacityProviderStrategy
- The default capacity provider strategy for the cluster. The default capacity provider strategy is used
when services or tasks are run without a specified launch type or capacity provider strategy.public void setClusterName(String clusterName)
A name that you use to identify your cluster.
clusterName
- A name that you use to identify your cluster.public String getClusterName()
A name that you use to identify your cluster.
public AwsEcsClusterDetails withClusterName(String clusterName)
A name that you use to identify your cluster.
clusterName
- A name that you use to identify your cluster.public void setRegisteredContainerInstancesCount(Integer registeredContainerInstancesCount)
The number of container instances registered into the cluster. This includes container instances in both
ACTIVE
and DRAINING
status.
registeredContainerInstancesCount
- The number of container instances registered into the cluster. This includes container instances in both
ACTIVE
and DRAINING
status.public Integer getRegisteredContainerInstancesCount()
The number of container instances registered into the cluster. This includes container instances in both
ACTIVE
and DRAINING
status.
ACTIVE
and DRAINING
status.public AwsEcsClusterDetails withRegisteredContainerInstancesCount(Integer registeredContainerInstancesCount)
The number of container instances registered into the cluster. This includes container instances in both
ACTIVE
and DRAINING
status.
registeredContainerInstancesCount
- The number of container instances registered into the cluster. This includes container instances in both
ACTIVE
and DRAINING
status.public void setRunningTasksCount(Integer runningTasksCount)
The number of tasks in the cluster that are in the RUNNING
state.
runningTasksCount
- The number of tasks in the cluster that are in the RUNNING
state.public Integer getRunningTasksCount()
The number of tasks in the cluster that are in the RUNNING
state.
RUNNING
state.public AwsEcsClusterDetails withRunningTasksCount(Integer runningTasksCount)
The number of tasks in the cluster that are in the RUNNING
state.
runningTasksCount
- The number of tasks in the cluster that are in the RUNNING
state.public void setStatus(String status)
The status of the cluster.
status
- The status of the cluster.public String getStatus()
The status of the cluster.
public AwsEcsClusterDetails withStatus(String status)
The status of the cluster.
status
- The status of the cluster.public String toString()
toString
in class Object
Object.toString()
public AwsEcsClusterDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.