Interface DocumentMetadata.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<DocumentMetadata.Builder,
,DocumentMetadata> SdkBuilder<DocumentMetadata.Builder,
,DocumentMetadata> SdkPojo
- Enclosing class:
DocumentMetadata
public static interface DocumentMetadata.Builder
extends SdkPojo, CopyableBuilder<DocumentMetadata.Builder,DocumentMetadata>
-
Method Summary
Modifier and TypeMethodDescriptioncreatedTimestamp
(Instant createdTimestamp) The time when the document was created.The ID of the creator.The ID of the document.List of labels on the document.labels
(Collection<String> labels) List of labels on the document.default DocumentMetadata.Builder
latestVersionMetadata
(Consumer<DocumentVersionMetadata.Builder> latestVersionMetadata) The latest version of the document.latestVersionMetadata
(DocumentVersionMetadata latestVersionMetadata) The latest version of the document.modifiedTimestamp
(Instant modifiedTimestamp) The time when the document was updated.parentFolderId
(String parentFolderId) The ID of the parent folder.resourceState
(String resourceState) The resource state.resourceState
(ResourceStateType resourceState) The resource state.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
id
The ID of the document.
- Parameters:
id
- The ID of the document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creatorId
The ID of the creator.
- Parameters:
creatorId
- The ID of the creator.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
parentFolderId
The ID of the parent folder.
- Parameters:
parentFolderId
- The ID of the parent folder.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdTimestamp
The time when the document was created.
- Parameters:
createdTimestamp
- The time when the document was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modifiedTimestamp
The time when the document was updated.
- Parameters:
modifiedTimestamp
- The time when the document was updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
latestVersionMetadata
The latest version of the document.
- Parameters:
latestVersionMetadata
- The latest version of the document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
latestVersionMetadata
default DocumentMetadata.Builder latestVersionMetadata(Consumer<DocumentVersionMetadata.Builder> latestVersionMetadata) The latest version of the document.
This is a convenience method that creates an instance of theDocumentVersionMetadata.Builder
avoiding the need to create one manually viaDocumentVersionMetadata.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolatestVersionMetadata(DocumentVersionMetadata)
.- Parameters:
latestVersionMetadata
- a consumer that will call methods onDocumentVersionMetadata.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceState
The resource state.
- Parameters:
resourceState
- The resource state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceState
The resource state.
- Parameters:
resourceState
- The resource state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
labels
List of labels on the document.
- Parameters:
labels
- List of labels on the document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
labels
List of labels on the document.
- Parameters:
labels
- List of labels on the document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-