@Generated(value="software.amazon.awssdk:codegen") public final class AwsEcsClusterDetails extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AwsEcsClusterDetails.Builder,AwsEcsClusterDetails>
Provides details about an Amazon ECS cluster.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AwsEcsClusterDetails.Builder |
| Modifier and Type | Method and Description |
|---|---|
Integer |
activeServicesCount()
The number of services that are running on the cluster in an
ACTIVE state. |
static AwsEcsClusterDetails.Builder |
builder() |
List<String> |
capacityProviders()
The short name of one or more capacity providers to associate with the cluster.
|
String |
clusterArn()
The Amazon Resource Name (ARN) that identifies the cluster.
|
String |
clusterName()
A name that you use to identify your cluster.
|
List<AwsEcsClusterClusterSettingsDetails> |
clusterSettings()
The setting to use to create the cluster.
|
AwsEcsClusterConfigurationDetails |
configuration()
The run command configuration for the cluster.
|
List<AwsEcsClusterDefaultCapacityProviderStrategyDetails> |
defaultCapacityProviderStrategy()
The default capacity provider strategy for the cluster.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasCapacityProviders()
For responses, this returns true if the service returned a value for the CapacityProviders property.
|
boolean |
hasClusterSettings()
For responses, this returns true if the service returned a value for the ClusterSettings property.
|
boolean |
hasDefaultCapacityProviderStrategy()
For responses, this returns true if the service returned a value for the DefaultCapacityProviderStrategy
property.
|
int |
hashCode() |
Integer |
registeredContainerInstancesCount()
The number of container instances registered into the cluster.
|
Integer |
runningTasksCount()
The number of tasks in the cluster that are in the
RUNNING state. |
List<SdkField<?>> |
sdkFields() |
static Class<? extends AwsEcsClusterDetails.Builder> |
serializableBuilderClass() |
String |
status()
The status of the cluster.
|
AwsEcsClusterDetails.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String clusterArn()
The Amazon Resource Name (ARN) that identifies the cluster.
public final 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.
ACTIVE state. You can view
these services with the Amazon ECS
ListServices API operation.public final boolean hasCapacityProviders()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> capacityProviders()
The short name of one or more capacity providers to associate with the cluster.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasCapacityProviders() method.
public final boolean hasClusterSettings()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<AwsEcsClusterClusterSettingsDetails> clusterSettings()
The setting to use to create the cluster. Specifically used to configure whether to enable CloudWatch Container Insights for the cluster.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasClusterSettings() method.
public final AwsEcsClusterConfigurationDetails configuration()
The run command configuration for the cluster.
public final boolean hasDefaultCapacityProviderStrategy()
isEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may
need to differentiate between the service returning nothing (or null) and the service returning an empty
collection or map. For requests, this returns true if a value for the property was specified in the request
builder, and false if a value was not specified.public final List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasDefaultCapacityProviderStrategy()
method.
public final String clusterName()
A name that you use to identify your cluster.
public final Integer registeredContainerInstancesCount()
The number of container instances registered into the cluster. This includes container instances in both
ACTIVE and DRAINING status.
ACTIVE and DRAINING status.public final Integer runningTasksCount()
The number of tasks in the cluster that are in the RUNNING state.
RUNNING state.public final String status()
The status of the cluster.
public AwsEcsClusterDetails.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AwsEcsClusterDetails.Builder,AwsEcsClusterDetails>public static AwsEcsClusterDetails.Builder builder()
public static Class<? extends AwsEcsClusterDetails.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.