Package com.collibra.dgc.core.api.dto.instance.relation

# Class AddRelationRequest.Builder

Object
Builder

Enclosing class:
  `AddRelationRequest`

public static class AddRelationRequest.Builder extends Object

- ## Method Summary

  Modifier and Type
  Method
  Description
  `AddRelationRequest`
  `build()`
  `AddRelationRequest.Builder`
  `but()`
  Deprecated.
  This method will be removed in the future.
  `AddRelationRequest.Builder`
  `endingDate(Long endingDate)`
  Deprecated.
  To be removed without replacement.
  `AddRelationRequest.Builder`
  `sourceId(UUID sourceId)`
  Required. The ID of the source of the relation.
  `AddRelationRequest.Builder`
  `startingDate(Long startingDate)`
  Deprecated.
  To be removed without replacement.
  `AddRelationRequest.Builder`
  `targetId(UUID targetId)`
  Required. The ID of the target of the relation.
  `String`
  `toString()`
  `AddRelationRequest.Builder`
  `typeId(UUID typeId)`
  The ID of the type of the relation.
  `AddRelationRequest.Builder`
  `typePublicId(String typePublicId)`
  The public ID of the type of the relation.

  ### Methods inherited from class Object

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

- ## Method Details

  - ### but

    @Deprecated public AddRelationRequest.Builder but()
    Deprecated.
    This method will be removed in the future. Please, use `AddRelationRequest.builder()`
    Clone method for this Builder.

  - ### sourceId

    public AddRelationRequest.Builder sourceId(UUID sourceId)
    Required. The ID of the source of the relation.
    Returns:
      `this`.

  - ### targetId

    public AddRelationRequest.Builder targetId(UUID targetId)
    Required. The ID of the target of the relation.
    Returns:
      `this`.

  - ### typeId

    public AddRelationRequest.Builder typeId(UUID typeId)
    The ID of the type of the relation.
    Returns:
      `this`.

  - ### startingDate

    @Deprecated public AddRelationRequest.Builder startingDate(Long startingDate)
    Deprecated.
    To be removed without replacement.
    The starting date of the relation.
    Returns:
      `this`.

  - ### endingDate

    @Deprecated public AddRelationRequest.Builder endingDate(Long endingDate)
    Deprecated.
    To be removed without replacement.
    The ending date of the relation.
    Returns:
      `this`.

  - ### typePublicId

    public AddRelationRequest.Builder typePublicId(String typePublicId)
    The public ID of the type of the relation.
    Returns:
      `this`.

  - ### build

    public AddRelationRequest build()

  - ### toString

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