public static class SecurableObjectDTO.Builder
extends java.lang.Object
SecurableObjectDTO
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SecurableObjectDTO |
build()
Builds an instance of SecurableObjectDTO using the builder's properties.
|
SecurableObjectDTO.Builder |
withFullName(java.lang.String fullName)
Sets the full name of the securable object.
|
SecurableObjectDTO.Builder |
withPrivileges(PrivilegeDTO[] privileges)
Sets the privileges of the securable object.
|
SecurableObjectDTO.Builder |
withType(SecurableObject.Type type)
Sets the type of the securable object.
|
public SecurableObjectDTO.Builder withFullName(java.lang.String fullName)
fullName
- The full name of the securable object.public SecurableObjectDTO.Builder withType(SecurableObject.Type type)
type
- The type of the securable object.public SecurableObjectDTO.Builder withPrivileges(PrivilegeDTO[] privileges)
privileges
- The privileges of the securable object.public SecurableObjectDTO build()
java.lang.IllegalArgumentException
- If the full name or type are not set.