Record Class MailpitMessage
java.lang.Object
java.lang.Record
io.micronaut.email.mailpit.client.model.MailpitMessage
- Record Components:
id- Database ID.messageId- Message ID.from- From address.to- To addresses.cc- Cc addresses.bcc- Bcc addresses.replyTo- Reply-To addresses.returnPath- Return-Path value.subject- Subject.listUnsubscribe- List-Unsubscribe summary.date- Message date.- Tags.username- Authentication username.text- Text body.html- HTML body.size- Size in bytes.inline- Inline attachments.attachments- Attachments.
public record MailpitMessage(@Nullable String id, @Nullable String messageId, @Nullable MailpitAddress from, @Nullable List<MailpitAddress> to, @Nullable List<MailpitAddress> cc, @Nullable List<MailpitAddress> bcc, @Nullable List<MailpitAddress> replyTo, @Nullable String returnPath, @Nullable String subject, @Nullable MailpitListUnsubscribe listUnsubscribe, @Nullable String date, @Nullable List<String> tags, @Nullable String username, @Nullable String text, @Nullable String html, long size, @Nullable List<MailpitAttachment> inline, @Nullable List<MailpitAttachment> attachments)
extends Record
Mailpit message details.
- Since:
- 3.1.0
-
Constructor Summary
ConstructorsConstructorDescriptionMailpitMessage(@Nullable String id, @Nullable String messageId, @Nullable MailpitAddress from, @Nullable List<MailpitAddress> to, @Nullable List<MailpitAddress> cc, @Nullable List<MailpitAddress> bcc, @Nullable List<MailpitAddress> replyTo, @Nullable String returnPath, @Nullable String subject, @Nullable MailpitListUnsubscribe listUnsubscribe, @Nullable String date, @Nullable List<String> tags, @Nullable String username, @Nullable String text, @Nullable String html, long size, @Nullable List<MailpitAttachment> inline, @Nullable List<MailpitAttachment> attachments) Creates an instance of aMailpitMessagerecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable List<MailpitAttachment> Returns the value of theattachmentsrecord component.@Nullable List<MailpitAddress> bcc()Returns the value of thebccrecord component.@Nullable List<MailpitAddress> cc()Returns the value of theccrecord component.@Nullable Stringdate()Returns the value of thedaterecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable MailpitAddressfrom()Returns the value of thefromrecord component.final inthashCode()Returns a hash code value for this object.@Nullable Stringhtml()Returns the value of thehtmlrecord component.@Nullable Stringid()Returns the value of theidrecord component.@Nullable List<MailpitAttachment> inline()Returns the value of theinlinerecord component.@Nullable MailpitListUnsubscribeReturns the value of thelistUnsubscriberecord component.@Nullable StringReturns the value of themessageIdrecord component.@Nullable List<MailpitAddress> replyTo()Returns the value of thereplyTorecord component.@Nullable StringReturns the value of thereturnPathrecord component.longsize()Returns the value of thesizerecord component.@Nullable Stringsubject()Returns the value of thesubjectrecord component.tags()Returns the value of thetagsrecord component.@Nullable Stringtext()Returns the value of thetextrecord component.@Nullable List<MailpitAddress> to()Returns the value of thetorecord component.final StringtoString()Returns a string representation of this record class.@Nullable Stringusername()Returns the value of theusernamerecord component.
-
Constructor Details
-
MailpitMessage
public MailpitMessage(@Nullable String id, @Nullable String messageId, @Nullable MailpitAddress from, @Nullable List<MailpitAddress> to, @Nullable List<MailpitAddress> cc, @Nullable List<MailpitAddress> bcc, @Nullable List<MailpitAddress> replyTo, @Nullable String returnPath, @Nullable String subject, @Nullable MailpitListUnsubscribe listUnsubscribe, @Nullable String date, @Nullable List<String> tags, @Nullable String username, @Nullable String text, @Nullable String html, long size, @Nullable List<MailpitAttachment> inline, @Nullable List<MailpitAttachment> attachments) Creates an instance of aMailpitMessagerecord class.- Parameters:
id- the value for theidrecord componentmessageId- the value for themessageIdrecord componentfrom- the value for thefromrecord componentto- the value for thetorecord componentcc- the value for theccrecord componentbcc- the value for thebccrecord componentreplyTo- the value for thereplyTorecord componentreturnPath- the value for thereturnPathrecord componentsubject- the value for thesubjectrecord componentlistUnsubscribe- the value for thelistUnsubscriberecord componentdate- the value for thedaterecord componenttags- the value for thetagsrecord componentusername- the value for theusernamerecord componenttext- the value for thetextrecord componenthtml- the value for thehtmlrecord componentsize- the value for thesizerecord componentinline- the value for theinlinerecord componentattachments- the value for theattachmentsrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
-
messageId
-
from
-
to
-
cc
-
bcc
-
replyTo
-
returnPath
Returns the value of thereturnPathrecord component.- Returns:
- the value of the
returnPathrecord component
-
subject
-
listUnsubscribe
Returns the value of thelistUnsubscriberecord component.- Returns:
- the value of the
listUnsubscriberecord component
-
date
-
tags
-
username
-
text
-
html
-
size
-
inline
-
attachments
Returns the value of theattachmentsrecord component.- Returns:
- the value of the
attachmentsrecord component
-