public class CreateClusterRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
CreateCluster operation
.
Creates a new Amazon ECS cluster. By default, your account will
receive a default
cluster when you launch your first
container instance. However, you can create your own cluster with a
unique name with the CreateCluster
action.
NOOP
Constructor and Description |
---|
CreateClusterRequest() |
Modifier and Type | Method and Description |
---|---|
CreateClusterRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getClusterName()
The name of your cluster.
|
int |
hashCode() |
void |
setClusterName(String clusterName)
The name of your cluster.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateClusterRequest |
withClusterName(String clusterName)
The name of your cluster.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getClusterName()
default
. Up to
255 letters (uppercase and lowercase), numbers, hyphens, and
underscores are allowed.default
. Up to
255 letters (uppercase and lowercase), numbers, hyphens, and
underscores are allowed.public void setClusterName(String clusterName)
default
. Up to
255 letters (uppercase and lowercase), numbers, hyphens, and
underscores are allowed.clusterName
- The name of your cluster. If you do not specify a name for your
cluster, you will create a cluster named default
. Up to
255 letters (uppercase and lowercase), numbers, hyphens, and
underscores are allowed.public CreateClusterRequest withClusterName(String clusterName)
default
. Up to
255 letters (uppercase and lowercase), numbers, hyphens, and
underscores are allowed.
Returns a reference to this object so that method calls can be chained together.
clusterName
- The name of your cluster. If you do not specify a name for your
cluster, you will create a cluster named default
. Up to
255 letters (uppercase and lowercase), numbers, hyphens, and
underscores are allowed.public String toString()
toString
in class Object
Object.toString()
public CreateClusterRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.