Class SecurableObjectDTO.Builder

java.lang.Object
org.apache.gravitino.dto.authorization.SecurableObjectDTO.Builder
Enclosing class:
SecurableObjectDTO

public static class SecurableObjectDTO.Builder extends Object
Builder for SecurableObjectDTO.
  • Method Details

    • withFullName

      public SecurableObjectDTO.Builder withFullName(String fullName)
      Sets the full name of the securable object.
      Parameters:
      fullName - The full name of the securable object.
      Returns:
      The builder instance.
    • withType

      Sets the type of the securable object.
      Parameters:
      type - The type of the securable object.
      Returns:
      The builder instance.
    • withPrivileges

      public SecurableObjectDTO.Builder withPrivileges(PrivilegeDTO[] privileges)
      Sets the privileges of the securable object.
      Parameters:
      privileges - The privileges of the securable object.
      Returns:
      The builder instance.
    • build

      public SecurableObjectDTO build()
      Builds an instance of SecurableObjectDTO using the builder's properties.
      Returns:
      An instance of SecurableObjectDTO.
      Throws:
      IllegalArgumentException - If the full name or type are not set.