@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Cluster extends Object implements Serializable, Cloneable, StructuredPojo
A regional grouping of one or more container instances where you can run task requests. Each account receives a default cluster the first time you use the Amazon ECS service, but you may also create other clusters. Clusters may contain more than one instance type simultaneously.
Constructor and Description |
---|
Cluster() |
Modifier and Type | Method and Description |
---|---|
Cluster |
clone() |
boolean |
equals(Object obj) |
Integer |
getActiveServicesCount()
The number of services that are running on the cluster in an
ACTIVE state. |
List<Attachment> |
getAttachments()
The resources attached to a cluster.
|
String |
getAttachmentsStatus()
The status of the capacity providers associated with the cluster.
|
List<String> |
getCapacityProviders()
The capacity providers associated with the cluster.
|
String |
getClusterArn()
The Amazon Resource Name (ARN) that identifies the cluster.
|
String |
getClusterName()
A user-generated string that you use to identify your cluster.
|
ClusterConfiguration |
getConfiguration()
The execute command configuration for the cluster.
|
List<CapacityProviderStrategyItem> |
getDefaultCapacityProviderStrategy()
The default capacity provider strategy for the cluster.
|
Integer |
getPendingTasksCount()
The number of tasks in the cluster that are in the
PENDING state. |
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. |
List<ClusterSetting> |
getSettings()
The settings for the cluster.
|
List<KeyValuePair> |
getStatistics()
Additional information about your clusters that are separated by launch type.
|
String |
getStatus()
The status of the cluster.
|
List<Tag> |
getTags()
The metadata that you apply to the cluster to help you categorize and organize them.
|
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 |
setAttachments(Collection<Attachment> attachments)
The resources attached to a cluster.
|
void |
setAttachmentsStatus(String attachmentsStatus)
The status of the capacity providers associated with the cluster.
|
void |
setCapacityProviders(Collection<String> capacityProviders)
The capacity providers associated with the cluster.
|
void |
setClusterArn(String clusterArn)
The Amazon Resource Name (ARN) that identifies the cluster.
|
void |
setClusterName(String clusterName)
A user-generated string that you use to identify your cluster.
|
void |
setConfiguration(ClusterConfiguration configuration)
The execute command configuration for the cluster.
|
void |
setDefaultCapacityProviderStrategy(Collection<CapacityProviderStrategyItem> defaultCapacityProviderStrategy)
The default capacity provider strategy for the cluster.
|
void |
setPendingTasksCount(Integer pendingTasksCount)
The number of tasks in the cluster that are in the
PENDING state. |
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 |
setSettings(Collection<ClusterSetting> settings)
The settings for the cluster.
|
void |
setStatistics(Collection<KeyValuePair> statistics)
Additional information about your clusters that are separated by launch type.
|
void |
setStatus(String status)
The status of the cluster.
|
void |
setTags(Collection<Tag> tags)
The metadata that you apply to the cluster to help you categorize and organize them.
|
String |
toString()
Returns a string representation of this object.
|
Cluster |
withActiveServicesCount(Integer activeServicesCount)
The number of services that are running on the cluster in an
ACTIVE state. |
Cluster |
withAttachments(Attachment... attachments)
The resources attached to a cluster.
|
Cluster |
withAttachments(Collection<Attachment> attachments)
The resources attached to a cluster.
|
Cluster |
withAttachmentsStatus(String attachmentsStatus)
The status of the capacity providers associated with the cluster.
|
Cluster |
withCapacityProviders(Collection<String> capacityProviders)
The capacity providers associated with the cluster.
|
Cluster |
withCapacityProviders(String... capacityProviders)
The capacity providers associated with the cluster.
|
Cluster |
withClusterArn(String clusterArn)
The Amazon Resource Name (ARN) that identifies the cluster.
|
Cluster |
withClusterName(String clusterName)
A user-generated string that you use to identify your cluster.
|
Cluster |
withConfiguration(ClusterConfiguration configuration)
The execute command configuration for the cluster.
|
Cluster |
withDefaultCapacityProviderStrategy(CapacityProviderStrategyItem... defaultCapacityProviderStrategy)
The default capacity provider strategy for the cluster.
|
Cluster |
withDefaultCapacityProviderStrategy(Collection<CapacityProviderStrategyItem> defaultCapacityProviderStrategy)
The default capacity provider strategy for the cluster.
|
Cluster |
withPendingTasksCount(Integer pendingTasksCount)
The number of tasks in the cluster that are in the
PENDING state. |
Cluster |
withRegisteredContainerInstancesCount(Integer registeredContainerInstancesCount)
The number of container instances registered into the cluster.
|
Cluster |
withRunningTasksCount(Integer runningTasksCount)
The number of tasks in the cluster that are in the
RUNNING state. |
Cluster |
withSettings(ClusterSetting... settings)
The settings for the cluster.
|
Cluster |
withSettings(Collection<ClusterSetting> settings)
The settings for the cluster.
|
Cluster |
withStatistics(Collection<KeyValuePair> statistics)
Additional information about your clusters that are separated by launch type.
|
Cluster |
withStatistics(KeyValuePair... statistics)
Additional information about your clusters that are separated by launch type.
|
Cluster |
withStatus(String status)
The status of the cluster.
|
Cluster |
withTags(Collection<Tag> tags)
The metadata that you apply to the cluster to help you categorize and organize them.
|
Cluster |
withTags(Tag... tags)
The metadata that you apply to the cluster to help you categorize and organize them.
|
public void setClusterArn(String clusterArn)
The Amazon Resource Name (ARN) that identifies the cluster. For more information about the ARN format, see Amazon Resource Name (ARN) in the Amazon ECS Developer Guide.
clusterArn
- The Amazon Resource Name (ARN) that identifies the cluster. For more information about the ARN format, see
Amazon Resource Name (ARN) in the Amazon ECS Developer Guide.public String getClusterArn()
The Amazon Resource Name (ARN) that identifies the cluster. For more information about the ARN format, see Amazon Resource Name (ARN) in the Amazon ECS Developer Guide.
public Cluster withClusterArn(String clusterArn)
The Amazon Resource Name (ARN) that identifies the cluster. For more information about the ARN format, see Amazon Resource Name (ARN) in the Amazon ECS Developer Guide.
clusterArn
- The Amazon Resource Name (ARN) that identifies the cluster. For more information about the ARN format, see
Amazon Resource Name (ARN) in the Amazon ECS Developer Guide.public void setClusterName(String clusterName)
A user-generated string that you use to identify your cluster.
clusterName
- A user-generated string that you use to identify your cluster.public String getClusterName()
A user-generated string that you use to identify your cluster.
public Cluster withClusterName(String clusterName)
A user-generated string that you use to identify your cluster.
clusterName
- A user-generated string that you use to identify your cluster.public void setConfiguration(ClusterConfiguration configuration)
The execute command configuration for the cluster.
configuration
- The execute command configuration for the cluster.public ClusterConfiguration getConfiguration()
The execute command configuration for the cluster.
public Cluster withConfiguration(ClusterConfiguration configuration)
The execute command configuration for the cluster.
configuration
- The execute command configuration for the cluster.public void setStatus(String status)
The status of the cluster. The following are the possible states that are returned.
The cluster is ready to accept tasks and if applicable you can register container instances with the cluster.
The cluster has capacity providers that are associated with it and the resources needed for the capacity provider are being created.
The cluster has capacity providers that are associated with it and the resources needed for the capacity provider are being deleted.
The cluster has capacity providers that are associated with it and the resources needed for the capacity provider have failed to create.
The cluster has been deleted. Clusters with an INACTIVE
status may remain discoverable in your
account for a period of time. However, this behavior is subject to change in the future. We don't recommend that
you rely on INACTIVE
clusters persisting.
status
- The status of the cluster. The following are the possible states that are returned.
The cluster is ready to accept tasks and if applicable you can register container instances with the cluster.
The cluster has capacity providers that are associated with it and the resources needed for the capacity provider are being created.
The cluster has capacity providers that are associated with it and the resources needed for the capacity provider are being deleted.
The cluster has capacity providers that are associated with it and the resources needed for the capacity provider have failed to create.
The cluster has been deleted. Clusters with an INACTIVE
status may remain discoverable in
your account for a period of time. However, this behavior is subject to change in the future. We don't
recommend that you rely on INACTIVE
clusters persisting.
public String getStatus()
The status of the cluster. The following are the possible states that are returned.
The cluster is ready to accept tasks and if applicable you can register container instances with the cluster.
The cluster has capacity providers that are associated with it and the resources needed for the capacity provider are being created.
The cluster has capacity providers that are associated with it and the resources needed for the capacity provider are being deleted.
The cluster has capacity providers that are associated with it and the resources needed for the capacity provider have failed to create.
The cluster has been deleted. Clusters with an INACTIVE
status may remain discoverable in your
account for a period of time. However, this behavior is subject to change in the future. We don't recommend that
you rely on INACTIVE
clusters persisting.
The cluster is ready to accept tasks and if applicable you can register container instances with the cluster.
The cluster has capacity providers that are associated with it and the resources needed for the capacity provider are being created.
The cluster has capacity providers that are associated with it and the resources needed for the capacity provider are being deleted.
The cluster has capacity providers that are associated with it and the resources needed for the capacity provider have failed to create.
The cluster has been deleted. Clusters with an INACTIVE
status may remain discoverable in
your account for a period of time. However, this behavior is subject to change in the future. We don't
recommend that you rely on INACTIVE
clusters persisting.
public Cluster withStatus(String status)
The status of the cluster. The following are the possible states that are returned.
The cluster is ready to accept tasks and if applicable you can register container instances with the cluster.
The cluster has capacity providers that are associated with it and the resources needed for the capacity provider are being created.
The cluster has capacity providers that are associated with it and the resources needed for the capacity provider are being deleted.
The cluster has capacity providers that are associated with it and the resources needed for the capacity provider have failed to create.
The cluster has been deleted. Clusters with an INACTIVE
status may remain discoverable in your
account for a period of time. However, this behavior is subject to change in the future. We don't recommend that
you rely on INACTIVE
clusters persisting.
status
- The status of the cluster. The following are the possible states that are returned.
The cluster is ready to accept tasks and if applicable you can register container instances with the cluster.
The cluster has capacity providers that are associated with it and the resources needed for the capacity provider are being created.
The cluster has capacity providers that are associated with it and the resources needed for the capacity provider are being deleted.
The cluster has capacity providers that are associated with it and the resources needed for the capacity provider have failed to create.
The cluster has been deleted. Clusters with an INACTIVE
status may remain discoverable in
your account for a period of time. However, this behavior is subject to change in the future. We don't
recommend that you rely on INACTIVE
clusters persisting.
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 Cluster 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 Cluster 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 setPendingTasksCount(Integer pendingTasksCount)
The number of tasks in the cluster that are in the PENDING
state.
pendingTasksCount
- The number of tasks in the cluster that are in the PENDING
state.public Integer getPendingTasksCount()
The number of tasks in the cluster that are in the PENDING
state.
PENDING
state.public Cluster withPendingTasksCount(Integer pendingTasksCount)
The number of tasks in the cluster that are in the PENDING
state.
pendingTasksCount
- The number of tasks in the cluster that are in the PENDING
state.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 ListServices.
activeServicesCount
- The number of services that are running on the cluster in an ACTIVE
state. You can view these
services with ListServices.public Integer getActiveServicesCount()
The number of services that are running on the cluster in an ACTIVE
state. You can view these
services with ListServices.
ACTIVE
state. You can view
these services with ListServices.public Cluster withActiveServicesCount(Integer activeServicesCount)
The number of services that are running on the cluster in an ACTIVE
state. You can view these
services with ListServices.
activeServicesCount
- The number of services that are running on the cluster in an ACTIVE
state. You can view these
services with ListServices.public List<KeyValuePair> getStatistics()
Additional information about your clusters that are separated by launch type. They include the following:
runningEC2TasksCount
RunningFargateTasksCount
pendingEC2TasksCount
pendingFargateTasksCount
activeEC2ServiceCount
activeFargateServiceCount
drainingEC2ServiceCount
drainingFargateServiceCount
runningEC2TasksCount
RunningFargateTasksCount
pendingEC2TasksCount
pendingFargateTasksCount
activeEC2ServiceCount
activeFargateServiceCount
drainingEC2ServiceCount
drainingFargateServiceCount
public void setStatistics(Collection<KeyValuePair> statistics)
Additional information about your clusters that are separated by launch type. They include the following:
runningEC2TasksCount
RunningFargateTasksCount
pendingEC2TasksCount
pendingFargateTasksCount
activeEC2ServiceCount
activeFargateServiceCount
drainingEC2ServiceCount
drainingFargateServiceCount
statistics
- Additional information about your clusters that are separated by launch type. They include the
following:
runningEC2TasksCount
RunningFargateTasksCount
pendingEC2TasksCount
pendingFargateTasksCount
activeEC2ServiceCount
activeFargateServiceCount
drainingEC2ServiceCount
drainingFargateServiceCount
public Cluster withStatistics(KeyValuePair... statistics)
Additional information about your clusters that are separated by launch type. They include the following:
runningEC2TasksCount
RunningFargateTasksCount
pendingEC2TasksCount
pendingFargateTasksCount
activeEC2ServiceCount
activeFargateServiceCount
drainingEC2ServiceCount
drainingFargateServiceCount
NOTE: This method appends the values to the existing list (if any). Use
setStatistics(java.util.Collection)
or withStatistics(java.util.Collection)
if you want to
override the existing values.
statistics
- Additional information about your clusters that are separated by launch type. They include the
following:
runningEC2TasksCount
RunningFargateTasksCount
pendingEC2TasksCount
pendingFargateTasksCount
activeEC2ServiceCount
activeFargateServiceCount
drainingEC2ServiceCount
drainingFargateServiceCount
public Cluster withStatistics(Collection<KeyValuePair> statistics)
Additional information about your clusters that are separated by launch type. They include the following:
runningEC2TasksCount
RunningFargateTasksCount
pendingEC2TasksCount
pendingFargateTasksCount
activeEC2ServiceCount
activeFargateServiceCount
drainingEC2ServiceCount
drainingFargateServiceCount
statistics
- Additional information about your clusters that are separated by launch type. They include the
following:
runningEC2TasksCount
RunningFargateTasksCount
pendingEC2TasksCount
pendingFargateTasksCount
activeEC2ServiceCount
activeFargateServiceCount
drainingEC2ServiceCount
drainingFargateServiceCount
public List<Tag> getTags()
The metadata that you apply to the cluster to help you categorize and organize them. Each tag consists of a key and an optional value. You define both.
The following basic restrictions apply to tags:
Maximum number of tags per resource - 50
For each resource, each tag key must be unique, and each tag key can have only one value.
Maximum key length - 128 Unicode characters in UTF-8
Maximum value length - 256 Unicode characters in UTF-8
If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
Tag keys and values are case-sensitive.
Do not use aws:
, AWS:
, or any upper or lowercase combination of such as a prefix for
either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys or values
with this prefix. Tags with this prefix do not count against your tags per resource limit.
The following basic restrictions apply to tags:
Maximum number of tags per resource - 50
For each resource, each tag key must be unique, and each tag key can have only one value.
Maximum key length - 128 Unicode characters in UTF-8
Maximum value length - 256 Unicode characters in UTF-8
If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
Tag keys and values are case-sensitive.
Do not use aws:
, AWS:
, or any upper or lowercase combination of such as a
prefix for either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete
tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource
limit.
public void setTags(Collection<Tag> tags)
The metadata that you apply to the cluster to help you categorize and organize them. Each tag consists of a key and an optional value. You define both.
The following basic restrictions apply to tags:
Maximum number of tags per resource - 50
For each resource, each tag key must be unique, and each tag key can have only one value.
Maximum key length - 128 Unicode characters in UTF-8
Maximum value length - 256 Unicode characters in UTF-8
If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
Tag keys and values are case-sensitive.
Do not use aws:
, AWS:
, or any upper or lowercase combination of such as a prefix for
either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys or values
with this prefix. Tags with this prefix do not count against your tags per resource limit.
tags
- The metadata that you apply to the cluster to help you categorize and organize them. Each tag consists of
a key and an optional value. You define both.
The following basic restrictions apply to tags:
Maximum number of tags per resource - 50
For each resource, each tag key must be unique, and each tag key can have only one value.
Maximum key length - 128 Unicode characters in UTF-8
Maximum value length - 256 Unicode characters in UTF-8
If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
Tag keys and values are case-sensitive.
Do not use aws:
, AWS:
, or any upper or lowercase combination of such as a prefix
for either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag
keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.
public Cluster withTags(Tag... tags)
The metadata that you apply to the cluster to help you categorize and organize them. Each tag consists of a key and an optional value. You define both.
The following basic restrictions apply to tags:
Maximum number of tags per resource - 50
For each resource, each tag key must be unique, and each tag key can have only one value.
Maximum key length - 128 Unicode characters in UTF-8
Maximum value length - 256 Unicode characters in UTF-8
If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
Tag keys and values are case-sensitive.
Do not use aws:
, AWS:
, or any upper or lowercase combination of such as a prefix for
either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys or values
with this prefix. Tags with this prefix do not count against your tags per resource limit.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- The metadata that you apply to the cluster to help you categorize and organize them. Each tag consists of
a key and an optional value. You define both.
The following basic restrictions apply to tags:
Maximum number of tags per resource - 50
For each resource, each tag key must be unique, and each tag key can have only one value.
Maximum key length - 128 Unicode characters in UTF-8
Maximum value length - 256 Unicode characters in UTF-8
If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
Tag keys and values are case-sensitive.
Do not use aws:
, AWS:
, or any upper or lowercase combination of such as a prefix
for either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag
keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.
public Cluster withTags(Collection<Tag> tags)
The metadata that you apply to the cluster to help you categorize and organize them. Each tag consists of a key and an optional value. You define both.
The following basic restrictions apply to tags:
Maximum number of tags per resource - 50
For each resource, each tag key must be unique, and each tag key can have only one value.
Maximum key length - 128 Unicode characters in UTF-8
Maximum value length - 256 Unicode characters in UTF-8
If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
Tag keys and values are case-sensitive.
Do not use aws:
, AWS:
, or any upper or lowercase combination of such as a prefix for
either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys or values
with this prefix. Tags with this prefix do not count against your tags per resource limit.
tags
- The metadata that you apply to the cluster to help you categorize and organize them. Each tag consists of
a key and an optional value. You define both.
The following basic restrictions apply to tags:
Maximum number of tags per resource - 50
For each resource, each tag key must be unique, and each tag key can have only one value.
Maximum key length - 128 Unicode characters in UTF-8
Maximum value length - 256 Unicode characters in UTF-8
If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
Tag keys and values are case-sensitive.
Do not use aws:
, AWS:
, or any upper or lowercase combination of such as a prefix
for either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag
keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.
public List<ClusterSetting> getSettings()
The settings for the cluster. This parameter indicates whether CloudWatch Container Insights is enabled or disabled for a cluster.
public void setSettings(Collection<ClusterSetting> settings)
The settings for the cluster. This parameter indicates whether CloudWatch Container Insights is enabled or disabled for a cluster.
settings
- The settings for the cluster. This parameter indicates whether CloudWatch Container Insights is enabled or
disabled for a cluster.public Cluster withSettings(ClusterSetting... settings)
The settings for the cluster. This parameter indicates whether CloudWatch Container Insights is enabled or disabled for a cluster.
NOTE: This method appends the values to the existing list (if any). Use
setSettings(java.util.Collection)
or withSettings(java.util.Collection)
if you want to override
the existing values.
settings
- The settings for the cluster. This parameter indicates whether CloudWatch Container Insights is enabled or
disabled for a cluster.public Cluster withSettings(Collection<ClusterSetting> settings)
The settings for the cluster. This parameter indicates whether CloudWatch Container Insights is enabled or disabled for a cluster.
settings
- The settings for the cluster. This parameter indicates whether CloudWatch Container Insights is enabled or
disabled for a cluster.public List<String> getCapacityProviders()
The capacity providers associated with the cluster.
public void setCapacityProviders(Collection<String> capacityProviders)
The capacity providers associated with the cluster.
capacityProviders
- The capacity providers associated with the cluster.public Cluster withCapacityProviders(String... capacityProviders)
The capacity providers associated 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 capacity providers associated with the cluster.public Cluster withCapacityProviders(Collection<String> capacityProviders)
The capacity providers associated with the cluster.
capacityProviders
- The capacity providers associated with the cluster.public List<CapacityProviderStrategyItem> getDefaultCapacityProviderStrategy()
The default capacity provider strategy for the cluster. When services or tasks are run in the cluster with no launch type or capacity provider strategy specified, the default capacity provider strategy is used.
public void setDefaultCapacityProviderStrategy(Collection<CapacityProviderStrategyItem> defaultCapacityProviderStrategy)
The default capacity provider strategy for the cluster. When services or tasks are run in the cluster with no launch type or capacity provider strategy specified, the default capacity provider strategy is used.
defaultCapacityProviderStrategy
- The default capacity provider strategy for the cluster. When services or tasks are run in the cluster with
no launch type or capacity provider strategy specified, the default capacity provider strategy is used.public Cluster withDefaultCapacityProviderStrategy(CapacityProviderStrategyItem... defaultCapacityProviderStrategy)
The default capacity provider strategy for the cluster. When services or tasks are run in the cluster with no launch type or capacity provider strategy specified, the default capacity provider strategy is used.
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. When services or tasks are run in the cluster with
no launch type or capacity provider strategy specified, the default capacity provider strategy is used.public Cluster withDefaultCapacityProviderStrategy(Collection<CapacityProviderStrategyItem> defaultCapacityProviderStrategy)
The default capacity provider strategy for the cluster. When services or tasks are run in the cluster with no launch type or capacity provider strategy specified, the default capacity provider strategy is used.
defaultCapacityProviderStrategy
- The default capacity provider strategy for the cluster. When services or tasks are run in the cluster with
no launch type or capacity provider strategy specified, the default capacity provider strategy is used.public List<Attachment> getAttachments()
The resources attached to a cluster. When using a capacity provider with a cluster, the capacity provider and associated resources are returned as cluster attachments.
public void setAttachments(Collection<Attachment> attachments)
The resources attached to a cluster. When using a capacity provider with a cluster, the capacity provider and associated resources are returned as cluster attachments.
attachments
- The resources attached to a cluster. When using a capacity provider with a cluster, the capacity provider
and associated resources are returned as cluster attachments.public Cluster withAttachments(Attachment... attachments)
The resources attached to a cluster. When using a capacity provider with a cluster, the capacity provider and associated resources are returned as cluster attachments.
NOTE: This method appends the values to the existing list (if any). Use
setAttachments(java.util.Collection)
or withAttachments(java.util.Collection)
if you want to
override the existing values.
attachments
- The resources attached to a cluster. When using a capacity provider with a cluster, the capacity provider
and associated resources are returned as cluster attachments.public Cluster withAttachments(Collection<Attachment> attachments)
The resources attached to a cluster. When using a capacity provider with a cluster, the capacity provider and associated resources are returned as cluster attachments.
attachments
- The resources attached to a cluster. When using a capacity provider with a cluster, the capacity provider
and associated resources are returned as cluster attachments.public void setAttachmentsStatus(String attachmentsStatus)
The status of the capacity providers associated with the cluster. The following are the states that are returned.
The available capacity providers for the cluster are updating.
The capacity providers have successfully updated.
The capacity provider updates failed.
attachmentsStatus
- The status of the capacity providers associated with the cluster. The following are the states that are
returned.
The available capacity providers for the cluster are updating.
The capacity providers have successfully updated.
The capacity provider updates failed.
public String getAttachmentsStatus()
The status of the capacity providers associated with the cluster. The following are the states that are returned.
The available capacity providers for the cluster are updating.
The capacity providers have successfully updated.
The capacity provider updates failed.
The available capacity providers for the cluster are updating.
The capacity providers have successfully updated.
The capacity provider updates failed.
public Cluster withAttachmentsStatus(String attachmentsStatus)
The status of the capacity providers associated with the cluster. The following are the states that are returned.
The available capacity providers for the cluster are updating.
The capacity providers have successfully updated.
The capacity provider updates failed.
attachmentsStatus
- The status of the capacity providers associated with the cluster. The following are the states that are
returned.
The available capacity providers for the cluster are updating.
The capacity providers have successfully updated.
The capacity provider updates failed.
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.