public class ListDatasetsResult extends Object implements Serializable, Cloneable
Returned for a successful ListDatasets request.
| Constructor and Description |
|---|
ListDatasetsResult() |
| Modifier and Type | Method and Description |
|---|---|
ListDatasetsResult |
clone() |
boolean |
equals(Object obj) |
Integer |
getCount()
Number of datasets returned.
|
List<Dataset> |
getDatasets()
A set of datasets.
|
String |
getNextToken()
A pagination token for obtaining the next page of results.
|
int |
hashCode() |
void |
setCount(Integer count)
Number of datasets returned.
|
void |
setDatasets(Collection<Dataset> datasets)
A set of datasets.
|
void |
setNextToken(String nextToken)
A pagination token for obtaining the next page of results.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ListDatasetsResult |
withCount(Integer count)
Number of datasets returned.
|
ListDatasetsResult |
withDatasets(Collection<Dataset> datasets)
A set of datasets.
|
ListDatasetsResult |
withDatasets(Dataset... datasets)
A set of datasets.
|
ListDatasetsResult |
withNextToken(String nextToken)
A pagination token for obtaining the next page of results.
|
public void setDatasets(Collection<Dataset> datasets)
datasets - A set of datasets.public ListDatasetsResult withDatasets(Dataset... datasets)
NOTE: This method appends the values to the existing list (if
any). Use setDatasets(java.util.Collection) or withDatasets(java.util.Collection) if you want to override the
existing values.
Returns a reference to this object so that method calls can be chained together.
datasets - A set of datasets.public ListDatasetsResult withDatasets(Collection<Dataset> datasets)
Returns a reference to this object so that method calls can be chained together.
datasets - A set of datasets.public Integer getCount()
public void setCount(Integer count)
count - Number of datasets returned.public ListDatasetsResult withCount(Integer count)
Returns a reference to this object so that method calls can be chained together.
count - Number of datasets returned.public String getNextToken()
public void setNextToken(String nextToken)
nextToken - A pagination token for obtaining the next page of results.public ListDatasetsResult withNextToken(String nextToken)
Returns a reference to this object so that method calls can be chained together.
nextToken - A pagination token for obtaining the next page of results.public String toString()
toString in class ObjectObject.toString()public ListDatasetsResult clone()
Copyright © 2015. All rights reserved.