Class ListRecordsResult
java.lang.Object
com.amazonaws.services.cognitosync.model.ListRecordsResult
- All Implemented Interfaces:
Serializable
,Cloneable
Returned for a successful ListRecordsRequest.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
getCount()
Total number of records.A boolean value specifying whether to delete the dataset locally.Indicates whether the dataset exists.Server sync count for this dataset.The user/device that made the last change to this record.Names of merged datasets.A pagination token for obtaining the next page of results.A list of all records.A token containing a session ID, identity ID, and expiration.int
hashCode()
A boolean value specifying whether to delete the dataset locally.Indicates whether the dataset exists.void
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.toString()
Returns a string representation of this object; useful for testing and debugging.Total number of records.withDatasetDeletedAfterRequestedSyncCount
(Boolean datasetDeletedAfterRequestedSyncCount) A boolean value specifying whether to delete the dataset locally.withDatasetExists
(Boolean datasetExists) Indicates whether the dataset exists.withDatasetSyncCount
(Long datasetSyncCount) Server sync count for this dataset.withLastModifiedBy
(String lastModifiedBy) The user/device that made the last change to this record.withMergedDatasetNames
(String... mergedDatasetNames) Names of merged datasets.withMergedDatasetNames
(Collection<String> mergedDatasetNames) Names of merged datasets.withNextToken
(String nextToken) A pagination token for obtaining the next page of results.withRecords
(Record... records) A list of all records.withRecords
(Collection<Record> records) A list of all records.withSyncSessionToken
(String syncSessionToken) A token containing a session ID, identity ID, and expiration.
-
Constructor Details
-
ListRecordsResult
public ListRecordsResult()
-
-
Method Details
-
getRecords
A list of all records.- Returns:
- A list of all records.
-
setRecords
A list of all records.- Parameters:
records
- A list of all records.
-
withRecords
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
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
A pagination token for obtaining the next page of results.- Parameters:
nextToken
- A pagination token for obtaining the next page of results.
-
getNextToken
A pagination token for obtaining the next page of results.- Returns:
- A pagination token for obtaining the next page of results.
-
withNextToken
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
Total number of records.- Parameters:
count
- Total number of records.
-
getCount
Total number of records.- Returns:
- Total number of records.
-
withCount
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
Server sync count for this dataset.- Parameters:
datasetSyncCount
- Server sync count for this dataset.
-
getDatasetSyncCount
Server sync count for this dataset.- Returns:
- Server sync count for this dataset.
-
withDatasetSyncCount
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
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
The user/device that made the last change to this record.- Returns:
- The user/device that made the last change to this record.
-
withLastModifiedBy
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
Names of merged datasets.- Returns:
- Names of merged datasets.
-
setMergedDatasetNames
Names of merged datasets.- Parameters:
mergedDatasetNames
- Names of merged datasets.
-
withMergedDatasetNames
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
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
Indicates whether the dataset exists.- Parameters:
datasetExists
- Indicates whether the dataset exists.
-
getDatasetExists
Indicates whether the dataset exists.- Returns:
- Indicates whether the dataset exists.
-
withDatasetExists
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
Indicates whether the dataset exists.- Returns:
- Indicates whether the dataset exists.
-
setDatasetDeletedAfterRequestedSyncCount
A boolean value specifying whether to delete the dataset locally.- Parameters:
datasetDeletedAfterRequestedSyncCount
- A boolean value specifying whether to delete the dataset locally.
-
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
A boolean value specifying whether to delete the dataset locally.- Returns:
- A boolean value specifying whether to delete the dataset locally.
-
setSyncSessionToken
A token containing a session ID, identity ID, and expiration.- Parameters:
syncSessionToken
- A token containing a session ID, identity ID, and expiration.
-
getSyncSessionToken
A token containing a session ID, identity ID, and expiration.- Returns:
- A token containing a session ID, identity ID, and expiration.
-
withSyncSessionToken
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-