Class EmailAttachment
java.lang.Object
com.azure.communication.email.models.EmailAttachment
Attachment to the email.
-
Constructor Summary
ConstructorsConstructorDescriptionEmailAttachment(String name, String contentType, com.azure.core.util.BinaryData content) Creates an instance of EmailAttachment class. -
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.BinaryDataGet the content property: Contents of the attachment.Get the contentType property: MIME type of the content being attached.getName()Get the name property: Name of the attachment.
-
Constructor Details
-
EmailAttachment
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
Get the name property: Name of the attachment.- Returns:
- the name value.
-
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.
-