Class GroupDTO.Builder<S extends GroupDTO.Builder>
java.lang.Object
org.apache.gravitino.dto.authorization.GroupDTO.Builder<S>
- Type Parameters:
S
- The type of the builder instance.
- Enclosing class:
- GroupDTO
Builder class for constructing a GroupDTO instance.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
name
The name of the group. -
roles
The roles of the group. -
audit
The audit information of the group.
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
withName
Sets the name of the group.- Parameters:
name
- The name of the group.- Returns:
- The builder instance.
-
withRoles
Sets the roles of the group.- Parameters:
roles
- The roles of the group.- Returns:
- The builder instance.
-
withAudit
Sets the audit information of the group.- Parameters:
audit
- The audit information of the group.- Returns:
- The builder instance.
-
build
Builds an instance of GroupDTO using the builder's properties.- Returns:
- An instance of GroupDTO.
- Throws:
IllegalArgumentException
- If the name or audit are not set.
-