Class MessageTemplateAttachment
- java.lang.Object
-
- software.amazon.awssdk.services.qconnect.model.MessageTemplateAttachment
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<MessageTemplateAttachment.Builder,MessageTemplateAttachment>
@Generated("software.amazon.awssdk:codegen") public final class MessageTemplateAttachment extends Object implements SdkPojo, Serializable, ToCopyableBuilder<MessageTemplateAttachment.Builder,MessageTemplateAttachment>
Information about the message template attachment.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceMessageTemplateAttachment.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringattachmentId()The identifier of the attachment file.static MessageTemplateAttachment.Builderbuilder()ContentDispositioncontentDisposition()The presentation information for the attachment file.StringcontentDispositionAsString()The presentation information for the attachment file.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringname()The name of the attachment file being uploaded.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends MessageTemplateAttachment.Builder>serializableBuilderClass()MessageTemplateAttachment.BuildertoBuilder()StringtoString()Returns a string representation of this object.InstantuploadedTime()The timestamp when the attachment file was uploaded.Stringurl()A pre-signed Amazon S3 URL that can be used to download the attachment file.InstanturlExpiry()The expiration time of the pre-signed Amazon S3 URL.-
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
-
attachmentId
public final String attachmentId()
The identifier of the attachment file.
- Returns:
- The identifier of the attachment file.
-
contentDisposition
public final ContentDisposition contentDisposition()
The presentation information for the attachment file.
If the service returns an enum value that is not available in the current SDK version,
contentDispositionwill returnContentDisposition.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcontentDispositionAsString().- Returns:
- The presentation information for the attachment file.
- See Also:
ContentDisposition
-
contentDispositionAsString
public final String contentDispositionAsString()
The presentation information for the attachment file.
If the service returns an enum value that is not available in the current SDK version,
contentDispositionwill returnContentDisposition.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcontentDispositionAsString().- Returns:
- The presentation information for the attachment file.
- See Also:
ContentDisposition
-
name
public final String name()
The name of the attachment file being uploaded. The name should include the file extension.
- Returns:
- The name of the attachment file being uploaded. The name should include the file extension.
-
uploadedTime
public final Instant uploadedTime()
The timestamp when the attachment file was uploaded.
- Returns:
- The timestamp when the attachment file was uploaded.
-
url
public final String url()
A pre-signed Amazon S3 URL that can be used to download the attachment file.
- Returns:
- A pre-signed Amazon S3 URL that can be used to download the attachment file.
-
urlExpiry
public final Instant urlExpiry()
The expiration time of the pre-signed Amazon S3 URL.
- Returns:
- The expiration time of the pre-signed Amazon S3 URL.
-
toBuilder
public MessageTemplateAttachment.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<MessageTemplateAttachment.Builder,MessageTemplateAttachment>
-
builder
public static MessageTemplateAttachment.Builder builder()
-
serializableBuilderClass
public static Class<? extends MessageTemplateAttachment.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
-
-