Class RelationReference

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class RelationReference extends Object
The RelationReference message provides a reference to a specific relation.
  • Field Details

  • Constructor Details

    • RelationReference

      public RelationReference()
  • Method Details

    • type

      public RelationReference type(String type)
    • getType

      @Nullable public String getType()
      The type of the referenced entity, which follows a specific string pattern and has a maximum byte size.
      Returns:
      type
    • setType

      public void setType(String type)
    • relation

      public RelationReference relation(String relation)
    • getRelation

      @Nullable public String getRelation()
      The name of the referenced relation, which follows a specific string pattern and has a maximum byte size.
      Returns:
      relation
    • setRelation

      public void setRelation(String relation)
    • equals

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