@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()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
url()
The URL location of the attachment content.
|
copy
public 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()
.
AttachmentHashType
public 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()
.
AttachmentHashType
public String url()
The URL location of the attachment content.
public AttachmentContent.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<AttachmentContent.Builder,AttachmentContent>
public static AttachmentContent.Builder builder()
public static Class<? extends AttachmentContent.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.