public class DescribeEcsClustersResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains the response to a DescribeEcsClusters
request.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<EcsCluster> |
ecsClusters
A list of
EcsCluster objects containing the cluster
descriptions. |
private java.lang.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. |
Constructor and Description |
---|
DescribeEcsClustersResult() |
Modifier and Type | Method and Description |
---|---|
DescribeEcsClustersResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<EcsCluster> |
getEcsClusters()
A list of
EcsCluster objects containing the cluster
descriptions. |
java.lang.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. |
int |
hashCode() |
void |
setEcsClusters(java.util.Collection<EcsCluster> ecsClusters)
A list of
EcsCluster objects containing the cluster
descriptions. |
void |
setNextToken(java.lang.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. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeEcsClustersResult |
withEcsClusters(java.util.Collection<EcsCluster> ecsClusters)
A list of
EcsCluster objects containing the cluster
descriptions. |
DescribeEcsClustersResult |
withEcsClusters(EcsCluster... ecsClusters)
A list of
EcsCluster objects containing the cluster
descriptions. |
DescribeEcsClustersResult |
withNextToken(java.lang.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. |
private SdkInternalList<EcsCluster> ecsClusters
A list of EcsCluster
objects containing the cluster
descriptions.
private java.lang.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 to null
.
public java.util.List<EcsCluster> getEcsClusters()
A list of EcsCluster
objects containing the cluster
descriptions.
EcsCluster
objects containing the cluster
descriptions.public void setEcsClusters(java.util.Collection<EcsCluster> ecsClusters)
A list of EcsCluster
objects containing the cluster
descriptions.
ecsClusters
- A list of EcsCluster
objects containing the cluster
descriptions.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)
or
withEcsClusters(java.util.Collection)
if you want to override
the existing values.
ecsClusters
- A list of EcsCluster
objects containing the cluster
descriptions.public DescribeEcsClustersResult withEcsClusters(java.util.Collection<EcsCluster> ecsClusters)
A list of EcsCluster
objects containing the cluster
descriptions.
ecsClusters
- A list of EcsCluster
objects containing the cluster
descriptions.public void setNextToken(java.lang.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 to null
.
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 to
null
.public java.lang.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 to null
.
NextToken
parameter to retrieve
the next set of results. If the previous paginated request
returned all of the remaining results, this parameter is set to
null
.public DescribeEcsClustersResult withNextToken(java.lang.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 to null
.
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 to
null
.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public DescribeEcsClustersResult clone()
clone
in class java.lang.Object