public class ListRecordsResult extends Object implements Serializable
Returned for a successful ListRecordsRequest.
| Constructor and Description |
|---|
ListRecordsResult() |
| Modifier and Type | Method and Description |
|---|---|
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(Collection<String> mergedDatasetNames)
Names of merged datasets.
|
ListRecordsResult |
withMergedDatasetNames(String... mergedDatasetNames)
Names of merged datasets.
|
ListRecordsResult |
withNextToken(String nextToken)
A pagination token for obtaining the next page of results.
|
ListRecordsResult |
withRecords(Collection<Record> records)
A list of all records.
|
ListRecordsResult |
withRecords(Record... records)
A list of all records.
|
ListRecordsResult |
withSyncSessionToken(String syncSessionToken)
A token containing a session ID, identity ID, and expiration.
|
public void setRecords(Collection<Record> records)
records - A list of all records.public ListRecordsResult withRecords(Record... records)
Returns a reference to this object so that method calls can be chained together.
records - A list of all records.public ListRecordsResult withRecords(Collection<Record> records)
Returns a reference to this object so that method calls can be chained together.
records - A list of all records.public String getNextToken()
public void setNextToken(String nextToken)
nextToken - A pagination token for obtaining the next page of results.public ListRecordsResult withNextToken(String nextToken)
Returns a reference to this object so that method calls can be chained together.
nextToken - A pagination token for obtaining the next page of results.public Integer getCount()
public void setCount(Integer count)
count - Total number of records.public ListRecordsResult withCount(Integer count)
Returns a reference to this object so that method calls can be chained together.
count - Total number of records.public Long getDatasetSyncCount()
public void setDatasetSyncCount(Long datasetSyncCount)
datasetSyncCount - Server sync count for this dataset.public ListRecordsResult withDatasetSyncCount(Long datasetSyncCount)
Returns a reference to this object so that method calls can be chained together.
datasetSyncCount - Server sync count for this dataset.public String getLastModifiedBy()
public void setLastModifiedBy(String lastModifiedBy)
lastModifiedBy - The user/device that made the last change to this record.public ListRecordsResult withLastModifiedBy(String lastModifiedBy)
Returns a reference to this object so that method calls can be chained together.
lastModifiedBy - The user/device that made the last change to this record.public List<String> getMergedDatasetNames()
public void setMergedDatasetNames(Collection<String> mergedDatasetNames)
mergedDatasetNames - Names of merged datasets.public ListRecordsResult withMergedDatasetNames(String... mergedDatasetNames)
Returns a reference to this object so that method calls can be chained together.
mergedDatasetNames - Names of merged datasets.public ListRecordsResult withMergedDatasetNames(Collection<String> mergedDatasetNames)
Returns a reference to this object so that method calls can be chained together.
mergedDatasetNames - Names of merged datasets.public Boolean isDatasetExists()
public void setDatasetExists(Boolean datasetExists)
datasetExists - Indicates whether the dataset exists.public ListRecordsResult withDatasetExists(Boolean datasetExists)
Returns a reference to this object so that method calls can be chained together.
datasetExists - Indicates whether the dataset exists.public Boolean getDatasetExists()
public Boolean isDatasetDeletedAfterRequestedSyncCount()
public void setDatasetDeletedAfterRequestedSyncCount(Boolean datasetDeletedAfterRequestedSyncCount)
datasetDeletedAfterRequestedSyncCount - A boolean value specifying whether to delete the dataset locally.public ListRecordsResult withDatasetDeletedAfterRequestedSyncCount(Boolean datasetDeletedAfterRequestedSyncCount)
Returns a reference to this object so that method calls can be chained together.
datasetDeletedAfterRequestedSyncCount - A boolean value specifying whether to delete the dataset locally.public Boolean getDatasetDeletedAfterRequestedSyncCount()
public String getSyncSessionToken()
public void setSyncSessionToken(String syncSessionToken)
syncSessionToken - A token containing a session ID, identity ID, and expiration.public ListRecordsResult withSyncSessionToken(String syncSessionToken)
Returns a reference to this object so that method calls can be chained together.
syncSessionToken - A token containing a session ID, identity ID, and expiration.public String toString()
toString in class ObjectObject.toString()Copyright © 2016. All rights reserved.