@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) |
boolean |
equalsBySdkFields(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()
Returns a string representation of this object.
|
String |
url()
The URL location of the attachment content.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String name()
The name of an attachment.
public final Long size()
The size of an attachment in bytes.
public final String hash()
The cryptographic hash value of the document content.
public final 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 final 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 final 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()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.