Class Attachment
- java.lang.Object
-
- software.amazon.awssdk.services.sesv2.model.Attachment
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Attachment.Builder,Attachment>
@Generated("software.amazon.awssdk:codegen") public final class Attachment extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Attachment.Builder,Attachment>
Contains metadata and attachment raw content.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAttachment.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Attachment.Builderbuilder()StringcontentDescription()A brief description of the attachment content.AttachmentContentDispositioncontentDisposition()A standard descriptor indicating how the attachment should be rendered in the email.StringcontentDispositionAsString()A standard descriptor indicating how the attachment should be rendered in the email.StringcontentId()Unique identifier for the attachment, used for referencing attachments with INLINE disposition in HTML content.AttachmentContentTransferEncodingcontentTransferEncoding()Specifies how the attachment is encoded.StringcontentTransferEncodingAsString()Specifies how the attachment is encoded.StringcontentType()The MIME type of the attachment.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringfileName()The file name for the attachment as it will appear in the email.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()SdkBytesrawContent()The raw data of the attachment.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends Attachment.Builder>serializableBuilderClass()Attachment.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
rawContent
public final 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.
- 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
public final AttachmentContentDisposition 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:
AttachmentContentDisposition
-
contentDispositionAsString
public final String 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:
AttachmentContentDisposition
-
fileName
public final 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.
- 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
public final String contentDescription()
A brief description of the attachment content.
- Returns:
- A brief description of the attachment content.
-
contentId
public final String 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
public final AttachmentContentTransferEncoding 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:
AttachmentContentTransferEncoding
-
contentTransferEncodingAsString
public final String 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:
AttachmentContentTransferEncoding
-
contentType
public final String 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
public Attachment.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Attachment.Builder,Attachment>
-
builder
public static Attachment.Builder builder()
-
serializableBuilderClass
public static Class<? extends Attachment.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-