Record Class MailpitAttachment
java.lang.Object
java.lang.Record
io.micronaut.email.mailpit.client.model.MailpitAttachment
- Record Components:
partId- Attachment part ID.fileName- File name.contentType- Content type.contentId- Content ID.size- Size in bytes.checksums- Attachment checksums.
-
Constructor Summary
ConstructorsConstructorDescriptionMailpitAttachment(@Nullable String partId, @Nullable String fileName, @Nullable String contentType, @Nullable String contentId, long size, @Nullable MailpitAttachmentChecksums checksums) Creates an instance of aMailpitAttachmentrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable MailpitAttachmentChecksumsReturns the value of thechecksumsrecord 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.@Nullable StringfileName()Returns the value of thefileNamerecord component.final inthashCode()Returns a hash code value for this object.@Nullable StringpartId()Returns the value of thepartIdrecord component.longsize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MailpitAttachment
public MailpitAttachment(@Nullable String partId, @Nullable String fileName, @Nullable String contentType, @Nullable String contentId, long size, @Nullable MailpitAttachmentChecksums checksums) Creates an instance of aMailpitAttachmentrecord class.- Parameters:
partId- the value for thepartIdrecord componentfileName- the value for thefileNamerecord componentcontentType- the value for thecontentTyperecord componentcontentId- the value for thecontentIdrecord componentsize- the value for thesizerecord componentchecksums- the value for thechecksumsrecord 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. -
partId
-
fileName
-
contentType
Returns the value of thecontentTyperecord component.- Returns:
- the value of the
contentTyperecord component
-
contentId
-
size
-
checksums
-