Class ListDatasetsResult
- java.lang.Object
-
- com.amazonaws.services.cognitosync.model.ListDatasetsResult
-
- All Implemented Interfaces:
Serializable,Cloneable
public class ListDatasetsResult extends Object implements Serializable, Cloneable
Returned for a successful ListDatasets request.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ListDatasetsResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListDatasetsResultclone()booleanequals(Object obj)IntegergetCount()Number of datasets returned.List<Dataset>getDatasets()A set of datasets.StringgetNextToken()A pagination token for obtaining the next page of results.inthashCode()voidsetCount(Integer count)Number of datasets returned.voidsetDatasets(Collection<Dataset> datasets)A set of datasets.voidsetNextToken(String nextToken)A pagination token for obtaining the next page of results.StringtoString()Returns a string representation of this object; useful for testing and debugging.ListDatasetsResultwithCount(Integer count)Number of datasets returned.ListDatasetsResultwithDatasets(Dataset... datasets)A set of datasets.ListDatasetsResultwithDatasets(Collection<Dataset> datasets)A set of datasets.ListDatasetsResultwithNextToken(String nextToken)A pagination token for obtaining the next page of results.
-
-
-
Method Detail
-
setDatasets
public void setDatasets(Collection<Dataset> datasets)
A set of datasets.- Parameters:
datasets- A set of datasets.
-
withDatasets
public ListDatasetsResult withDatasets(Dataset... datasets)
A set of datasets.NOTE: This method appends the values to the existing list (if any). Use
setDatasets(java.util.Collection)orwithDatasets(java.util.Collection)if you want to override the existing values.- Parameters:
datasets- A set of datasets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withDatasets
public ListDatasetsResult withDatasets(Collection<Dataset> datasets)
A set of datasets.- Parameters:
datasets- A set of datasets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCount
public void setCount(Integer count)
Number of datasets returned.- Parameters:
count- Number of datasets returned.
-
getCount
public Integer getCount()
Number of datasets returned.- Returns:
- Number of datasets returned.
-
withCount
public ListDatasetsResult withCount(Integer count)
Number of datasets returned.- Parameters:
count- Number of datasets returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNextToken
public void setNextToken(String nextToken)
A pagination token for obtaining the next page of results.- Parameters:
nextToken- A pagination token for obtaining the next page of results.
-
getNextToken
public String getNextToken()
A pagination token for obtaining the next page of results.- Returns:
- A pagination token for obtaining the next page of results.
-
withNextToken
public ListDatasetsResult withNextToken(String nextToken)
A pagination token for obtaining the next page of results.- Parameters:
nextToken- A pagination token for obtaining the next page of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ListDatasetsResult clone()
-
-