@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListRegionsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListRegionsResult() |
Modifier and Type | Method and Description |
---|---|
ListRegionsResult |
clone() |
boolean |
equals(Object obj) |
String |
getNextToken()
If there is more data to be returned, this will be populated.
|
List<Region> |
getRegions()
This is a list of Regions for a given account, or if the filtered parameter was used, a list of Regions that
match the filter criteria set in the
filter parameter. |
int |
hashCode() |
void |
setNextToken(String nextToken)
If there is more data to be returned, this will be populated.
|
void |
setRegions(Collection<Region> regions)
This is a list of Regions for a given account, or if the filtered parameter was used, a list of Regions that
match the filter criteria set in the
filter parameter. |
String |
toString()
Returns a string representation of this object.
|
ListRegionsResult |
withNextToken(String nextToken)
If there is more data to be returned, this will be populated.
|
ListRegionsResult |
withRegions(Collection<Region> regions)
This is a list of Regions for a given account, or if the filtered parameter was used, a list of Regions that
match the filter criteria set in the
filter parameter. |
ListRegionsResult |
withRegions(Region... regions)
This is a list of Regions for a given account, or if the filtered parameter was used, a list of Regions that
match the filter criteria set in the
filter parameter. |
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setNextToken(String nextToken)
If there is more data to be returned, this will be populated. It should be passed into the
next-token
request parameter of list-regions
.
nextToken
- If there is more data to be returned, this will be populated. It should be passed into the
next-token
request parameter of list-regions
.public String getNextToken()
If there is more data to be returned, this will be populated. It should be passed into the
next-token
request parameter of list-regions
.
next-token
request parameter of list-regions
.public ListRegionsResult withNextToken(String nextToken)
If there is more data to be returned, this will be populated. It should be passed into the
next-token
request parameter of list-regions
.
nextToken
- If there is more data to be returned, this will be populated. It should be passed into the
next-token
request parameter of list-regions
.public List<Region> getRegions()
This is a list of Regions for a given account, or if the filtered parameter was used, a list of Regions that
match the filter criteria set in the filter
parameter.
filter
parameter.public void setRegions(Collection<Region> regions)
This is a list of Regions for a given account, or if the filtered parameter was used, a list of Regions that
match the filter criteria set in the filter
parameter.
regions
- This is a list of Regions for a given account, or if the filtered parameter was used, a list of Regions
that match the filter criteria set in the filter
parameter.public ListRegionsResult withRegions(Region... regions)
This is a list of Regions for a given account, or if the filtered parameter was used, a list of Regions that
match the filter criteria set in the filter
parameter.
NOTE: This method appends the values to the existing list (if any). Use
setRegions(java.util.Collection)
or withRegions(java.util.Collection)
if you want to override
the existing values.
regions
- This is a list of Regions for a given account, or if the filtered parameter was used, a list of Regions
that match the filter criteria set in the filter
parameter.public ListRegionsResult withRegions(Collection<Region> regions)
This is a list of Regions for a given account, or if the filtered parameter was used, a list of Regions that
match the filter criteria set in the filter
parameter.
regions
- This is a list of Regions for a given account, or if the filtered parameter was used, a list of Regions
that match the filter criteria set in the filter
parameter.public String toString()
toString
in class Object
Object.toString()
public ListRegionsResult clone()