Interface GetDocumentContentResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,BedrockAgentRuntimeResponse.Builder,Buildable,CopyableBuilder<GetDocumentContentResponse.Builder,,GetDocumentContentResponse> SdkBuilder<GetDocumentContentResponse.Builder,,GetDocumentContentResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetDocumentContentResponse
@Mutable
@NotThreadSafe
public static interface GetDocumentContentResponse.Builder
extends BedrockAgentRuntimeResponse.Builder, SdkPojo, CopyableBuilder<GetDocumentContentResponse.Builder,GetDocumentContentResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondocumentContentLength(Long documentContentLength) The size of the document content in bytes available at the pre-signed URL.The MIME type of the document content.presignedUrl(String presignedUrl) A pre-signed URL for downloading the document content.Methods inherited from interface software.amazon.awssdk.services.bedrockagentruntime.model.BedrockAgentRuntimeResponse.Builder
build, responseMetadata, responseMetadataMethods 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, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
documentContentLength
The size of the document content in bytes available at the pre-signed URL.
- Parameters:
documentContentLength- The size of the document content in bytes available at the pre-signed URL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mimeType
The MIME type of the document content. For
RAWformat, this is the original file type (for example,application/pdf). ForEXTRACTEDformat, this is alwaysapplication/json.- Parameters:
mimeType- The MIME type of the document content. ForRAWformat, this is the original file type (for example,application/pdf). ForEXTRACTEDformat, this is alwaysapplication/json.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
presignedUrl
A pre-signed URL for downloading the document content. The URL expires after 5 minutes.
- Parameters:
presignedUrl- A pre-signed URL for downloading the document content. The URL expires after 5 minutes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-