Record Class MimeBuilder.AttachmentData
java.lang.Object
java.lang.Record
cloud.opencode.base.email.protocol.mime.MimeBuilder.AttachmentData
- Record Components:
fileName- the attachment file name | 附件文件名contentType- the MIME content type | MIME 内容类型data- the attachment binary data | 附件二进制数据inline- true for inline attachment (e.g., embedded images) | 是否内嵌附件contentId- the Content-ID for inline attachments (nullable) | 内嵌附件的 Content-ID
- Enclosing class:
MimeBuilder
-
Constructor Summary
ConstructorsConstructorDescriptionAttachmentData(String fileName, String contentType, byte[] data, boolean inline, String contentId) Creates an instance of aAttachmentDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontentIdrecord component.Returns the value of thecontentTyperecord component.byte[]data()Returns the value of thedatarecord 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.booleaninline()Returns the value of theinlinerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AttachmentData
public AttachmentData(String fileName, String contentType, byte[] data, boolean inline, String contentId) Creates an instance of aAttachmentDatarecord class.- Parameters:
fileName- the value for thefileNamerecord componentcontentType- the value for thecontentTyperecord componentdata- the value for thedatarecord componentinline- the value for theinlinerecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
fileName
-
contentType
Returns the value of thecontentTyperecord component.- Returns:
- the value of the
contentTyperecord component
-
data
-
inline
-
contentId
-