Package io.micronaut.email
Class Attachment
java.lang.Object
io.micronaut.email.Attachment
Email's Attachment.
- Since:
- 1.0.0
- Author:
- Sergio del Amo
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAttachment
(@NonNull String filename, @NonNull String contentType, @io.micronaut.core.annotation.NonNull byte[] content, @Nullable String id) -
Method Summary
-
Constructor Details
-
Attachment
public Attachment(@NonNull @NonNull String filename, @NonNull @NonNull String contentType, @NonNull @io.micronaut.core.annotation.NonNull byte[] content, @Nullable @Nullable String id) - Parameters:
filename
- filename to show up in emailcontent
- file contentcontentType
- file content typeid
- content identifier
-
-
Method Details
-
builder
- Returns:
- Attachment's builder
-
getFilename
- Returns:
- filename to show up in email
-
getContentType
- Returns:
- file content type
-
getContent
@NonNull public @io.micronaut.core.annotation.NonNull byte[] getContent()- Returns:
- file content type
-
getId
- Returns:
- Content Id
-