public class ListRecordsRequest extends AmazonWebServiceRequest implements Serializable
ListRecords operation.
Gets paginated records, optionally changed after a particular sync count for a dataset and identity. With Amazon Cognito Sync, each identity has access only to its own data. Thus, the credentials used to make this API call need to have access to the identity data.
ListRecords can be called with temporary user credentials provided by Cognito Identity or with developer credentials. You should use Cognito Identity credentials to make this API call.
| Constructor and Description |
|---|
ListRecordsRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getDatasetName()
A string of up to 128 characters.
|
String |
getIdentityId()
A name-spaced GUID (for example,
us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon
Cognito.
|
String |
getIdentityPoolId()
A name-spaced GUID (for example,
us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon
Cognito.
|
String |
getLastSyncCount()
The last server sync count for this record.
|
String |
getMaxResults()
The maximum number of results to be returned.
|
String |
getNextToken()
A pagination token for obtaining the next page of results.
|
String |
getSyncSessionToken()
A token containing a session ID, identity ID, and expiration.
|
int |
hashCode() |
void |
setDatasetName(String datasetName)
A string of up to 128 characters.
|
void |
setIdentityId(String identityId)
A name-spaced GUID (for example,
us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon
Cognito.
|
void |
setIdentityPoolId(String identityPoolId)
A name-spaced GUID (for example,
us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon
Cognito.
|
void |
setLastSyncCount(String lastSyncCount)
The last server sync count for this record.
|
void |
setMaxResults(String maxResults)
The maximum number of results to be returned.
|
void |
setNextToken(String nextToken)
A pagination token for obtaining the next page of results.
|
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.
|
ListRecordsRequest |
withDatasetName(String datasetName)
A string of up to 128 characters.
|
ListRecordsRequest |
withIdentityId(String identityId)
A name-spaced GUID (for example,
us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon
Cognito.
|
ListRecordsRequest |
withIdentityPoolId(String identityPoolId)
A name-spaced GUID (for example,
us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon
Cognito.
|
ListRecordsRequest |
withLastSyncCount(String lastSyncCount)
The last server sync count for this record.
|
ListRecordsRequest |
withMaxResults(String maxResults)
The maximum number of results to be returned.
|
ListRecordsRequest |
withNextToken(String nextToken)
A pagination token for obtaining the next page of results.
|
ListRecordsRequest |
withSyncSessionToken(String syncSessionToken)
A token containing a session ID, identity ID, and expiration.
|
getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollectorpublic String getIdentityPoolId()
Constraints:
Length: 1 - 55
Pattern: [\w-]+:[0-9a-f-]+
public void setIdentityPoolId(String identityPoolId)
Constraints:
Length: 1 - 55
Pattern: [\w-]+:[0-9a-f-]+
identityPoolId - A name-spaced GUID (for example,
us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon
Cognito. GUID generation is unique within a region.public ListRecordsRequest withIdentityPoolId(String identityPoolId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 55
Pattern: [\w-]+:[0-9a-f-]+
identityPoolId - A name-spaced GUID (for example,
us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon
Cognito. GUID generation is unique within a region.public String getIdentityId()
Constraints:
Length: 1 - 55
Pattern: [\w-]+:[0-9a-f-]+
public void setIdentityId(String identityId)
Constraints:
Length: 1 - 55
Pattern: [\w-]+:[0-9a-f-]+
identityId - A name-spaced GUID (for example,
us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon
Cognito. GUID generation is unique within a region.public ListRecordsRequest withIdentityId(String identityId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 55
Pattern: [\w-]+:[0-9a-f-]+
identityId - A name-spaced GUID (for example,
us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon
Cognito. GUID generation is unique within a region.public String getDatasetName()
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.:-]+
public void setDatasetName(String datasetName)
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.:-]+
datasetName - A string of up to 128 characters. Allowed characters are a-z, A-Z,
0-9, '_' (underscore), '-' (dash), and '.' (dot).public ListRecordsRequest withDatasetName(String datasetName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.:-]+
datasetName - A string of up to 128 characters. Allowed characters are a-z, A-Z,
0-9, '_' (underscore), '-' (dash), and '.' (dot).public String getLastSyncCount()
Constraints:
Length: 0 - 19
Pattern: \d+
public void setLastSyncCount(String lastSyncCount)
Constraints:
Length: 0 - 19
Pattern: \d+
lastSyncCount - The last server sync count for this record.public ListRecordsRequest withLastSyncCount(String lastSyncCount)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 19
Pattern: \d+
lastSyncCount - The last server sync count for this record.public String getNextToken()
public void setNextToken(String nextToken)
nextToken - A pagination token for obtaining the next page of results.public ListRecordsRequest 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 String getMaxResults()
Constraints:
Length: 0 - 19
Pattern: \d+
public void setMaxResults(String maxResults)
Constraints:
Length: 0 - 19
Pattern: \d+
maxResults - The maximum number of results to be returned.public ListRecordsRequest withMaxResults(String maxResults)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 19
Pattern: \d+
maxResults - The maximum number of results to be returned.public String getSyncSessionToken()
public void setSyncSessionToken(String syncSessionToken)
syncSessionToken - A token containing a session ID, identity ID, and expiration.public ListRecordsRequest 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.