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

    • ChangeRoleRequest

      public ChangeRoleRequest()
  • Method Details

    • builder

      public static ChangeRoleRequest.Builder builder()
    • getId

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

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

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

      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.
    • setId

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

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

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

      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.
    • equals

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

      protected boolean canEqual(Object other)
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object