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:
  • Constructor Details

    • ListDatasetsResult

      public ListDatasetsResult()
  • Method Details

    • getDatasets

      public List<Dataset> getDatasets()
      A set of datasets.
      Returns:
      A set of datasets.
    • 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) or withDatasets(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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public ListDatasetsResult clone()
      Overrides:
      clone in class Object