Class AddRoleRequest

Object
AddRoleRequest
All Implemented Interfaces:
Serializable

public class AddRoleRequest extends Object implements Serializable
The properties of the role to be added.
See Also:
  • Constructor Details Link icon

    • AddRoleRequest Link icon

      public AddRoleRequest()
  • Method Details Link icon

    • builder Link icon

      public static AddRoleRequest.Builder builder()
    • getId Link icon

      public UUID 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 Link icon

      public String getName()
      Required. The name of the new role. Should be unique within all roles.
    • isGlobal Link icon

      public boolean isGlobal()
      Whether the role should be a global or resource role.
    • getDescription Link icon

      public String getDescription()
      The description of the role.
    • getPermissions Link icon

      public List<Permission> getPermissions()
      The permissions to be granted for this role.
    • isDisabled Link icon

      public boolean isDisabled()
      Whether the role should be disabled or not.
    • setId Link icon

      public void setId(UUID id)
      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 Link icon

      public void setName(String name)
      Required. The name of the new role. Should be unique within all roles.
    • setGlobal Link icon

      public void setGlobal(boolean global)
      Whether the role should be a global or resource role.
    • setDescription Link icon

      public void setDescription(String description)
      The description of the role.
    • setPermissions Link icon

      public void setPermissions(List<Permission> permissions)
      The permissions to be granted for this role.
    • setDisabled Link icon

      public void setDisabled(boolean disabled)
      Whether the role should be disabled or not.
    • equals Link icon

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual Link icon

      protected boolean canEqual(Object other)
    • hashCode Link icon

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object