public class ListRecordsResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.Integer |
count
Total number of records.
|
private java.lang.Boolean |
datasetDeletedAfterRequestedSyncCount
A boolean value specifying whether to delete the dataset locally.
|
private java.lang.Boolean |
datasetExists
Indicates whether the dataset exists.
|
private java.lang.Long |
datasetSyncCount
Server sync count for this dataset.
|
private java.lang.String |
lastModifiedBy
The user/device that made the last change to this record.
|
private SdkInternalList<java.lang.String> |
mergedDatasetNames
Names of merged datasets.
|
private java.lang.String |
nextToken
A pagination token for obtaining the next page of results.
|
private SdkInternalList<Record> |
records
A list of all records.
|
private java.lang.String |
syncSessionToken
A token containing a session ID, identity ID, and expiration.
|
Constructor and Description |
---|
ListRecordsResult() |
Modifier and Type | Method and Description |
---|---|
ListRecordsResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getCount()
Total number of records.
|
java.lang.Boolean |
getDatasetDeletedAfterRequestedSyncCount()
A boolean value specifying whether to delete the dataset locally.
|
java.lang.Boolean |
getDatasetExists()
Indicates whether the dataset exists.
|
java.lang.Long |
getDatasetSyncCount()
Server sync count for this dataset.
|
java.lang.String |
getLastModifiedBy()
The user/device that made the last change to this record.
|
java.util.List<java.lang.String> |
getMergedDatasetNames()
Names of merged datasets.
|
java.lang.String |
getNextToken()
A pagination token for obtaining the next page of results.
|
java.util.List<Record> |
getRecords()
A list of all records.
|
java.lang.String |
getSyncSessionToken()
A token containing a session ID, identity ID, and expiration.
|
int |
hashCode() |
java.lang.Boolean |
isDatasetDeletedAfterRequestedSyncCount()
A boolean value specifying whether to delete the dataset locally.
|
java.lang.Boolean |
isDatasetExists()
Indicates whether the dataset exists.
|
void |
setCount(java.lang.Integer count)
Total number of records.
|
void |
setDatasetDeletedAfterRequestedSyncCount(java.lang.Boolean datasetDeletedAfterRequestedSyncCount)
A boolean value specifying whether to delete the dataset locally.
|
void |
setDatasetExists(java.lang.Boolean datasetExists)
Indicates whether the dataset exists.
|
void |
setDatasetSyncCount(java.lang.Long datasetSyncCount)
Server sync count for this dataset.
|
void |
setLastModifiedBy(java.lang.String lastModifiedBy)
The user/device that made the last change to this record.
|
void |
setMergedDatasetNames(java.util.Collection<java.lang.String> mergedDatasetNames)
Names of merged datasets.
|
void |
setNextToken(java.lang.String nextToken)
A pagination token for obtaining the next page of results.
|
void |
setRecords(java.util.Collection<Record> records)
A list of all records.
|
void |
setSyncSessionToken(java.lang.String syncSessionToken)
A token containing a session ID, identity ID, and expiration.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ListRecordsResult |
withCount(java.lang.Integer count)
Total number of records.
|
ListRecordsResult |
withDatasetDeletedAfterRequestedSyncCount(java.lang.Boolean datasetDeletedAfterRequestedSyncCount)
A boolean value specifying whether to delete the dataset locally.
|
ListRecordsResult |
withDatasetExists(java.lang.Boolean datasetExists)
Indicates whether the dataset exists.
|
ListRecordsResult |
withDatasetSyncCount(java.lang.Long datasetSyncCount)
Server sync count for this dataset.
|
ListRecordsResult |
withLastModifiedBy(java.lang.String lastModifiedBy)
The user/device that made the last change to this record.
|
ListRecordsResult |
withMergedDatasetNames(java.util.Collection<java.lang.String> mergedDatasetNames)
Names of merged datasets.
|
ListRecordsResult |
withMergedDatasetNames(java.lang.String... mergedDatasetNames)
Names of merged datasets.
|
ListRecordsResult |
withNextToken(java.lang.String nextToken)
A pagination token for obtaining the next page of results.
|
ListRecordsResult |
withRecords(java.util.Collection<Record> records)
A list of all records.
|
ListRecordsResult |
withRecords(Record... records)
A list of all records.
|
ListRecordsResult |
withSyncSessionToken(java.lang.String syncSessionToken)
A token containing a session ID, identity ID, and expiration.
|
private SdkInternalList<Record> records
private java.lang.String nextToken
private java.lang.Integer count
private java.lang.Long datasetSyncCount
private java.lang.String lastModifiedBy
private SdkInternalList<java.lang.String> mergedDatasetNames
private java.lang.Boolean datasetExists
private java.lang.Boolean datasetDeletedAfterRequestedSyncCount
private java.lang.String syncSessionToken
public java.util.List<Record> getRecords()
public void setRecords(java.util.Collection<Record> records)
records
- A list of all records.public ListRecordsResult withRecords(Record... records)
NOTE: This method appends the values to the existing list (if
any). Use setRecords(java.util.Collection)
or
withRecords(java.util.Collection)
if you want to override the
existing values.
records
- A list of all records.public ListRecordsResult withRecords(java.util.Collection<Record> records)
records
- A list of all records.public void setNextToken(java.lang.String nextToken)
nextToken
- A pagination token for obtaining the next page of results.public java.lang.String getNextToken()
public ListRecordsResult withNextToken(java.lang.String nextToken)
nextToken
- A pagination token for obtaining the next page of results.public void setCount(java.lang.Integer count)
count
- Total number of records.public java.lang.Integer getCount()
public ListRecordsResult withCount(java.lang.Integer count)
count
- Total number of records.public void setDatasetSyncCount(java.lang.Long datasetSyncCount)
datasetSyncCount
- Server sync count for this dataset.public java.lang.Long getDatasetSyncCount()
public ListRecordsResult withDatasetSyncCount(java.lang.Long datasetSyncCount)
datasetSyncCount
- Server sync count for this dataset.public void setLastModifiedBy(java.lang.String lastModifiedBy)
lastModifiedBy
- The user/device that made the last change to this record.public java.lang.String getLastModifiedBy()
public ListRecordsResult withLastModifiedBy(java.lang.String lastModifiedBy)
lastModifiedBy
- The user/device that made the last change to this record.public java.util.List<java.lang.String> getMergedDatasetNames()
public void setMergedDatasetNames(java.util.Collection<java.lang.String> mergedDatasetNames)
mergedDatasetNames
- Names of merged datasets.public ListRecordsResult withMergedDatasetNames(java.lang.String... mergedDatasetNames)
NOTE: This method appends the values to the existing list (if
any). Use setMergedDatasetNames(java.util.Collection)
or
withMergedDatasetNames(java.util.Collection)
if you want to
override the existing values.
mergedDatasetNames
- Names of merged datasets.public ListRecordsResult withMergedDatasetNames(java.util.Collection<java.lang.String> mergedDatasetNames)
mergedDatasetNames
- Names of merged datasets.public void setDatasetExists(java.lang.Boolean datasetExists)
datasetExists
- Indicates whether the dataset exists.public java.lang.Boolean getDatasetExists()
public ListRecordsResult withDatasetExists(java.lang.Boolean datasetExists)
datasetExists
- Indicates whether the dataset exists.public java.lang.Boolean isDatasetExists()
public void setDatasetDeletedAfterRequestedSyncCount(java.lang.Boolean datasetDeletedAfterRequestedSyncCount)
datasetDeletedAfterRequestedSyncCount
- A boolean value specifying whether to delete the dataset locally.public java.lang.Boolean getDatasetDeletedAfterRequestedSyncCount()
public ListRecordsResult withDatasetDeletedAfterRequestedSyncCount(java.lang.Boolean datasetDeletedAfterRequestedSyncCount)
datasetDeletedAfterRequestedSyncCount
- A boolean value specifying whether to delete the dataset locally.public java.lang.Boolean isDatasetDeletedAfterRequestedSyncCount()
public void setSyncSessionToken(java.lang.String syncSessionToken)
syncSessionToken
- A token containing a session ID, identity ID, and expiration.public java.lang.String getSyncSessionToken()
public ListRecordsResult withSyncSessionToken(java.lang.String syncSessionToken)
syncSessionToken
- A token containing a session ID, identity ID, and expiration.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ListRecordsResult clone()
clone
in class java.lang.Object