Class ListRecordsResult
- java.lang.Object
-
- com.amazonaws.services.cognitosync.model.ListRecordsResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class ListRecordsResult extends Object implements Serializable, Cloneable
Returned for a successful ListRecordsRequest.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ListRecordsResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListRecordsResult
clone()
boolean
equals(Object obj)
Integer
getCount()
Total number of records.Boolean
getDatasetDeletedAfterRequestedSyncCount()
A boolean value specifying whether to delete the dataset locally.Boolean
getDatasetExists()
Indicates whether the dataset exists.Long
getDatasetSyncCount()
Server sync count for this dataset.String
getLastModifiedBy()
The user/device that made the last change to this record.List<String>
getMergedDatasetNames()
Names of merged datasets.String
getNextToken()
A pagination token for obtaining the next page of results.List<Record>
getRecords()
A list of all records.String
getSyncSessionToken()
A token containing a session ID, identity ID, and expiration.int
hashCode()
Boolean
isDatasetDeletedAfterRequestedSyncCount()
A boolean value specifying whether to delete the dataset locally.Boolean
isDatasetExists()
Indicates whether the dataset exists.void
setCount(Integer count)
Total number of records.void
setDatasetDeletedAfterRequestedSyncCount(Boolean datasetDeletedAfterRequestedSyncCount)
A boolean value specifying whether to delete the dataset locally.void
setDatasetExists(Boolean datasetExists)
Indicates whether the dataset exists.void
setDatasetSyncCount(Long datasetSyncCount)
Server sync count for this dataset.void
setLastModifiedBy(String lastModifiedBy)
The user/device that made the last change to this record.void
setMergedDatasetNames(Collection<String> mergedDatasetNames)
Names of merged datasets.void
setNextToken(String nextToken)
A pagination token for obtaining the next page of results.void
setRecords(Collection<Record> records)
A list of all records.void
setSyncSessionToken(String syncSessionToken)
A token containing a session ID, identity ID, and expiration.String
toString()
Returns a string representation of this object; useful for testing and debugging.ListRecordsResult
withCount(Integer count)
Total number of records.ListRecordsResult
withDatasetDeletedAfterRequestedSyncCount(Boolean datasetDeletedAfterRequestedSyncCount)
A boolean value specifying whether to delete the dataset locally.ListRecordsResult
withDatasetExists(Boolean datasetExists)
Indicates whether the dataset exists.ListRecordsResult
withDatasetSyncCount(Long datasetSyncCount)
Server sync count for this dataset.ListRecordsResult
withLastModifiedBy(String lastModifiedBy)
The user/device that made the last change to this record.ListRecordsResult
withMergedDatasetNames(String... mergedDatasetNames)
Names of merged datasets.ListRecordsResult
withMergedDatasetNames(Collection<String> mergedDatasetNames)
Names of merged datasets.ListRecordsResult
withNextToken(String nextToken)
A pagination token for obtaining the next page of results.ListRecordsResult
withRecords(Record... records)
A list of all records.ListRecordsResult
withRecords(Collection<Record> records)
A list of all records.ListRecordsResult
withSyncSessionToken(String syncSessionToken)
A token containing a session ID, identity ID, and expiration.
-
-
-
Method Detail
-
setRecords
public void setRecords(Collection<Record> records)
A list of all records.- Parameters:
records
- A list of all records.
-
withRecords
public ListRecordsResult withRecords(Record... records)
A list of all records.NOTE: This method appends the values to the existing list (if any). Use
setRecords(java.util.Collection)
orwithRecords(java.util.Collection)
if you want to override the existing values.- Parameters:
records
- A list of all records.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withRecords
public ListRecordsResult withRecords(Collection<Record> records)
A list of all records.- Parameters:
records
- A list of all records.- 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 ListRecordsResult 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.
-
setCount
public void setCount(Integer count)
Total number of records.- Parameters:
count
- Total number of records.
-
getCount
public Integer getCount()
Total number of records.- Returns:
- Total number of records.
-
withCount
public ListRecordsResult withCount(Integer count)
Total number of records.- Parameters:
count
- Total number of records.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDatasetSyncCount
public void setDatasetSyncCount(Long datasetSyncCount)
Server sync count for this dataset.- Parameters:
datasetSyncCount
- Server sync count for this dataset.
-
getDatasetSyncCount
public Long getDatasetSyncCount()
Server sync count for this dataset.- Returns:
- Server sync count for this dataset.
-
withDatasetSyncCount
public ListRecordsResult withDatasetSyncCount(Long datasetSyncCount)
Server sync count for this dataset.- Parameters:
datasetSyncCount
- Server sync count for this dataset.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLastModifiedBy
public void setLastModifiedBy(String lastModifiedBy)
The user/device that made the last change to this record.- Parameters:
lastModifiedBy
- The user/device that made the last change to this record.
-
getLastModifiedBy
public String getLastModifiedBy()
The user/device that made the last change to this record.- Returns:
- The user/device that made the last change to this record.
-
withLastModifiedBy
public ListRecordsResult withLastModifiedBy(String lastModifiedBy)
The user/device that made the last change to this record.- Parameters:
lastModifiedBy
- The user/device that made the last change to this record.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getMergedDatasetNames
public List<String> getMergedDatasetNames()
Names of merged datasets.- Returns:
- Names of merged datasets.
-
setMergedDatasetNames
public void setMergedDatasetNames(Collection<String> mergedDatasetNames)
Names of merged datasets.- Parameters:
mergedDatasetNames
- Names of merged datasets.
-
withMergedDatasetNames
public ListRecordsResult withMergedDatasetNames(String... mergedDatasetNames)
Names of merged datasets.NOTE: This method appends the values to the existing list (if any). Use
setMergedDatasetNames(java.util.Collection)
orwithMergedDatasetNames(java.util.Collection)
if you want to override the existing values.- Parameters:
mergedDatasetNames
- Names of merged datasets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withMergedDatasetNames
public ListRecordsResult withMergedDatasetNames(Collection<String> mergedDatasetNames)
Names of merged datasets.- Parameters:
mergedDatasetNames
- Names of merged datasets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDatasetExists
public void setDatasetExists(Boolean datasetExists)
Indicates whether the dataset exists.- Parameters:
datasetExists
- Indicates whether the dataset exists.
-
getDatasetExists
public Boolean getDatasetExists()
Indicates whether the dataset exists.- Returns:
- Indicates whether the dataset exists.
-
withDatasetExists
public ListRecordsResult withDatasetExists(Boolean datasetExists)
Indicates whether the dataset exists.- Parameters:
datasetExists
- Indicates whether the dataset exists.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isDatasetExists
public Boolean isDatasetExists()
Indicates whether the dataset exists.- Returns:
- Indicates whether the dataset exists.
-
setDatasetDeletedAfterRequestedSyncCount
public void setDatasetDeletedAfterRequestedSyncCount(Boolean datasetDeletedAfterRequestedSyncCount)
A boolean value specifying whether to delete the dataset locally.- Parameters:
datasetDeletedAfterRequestedSyncCount
- A boolean value specifying whether to delete the dataset locally.
-
getDatasetDeletedAfterRequestedSyncCount
public Boolean getDatasetDeletedAfterRequestedSyncCount()
A boolean value specifying whether to delete the dataset locally.- Returns:
- A boolean value specifying whether to delete the dataset locally.
-
withDatasetDeletedAfterRequestedSyncCount
public ListRecordsResult withDatasetDeletedAfterRequestedSyncCount(Boolean datasetDeletedAfterRequestedSyncCount)
A boolean value specifying whether to delete the dataset locally.- Parameters:
datasetDeletedAfterRequestedSyncCount
- A boolean value specifying whether to delete the dataset locally.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isDatasetDeletedAfterRequestedSyncCount
public Boolean isDatasetDeletedAfterRequestedSyncCount()
A boolean value specifying whether to delete the dataset locally.- Returns:
- A boolean value specifying whether to delete the dataset locally.
-
setSyncSessionToken
public void setSyncSessionToken(String syncSessionToken)
A token containing a session ID, identity ID, and expiration.- Parameters:
syncSessionToken
- A token containing a session ID, identity ID, and expiration.
-
getSyncSessionToken
public String getSyncSessionToken()
A token containing a session ID, identity ID, and expiration.- Returns:
- A token containing a session ID, identity ID, and expiration.
-
withSyncSessionToken
public ListRecordsResult withSyncSessionToken(String syncSessionToken)
A token containing a session ID, identity ID, and expiration.- Parameters:
syncSessionToken
- A token containing a session ID, identity ID, and expiration.- 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 ListRecordsResult clone()
-
-