Interface ContextEnrichmentConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ContextEnrichmentConfiguration.Builder,,ContextEnrichmentConfiguration> SdkBuilder<ContextEnrichmentConfiguration.Builder,,ContextEnrichmentConfiguration> SdkPojo
- Enclosing class:
ContextEnrichmentConfiguration
@Mutable
@NotThreadSafe
public static interface ContextEnrichmentConfiguration.Builder
extends SdkPojo, CopyableBuilder<ContextEnrichmentConfiguration.Builder,ContextEnrichmentConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptionbedrockFoundationModelConfiguration(Consumer<BedrockFoundationModelContextEnrichmentConfiguration.Builder> bedrockFoundationModelConfiguration) The configuration of the Amazon Bedrock foundation model used for context enrichment.bedrockFoundationModelConfiguration(BedrockFoundationModelContextEnrichmentConfiguration bedrockFoundationModelConfiguration) The configuration of the Amazon Bedrock foundation model used for context enrichment.The method used for context enrichment.type(ContextEnrichmentType type) The method used for context enrichment.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, sdkFieldNameToField, sdkFields
-
Method Details
-
type
The method used for context enrichment. It must be Amazon Bedrock foundation models.
- Parameters:
type- The method used for context enrichment. It must be Amazon Bedrock foundation models.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The method used for context enrichment. It must be Amazon Bedrock foundation models.
- Parameters:
type- The method used for context enrichment. It must be Amazon Bedrock foundation models.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
bedrockFoundationModelConfiguration
ContextEnrichmentConfiguration.Builder bedrockFoundationModelConfiguration(BedrockFoundationModelContextEnrichmentConfiguration bedrockFoundationModelConfiguration) The configuration of the Amazon Bedrock foundation model used for context enrichment.
- Parameters:
bedrockFoundationModelConfiguration- The configuration of the Amazon Bedrock foundation model used for context enrichment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bedrockFoundationModelConfiguration
default ContextEnrichmentConfiguration.Builder bedrockFoundationModelConfiguration(Consumer<BedrockFoundationModelContextEnrichmentConfiguration.Builder> bedrockFoundationModelConfiguration) The configuration of the Amazon Bedrock foundation model used for context enrichment.
This is a convenience method that creates an instance of theBedrockFoundationModelContextEnrichmentConfiguration.Builderavoiding the need to create one manually viaBedrockFoundationModelContextEnrichmentConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tobedrockFoundationModelConfiguration(BedrockFoundationModelContextEnrichmentConfiguration).- Parameters:
bedrockFoundationModelConfiguration- a consumer that will call methods onBedrockFoundationModelContextEnrichmentConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-