public static class Attachments.Builder extends Object
| Constructor and Description |
|---|
Builder(String fileName,
InputStream content)
Construct a new attachment builder.
|
Builder(String fileName,
String content)
Construct a new attachment builder.
|
| Modifier and Type | Method and Description |
|---|---|
Attachments |
build()
Construct the attachments object.
|
Attachments.Builder |
withContentId(String contentId)
Set the content ID of this attachment builder.
|
Attachments.Builder |
withDisposition(String disposition)
Set the disposition of this attachment builder.
|
Attachments.Builder |
withType(String type)
Set the type of this attachment builder.
|
public Builder(String fileName, InputStream content)
fileName - the filename to include.content - an input stream for the content.IllegalArgumentException - in case either the fileName or the content is null.public Builder(String fileName, String content)
fileName - the filename to include.content - an input string for the content.IllegalArgumentException - in case either the fileName or the content is null.public Attachments.Builder withType(String type)
type - the attachment type.public Attachments.Builder withDisposition(String disposition)
disposition - the disposition.public Attachments.Builder withContentId(String contentId)
contentId - the content ID.public Attachments build()
Copyright © 2020. All rights reserved.