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:
  • Constructor Details

    • RecordPatch

      public RecordPatch()
  • Method Details

    • setOp

      public void setOp(String op)
      An operation, either replace or remove.
      Parameters:
      op - An operation, either replace or remove.
      See Also:
    • getOp

      public String getOp()
      An operation, either replace or remove.
      Returns:
      An operation, either replace or remove.
      See Also:
    • 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:
    • setOp

      public void setOp(Operation op)
      An operation, either replace or remove.
      Parameters:
      op - An operation, either replace or remove.
      See Also:
    • 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:
    • 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public RecordPatch clone()
      Overrides:
      clone in class Object