public class UpdateRecordsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
UpdateRecords operation
.
Posts updates to records and adds and deletes records for a dataset and user.
UpdateRecords can only be called with temporary user credentials provided by Cognito Identity. You cannot make this API call with developer credentials.
NOOP
Constructor and Description |
---|
UpdateRecordsRequest() |
Modifier and Type | Method and Description |
---|---|
UpdateRecordsRequest |
clone()
Creates a shallow clone of this request.
|
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, 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)
NOTE: This method appends the values to the existing list (if
any). Use setRecordPatches(java.util.Collection)
or withRecordPatches(java.util.Collection)
if you want to override the
existing values.
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()
public void setClientContext(String clientContext)
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)
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()
public UpdateRecordsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.