public class AttachmentBuilder extends Object
Constructor and Description |
---|
AttachmentBuilder(Attachment model) |
Modifier and Type | Method and Description |
---|---|
AttachmentBuilder |
base64Data(String base64Data)
Set Attachment.base64Data and return builder.
|
Attachment |
build()
Build Attachment instance.
|
AttachmentBuilder |
contentDisposition(String contentDisposition)
Set Attachment.contentDisposition and return builder.
|
AttachmentBuilder |
contentId(String contentId)
Set Attachment.contentId and return builder.
|
AttachmentBuilder |
contentType(ContentType contentType)
Set Attachment.contentType and return builder.
|
AttachmentBuilder |
headers(Map<String,String> headers)
Set Attachment.headers and return builder.
|
AttachmentBuilder |
isEmbeddedMessage(Boolean isEmbeddedMessage)
Set Attachment.isEmbeddedMessage and return builder.
|
AttachmentBuilder |
name(String name)
Set Attachment.name and return builder.
|
AttachmentBuilder |
nameEncoding(String nameEncoding)
Set Attachment.nameEncoding and return builder.
|
AttachmentBuilder |
preferredTextEncoding(String preferredTextEncoding)
Set Attachment.preferredTextEncoding and return builder.
|
public AttachmentBuilder(Attachment model)
public Attachment build()
public AttachmentBuilder base64Data(String base64Data)
base64Data
- Attachment file content as Base64 string.public AttachmentBuilder contentId(String contentId)
contentId
- Attachment content idpublic AttachmentBuilder contentType(ContentType contentType)
contentType
- Content typepublic AttachmentBuilder headers(Map<String,String> headers)
headers
- Attachment headers.public AttachmentBuilder contentDisposition(String contentDisposition)
contentDisposition
- Content-Disposition header. Read only.public AttachmentBuilder isEmbeddedMessage(Boolean isEmbeddedMessage)
isEmbeddedMessage
- Determines if attachment is an embedded message. Read only.public AttachmentBuilder name(String name)
name
- Attachment name.public AttachmentBuilder nameEncoding(String nameEncoding)
nameEncoding
- Encoding of attachment name.public AttachmentBuilder preferredTextEncoding(String preferredTextEncoding)
preferredTextEncoding
- Preferred text encoding.Copyright © 2020. All rights reserved.