@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListClustersResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListClustersResult() |
Modifier and Type | Method and Description |
---|---|
ListClustersResult |
clone() |
boolean |
equals(Object obj) |
List<String> |
getClusters()
A list of all of the clusters for your account in the specified Region.
|
String |
getNextToken()
The
nextToken value to include in a future ListClusters request. |
int |
hashCode() |
void |
setClusters(Collection<String> clusters)
A list of all of the clusters for your account in the specified Region.
|
void |
setNextToken(String nextToken)
The
nextToken value to include in a future ListClusters request. |
String |
toString()
Returns a string representation of this object.
|
ListClustersResult |
withClusters(Collection<String> clusters)
A list of all of the clusters for your account in the specified Region.
|
ListClustersResult |
withClusters(String... clusters)
A list of all of the clusters for your account in the specified Region.
|
ListClustersResult |
withNextToken(String nextToken)
The
nextToken value to include in a future ListClusters request. |
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<String> getClusters()
A list of all of the clusters for your account in the specified Region.
public void setClusters(Collection<String> clusters)
A list of all of the clusters for your account in the specified Region.
clusters
- A list of all of the clusters for your account in the specified Region.public ListClustersResult withClusters(String... clusters)
A list of all of the clusters for your account in the specified Region.
NOTE: This method appends the values to the existing list (if any). Use
setClusters(java.util.Collection)
or withClusters(java.util.Collection)
if you want to override
the existing values.
clusters
- A list of all of the clusters for your account in the specified Region.public ListClustersResult withClusters(Collection<String> clusters)
A list of all of the clusters for your account in the specified Region.
clusters
- A list of all of the clusters for your account in the specified Region.public void setNextToken(String nextToken)
The nextToken
value to include in a future ListClusters
request. When the results of a
ListClusters
request exceed maxResults
, you can use this value to retrieve the next
page of results. This value is null
when there are no more results to return.
nextToken
- The nextToken
value to include in a future ListClusters
request. When the
results of a ListClusters
request exceed maxResults
, you can use this value to
retrieve the next page of results. This value is null
when there are no more results to
return.public String getNextToken()
The nextToken
value to include in a future ListClusters
request. When the results of a
ListClusters
request exceed maxResults
, you can use this value to retrieve the next
page of results. This value is null
when there are no more results to return.
nextToken
value to include in a future ListClusters
request. When the
results of a ListClusters
request exceed maxResults
, you can use this value to
retrieve the next page of results. This value is null
when there are no more results to
return.public ListClustersResult withNextToken(String nextToken)
The nextToken
value to include in a future ListClusters
request. When the results of a
ListClusters
request exceed maxResults
, you can use this value to retrieve the next
page of results. This value is null
when there are no more results to return.
nextToken
- The nextToken
value to include in a future ListClusters
request. When the
results of a ListClusters
request exceed maxResults
, you can use this value to
retrieve the next page of results. This value is null
when there are no more results to
return.public String toString()
toString
in class Object
Object.toString()
public ListClustersResult clone()