Class RecordPatch
java.lang.Object
com.amazonaws.services.cognitosync.model.RecordPatch
- All Implemented Interfaces:
Serializable
,Cloneable
An update operation for a record.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The last modified date of the client device.getKey()
The key associated with the record patch.getOp()
An operation, either replace or remove.Last known server sync count for this record.getValue()
The value associated with the record patch.int
hashCode()
void
setDeviceLastModifiedDate
(Date deviceLastModifiedDate) The last modified date of the client device.void
The key associated with the record patch.void
An operation, either replace or remove.void
An operation, either replace or remove.void
setSyncCount
(Long syncCount) Last known server sync count for this record.void
The value associated with the record patch.toString()
Returns a string representation of this object; useful for testing and debugging.withDeviceLastModifiedDate
(Date deviceLastModifiedDate) The last modified date of the client device.The key associated with the record patch.An operation, either replace or remove.An operation, either replace or remove.withSyncCount
(Long syncCount) Last known server sync count for this record.The value associated with the record patch.
-
Constructor Details
-
RecordPatch
public RecordPatch()
-
-
Method Details
-
setOp
An operation, either replace or remove.- Parameters:
op
- An operation, either replace or remove.- See Also:
-
getOp
An operation, either replace or remove.- Returns:
- An operation, either replace or remove.
- See Also:
-
withOp
An operation, either replace or remove.- Parameters:
op
- An operation, either replace or remove.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setOp
An operation, either replace or remove.- Parameters:
op
- An operation, either replace or remove.- See Also:
-
withOp
An operation, either replace or remove.- Parameters:
op
- An operation, either replace or remove.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setKey
The key associated with the record patch.- Parameters:
key
- The key associated with the record patch.
-
getKey
The key associated with the record patch.- Returns:
- The key associated with the record patch.
-
withKey
The key associated with the record patch.- Parameters:
key
- The key associated with the record patch.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setValue
The value associated with the record patch.- Parameters:
value
- The value associated with the record patch.
-
getValue
The value associated with the record patch.- Returns:
- The value associated with the record patch.
-
withValue
The value associated with the record patch.- Parameters:
value
- The value associated with the record patch.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSyncCount
Last known server sync count for this record. Set to 0 if unknown.- Parameters:
syncCount
- Last known server sync count for this record. Set to 0 if unknown.
-
getSyncCount
Last known server sync count for this record. Set to 0 if unknown.- Returns:
- Last known server sync count for this record. Set to 0 if unknown.
-
withSyncCount
Last known server sync count for this record. Set to 0 if unknown.- Parameters:
syncCount
- Last known server sync count for this record. Set to 0 if unknown.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDeviceLastModifiedDate
The last modified date of the client device.- Parameters:
deviceLastModifiedDate
- The last modified date of the client device.
-
getDeviceLastModifiedDate
The last modified date of the client device.- Returns:
- The last modified date of the client device.
-
withDeviceLastModifiedDate
The last modified date of the client device.- Parameters:
deviceLastModifiedDate
- The last modified date of the client device.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-