Interface Attachment.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Attachment.Builder,
,Attachment> SdkBuilder<Attachment.Builder,
,Attachment> SdkPojo
- Enclosing class:
Attachment
-
Method Summary
Modifier and TypeMethodDescriptioncontentDescription
(String contentDescription) A brief description of the attachment content.contentDisposition
(String contentDisposition) A standard descriptor indicating how the attachment should be rendered in the email.contentDisposition
(AttachmentContentDisposition contentDisposition) A standard descriptor indicating how the attachment should be rendered in the email.Unique identifier for the attachment, used for referencing attachments with INLINE disposition in HTML content.contentTransferEncoding
(String contentTransferEncoding) Specifies how the attachment is encoded.contentTransferEncoding
(AttachmentContentTransferEncoding contentTransferEncoding) Specifies how the attachment is encoded.contentType
(String contentType) The MIME type of the attachment.The file name for the attachment as it will appear in the email.rawContent
(SdkBytes rawContent) The raw data of the attachment.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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
A standard descriptor indicating how the attachment should be rendered in the email. Supported values:
ATTACHMENT
orINLINE
.- Parameters:
contentDisposition
- A standard descriptor indicating how the attachment should be rendered in the email. Supported values:ATTACHMENT
orINLINE
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
contentDisposition
A standard descriptor indicating how the attachment should be rendered in the email. Supported values:
ATTACHMENT
orINLINE
.- Parameters:
contentDisposition
- A standard descriptor indicating how the attachment should be rendered in the email. Supported values:ATTACHMENT
orINLINE
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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
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
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
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.
-