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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description DocumentMetadata.BuildercreatedTimestamp(Instant createdTimestamp)The time when the document was created.DocumentMetadata.BuildercreatorId(String creatorId)The ID of the creator.DocumentMetadata.Builderid(String id)The ID of the document.DocumentMetadata.Builderlabels(String... labels)List of labels on the document.DocumentMetadata.Builderlabels(Collection<String> labels)List of labels on the document.default DocumentMetadata.BuilderlatestVersionMetadata(Consumer<DocumentVersionMetadata.Builder> latestVersionMetadata)The latest version of the document.DocumentMetadata.BuilderlatestVersionMetadata(DocumentVersionMetadata latestVersionMetadata)The latest version of the document.DocumentMetadata.BuildermodifiedTimestamp(Instant modifiedTimestamp)The time when the document was updated.DocumentMetadata.BuilderparentFolderId(String parentFolderId)The ID of the parent folder.DocumentMetadata.BuilderresourceState(String resourceState)The resource state.DocumentMetadata.BuilderresourceState(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 Detail
-
id
DocumentMetadata.Builder id(String 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
DocumentMetadata.Builder creatorId(String 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
DocumentMetadata.Builder parentFolderId(String 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
DocumentMetadata.Builder createdTimestamp(Instant 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
DocumentMetadata.Builder modifiedTimestamp(Instant 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
DocumentMetadata.Builder latestVersionMetadata(DocumentVersionMetadata 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.Builderavoiding the need to create one manually viaDocumentVersionMetadata.builder().When the
Consumercompletes,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:
latestVersionMetadata(DocumentVersionMetadata)
-
resourceState
DocumentMetadata.Builder resourceState(String 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:
ResourceStateType,ResourceStateType
-
resourceState
DocumentMetadata.Builder resourceState(ResourceStateType 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:
ResourceStateType,ResourceStateType
-
labels
DocumentMetadata.Builder labels(Collection<String> 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
DocumentMetadata.Builder labels(String... 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.
-
-