Package com.collibra.dgc.core.api.dto.role

# 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 final class`
  `ChangeRoleRequest.Builder`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ChangeRoleRequest()`

- ## Method Summary

  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.
  `Boolean`
  `getDisabled()`
  Whether the role should be disabled or not.
  `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`
  `setDisabled(Boolean disabled)`
  Whether the role should be disabled or not.
  `void`
  `setId(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()`

  ### Methods inherited from class Object

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## 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.

  - ### getDisabled

    public Boolean getDisabled()
    Whether the role should be disabled or not.

  - ### 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.

  - ### setDisabled

    public void setDisabled(Boolean disabled)
    Whether the role should be disabled or not.

  - ### 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`