Interface MessageAttachment

All Known Implementing Classes:
Attachment, BlobAttachment

public sealed interface MessageAttachment permits Attachment, BlobAttachment
Marker interface for all attachment types that can be included in a message.

This is the Java equivalent of the .NET SDK's UserMessageDataAttachmentsItem polymorphic base class.

Since:
1.2.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the attachment type discriminator (e.g., "file", "blob").
  • Method Details

    • getType

      String getType()
      Returns the attachment type discriminator (e.g., "file", "blob").
      Returns:
      the type string