Interface Attachment.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Attachment.Builder,Attachment>,SdkBuilder<Attachment.Builder,Attachment>,SdkPojo
- Enclosing class:
- Attachment
@Mutable @NotThreadSafe public static interface Attachment.Builder extends SdkPojo, CopyableBuilder<Attachment.Builder,Attachment>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Attachment.BuildercontentDescription(String contentDescription)A brief description of the attachment content.Attachment.BuildercontentDisposition(String contentDisposition)A standard descriptor indicating how the attachment should be rendered in the email.Attachment.BuildercontentDisposition(AttachmentContentDisposition contentDisposition)A standard descriptor indicating how the attachment should be rendered in the email.Attachment.BuildercontentId(String contentId)Unique identifier for the attachment, used for referencing attachments with INLINE disposition in HTML content.Attachment.BuildercontentTransferEncoding(String contentTransferEncoding)Specifies how the attachment is encoded.Attachment.BuildercontentTransferEncoding(AttachmentContentTransferEncoding contentTransferEncoding)Specifies how the attachment is encoded.Attachment.BuildercontentType(String contentType)The MIME type of the attachment.Attachment.BuilderfileName(String fileName)The file name for the attachment as it will appear in the email.Attachment.BuilderrawContent(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 Detail
-
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:
ATTACHMENTorINLINE.- Parameters:
contentDisposition- A standard descriptor indicating how the attachment should be rendered in the email. Supported values:ATTACHMENTorINLINE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AttachmentContentDisposition,AttachmentContentDisposition
-
contentDisposition
Attachment.Builder contentDisposition(AttachmentContentDisposition contentDisposition)
A standard descriptor indicating how the attachment should be rendered in the email. Supported values:
ATTACHMENTorINLINE.- Parameters:
contentDisposition- A standard descriptor indicating how the attachment should be rendered in the email. Supported values:ATTACHMENTorINLINE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AttachmentContentDisposition,AttachmentContentDisposition
-
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:
AttachmentContentTransferEncoding,AttachmentContentTransferEncoding
-
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:
AttachmentContentTransferEncoding,AttachmentContentTransferEncoding
-
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.
-
-