@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListSourceLocationsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListSourceLocationsResult() |
Modifier and Type | Method and Description |
---|---|
ListSourceLocationsResult |
clone() |
boolean |
equals(Object obj) |
List<SourceLocation> |
getItems()
A list of source locations.
|
String |
getNextToken()
Pagination token from the list request.
|
int |
hashCode() |
void |
setItems(Collection<SourceLocation> items)
A list of source locations.
|
void |
setNextToken(String nextToken)
Pagination token from the list request.
|
String |
toString()
Returns a string representation of this object.
|
ListSourceLocationsResult |
withItems(Collection<SourceLocation> items)
A list of source locations.
|
ListSourceLocationsResult |
withItems(SourceLocation... items)
A list of source locations.
|
ListSourceLocationsResult |
withNextToken(String nextToken)
Pagination token from the list request.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<SourceLocation> getItems()
A list of source locations.
public void setItems(Collection<SourceLocation> items)
A list of source locations.
items
- A list of source locations.public ListSourceLocationsResult withItems(SourceLocation... items)
A list of source locations.
NOTE: This method appends the values to the existing list (if any). Use
setItems(java.util.Collection)
or withItems(java.util.Collection)
if you want to override the
existing values.
items
- A list of source locations.public ListSourceLocationsResult withItems(Collection<SourceLocation> items)
A list of source locations.
items
- A list of source locations.public void setNextToken(String nextToken)
Pagination token from the list request. Use the token to fetch the next page of results.
nextToken
- Pagination token from the list request. Use the token to fetch the next page of results.public String getNextToken()
Pagination token from the list request. Use the token to fetch the next page of results.
public ListSourceLocationsResult withNextToken(String nextToken)
Pagination token from the list request. Use the token to fetch the next page of results.
nextToken
- Pagination token from the list request. Use the token to fetch the next page of results.public String toString()
toString
in class Object
Object.toString()
public ListSourceLocationsResult clone()