@Generated(value="software.amazon.awssdk:codegen") public final class DocumentVersionMetadata extends Object implements StructuredPojo, ToCopyableBuilder<DocumentVersionMetadata.Builder,DocumentVersionMetadata>
Describes a version of a document.
Modifier and Type | Class and Description |
---|---|
static interface |
DocumentVersionMetadata.Builder |
Modifier and Type | Method and Description |
---|---|
static DocumentVersionMetadata.Builder |
builder() |
Instant |
contentCreatedTimestamp()
The timestamp when the content of the document was originally created.
|
Instant |
contentModifiedTimestamp()
The timestamp when the content of the document was modified.
|
String |
contentType()
The content type of the document.
|
Instant |
createdTimestamp()
The timestamp when the document was first uploaded.
|
String |
creatorId()
The ID of the creator.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
id()
The ID of the version.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
Instant |
modifiedTimestamp()
The timestamp when the document was last uploaded.
|
String |
name()
The name of the version.
|
static Class<? extends DocumentVersionMetadata.Builder> |
serializableBuilderClass() |
String |
signature()
The signature of the document.
|
Long |
size()
The size of the document, in bytes.
|
Map<DocumentSourceType,String> |
source()
The source of the document.
|
Map<String,String> |
sourceAsStrings()
The source of the document.
|
DocumentStatusType |
status()
The status of the document.
|
String |
statusAsString()
The status of the document.
|
Map<DocumentThumbnailType,String> |
thumbnail()
The thumbnail of the document.
|
Map<String,String> |
thumbnailAsStrings()
The thumbnail of the document.
|
DocumentVersionMetadata.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String id()
The ID of the version.
public String name()
The name of the version.
public String contentType()
The content type of the document.
public Long size()
The size of the document, in bytes.
public String signature()
The signature of the document.
public DocumentStatusType status()
The status of the document.
If the service returns an enum value that is not available in the current SDK version, status
will
return DocumentStatusType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
statusAsString()
.
DocumentStatusType
public String statusAsString()
The status of the document.
If the service returns an enum value that is not available in the current SDK version, status
will
return DocumentStatusType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
statusAsString()
.
DocumentStatusType
public Instant createdTimestamp()
The timestamp when the document was first uploaded.
public Instant modifiedTimestamp()
The timestamp when the document was last uploaded.
public Instant contentCreatedTimestamp()
The timestamp when the content of the document was originally created.
public Instant contentModifiedTimestamp()
The timestamp when the content of the document was modified.
public String creatorId()
The ID of the creator.
public Map<DocumentThumbnailType,String> thumbnail()
The thumbnail of the document.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public Map<String,String> thumbnailAsStrings()
The thumbnail of the document.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public Map<DocumentSourceType,String> source()
The source of the document.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public Map<String,String> sourceAsStrings()
The source of the document.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public DocumentVersionMetadata.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<DocumentVersionMetadata.Builder,DocumentVersionMetadata>
public static DocumentVersionMetadata.Builder builder()
public static Class<? extends DocumentVersionMetadata.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.