Class V1Expand

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class V1Expand extends Object
Expand is used to define a hierarchical structure for permissions. It has an entity, permission, and arguments. The node can be either another hierarchical structure or a set of subjects.
  • Field Details

  • Constructor Details

    • V1Expand

      public V1Expand()
  • Method Details

    • entity

      public V1Expand entity(Entity entity)
    • getEntity

      @Nullable public Entity getEntity()
      Get entity
      Returns:
      entity
    • setEntity

      public void setEntity(Entity entity)
    • permission

      public V1Expand permission(String permission)
    • getPermission

      @Nullable public String getPermission()
      permission is the permission applied to the entity.
      Returns:
      permission
    • setPermission

      public void setPermission(String permission)
    • arguments

      public V1Expand arguments(List<Argument> arguments)
    • addArgumentsItem

      public V1Expand addArgumentsItem(Argument argumentsItem)
    • getArguments

      @Nullable public List<Argument> getArguments()
      arguments are the additional information or context used to evaluate permissions.
      Returns:
      arguments
    • setArguments

      public void setArguments(List<Argument> arguments)
    • expand

      public V1Expand expand(ExpandTreeNode expand)
    • getExpand

      @Nullable public ExpandTreeNode getExpand()
      Get expand
      Returns:
      expand
    • setExpand

      public void setExpand(ExpandTreeNode expand)
    • leaf

      public V1Expand leaf(ExpandLeaf leaf)
    • getLeaf

      @Nullable public ExpandLeaf getLeaf()
      Get leaf
      Returns:
      leaf
    • setLeaf

      public void setLeaf(ExpandLeaf leaf)
    • equals

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