Package com.enonic.xp.mail

## Class MailAttachment.Builder

- java.lang.Object
- - com.enonic.xp.mail.MailAttachment.Builder

- Enclosing class:
    MailAttachment

      public static class MailAttachment.Builder
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `Builder()` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `MailAttachment` | `build()` |
    `MailAttachment.Builder` | `data​(ByteSource data)` |
    `MailAttachment.Builder` | `fileName​(String fileName)` |
    `MailAttachment.Builder` | `headers​(Map<String,​String> headers)` |
    `MailAttachment.Builder` | `mimeType​(String mimeType)` |

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

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

- - ### Constructor Detail

    - #### Builder

          public Builder()

  - ### Method Detail

    - #### fileName

          public MailAttachment.Builder fileName​(String fileName)

    - #### data

          public MailAttachment.Builder data​(ByteSource data)

    - #### mimeType

          public MailAttachment.Builder mimeType​(String mimeType)

    - #### headers

          public MailAttachment.Builder headers​(Map<String,​String> headers)

    - #### build

          public MailAttachment build()