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

# Class AddAttachmentRequest.FileReference.Builder

Object
Builder

Enclosing class:
  `AddAttachmentRequest.FileReference`

public static class AddAttachmentRequest.FileReference.Builder extends Object

- ## Method Summary

  Modifier and Type
  Method
  Description
  `AddAttachmentRequest.FileReference`
  `build()`
  `AddAttachmentRequest.FileReference.Builder`
  `fileId(UUID fileId)`
  The file id for attachment.
  `AddAttachmentRequest.FileReference.Builder`
  `fileStream(InputStream fileStream)`
  The file content for attachment.
  `AddAttachmentRequest.FileReference.Builder`
  `name(String name)`
  The display name of the file of this attachment.
  `String`
  `toString()`

  ### Methods inherited from class Object

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

- ## Method Details

  - ### name

    public AddAttachmentRequest.FileReference.Builder name(String name)
    The display name of the file of this attachment.
    Returns:
      `this`.

  - ### fileStream

    public AddAttachmentRequest.FileReference.Builder fileStream(InputStream fileStream)
    The file content for attachment. It could not be used together with `fileId`.
    Returns:
      `this`.

  - ### fileId

    public AddAttachmentRequest.FileReference.Builder fileId(UUID fileId)
    The file id for attachment. It could not be used together with `fileStream`.
    Returns:
      `this`.

  - ### build

    public AddAttachmentRequest.FileReference build()

  - ### toString

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