Class EmailAttachment

java.lang.Object
com.azure.communication.email.models.EmailAttachment

public final class EmailAttachment extends Object
Attachment to the email.
  • Constructor Details

    • EmailAttachment

      public EmailAttachment(String name, EmailAttachmentType attachmentType, String contentBytesBase64)
      Constructor for EmailAttachment
      Parameters:
      name - the name of the attachment
      attachmentType - the type of attachment file
      contentBytesBase64 - the base64 encoded contents of the attachment
  • Method Details

    • getName

      public String getName()
      Get the name property: Name of the attachment.
      Returns:
      the name value.
    • getAttachmentType

      public EmailAttachmentType getAttachmentType()
      Get the attachmentType property: The type of attachment file.
      Returns:
      the attachmentType value.
    • getContentBytesBase64

      public String getContentBytesBase64()
      Get the contentBytesBase64 property: Base64 encoded contents of the attachment.
      Returns:
      the contentBytesBase64 value.