Class Context

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class Context extends Object
Context encapsulates the information related to a single operation, including the tuples involved and the associated attributes.
  • Field Details

  • Constructor Details

    • Context

      public Context()
  • Method Details

    • tuples

      public Context tuples(List<Tuple> tuples)
    • addTuplesItem

      public Context addTuplesItem(Tuple tuplesItem)
    • getTuples

      @Nullable public List<Tuple> getTuples()
      A repeated field of tuples involved in the operation.
      Returns:
      tuples
    • setTuples

      public void setTuples(List<Tuple> tuples)
    • attributes

      public Context attributes(List<Attribute> attributes)
    • addAttributesItem

      public Context addAttributesItem(Attribute attributesItem)
    • getAttributes

      @Nullable public List<Attribute> getAttributes()
      A repeated field of attributes associated with the operation.
      Returns:
      attributes
    • setAttributes

      public void setAttributes(List<Attribute> attributes)
    • data

      public Context data(Object data)
    • getData

      @Nullable public Object getData()
      Additional data associated with the context.
      Returns:
      data
    • setData

      public void setData(Object data)
    • equals

      public boolean equals(Object o)
      Return true if this Context 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