Class OwnerDTO.Builder
java.lang.Object
org.apache.gravitino.dto.authorization.OwnerDTO.Builder
- Enclosing class:
- OwnerDTO
Builder class for constructing OwnerDTO instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds an instance of OwnerDTO using the builder's properties.Sets the name for the owner.withType
(Owner.Type type) Sets the type for the owner.
-
Method Details
-
withName
Sets the name for the owner.- Parameters:
name
- The name of the owner.- Returns:
- The builder instance.
-
withType
Sets the type for the owner.- Parameters:
type
- The type of the owner.- Returns:
- The builder instance.
-
build
Builds an instance of OwnerDTO using the builder's properties.- Returns:
- An instance of OwnerDTO.
-