Package com.enonic.xp.attachment

## Class Attachment.Builder

- java.lang.Object
- - com.enonic.xp.attachment.Attachment.Builder

- Enclosing class:
    Attachment

      public static class Attachment.Builder
      extends Object

- - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `Attachment` | `build()` |
    `Attachment.Builder` | `label​(String label)` |
    `Attachment.Builder` | `mimeType​(String mimeType)` |
    `Attachment.Builder` | `name​(String name)` |
    `Attachment.Builder` | `sha512​(String sha512)` |
    `Attachment.Builder` | `size​(long size)` |
    `Attachment.Builder` | `textContent​(String textContent)` |

    - ### Methods inherited from class java.lang.Object

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

- - ### Method Detail

    - #### mimeType

          public Attachment.Builder mimeType​(String mimeType)

    - #### name

          public Attachment.Builder name​(String name)

    - #### label

          public Attachment.Builder label​(String label)

    - #### sha512

          public Attachment.Builder sha512​(String sha512)

    - #### size

          public Attachment.Builder size​(long size)

    - #### textContent

          public Attachment.Builder textContent​(String textContent)

    - #### build

          public Attachment build()