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, String contentType, com.azure.core.util.BinaryData content)
      Creates an instance of EmailAttachment class.
      Parameters:
      name - the name value to set.
      contentType - the contentType value to set.
      content - the content value to set.
  • Method Details

    • getName

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

      public String getContentType()
      Get the contentType property: MIME type of the content being attached.
      Returns:
      the contentType value.
    • getContent

      public com.azure.core.util.BinaryData getContent()
      Get the content property: Contents of the attachment.
      Returns:
      the content value.