Interface Attachment.Builder

  • Method Details

    • rawContent

      Attachment.Builder rawContent(SdkBytes rawContent)

      The raw data of the attachment. It needs to be base64-encoded if you are accessing Amazon SES directly through the HTTPS interface. If you are accessing Amazon SES using an Amazon Web Services SDK, the SDK takes care of the base 64-encoding for you.

      Parameters:
      rawContent - The raw data of the attachment. It needs to be base64-encoded if you are accessing Amazon SES directly through the HTTPS interface. If you are accessing Amazon SES using an Amazon Web Services SDK, the SDK takes care of the base 64-encoding for you.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • contentDisposition

      Attachment.Builder contentDisposition(String contentDisposition)

      A standard descriptor indicating how the attachment should be rendered in the email. Supported values: ATTACHMENT or INLINE.

      Parameters:
      contentDisposition - A standard descriptor indicating how the attachment should be rendered in the email. Supported values: ATTACHMENT or INLINE.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • contentDisposition

      Attachment.Builder contentDisposition(AttachmentContentDisposition contentDisposition)

      A standard descriptor indicating how the attachment should be rendered in the email. Supported values: ATTACHMENT or INLINE.

      Parameters:
      contentDisposition - A standard descriptor indicating how the attachment should be rendered in the email. Supported values: ATTACHMENT or INLINE.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • fileName

      Attachment.Builder fileName(String fileName)

      The file name for the attachment as it will appear in the email. Amazon SES restricts certain file extensions. To ensure attachments are accepted, check the Unsupported attachment types in the Amazon SES Developer Guide.

      Parameters:
      fileName - The file name for the attachment as it will appear in the email. Amazon SES restricts certain file extensions. To ensure attachments are accepted, check the Unsupported attachment types in the Amazon SES Developer Guide.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • contentDescription

      Attachment.Builder contentDescription(String contentDescription)

      A brief description of the attachment content.

      Parameters:
      contentDescription - A brief description of the attachment content.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • contentId

      Attachment.Builder contentId(String contentId)

      Unique identifier for the attachment, used for referencing attachments with INLINE disposition in HTML content.

      Parameters:
      contentId - Unique identifier for the attachment, used for referencing attachments with INLINE disposition in HTML content.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • contentTransferEncoding

      Attachment.Builder contentTransferEncoding(String contentTransferEncoding)

      Specifies how the attachment is encoded. Supported values: BASE64, QUOTED_PRINTABLE, SEVEN_BIT.

      Parameters:
      contentTransferEncoding - Specifies how the attachment is encoded. Supported values: BASE64, QUOTED_PRINTABLE, SEVEN_BIT.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • contentTransferEncoding

      Attachment.Builder contentTransferEncoding(AttachmentContentTransferEncoding contentTransferEncoding)

      Specifies how the attachment is encoded. Supported values: BASE64, QUOTED_PRINTABLE, SEVEN_BIT.

      Parameters:
      contentTransferEncoding - Specifies how the attachment is encoded. Supported values: BASE64, QUOTED_PRINTABLE, SEVEN_BIT.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • contentType

      Attachment.Builder contentType(String contentType)

      The MIME type of the attachment.

      Example: application/pdf, image/jpeg

      Parameters:
      contentType - The MIME type of the attachment.

      Example: application/pdf, image/jpeg

      Returns:
      Returns a reference to this object so that method calls can be chained together.