Class Subject

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.14.0") public class Subject extends Object
Subject represents an entity subject with a type, an identifier, and a relation.
  • Field Details

  • Constructor Details

    • Subject

      public Subject()
  • Method Details

    • type

      public Subject type(@Nullable String type)
    • getType

      @Nullable public String getType()
      Get type
      Returns:
      type
    • setType

      public void setType(@Nullable String type)
    • id

      public Subject id(@Nullable String id)
    • getId

      @Nullable public String getId()
      Get id
      Returns:
      id
    • setId

      public void setId(@Nullable String id)
    • relation

      public Subject relation(@Nullable String relation)
    • getRelation

      @Nullable public String getRelation()
      Get relation
      Returns:
      relation
    • setRelation

      public void setRelation(@Nullable String relation)
    • equals

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