Class Cluster
- All Implemented Interfaces:
Serializable, Cloneable
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.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanThe number of services that are running on the cluster in anACTIVEstate.The Amazon Resource Name (ARN) that identifies the cluster.A user-generated string that you use to identify your cluster.The number of tasks in the cluster that are in thePENDINGstate.The number of container instances registered into the cluster.The number of tasks in the cluster that are in theRUNNINGstate.The status of the cluster.inthashCode()voidsetActiveServicesCount(Integer activeServicesCount) The number of services that are running on the cluster in anACTIVEstate.voidsetClusterArn(String clusterArn) The Amazon Resource Name (ARN) that identifies the cluster.voidsetClusterName(String clusterName) A user-generated string that you use to identify your cluster.voidsetPendingTasksCount(Integer pendingTasksCount) The number of tasks in the cluster that are in thePENDINGstate.voidsetRegisteredContainerInstancesCount(Integer registeredContainerInstancesCount) The number of container instances registered into the cluster.voidsetRunningTasksCount(Integer runningTasksCount) The number of tasks in the cluster that are in theRUNNINGstate.voidThe status of the cluster.toString()Returns a string representation of this object; useful for testing and debugging.withActiveServicesCount(Integer activeServicesCount) The number of services that are running on the cluster in anACTIVEstate.withClusterArn(String clusterArn) The Amazon Resource Name (ARN) that identifies the cluster.withClusterName(String clusterName) A user-generated string that you use to identify your cluster.withPendingTasksCount(Integer pendingTasksCount) The number of tasks in the cluster that are in thePENDINGstate.withRegisteredContainerInstancesCount(Integer registeredContainerInstancesCount) The number of container instances registered into the cluster.withRunningTasksCount(Integer runningTasksCount) The number of tasks in the cluster that are in theRUNNINGstate.withStatus(String status) The status of the cluster.
-
Constructor Details
-
Cluster
public Cluster()
-
-
Method Details
-
setClusterArn
The Amazon Resource Name (ARN) that identifies the cluster. The ARN contains the
arn:aws:ecsnamespace, followed by the region of the cluster, the AWS account ID of the cluster owner, theclusternamespace, and then the cluster name. For example,arn:aws:ecs:region:012345678910:cluster/test..- Parameters:
clusterArn- The Amazon Resource Name (ARN) that identifies the cluster. The ARN contains thearn:aws:ecsnamespace, followed by the region of the cluster, the AWS account ID of the cluster owner, theclusternamespace, and then the cluster name. For example,arn:aws:ecs:region:012345678910:cluster/test..
-
getClusterArn
The Amazon Resource Name (ARN) that identifies the cluster. The ARN contains the
arn:aws:ecsnamespace, followed by the region of the cluster, the AWS account ID of the cluster owner, theclusternamespace, and then the cluster name. For example,arn:aws:ecs:region:012345678910:cluster/test..- Returns:
- The Amazon Resource Name (ARN) that identifies the cluster. The
ARN contains the
arn:aws:ecsnamespace, followed by the region of the cluster, the AWS account ID of the cluster owner, theclusternamespace, and then the cluster name. For example,arn:aws:ecs:region:012345678910:cluster/test..
-
withClusterArn
The Amazon Resource Name (ARN) that identifies the cluster. The ARN contains the
arn:aws:ecsnamespace, followed by the region of the cluster, the AWS account ID of the cluster owner, theclusternamespace, and then the cluster name. For example,arn:aws:ecs:region:012345678910:cluster/test..- Parameters:
clusterArn- The Amazon Resource Name (ARN) that identifies the cluster. The ARN contains thearn:aws:ecsnamespace, followed by the region of the cluster, the AWS account ID of the cluster owner, theclusternamespace, and then the cluster name. For example,arn:aws:ecs:region:012345678910:cluster/test..- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setClusterName
A user-generated string that you use to identify your cluster.
- Parameters:
clusterName- A user-generated string that you use to identify your cluster.
-
getClusterName
A user-generated string that you use to identify your cluster.
- Returns:
- A user-generated string that you use to identify your cluster.
-
withClusterName
-
setStatus
The status of the cluster. The valid values are
ACTIVEorINACTIVE.ACTIVEindicates that you can register container instances with the cluster and the associated instances can accept tasks.- Parameters:
status- The status of the cluster. The valid values areACTIVEorINACTIVE.ACTIVEindicates that you can register container instances with the cluster and the associated instances can accept tasks.
-
getStatus
The status of the cluster. The valid values are
ACTIVEorINACTIVE.ACTIVEindicates that you can register container instances with the cluster and the associated instances can accept tasks.- Returns:
- The status of the cluster. The valid values are
ACTIVEorINACTIVE.ACTIVEindicates that you can register container instances with the cluster and the associated instances can accept tasks.
-
withStatus
The status of the cluster. The valid values are
ACTIVEorINACTIVE.ACTIVEindicates that you can register container instances with the cluster and the associated instances can accept tasks.- Parameters:
status- The status of the cluster. The valid values areACTIVEorINACTIVE.ACTIVEindicates that you can register container instances with the cluster and the associated instances can accept tasks.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRegisteredContainerInstancesCount
The number of container instances registered into the cluster.
- Parameters:
registeredContainerInstancesCount- The number of container instances registered into the cluster.
-
getRegisteredContainerInstancesCount
The number of container instances registered into the cluster.
- Returns:
- The number of container instances registered into the cluster.
-
withRegisteredContainerInstancesCount
The number of container instances registered into the cluster.
- Parameters:
registeredContainerInstancesCount- The number of container instances registered into the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRunningTasksCount
The number of tasks in the cluster that are in the
RUNNINGstate.- Parameters:
runningTasksCount- The number of tasks in the cluster that are in theRUNNINGstate.
-
getRunningTasksCount
The number of tasks in the cluster that are in the
RUNNINGstate.- Returns:
- The number of tasks in the cluster that are in the
RUNNINGstate.
-
withRunningTasksCount
The number of tasks in the cluster that are in the
RUNNINGstate.- Parameters:
runningTasksCount- The number of tasks in the cluster that are in theRUNNINGstate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPendingTasksCount
The number of tasks in the cluster that are in the
PENDINGstate.- Parameters:
pendingTasksCount- The number of tasks in the cluster that are in thePENDINGstate.
-
getPendingTasksCount
The number of tasks in the cluster that are in the
PENDINGstate.- Returns:
- The number of tasks in the cluster that are in the
PENDINGstate.
-
withPendingTasksCount
The number of tasks in the cluster that are in the
PENDINGstate.- Parameters:
pendingTasksCount- The number of tasks in the cluster that are in thePENDINGstate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setActiveServicesCount
The number of services that are running on the cluster in an
ACTIVEstate. You can view these services with ListServices.- Parameters:
activeServicesCount- The number of services that are running on the cluster in anACTIVEstate. You can view these services with ListServices.
-
getActiveServicesCount
The number of services that are running on the cluster in an
ACTIVEstate. You can view these services with ListServices.- Returns:
- The number of services that are running on the cluster in an
ACTIVEstate. You can view these services with ListServices.
-
withActiveServicesCount
The number of services that are running on the cluster in an
ACTIVEstate. You can view these services with ListServices.- Parameters:
activeServicesCount- The number of services that are running on the cluster in anACTIVEstate. You can view these services with ListServices.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
-
equals
-
hashCode
-
clone
-