public static class Attachment.Builder extends Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
Attachment |
build()
Builds the object.
|
Attachment.Builder |
setBuf(byte[] buf)
Sets data buffer.
|
Attachment.Builder |
setMime(String mime)
Sets attachment MIME type.
|
Attachment.Builder |
setName(String name)
Sets attachment name.
|
public Attachment.Builder setBuf(byte[] buf)
buf - data bufferpublic Attachment.Builder setName(String name)
name - attachment namepublic Attachment.Builder setMime(String mime)
mime - MIME typepublic Attachment build()
Copyright © 2016. All rights reserved.