@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListLocationsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
ListLocationsResponse
Constructor and Description |
---|
ListLocationsResult() |
Modifier and Type | Method and Description |
---|---|
ListLocationsResult |
clone() |
boolean |
equals(Object obj) |
List<LocationListEntry> |
getLocations()
An array that contains a list of locations.
|
String |
getNextToken()
An opaque string that indicates the position at which to begin returning the next list of locations.
|
int |
hashCode() |
void |
setLocations(Collection<LocationListEntry> locations)
An array that contains a list of locations.
|
void |
setNextToken(String nextToken)
An opaque string that indicates the position at which to begin returning the next list of locations.
|
String |
toString()
Returns a string representation of this object.
|
ListLocationsResult |
withLocations(Collection<LocationListEntry> locations)
An array that contains a list of locations.
|
ListLocationsResult |
withLocations(LocationListEntry... locations)
An array that contains a list of locations.
|
ListLocationsResult |
withNextToken(String nextToken)
An opaque string that indicates the position at which to begin returning the next list of locations.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<LocationListEntry> getLocations()
An array that contains a list of locations.
public void setLocations(Collection<LocationListEntry> locations)
An array that contains a list of locations.
locations
- An array that contains a list of locations.public ListLocationsResult withLocations(LocationListEntry... locations)
An array that contains a list of locations.
NOTE: This method appends the values to the existing list (if any). Use
setLocations(java.util.Collection)
or withLocations(java.util.Collection)
if you want to
override the existing values.
locations
- An array that contains a list of locations.public ListLocationsResult withLocations(Collection<LocationListEntry> locations)
An array that contains a list of locations.
locations
- An array that contains a list of locations.public void setNextToken(String nextToken)
An opaque string that indicates the position at which to begin returning the next list of locations.
nextToken
- An opaque string that indicates the position at which to begin returning the next list of locations.public String getNextToken()
An opaque string that indicates the position at which to begin returning the next list of locations.
public ListLocationsResult withNextToken(String nextToken)
An opaque string that indicates the position at which to begin returning the next list of locations.
nextToken
- An opaque string that indicates the position at which to begin returning the next list of locations.public String toString()
toString
in class Object
Object.toString()
public ListLocationsResult clone()