@Generated(value="software.amazon.awssdk:codegen") public class DocumentMetadata extends Object implements StructuredPojo, ToCopyableBuilder<DocumentMetadata.Builder,DocumentMetadata>
Describes the document.
Modifier and Type | Class and Description |
---|---|
static interface |
DocumentMetadata.Builder |
Modifier and Type | Method and Description |
---|---|
static DocumentMetadata.Builder |
builder() |
Instant |
createdTimestamp()
The time when the document was created.
|
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 document.
|
List<String> |
labels()
List of labels on the document.
|
DocumentVersionMetadata |
latestVersionMetadata()
The latest version of the document.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
Instant |
modifiedTimestamp()
The time when the document was updated.
|
String |
parentFolderId()
The ID of the parent folder.
|
ResourceStateType |
resourceState()
The resource state.
|
String |
resourceStateString()
The resource state.
|
static Class<? extends DocumentMetadata.Builder> |
serializableBuilderClass() |
DocumentMetadata.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 document.
public String creatorId()
The ID of the creator.
public String parentFolderId()
The ID of the parent folder.
public Instant createdTimestamp()
The time when the document was created.
public Instant modifiedTimestamp()
The time when the document was updated.
public DocumentVersionMetadata latestVersionMetadata()
The latest version of the document.
public ResourceStateType resourceState()
The resource state.
If the service returns an enum value that is not available in the current SDK version, resourceState
will return ResourceStateType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from resourceStateString()
.
ResourceStateType
public String resourceStateString()
The resource state.
If the service returns an enum value that is not available in the current SDK version, resourceState
will return ResourceStateType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from resourceStateString()
.
ResourceStateType
public List<String> labels()
List of labels on the document.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public DocumentMetadata.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<DocumentMetadata.Builder,DocumentMetadata>
public static DocumentMetadata.Builder builder()
public static Class<? extends DocumentMetadata.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.