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 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(Dataset... datasets)
A set of datasets.ListDatasetsResult
withDatasets(Collection<Dataset> datasets)
A set of datasets.ListDatasetsResult
withNextToken(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ListDatasetsResult clone()
-
-