Interface BedrockKnowledgeStoreConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<BedrockKnowledgeStoreConfiguration.Builder,
,BedrockKnowledgeStoreConfiguration> SdkBuilder<BedrockKnowledgeStoreConfiguration.Builder,
,BedrockKnowledgeStoreConfiguration> SdkPojo
- Enclosing class:
BedrockKnowledgeStoreConfiguration
@Mutable
@NotThreadSafe
public static interface BedrockKnowledgeStoreConfiguration.Builder
extends SdkPojo, CopyableBuilder<BedrockKnowledgeStoreConfiguration.Builder,BedrockKnowledgeStoreConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptionbedrockKnowledgeBaseArn
(String bedrockKnowledgeBaseArn) The base ARN of the knowledge base used.exactResponse
(Boolean exactResponse) Specifies whether to return an exact response, or to return an answer generated by the model, using the fields you specify from the database.exactResponseFields
(Consumer<BedrockKnowledgeStoreExactResponseFields.Builder> exactResponseFields) Contains the names of the fields used for an exact response to the user.exactResponseFields
(BedrockKnowledgeStoreExactResponseFields exactResponseFields) Contains the names of the fields used for an exact response to the user.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, sdkFieldNameToField, sdkFields
-
Method Details
-
bedrockKnowledgeBaseArn
The base ARN of the knowledge base used.
- Parameters:
bedrockKnowledgeBaseArn
- The base ARN of the knowledge base used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
exactResponse
Specifies whether to return an exact response, or to return an answer generated by the model, using the fields you specify from the database.
- Parameters:
exactResponse
- Specifies whether to return an exact response, or to return an answer generated by the model, using the fields you specify from the database.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
exactResponseFields
BedrockKnowledgeStoreConfiguration.Builder exactResponseFields(BedrockKnowledgeStoreExactResponseFields exactResponseFields) Contains the names of the fields used for an exact response to the user.
- Parameters:
exactResponseFields
- Contains the names of the fields used for an exact response to the user.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
exactResponseFields
default BedrockKnowledgeStoreConfiguration.Builder exactResponseFields(Consumer<BedrockKnowledgeStoreExactResponseFields.Builder> exactResponseFields) Contains the names of the fields used for an exact response to the user.
This is a convenience method that creates an instance of theBedrockKnowledgeStoreExactResponseFields.Builder
avoiding the need to create one manually viaBedrockKnowledgeStoreExactResponseFields.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toexactResponseFields(BedrockKnowledgeStoreExactResponseFields)
.- Parameters:
exactResponseFields
- a consumer that will call methods onBedrockKnowledgeStoreExactResponseFields.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-