Record Class MailpitSendAttachment
java.lang.Object
java.lang.Record
io.micronaut.email.mailpit.client.model.MailpitSendAttachment
- Record Components:
content- Base64-encoded attachment content.filename- File name.contentType- Optional content type.contentId- Optional Content-ID for inline attachments.
-
Constructor Summary
ConstructorsConstructorDescriptionMailpitSendAttachment(String content, String filename, @Nullable String contentType, @Nullable String contentId) Creates an instance of aMailpitSendAttachmentrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncontent()Returns the value of thecontentrecord component.@Nullable StringReturns the value of thecontentIdrecord component.@Nullable StringReturns the value of thecontentTyperecord component.final booleanIndicates whether some other object is "equal to" this one.filename()Returns the value of thefilenamerecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MailpitSendAttachment
public MailpitSendAttachment(String content, String filename, @Nullable String contentType, @Nullable String contentId) Creates an instance of aMailpitSendAttachmentrecord class.- Parameters:
content- the value for thecontentrecord componentfilename- the value for thefilenamerecord componentcontentType- the value for thecontentTyperecord componentcontentId- the value for thecontentIdrecord 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). -
content
-
filename
-
contentType
Returns the value of thecontentTyperecord component.- Returns:
- the value of the
contentTyperecord component
-
contentId
-