Interface GetDocumentResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetDocumentResponse.Builder,
,GetDocumentResponse> SdkBuilder<GetDocumentResponse.Builder,
,GetDocumentResponse> SdkPojo
,SdkResponse.Builder
,WorkDocsResponse.Builder
- Enclosing class:
GetDocumentResponse
public static interface GetDocumentResponse.Builder
extends WorkDocsResponse.Builder, SdkPojo, CopyableBuilder<GetDocumentResponse.Builder,GetDocumentResponse>
-
Method Summary
Modifier and TypeMethodDescriptioncustomMetadata
(Map<String, String> customMetadata) The custom metadata on the document.default GetDocumentResponse.Builder
metadata
(Consumer<DocumentMetadata.Builder> metadata) The metadata details of the document.metadata
(DocumentMetadata metadata) The metadata details of the document.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
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
Methods inherited from interface software.amazon.awssdk.services.workdocs.model.WorkDocsResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
metadata
The metadata details of the document.
- Parameters:
metadata
- The metadata details of the document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadata
The metadata details of the document.
This is a convenience method that creates an instance of theDocumentMetadata.Builder
avoiding the need to create one manually viaDocumentMetadata.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometadata(DocumentMetadata)
.- Parameters:
metadata
- a consumer that will call methods onDocumentMetadata.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
customMetadata
The custom metadata on the document.
- Parameters:
customMetadata
- The custom metadata on the document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-