Package io.quarkus.mailer
Record Class SentMail.SentAttachment
java.lang.Object
java.lang.Record
io.quarkus.mailer.SentMail.SentAttachment
- Record Components:
name- the namefile- the filedescription- the descriptiondisposition- the dispositiondata- the datacontentType- the content typecontentId- the content ID
- Enclosing class:
- SentMail
public static record SentMail.SentAttachment(String name, File file, String description, String disposition, Flow.Publisher<Byte> data, String contentType, String contentId)
extends Record
An immutable representation of an attachment that has been sent.
-
Constructor Summary
ConstructorsConstructorDescriptionSentAttachment(String name, File file, String description, String disposition, Flow.Publisher<Byte> data, String contentType, String contentId) Creates an instance of aSentAttachmentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontentIdrecord component.Returns the value of thecontentTyperecord component.data()Returns the value of thedatarecord component.Returns the value of thedescriptionrecord component.Returns the value of thedispositionrecord component.final booleanIndicates whether some other object is "equal to" this one.file()Returns the value of thefilerecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SentAttachment
public SentAttachment(String name, File file, String description, String disposition, Flow.Publisher<Byte> data, String contentType, String contentId) Creates an instance of aSentAttachmentrecord class.- Parameters:
name- the value for thenamerecord componentfile- the value for thefilerecord componentdescription- the value for thedescriptionrecord componentdisposition- the value for thedispositionrecord componentdata- the value for thedatarecord componentcontentType- the value for thecontentTyperecord componentcontentId- the value for thecontentIdrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
file
Returns the value of thefilerecord component.- Returns:
- the value of the
filerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
disposition
Returns the value of thedispositionrecord component.- Returns:
- the value of the
dispositionrecord component
-
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-
contentType
Returns the value of thecontentTyperecord component.- Returns:
- the value of the
contentTyperecord component
-
contentId
Returns the value of thecontentIdrecord component.- Returns:
- the value of the
contentIdrecord component
-