@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 on which 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. |
String |
getClusterArn()
The Amazon Resource Name (ARN) that identifies the cluster.
|
String |
getClusterName()
A user-generated string that you use to identify your 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. |
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 |
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 |
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 |
setStatus(String status)
The status of the cluster.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Cluster |
withActiveServicesCount(Integer activeServicesCount)
The number of services that are running on the cluster in an
ACTIVE state. |
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 |
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 |
withStatus(String status)
The status of the cluster.
|
public void setClusterArn(String clusterArn)
The Amazon Resource Name (ARN) that identifies the cluster. The ARN contains the arn:aws:ecs
namespace, followed by the region of the cluster, the AWS account ID of the cluster owner, the
cluster
namespace, and then the cluster name. For example,
arn:aws:ecs:region:012345678910:cluster/test
..
clusterArn
- The Amazon Resource Name (ARN) that identifies the cluster. The ARN contains the arn:aws:ecs
namespace, followed by the region of the cluster, the AWS account ID of the cluster owner, the
cluster
namespace, and then the cluster name. For example,
arn:aws:ecs:region:012345678910:cluster/test
..public String getClusterArn()
The Amazon Resource Name (ARN) that identifies the cluster. The ARN contains the arn:aws:ecs
namespace, followed by the region of the cluster, the AWS account ID of the cluster owner, the
cluster
namespace, and then the cluster name. For example,
arn:aws:ecs:region:012345678910:cluster/test
..
arn:aws:ecs
namespace, followed by the region of the cluster, the AWS account ID of the cluster owner, the
cluster
namespace, and then the cluster name. For example,
arn:aws:ecs:region:012345678910:cluster/test
..public Cluster withClusterArn(String clusterArn)
The Amazon Resource Name (ARN) that identifies the cluster. The ARN contains the arn:aws:ecs
namespace, followed by the region of the cluster, the AWS account ID of the cluster owner, the
cluster
namespace, and then the cluster name. For example,
arn:aws:ecs:region:012345678910:cluster/test
..
clusterArn
- The Amazon Resource Name (ARN) that identifies the cluster. The ARN contains the arn:aws:ecs
namespace, followed by the region of the cluster, the AWS account ID of the cluster owner, the
cluster
namespace, and then the cluster name. For example,
arn:aws:ecs:region:012345678910:cluster/test
..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 setStatus(String status)
The status of the cluster. The valid values are ACTIVE
or INACTIVE
. ACTIVE
indicates that you can register container instances with the cluster and the associated instances can accept
tasks.
status
- The status of the cluster. The valid values are ACTIVE
or INACTIVE
.
ACTIVE
indicates that you can register container instances with the cluster and the
associated instances can accept tasks.public String getStatus()
The status of the cluster. The valid values are ACTIVE
or INACTIVE
. ACTIVE
indicates that you can register container instances with the cluster and the associated instances can accept
tasks.
ACTIVE
or INACTIVE
.
ACTIVE
indicates that you can register container instances with the cluster and the
associated instances can accept tasks.public Cluster withStatus(String status)
The status of the cluster. The valid values are ACTIVE
or INACTIVE
. ACTIVE
indicates that you can register container instances with the cluster and the associated instances can accept
tasks.
status
- The status of the cluster. The valid values are ACTIVE
or INACTIVE
.
ACTIVE
indicates that you can register container instances with the cluster and the
associated instances can accept tasks.public void setRegisteredContainerInstancesCount(Integer registeredContainerInstancesCount)
The number of container instances registered into the cluster.
registeredContainerInstancesCount
- The number of container instances registered into the cluster.public Integer getRegisteredContainerInstancesCount()
The number of container instances registered into the cluster.
public Cluster withRegisteredContainerInstancesCount(Integer registeredContainerInstancesCount)
The number of container instances registered into the cluster.
registeredContainerInstancesCount
- The number of container instances registered into the cluster.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 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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.