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 RecordPatchclone()booleanequals(Object obj)DategetDeviceLastModifiedDate()The last modified date of the client device.StringgetKey()The key associated with the record patch.StringgetOp()An operation, either replace or remove.LonggetSyncCount()Last known server sync count for this record.StringgetValue()The value associated with the record patch.inthashCode()voidsetDeviceLastModifiedDate(Date deviceLastModifiedDate)The last modified date of the client device.voidsetKey(String key)The key associated with the record patch.voidsetOp(Operation op)An operation, either replace or remove.voidsetOp(String op)An operation, either replace or remove.voidsetSyncCount(Long syncCount)Last known server sync count for this record.voidsetValue(String value)The value associated with the record patch.StringtoString()Returns a string representation of this object; useful for testing and debugging.RecordPatchwithDeviceLastModifiedDate(Date deviceLastModifiedDate)The last modified date of the client device.RecordPatchwithKey(String key)The key associated with the record patch.RecordPatchwithOp(Operation op)An operation, either replace or remove.RecordPatchwithOp(String op)An operation, either replace or remove.RecordPatchwithSyncCount(Long syncCount)Last known server sync count for this record.RecordPatchwithValue(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public RecordPatch clone()
-
-