Class Entity

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class Entity extends Object
Entity represents an entity with a type and an identifier.
  • Field Details

  • Constructor Details

    • Entity

      public Entity()
  • Method Details

    • type

      public Entity type(String type)
    • getType

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

      public void setType(String type)
    • id

      public Entity id(String id)
    • getId

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

      public void setId(String id)
    • equals

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