public class UpdateRecordsRequest extends AmazonWebServiceRequest implements Serializable
UpdateRecords operation
.
Posts updates to records and add and delete records for a dataset and user. The credentials used to make this API call need to have access to the identity data. With Amazon Cognito Sync, each identity has access only to its own data. You should use Amazon Cognito Identity service to retrieve the credentials necessary to make this API call.
NOOP
Constructor and Description |
---|
UpdateRecordsRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getClientContext()
Intended to supply a device ID that will populate the
lastModifiedBy field referenced in other methods. |
String |
getDatasetName()
A string of up to 128 characters.
|
String |
getDeviceId()
The unique ID generated for this device by Cognito.
|
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.
|
List<RecordPatch> |
getRecordPatches()
A list of patch operations.
|
String |
getSyncSessionToken()
The SyncSessionToken returned by a previous call to ListRecords for
this dataset and identity.
|
int |
hashCode() |
void |
setClientContext(String clientContext)
Intended to supply a device ID that will populate the
lastModifiedBy field referenced in other methods. |
void |
setDatasetName(String datasetName)
A string of up to 128 characters.
|
void |
setDeviceId(String deviceId)
The unique ID generated for this device by Cognito.
|
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 |
setRecordPatches(Collection<RecordPatch> recordPatches)
A list of patch operations.
|
void |
setSyncSessionToken(String syncSessionToken)
The SyncSessionToken returned by a previous call to ListRecords for
this dataset and identity.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UpdateRecordsRequest |
withClientContext(String clientContext)
Intended to supply a device ID that will populate the
lastModifiedBy field referenced in other methods. |
UpdateRecordsRequest |
withDatasetName(String datasetName)
A string of up to 128 characters.
|
UpdateRecordsRequest |
withDeviceId(String deviceId)
The unique ID generated for this device by Cognito.
|
UpdateRecordsRequest |
withIdentityId(String identityId)
A name-spaced GUID (for example,
us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon
Cognito.
|
UpdateRecordsRequest |
withIdentityPoolId(String identityPoolId)
A name-spaced GUID (for example,
us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon
Cognito.
|
UpdateRecordsRequest |
withRecordPatches(Collection<RecordPatch> recordPatches)
A list of patch operations.
|
UpdateRecordsRequest |
withRecordPatches(RecordPatch... recordPatches)
A list of patch operations.
|
UpdateRecordsRequest |
withSyncSessionToken(String syncSessionToken)
The SyncSessionToken returned by a previous call to ListRecords for
this dataset and identity.
|
copyBaseTo, copyPrivateRequestParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getIdentityPoolId()
Constraints:
Length: 1 - 50
Pattern: [\w-]+:[0-9a-f-]+
public void setIdentityPoolId(String identityPoolId)
Constraints:
Length: 1 - 50
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 UpdateRecordsRequest withIdentityPoolId(String identityPoolId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 50
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 - 50
Pattern: [\w-]+:[0-9a-f-]+
public void setIdentityId(String identityId)
Constraints:
Length: 1 - 50
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 UpdateRecordsRequest withIdentityId(String identityId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 50
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 UpdateRecordsRequest 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 getDeviceId()
Constraints:
Length: 1 - 256
public void setDeviceId(String deviceId)
Constraints:
Length: 1 - 256
deviceId
- The unique ID generated for this device by Cognito.public UpdateRecordsRequest withDeviceId(String deviceId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
deviceId
- The unique ID generated for this device by Cognito.public List<RecordPatch> getRecordPatches()
public void setRecordPatches(Collection<RecordPatch> recordPatches)
recordPatches
- A list of patch operations.public UpdateRecordsRequest withRecordPatches(RecordPatch... recordPatches)
Returns a reference to this object so that method calls can be chained together.
recordPatches
- A list of patch operations.public UpdateRecordsRequest withRecordPatches(Collection<RecordPatch> recordPatches)
Returns a reference to this object so that method calls can be chained together.
recordPatches
- A list of patch operations.public String getSyncSessionToken()
public void setSyncSessionToken(String syncSessionToken)
syncSessionToken
- The SyncSessionToken returned by a previous call to ListRecords for
this dataset and identity.public UpdateRecordsRequest withSyncSessionToken(String syncSessionToken)
Returns a reference to this object so that method calls can be chained together.
syncSessionToken
- The SyncSessionToken returned by a previous call to ListRecords for
this dataset and identity.public String getClientContext()
lastModifiedBy
field referenced in other methods. The
ClientContext
field is not yet implemented.lastModifiedBy
field referenced in other methods. The
ClientContext
field is not yet implemented.public void setClientContext(String clientContext)
lastModifiedBy
field referenced in other methods. The
ClientContext
field is not yet implemented.clientContext
- Intended to supply a device ID that will populate the
lastModifiedBy
field referenced in other methods. The
ClientContext
field is not yet implemented.public UpdateRecordsRequest withClientContext(String clientContext)
lastModifiedBy
field referenced in other methods. The
ClientContext
field is not yet implemented.
Returns a reference to this object so that method calls can be chained together.
clientContext
- Intended to supply a device ID that will populate the
lastModifiedBy
field referenced in other methods. The
ClientContext
field is not yet implemented.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.