Class RecordPatch
- java.lang.Object
-
- com.amazonaws.services.cognitosync.model.RecordPatch
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class RecordPatch extends Object implements Serializable, Cloneable
An update operation for a record.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RecordPatch()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RecordPatch
clone()
boolean
equals(Object obj)
Date
getDeviceLastModifiedDate()
The last modified date of the client device.String
getKey()
The key associated with the record patch.String
getOp()
An operation, either replace or remove.Long
getSyncCount()
Last known server sync count for this record.String
getValue()
The value associated with the record patch.int
hashCode()
void
setDeviceLastModifiedDate(Date deviceLastModifiedDate)
The last modified date of the client device.void
setKey(String key)
The key associated with the record patch.void
setOp(Operation op)
An operation, either replace or remove.void
setOp(String op)
An operation, either replace or remove.void
setSyncCount(Long syncCount)
Last known server sync count for this record.void
setValue(String value)
The value associated with the record patch.String
toString()
Returns a string representation of this object; useful for testing and debugging.RecordPatch
withDeviceLastModifiedDate(Date deviceLastModifiedDate)
The last modified date of the client device.RecordPatch
withKey(String key)
The key associated with the record patch.RecordPatch
withOp(Operation op)
An operation, either replace or remove.RecordPatch
withOp(String op)
An operation, either replace or remove.RecordPatch
withSyncCount(Long syncCount)
Last known server sync count for this record.RecordPatch
withValue(String value)
The value associated with the record patch.
-
-
-
Method Detail
-
setOp
public void setOp(String op)
An operation, either replace or remove.- Parameters:
op
- An operation, either replace or remove.- See Also:
Operation
-
getOp
public String getOp()
An operation, either replace or remove.- Returns:
- An operation, either replace or remove.
- See Also:
Operation
-
withOp
public RecordPatch withOp(String op)
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:
Operation
-
setOp
public void setOp(Operation op)
An operation, either replace or remove.- Parameters:
op
- An operation, either replace or remove.- See Also:
Operation
-
withOp
public RecordPatch withOp(Operation op)
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:
Operation
-
setKey
public void setKey(String key)
The key associated with the record patch.- Parameters:
key
- The key associated with the record patch.
-
getKey
public String getKey()
The key associated with the record patch.- Returns:
- The key associated with the record patch.
-
withKey
public RecordPatch withKey(String key)
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
public void setValue(String value)
The value associated with the record patch.- Parameters:
value
- The value associated with the record patch.
-
getValue
public String getValue()
The value associated with the record patch.- Returns:
- The value associated with the record patch.
-
withValue
public RecordPatch withValue(String value)
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
public void setSyncCount(Long syncCount)
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
public Long 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
public RecordPatch withSyncCount(Long syncCount)
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
public void setDeviceLastModifiedDate(Date deviceLastModifiedDate)
The last modified date of the client device.- Parameters:
deviceLastModifiedDate
- The last modified date of the client device.
-
getDeviceLastModifiedDate
public Date getDeviceLastModifiedDate()
The last modified date of the client device.- Returns:
- The last modified date of the client device.
-
withDeviceLastModifiedDate
public RecordPatch withDeviceLastModifiedDate(Date deviceLastModifiedDate)
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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public RecordPatch clone()
-
-