public class DescribeEcsClustersRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
DescribeEcsClusters operation
.
Describes Amazon ECS clusters that are registered with a stack. If you
specify only a stack ID, you can use the MaxResults
and
NextToken
parameters to paginate the response. However,
AWS OpsWorks currently supports only one cluster per layer, so the
result set has a maximum of one element.
Required Permissions : To use this action, an IAM user must have a Show, Deploy, or Manage permissions level for the stack or an attached policy that explicitly grants permission. For more information on user permissions, see Managing User Permissions .
NOOP
Constructor and Description |
---|
DescribeEcsClustersRequest() |
Modifier and Type | Method and Description |
---|---|
DescribeEcsClustersRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
List<String> |
getEcsClusterArns()
A list of ARNs, one for each cluster to be described.
|
Integer |
getMaxResults()
To receive a paginated response, use this parameter to specify the
maximum number of results to be returned with a single call.
|
String |
getNextToken()
If the previous paginated request did not return all of the remaining
results, the response object's
NextToken parameter value
is set to a token. |
String |
getStackId()
A stack ID.
|
int |
hashCode() |
void |
setEcsClusterArns(Collection<String> ecsClusterArns)
A list of ARNs, one for each cluster to be described.
|
void |
setMaxResults(Integer maxResults)
To receive a paginated response, use this parameter to specify the
maximum number of results to be returned with a single call.
|
void |
setNextToken(String nextToken)
If the previous paginated request did not return all of the remaining
results, the response object's
NextToken parameter value
is set to a token. |
void |
setStackId(String stackId)
A stack ID.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeEcsClustersRequest |
withEcsClusterArns(Collection<String> ecsClusterArns)
A list of ARNs, one for each cluster to be described.
|
DescribeEcsClustersRequest |
withEcsClusterArns(String... ecsClusterArns)
A list of ARNs, one for each cluster to be described.
|
DescribeEcsClustersRequest |
withMaxResults(Integer maxResults)
To receive a paginated response, use this parameter to specify the
maximum number of results to be returned with a single call.
|
DescribeEcsClustersRequest |
withNextToken(String nextToken)
If the previous paginated request did not return all of the remaining
results, the response object's
NextToken parameter value
is set to a token. |
DescribeEcsClustersRequest |
withStackId(String stackId)
A stack ID.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public List<String> getEcsClusterArns()
public void setEcsClusterArns(Collection<String> ecsClusterArns)
ecsClusterArns
- A list of ARNs, one for each cluster to be described.public DescribeEcsClustersRequest withEcsClusterArns(String... ecsClusterArns)
NOTE: This method appends the values to the existing list (if
any). Use setEcsClusterArns(java.util.Collection)
or withEcsClusterArns(java.util.Collection)
if you want to override the
existing values.
Returns a reference to this object so that method calls can be chained together.
ecsClusterArns
- A list of ARNs, one for each cluster to be described.public DescribeEcsClustersRequest withEcsClusterArns(Collection<String> ecsClusterArns)
Returns a reference to this object so that method calls can be chained together.
ecsClusterArns
- A list of ARNs, one for each cluster to be described.public String getStackId()
DescribeEcsClusters
returns a description of
the cluster that is registered with the stack.DescribeEcsClusters
returns a description of
the cluster that is registered with the stack.public void setStackId(String stackId)
DescribeEcsClusters
returns a description of
the cluster that is registered with the stack.stackId
- A stack ID. DescribeEcsClusters
returns a description of
the cluster that is registered with the stack.public DescribeEcsClustersRequest withStackId(String stackId)
DescribeEcsClusters
returns a description of
the cluster that is registered with the stack.
Returns a reference to this object so that method calls can be chained together.
stackId
- A stack ID. DescribeEcsClusters
returns a description of
the cluster that is registered with the stack.public String getNextToken()
NextToken
parameter value
is set to a token. To retrieve the next set of results, call
DescribeEcsClusters
again and assign that token to the
request object's NextToken
parameter. If there are no
remaining results, the previous response object's
NextToken
parameter is set to null
.NextToken
parameter value
is set to a token. To retrieve the next set of results, call
DescribeEcsClusters
again and assign that token to the
request object's NextToken
parameter. If there are no
remaining results, the previous response object's
NextToken
parameter is set to null
.public void setNextToken(String nextToken)
NextToken
parameter value
is set to a token. To retrieve the next set of results, call
DescribeEcsClusters
again and assign that token to the
request object's NextToken
parameter. If there are no
remaining results, the previous response object's
NextToken
parameter is set to null
.nextToken
- If the previous paginated request did not return all of the remaining
results, the response object'sNextToken
parameter value
is set to a token. To retrieve the next set of results, call
DescribeEcsClusters
again and assign that token to the
request object's NextToken
parameter. If there are no
remaining results, the previous response object's
NextToken
parameter is set to null
.public DescribeEcsClustersRequest withNextToken(String nextToken)
NextToken
parameter value
is set to a token. To retrieve the next set of results, call
DescribeEcsClusters
again and assign that token to the
request object's NextToken
parameter. If there are no
remaining results, the previous response object's
NextToken
parameter is set to null
.
Returns a reference to this object so that method calls can be chained together.
nextToken
- If the previous paginated request did not return all of the remaining
results, the response object'sNextToken
parameter value
is set to a token. To retrieve the next set of results, call
DescribeEcsClusters
again and assign that token to the
request object's NextToken
parameter. If there are no
remaining results, the previous response object's
NextToken
parameter is set to null
.public Integer getMaxResults()
NextToken
value that you can assign to the
NextToken
request parameter to get the next set of
results.NextToken
value that you can assign to the
NextToken
request parameter to get the next set of
results.public void setMaxResults(Integer maxResults)
NextToken
value that you can assign to the
NextToken
request parameter to get the next set of
results.maxResults
- To receive a paginated response, use this parameter to specify the
maximum number of results to be returned with a single call. If the
number of available results exceeds this maximum, the response
includes a NextToken
value that you can assign to the
NextToken
request parameter to get the next set of
results.public DescribeEcsClustersRequest withMaxResults(Integer maxResults)
NextToken
value that you can assign to the
NextToken
request parameter to get the next set of
results.
Returns a reference to this object so that method calls can be chained together.
maxResults
- To receive a paginated response, use this parameter to specify the
maximum number of results to be returned with a single call. If the
number of available results exceeds this maximum, the response
includes a NextToken
value that you can assign to the
NextToken
request parameter to get the next set of
results.public String toString()
toString
in class Object
Object.toString()
public DescribeEcsClustersRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.