Class RoleResponse

java.lang.Object
ai.vectros.types.RoleResponse

public final class RoleResponse extends Object
  • Method Details

    • getId

      public Optional<String> getId()
      Returns:
      The role's globally unique identifier, composed from your account, the app context, and the role ID. Pass this value as the pagination cursor to fetch the next page.
    • getContextId

      public Optional<String> getContextId()
      Returns:
      The ID of the app context this role belongs to.
    • getRoleId

      public Optional<String> getRoleId()
      Returns:
      Your own identifier for this role within the app context.
    • getName

      public Optional<String> getName()
      Returns:
      A human-readable display name for the role.
    • getDescription

      public Optional<String> getDescription()
      Returns:
      An optional free-text description of what the role grants.
    • getScopes

      public Optional<List<ScopeClause>> getScopes()
      Returns:
      The role's permissions, expressed as one or more scope clauses. An action is permitted if any clause allows it and that clause's data scope matches the target.
    • getCreatedAt

      public Optional<String> getCreatedAt()
      Returns:
      When the role was created, as an ISO-8601 UTC timestamp.
    • getLastModified

      public Optional<String> getLastModified()
      Returns:
      When the role was last modified, as an ISO-8601 UTC timestamp.
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static RoleResponse.Builder builder()