Class ChangeRoleRequest

Object
ChangeRoleRequest
All Implemented Interfaces:
Serializable

public class ChangeRoleRequest extends Object implements Serializable
The properties of the role to be changed.

Only properties that are specified in this request and have not null values are updated. All other properties are ignored.

See Also:
  • Constructor Details Link icon

    • ChangeRoleRequest Link icon

      public ChangeRoleRequest()
  • Method Details Link icon

    • builder Link icon

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

      public UUID getId()
      Required. The ID of the role to be changed.
    • getName Link icon

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

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

      public List<Permission> getPermissions()
      The new permissions to be set. If null, no changes are made, otherwise the current permissions are replaced with the given ones.
    • getDisabled Link icon

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

      public void setId(UUID id)
      Required. The ID of the role to be changed.
    • setName Link icon

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

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

      public void setPermissions(List<Permission> permissions)
      The new permissions to be set. If null, no changes are made, otherwise the current permissions are replaced with the given ones.
    • 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