Class OwnerDTO.Builder

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

public static class OwnerDTO.Builder extends Object
Builder class for constructing OwnerDTO instances.
  • Method Details

    • withName

      public OwnerDTO.Builder withName(String name)
      Sets the name for the owner.
      Parameters:
      name - The name of the owner.
      Returns:
      The builder instance.
    • withType

      public OwnerDTO.Builder withType(Owner.Type type)
      Sets the type for the owner.
      Parameters:
      type - The type of the owner.
      Returns:
      The builder instance.
    • build

      public OwnerDTO build()
      Builds an instance of OwnerDTO using the builder's properties.
      Returns:
      An instance of OwnerDTO.