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

# Class AddViewPermissionRequest.Builder

Object
Builder

Enclosing class:
  `AddViewPermissionRequest`

public static class AddViewPermissionRequest.Builder extends Object

- ## Method Summary

  Modifier and Type
  Method
  Description
  `AddViewPermissionRequest.Builder`
  `baseResource(ResourceReference baseResource)`
  Required. The resource on which we want to provide the view permission.
  `AddViewPermissionRequest`
  `build()`
  `String`
  `toString()`
  `AddViewPermissionRequest.Builder`
  `userGroupId(UUID userGroupId)`
  The userGroupId of the group that should receive the view permission.
  `AddViewPermissionRequest.Builder`
  `userId(UUID userId)`
  The userId of the person who should receive the view permission.

  ### Methods inherited from class Object

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

- ## Method Details

  - ### userId

    public AddViewPermissionRequest.Builder userId(UUID userId)
    The userId of the person who should receive the view permission. Either this or the userGroupId is required.
    Returns:
      `this`.

  - ### userGroupId

    public AddViewPermissionRequest.Builder userGroupId(UUID userGroupId)
    The userGroupId of the group that should receive the view permission. Either this or the userId is required.
    Returns:
      `this`.

  - ### baseResource

    public AddViewPermissionRequest.Builder baseResource(ResourceReference baseResource)
    Required. The resource on which we want to provide the view permission.
    Returns:
      `this`.

  - ### build

    public AddViewPermissionRequest build()

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`