Class ModelObject

java.lang.Object
org.apache.syncope.ext.openfga.client.model.ModelObject

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-03-07T14:52:32.408381154+01:00[Europe/Rome]", comments="Generator version: 7.12.0") public class ModelObject extends Object
Object represents an OpenFGA Object. An Object is composed of a type and identifier (e.g. 'document:1') See https://openfga.dev/docs/concepts#what-is-an-object
  • Field Details

  • Constructor Details

    • ModelObject

      public ModelObject()
  • Method Details

    • type

      public ModelObject type(@Nonnull String type)
    • getType

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

      public void setType(@Nonnull String type)
    • id

      public ModelObject id(@Nonnull String id)
    • getId

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

      public void setId(@Nonnull String id)
    • equals

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