Record Class MailpitSendRequest
java.lang.Object
java.lang.Record
io.micronaut.email.mailpit.client.model.MailpitSendRequest
- Record Components:
from- From address.to- To recipients.cc- Cc recipients.bcc- Bcc email addresses.replyTo- Reply-To recipients.subject- Subject.text- Text body.html- HTML body.attachments- Attachments.- Tags.headers- Custom headers.
public record MailpitSendRequest(MailpitSendAddress from, @Nullable List<MailpitSendAddress> to, @Nullable List<MailpitSendAddress> cc, @Nullable List<String> bcc, @Nullable List<MailpitSendAddress> replyTo, @Nullable String subject, @Nullable String text, @Nullable String html, @Nullable List<MailpitSendAttachment> attachments, @Nullable List<String> tags, @Nullable Map<String,String> headers)
extends Record
Request for Mailpit's HTTP send API.
- Since:
- 3.1.0
-
Constructor Summary
ConstructorsConstructorDescriptionMailpitSendRequest(MailpitSendAddress from, @Nullable List<MailpitSendAddress> to, @Nullable List<MailpitSendAddress> cc, @Nullable List<String> bcc, @Nullable List<MailpitSendAddress> replyTo, @Nullable String subject, @Nullable String text, @Nullable String html, @Nullable List<MailpitSendAttachment> attachments, @Nullable List<String> tags, @Nullable Map<String, String> headers) Creates an instance of aMailpitSendRequestrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable List<MailpitSendAttachment> Returns the value of theattachmentsrecord component.bcc()Returns the value of thebccrecord component.@Nullable List<MailpitSendAddress> cc()Returns the value of theccrecord component.final booleanIndicates whether some other object is "equal to" this one.from()Returns the value of thefromrecord component.final inthashCode()Returns a hash code value for this object.headers()Returns the value of theheadersrecord component.@Nullable Stringhtml()Returns the value of thehtmlrecord component.@Nullable List<MailpitSendAddress> replyTo()Returns the value of thereplyTorecord 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<MailpitSendAddress> to()Returns the value of thetorecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MailpitSendRequest
public MailpitSendRequest(MailpitSendAddress from, @Nullable List<MailpitSendAddress> to, @Nullable List<MailpitSendAddress> cc, @Nullable List<String> bcc, @Nullable List<MailpitSendAddress> replyTo, @Nullable String subject, @Nullable String text, @Nullable String html, @Nullable List<MailpitSendAttachment> attachments, @Nullable List<String> tags, @Nullable Map<String, String> headers) Creates an instance of aMailpitSendRequestrecord class.- Parameters:
from- the value for thefromrecord componentto- the value for thetorecord componentcc- the value for theccrecord componentbcc- the value for thebccrecord componentreplyTo- the value for thereplyTorecord componentsubject- the value for thesubjectrecord componenttext- the value for thetextrecord componenthtml- the value for thehtmlrecord componentattachments- the value for theattachmentsrecord componenttags- the value for thetagsrecord componentheaders- the value for theheadersrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
from
-
to
-
cc
-
bcc
-
replyTo
-
subject
-
text
-
html
-
attachments
Returns the value of theattachmentsrecord component.- Returns:
- the value of the
attachmentsrecord component
-
tags
-
headers
-