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.Buildermetadata(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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponseMethods 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.Builderavoiding the need to create one manually viaDocumentMetadata.builder().When the
Consumercompletes,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.
-