Class DescribeEcsClustersResult
- java.lang.Object
-
- com.amazonaws.services.opsworks.model.DescribeEcsClustersResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class DescribeEcsClustersResult extends Object implements Serializable, Cloneable
Contains the response to a
DescribeEcsClusters
request.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DescribeEcsClustersResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescribeEcsClustersResult
clone()
boolean
equals(Object obj)
List<EcsCluster>
getEcsClusters()
A list ofEcsCluster
objects containing the cluster descriptions.String
getNextToken()
If a paginated request does not return all of the remaining results, this parameter is set to a token that you can assign to the request object'sNextToken
parameter to retrieve the next set of results.int
hashCode()
void
setEcsClusters(Collection<EcsCluster> ecsClusters)
A list ofEcsCluster
objects containing the cluster descriptions.void
setNextToken(String nextToken)
If a paginated request does not return all of the remaining results, this parameter is set to a token that you can assign to the request object'sNextToken
parameter to retrieve the next set of results.String
toString()
Returns a string representation of this object; useful for testing and debugging.DescribeEcsClustersResult
withEcsClusters(EcsCluster... ecsClusters)
A list ofEcsCluster
objects containing the cluster descriptions.DescribeEcsClustersResult
withEcsClusters(Collection<EcsCluster> ecsClusters)
A list ofEcsCluster
objects containing the cluster descriptions.DescribeEcsClustersResult
withNextToken(String nextToken)
If a paginated request does not return all of the remaining results, this parameter is set to a token that you can assign to the request object'sNextToken
parameter to retrieve the next set of results.
-
-
-
Method Detail
-
getEcsClusters
public List<EcsCluster> getEcsClusters()
A list of
EcsCluster
objects containing the cluster descriptions.- Returns:
- A list of
EcsCluster
objects containing the cluster descriptions.
-
setEcsClusters
public void setEcsClusters(Collection<EcsCluster> ecsClusters)
A list of
EcsCluster
objects containing the cluster descriptions.- Parameters:
ecsClusters
- A list ofEcsCluster
objects containing the cluster descriptions.
-
withEcsClusters
public DescribeEcsClustersResult withEcsClusters(EcsCluster... ecsClusters)
A list of
EcsCluster
objects containing the cluster descriptions.NOTE: This method appends the values to the existing list (if any). Use
setEcsClusters(java.util.Collection)
orwithEcsClusters(java.util.Collection)
if you want to override the existing values.- Parameters:
ecsClusters
- A list ofEcsCluster
objects containing the cluster descriptions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withEcsClusters
public DescribeEcsClustersResult withEcsClusters(Collection<EcsCluster> ecsClusters)
A list of
EcsCluster
objects containing the cluster descriptions.- Parameters:
ecsClusters
- A list ofEcsCluster
objects containing the cluster descriptions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNextToken
public void setNextToken(String nextToken)
If a paginated request does not return all of the remaining results, this parameter is set to a token that you can assign to the request object's
NextToken
parameter to retrieve the next set of results. If the previous paginated request returned all of the remaining results, this parameter is set tonull
.- Parameters:
nextToken
- If a paginated request does not return all of the remaining results, this parameter is set to a token that you can assign to the request object'sNextToken
parameter to retrieve the next set of results. If the previous paginated request returned all of the remaining results, this parameter is set tonull
.
-
getNextToken
public String getNextToken()
If a paginated request does not return all of the remaining results, this parameter is set to a token that you can assign to the request object's
NextToken
parameter to retrieve the next set of results. If the previous paginated request returned all of the remaining results, this parameter is set tonull
.- Returns:
- If a paginated request does not return all of the remaining
results, this parameter is set to a token that you can assign to
the request object's
NextToken
parameter to retrieve the next set of results. If the previous paginated request returned all of the remaining results, this parameter is set tonull
.
-
withNextToken
public DescribeEcsClustersResult withNextToken(String nextToken)
If a paginated request does not return all of the remaining results, this parameter is set to a token that you can assign to the request object's
NextToken
parameter to retrieve the next set of results. If the previous paginated request returned all of the remaining results, this parameter is set tonull
.- Parameters:
nextToken
- If a paginated request does not return all of the remaining results, this parameter is set to a token that you can assign to the request object'sNextToken
parameter to retrieve the next set of results. If the previous paginated request returned all of the remaining results, this parameter is set tonull
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DescribeEcsClustersResult clone()
-
-