@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DocumentMetadata extends Object implements Serializable, Cloneable, StructuredPojo
Describes the document.
Constructor and Description |
---|
DocumentMetadata() |
Modifier and Type | Method and Description |
---|---|
DocumentMetadata |
clone() |
boolean |
equals(Object obj) |
Date |
getCreatedTimestamp()
The time when the document was created.
|
String |
getCreatorId()
The ID of the creator.
|
String |
getId()
The ID of the document.
|
List<String> |
getLabels()
List of labels on the document.
|
DocumentVersionMetadata |
getLatestVersionMetadata()
The latest version of the document.
|
Date |
getModifiedTimestamp()
The time when the document was updated.
|
String |
getParentFolderId()
The ID of the parent folder.
|
String |
getResourceState()
The resource state.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCreatedTimestamp(Date createdTimestamp)
The time when the document was created.
|
void |
setCreatorId(String creatorId)
The ID of the creator.
|
void |
setId(String id)
The ID of the document.
|
void |
setLabels(Collection<String> labels)
List of labels on the document.
|
void |
setLatestVersionMetadata(DocumentVersionMetadata latestVersionMetadata)
The latest version of the document.
|
void |
setModifiedTimestamp(Date modifiedTimestamp)
The time when the document was updated.
|
void |
setParentFolderId(String parentFolderId)
The ID of the parent folder.
|
void |
setResourceState(ResourceStateType resourceState)
The resource state.
|
void |
setResourceState(String resourceState)
The resource state.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
DocumentMetadata |
withCreatedTimestamp(Date createdTimestamp)
The time when the document was created.
|
DocumentMetadata |
withCreatorId(String creatorId)
The ID of the creator.
|
DocumentMetadata |
withId(String id)
The ID of the document.
|
DocumentMetadata |
withLabels(Collection<String> labels)
List of labels on the document.
|
DocumentMetadata |
withLabels(String... labels)
List of labels on the document.
|
DocumentMetadata |
withLatestVersionMetadata(DocumentVersionMetadata latestVersionMetadata)
The latest version of the document.
|
DocumentMetadata |
withModifiedTimestamp(Date modifiedTimestamp)
The time when the document was updated.
|
DocumentMetadata |
withParentFolderId(String parentFolderId)
The ID of the parent folder.
|
DocumentMetadata |
withResourceState(ResourceStateType resourceState)
The resource state.
|
DocumentMetadata |
withResourceState(String resourceState)
The resource state.
|
public void setId(String id)
The ID of the document.
id
- The ID of the document.public String getId()
The ID of the document.
public DocumentMetadata withId(String id)
The ID of the document.
id
- The ID of the document.public void setCreatorId(String creatorId)
The ID of the creator.
creatorId
- The ID of the creator.public String getCreatorId()
The ID of the creator.
public DocumentMetadata withCreatorId(String creatorId)
The ID of the creator.
creatorId
- The ID of the creator.public void setParentFolderId(String parentFolderId)
The ID of the parent folder.
parentFolderId
- The ID of the parent folder.public String getParentFolderId()
The ID of the parent folder.
public DocumentMetadata withParentFolderId(String parentFolderId)
The ID of the parent folder.
parentFolderId
- The ID of the parent folder.public void setCreatedTimestamp(Date createdTimestamp)
The time when the document was created.
createdTimestamp
- The time when the document was created.public Date getCreatedTimestamp()
The time when the document was created.
public DocumentMetadata withCreatedTimestamp(Date createdTimestamp)
The time when the document was created.
createdTimestamp
- The time when the document was created.public void setModifiedTimestamp(Date modifiedTimestamp)
The time when the document was updated.
modifiedTimestamp
- The time when the document was updated.public Date getModifiedTimestamp()
The time when the document was updated.
public DocumentMetadata withModifiedTimestamp(Date modifiedTimestamp)
The time when the document was updated.
modifiedTimestamp
- The time when the document was updated.public void setLatestVersionMetadata(DocumentVersionMetadata latestVersionMetadata)
The latest version of the document.
latestVersionMetadata
- The latest version of the document.public DocumentVersionMetadata getLatestVersionMetadata()
The latest version of the document.
public DocumentMetadata withLatestVersionMetadata(DocumentVersionMetadata latestVersionMetadata)
The latest version of the document.
latestVersionMetadata
- The latest version of the document.public void setResourceState(String resourceState)
The resource state.
resourceState
- The resource state.ResourceStateType
public String getResourceState()
The resource state.
ResourceStateType
public DocumentMetadata withResourceState(String resourceState)
The resource state.
resourceState
- The resource state.ResourceStateType
public void setResourceState(ResourceStateType resourceState)
The resource state.
resourceState
- The resource state.ResourceStateType
public DocumentMetadata withResourceState(ResourceStateType resourceState)
The resource state.
resourceState
- The resource state.ResourceStateType
public List<String> getLabels()
List of labels on the document.
public void setLabels(Collection<String> labels)
List of labels on the document.
labels
- List of labels on the document.public DocumentMetadata withLabels(String... labels)
List of labels on the document.
NOTE: This method appends the values to the existing list (if any). Use
setLabels(java.util.Collection)
or withLabels(java.util.Collection)
if you want to override the
existing values.
labels
- List of labels on the document.public DocumentMetadata withLabels(Collection<String> labels)
List of labels on the document.
labels
- List of labels on the document.public String toString()
toString
in class Object
Object.toString()
public DocumentMetadata clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.