Class AddRoleRequest
Object
AddRoleRequest
- All Implemented Interfaces:
Serializable
The properties of the role to be added.
- See Also:
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic AddRoleRequest.Builder
builder()
protected boolean
boolean
The description of the role.getId()
The ID of the new role.getName()
Required. The name of the new role.The permissions to be granted for this role.int
hashCode()
boolean
isGlobal()
Whether the role should be a global or resource role.void
setDescription
(String description) The description of the role.void
setGlobal
(boolean global) Whether the role should be a global or resource role.void
The ID of the new role.void
Required. The name of the new role.void
setPermissions
(List<Permission> permissions) The permissions to be granted for this role.toString()
-
Constructor Details
-
AddRoleRequest
public AddRoleRequest()
-
-
Method Details
-
builder
-
getId
The ID of the new role. Should be unique within all roles.It should have a format of universally unique identifier (UUID) and should not start with
00000000-0000-0000-
which is a reserved prefix -
getName
Required. The name of the new role. Should be unique within all roles. -
isGlobal
public boolean isGlobal()Whether the role should be a global or resource role. -
getDescription
The description of the role. -
getPermissions
The permissions to be granted for this role. -
setId
The ID of the new role. Should be unique within all roles.It should have a format of universally unique identifier (UUID) and should not start with
00000000-0000-0000-
which is a reserved prefix -
setName
Required. The name of the new role. Should be unique within all roles. -
setGlobal
public void setGlobal(boolean global) Whether the role should be a global or resource role. -
setDescription
The description of the role. -
setPermissions
The permissions to be granted for this role. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-