Class Attachment
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Attachment.Builder,Attachment>
Contains metadata and attachment raw content.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Attachment.Builderbuilder()final StringA brief description of the attachment content.A standard descriptor indicating how the attachment should be rendered in the email.final StringA standard descriptor indicating how the attachment should be rendered in the email.final StringUnique identifier for the attachment, used for referencing attachments with INLINE disposition in HTML content.Specifies how the attachment is encoded.final StringSpecifies how the attachment is encoded.final StringThe MIME type of the attachment.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final StringfileName()The file name for the attachment as it will appear in the email.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final SdkBytesThe raw data of the attachment.static Class<? extends Attachment.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
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.
- Returns:
- 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.
-
contentDisposition
A standard descriptor indicating how the attachment should be rendered in the email. Supported values:
ATTACHMENTorINLINE.If the service returns an enum value that is not available in the current SDK version,
contentDispositionwill returnAttachmentContentDisposition.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcontentDispositionAsString().- Returns:
- A standard descriptor indicating how the attachment should be rendered in the email. Supported values:
ATTACHMENTorINLINE. - See Also:
-
contentDispositionAsString
A standard descriptor indicating how the attachment should be rendered in the email. Supported values:
ATTACHMENTorINLINE.If the service returns an enum value that is not available in the current SDK version,
contentDispositionwill returnAttachmentContentDisposition.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcontentDispositionAsString().- Returns:
- A standard descriptor indicating how the attachment should be rendered in the email. Supported values:
ATTACHMENTorINLINE. - 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.
- Returns:
- 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.
-
contentDescription
A brief description of the attachment content.
- Returns:
- A brief description of the attachment content.
-
contentId
Unique identifier for the attachment, used for referencing attachments with INLINE disposition in HTML content.
- Returns:
- Unique identifier for the attachment, used for referencing attachments with INLINE disposition in HTML content.
-
contentTransferEncoding
Specifies how the attachment is encoded. Supported values:
BASE64,QUOTED_PRINTABLE,SEVEN_BIT.If the service returns an enum value that is not available in the current SDK version,
contentTransferEncodingwill returnAttachmentContentTransferEncoding.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcontentTransferEncodingAsString().- Returns:
- Specifies how the attachment is encoded. Supported values:
BASE64,QUOTED_PRINTABLE,SEVEN_BIT. - See Also:
-
contentTransferEncodingAsString
Specifies how the attachment is encoded. Supported values:
BASE64,QUOTED_PRINTABLE,SEVEN_BIT.If the service returns an enum value that is not available in the current SDK version,
contentTransferEncodingwill returnAttachmentContentTransferEncoding.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcontentTransferEncodingAsString().- Returns:
- Specifies how the attachment is encoded. Supported values:
BASE64,QUOTED_PRINTABLE,SEVEN_BIT. - See Also:
-
contentType
The MIME type of the attachment.
Example:
application/pdf,image/jpeg- Returns:
- The MIME type of the attachment.
Example:
application/pdf,image/jpeg
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<Attachment.Builder,Attachment> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-