public static final class Attachment.Builder extends Object
Attachment
.
Builder
is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
Modifier and Type | Method and Description |
---|---|
void |
setCharset(Charset charset)
Initializes the default value for the
charset attribute. |
void |
setCharset(Optional<Charset> charset)
Initializes the value for the
charset attribute. |
void |
setContent(byte[] content)
Initializes the value for the
content attribute. |
void |
setMimeType(org.springframework.util.MimeType mimeType)
Initializes the value for the
mimeType attribute. |
void |
setName(String name)
Initializes the value for the
name attribute. |
public void setName(String name)
name
attribute.name
- The value for namepublic void setMimeType(org.springframework.util.MimeType mimeType)
mimeType
attribute.mimeType
- The value for mimeTypepublic void setContent(byte[] content)
content
attribute.content
- The value for contentpublic void setCharset(Optional<Charset> charset)
charset
attribute.charset
- The value for charsetCopyright © 2018–2021 b+m Informatik AG. All rights reserved.