Interface GetDocumentVersionResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetDocumentVersionResponse.Builder,,GetDocumentVersionResponse> SdkBuilder<GetDocumentVersionResponse.Builder,,GetDocumentVersionResponse> SdkPojo,SdkResponse.Builder,WorkDocsResponse.Builder
- Enclosing class:
GetDocumentVersionResponse
public static interface GetDocumentVersionResponse.Builder
extends WorkDocsResponse.Builder, SdkPojo, CopyableBuilder<GetDocumentVersionResponse.Builder,GetDocumentVersionResponse>
-
Method Summary
Modifier and TypeMethodDescriptioncustomMetadata(Map<String, String> customMetadata) The custom metadata on the document version.metadata(Consumer<DocumentVersionMetadata.Builder> metadata) The version metadata.metadata(DocumentVersionMetadata metadata) The version metadata.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 version metadata.
- Parameters:
metadata- The version metadata.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadata
default GetDocumentVersionResponse.Builder metadata(Consumer<DocumentVersionMetadata.Builder> metadata) The version metadata.
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 tometadata(DocumentVersionMetadata).- Parameters:
metadata- 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:
-
customMetadata
The custom metadata on the document version.
- Parameters:
customMetadata- The custom metadata on the document version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-