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
DescribeEcsClustersrequest.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DescribeEcsClustersResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescribeEcsClustersResultclone()booleanequals(Object obj)List<EcsCluster>getEcsClusters()A list ofEcsClusterobjects containing the cluster descriptions.StringgetNextToken()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'sNextTokenparameter to retrieve the next set of results.inthashCode()voidsetEcsClusters(Collection<EcsCluster> ecsClusters)A list ofEcsClusterobjects containing the cluster descriptions.voidsetNextToken(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'sNextTokenparameter to retrieve the next set of results.StringtoString()Returns a string representation of this object; useful for testing and debugging.DescribeEcsClustersResultwithEcsClusters(EcsCluster... ecsClusters)A list ofEcsClusterobjects containing the cluster descriptions.DescribeEcsClustersResultwithEcsClusters(Collection<EcsCluster> ecsClusters)A list ofEcsClusterobjects containing the cluster descriptions.DescribeEcsClustersResultwithNextToken(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'sNextTokenparameter to retrieve the next set of results.
-
-
-
Method Detail
-
getEcsClusters
public List<EcsCluster> getEcsClusters()
A list of
EcsClusterobjects containing the cluster descriptions.- Returns:
- A list of
EcsClusterobjects containing the cluster descriptions.
-
setEcsClusters
public void setEcsClusters(Collection<EcsCluster> ecsClusters)
A list of
EcsClusterobjects containing the cluster descriptions.- Parameters:
ecsClusters- A list ofEcsClusterobjects containing the cluster descriptions.
-
withEcsClusters
public DescribeEcsClustersResult withEcsClusters(EcsCluster... ecsClusters)
A list of
EcsClusterobjects 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 ofEcsClusterobjects 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
EcsClusterobjects containing the cluster descriptions.- Parameters:
ecsClusters- A list ofEcsClusterobjects 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
NextTokenparameter 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'sNextTokenparameter 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
NextTokenparameter 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
NextTokenparameter 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
NextTokenparameter 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'sNextTokenparameter 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DescribeEcsClustersResult clone()
-
-