Interface GetDocumentContentRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,BedrockAgentRuntimeRequest.Builder,Buildable,CopyableBuilder<GetDocumentContentRequest.Builder,,GetDocumentContentRequest> SdkBuilder<GetDocumentContentRequest.Builder,,GetDocumentContentRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
GetDocumentContentRequest
@Mutable
@NotThreadSafe
public static interface GetDocumentContentRequest.Builder
extends BedrockAgentRuntimeRequest.Builder, SdkPojo, CopyableBuilder<GetDocumentContentRequest.Builder,GetDocumentContentRequest>
-
Method Summary
Modifier and TypeMethodDescriptiondataSourceId(String dataSourceId) The unique identifier of the data source that contains the document.documentId(String documentId) The unique identifier of the document to retrieve content for.knowledgeBaseId(String knowledgeBaseId) The unique identifier of the knowledge base that contains the document.outputFormat(String outputFormat) The output format for the document content.outputFormat(DocumentOutputFormat outputFormat) The output format for the document content.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.userContext(Consumer<UserContext.Builder> userContext) Sets the value of the UserContext property for this object.userContext(UserContext userContext) Sets the value of the UserContext property for this object.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.bedrockagentruntime.model.BedrockAgentRuntimeRequest.Builder
buildMethods 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, sdkFields
-
Method Details
-
dataSourceId
The unique identifier of the data source that contains the document.
- Parameters:
dataSourceId- The unique identifier of the data source that contains the document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentId
The unique identifier of the document to retrieve content for.
- Parameters:
documentId- The unique identifier of the document to retrieve content for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
knowledgeBaseId
The unique identifier of the knowledge base that contains the document.
- Parameters:
knowledgeBaseId- The unique identifier of the knowledge base that contains the document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputFormat
The output format for the document content.
RAWreturns the original file.EXTRACTEDreturns parsed text as JSON. Defaults toRAW.- Parameters:
outputFormat- The output format for the document content.RAWreturns the original file.EXTRACTEDreturns parsed text as JSON. Defaults toRAW.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
outputFormat
The output format for the document content.
RAWreturns the original file.EXTRACTEDreturns parsed text as JSON. Defaults toRAW.- Parameters:
outputFormat- The output format for the document content.RAWreturns the original file.EXTRACTEDreturns parsed text as JSON. Defaults toRAW.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
userContext
Sets the value of the UserContext property for this object.- Parameters:
userContext- The new value for the UserContext property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userContext
Sets the value of the UserContext property for this object. This is a convenience method that creates an instance of theUserContext.Builderavoiding the need to create one manually viaUserContext.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed touserContext(UserContext).- Parameters:
userContext- a consumer that will call methods onUserContext.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
GetDocumentContentRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
GetDocumentContentRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-