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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ChangeRoleRequest.Builder
-
Constructor Summary
Constructors Constructor Description ChangeRoleRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ChangeRoleRequest.Builder
builder()
protected boolean
canEqual(Object other)
boolean
equals(Object o)
String
getDescription()
The new description for the role.@NotNull UUID
getId()
Required. The ID of the role to be changed.String
getName()
The new name for the role.List<Permission>
getPermissions()
The new permissions to be set.int
hashCode()
void
setDescription(String description)
The new description for the role.void
setId(@NotNull UUID id)
Required. The ID of the role to be changed.void
setName(String name)
The new name for the role.void
setPermissions(List<Permission> permissions)
The new permissions to be set.String
toString()
-
-
-
Method Detail
-
builder
public static ChangeRoleRequest.Builder builder()
-
getId
@NotNull public @NotNull 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(@NotNull @NotNull 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 classObject
-
canEqual
protected boolean canEqual(Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classObject
-
toString
public String toString()
- Overrides:
toString
in classObject
-
-