Class DataChange

java.lang.Object
co.permify.sdk.model.DataChange

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class DataChange extends Object
DataChange represents a single change in data, with an operation type and the actual change which could be a tuple or an attribute.
  • Field Details

  • Constructor Details

    • DataChange

      public DataChange()
  • Method Details

    • operation

      public DataChange operation(DataChangeOperation operation)
    • getOperation

      @Nullable public DataChangeOperation getOperation()
      Get operation
      Returns:
      operation
    • setOperation

      public void setOperation(DataChangeOperation operation)
    • tuple

      public DataChange tuple(Tuple tuple)
    • getTuple

      @Nullable public Tuple getTuple()
      Get tuple
      Returns:
      tuple
    • setTuple

      public void setTuple(Tuple tuple)
    • attribute

      public DataChange attribute(Attribute attribute)
    • getAttribute

      @Nullable public Attribute getAttribute()
      Get attribute
      Returns:
      attribute
    • setAttribute

      public void setAttribute(Attribute attribute)
    • equals

      public boolean equals(Object o)
      Return true if this DataChange object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object
    • toUrlQueryString

      public String toUrlQueryString()
      Convert the instance into URL query string.
      Returns:
      URL query string
    • toUrlQueryString

      public String toUrlQueryString(String prefix)
      Convert the instance into URL query string.
      Parameters:
      prefix - prefix of the query string
      Returns:
      URL query string