Class AddRoleRequest.Builder

  • Enclosing class:
    AddRoleRequest

    public static final class AddRoleRequest.Builder
    extends Object
    • Method Detail

      • id

        public AddRoleRequest.Builder id​(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

        Returns:
        this.
      • name

        public AddRoleRequest.Builder name​(@NotNull
                                           @NotNull String name)
        Required. The name of the new role. Should be unique within all roles.
        Returns:
        this.
      • global

        public AddRoleRequest.Builder global​(boolean global)
        Whether the role should be a global or resource role.
        Returns:
        this.
      • description

        public AddRoleRequest.Builder description​(String description)
        The description of the role.
        Returns:
        this.
      • toString

        public String toString()
        Overrides:
        toString in class Object