@Generated(value="software.amazon.awssdk:codegen") public final class AttachmentContent extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AttachmentContent.Builder,AttachmentContent>
A structure that includes attributes that describe a document attachment.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AttachmentContent.Builder |
| Modifier and Type | Method and Description |
|---|---|
static AttachmentContent.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
String |
hash()
The cryptographic hash value of the document content.
|
int |
hashCode() |
AttachmentHashType |
hashType()
The hash algorithm used to calculate the hash value.
|
String |
hashTypeAsString()
The hash algorithm used to calculate the hash value.
|
String |
name()
The name of an attachment.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AttachmentContent.Builder> |
serializableBuilderClass() |
Long |
size()
The size of an attachment in bytes.
|
AttachmentContent.Builder |
toBuilder() |
String |
toString() |
String |
url()
The URL location of the attachment content.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String name()
The name of an attachment.
public Long size()
The size of an attachment in bytes.
public String hash()
The cryptographic hash value of the document content.
public AttachmentHashType hashType()
The hash algorithm used to calculate the hash value.
If the service returns an enum value that is not available in the current SDK version, hashType will
return AttachmentHashType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
hashTypeAsString().
AttachmentHashTypepublic String hashTypeAsString()
The hash algorithm used to calculate the hash value.
If the service returns an enum value that is not available in the current SDK version, hashType will
return AttachmentHashType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
hashTypeAsString().
AttachmentHashTypepublic String url()
The URL location of the attachment content.
public AttachmentContent.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AttachmentContent.Builder,AttachmentContent>public static AttachmentContent.Builder builder()
public static Class<? extends AttachmentContent.Builder> serializableBuilderClass()
Copyright © 2019. All rights reserved.