Class CfnDataSourcePropsMixin.ContextEnrichmentConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.bedrock.mixins.CfnDataSourcePropsMixin.ContextEnrichmentConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataSourcePropsMixin.ContextEnrichmentConfigurationProperty>
- Enclosing interface:
CfnDataSourcePropsMixin.ContextEnrichmentConfigurationProperty
@Stability(Stable)
public static final class CfnDataSourcePropsMixin.ContextEnrichmentConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataSourcePropsMixin.ContextEnrichmentConfigurationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbedrockFoundationModelConfiguration(IResolvable bedrockFoundationModelConfiguration) bedrockFoundationModelConfiguration(CfnDataSourcePropsMixin.BedrockFoundationModelContextEnrichmentConfigurationProperty bedrockFoundationModelConfiguration) build()Builds the configured instance.Sets the value ofCfnDataSourcePropsMixin.ContextEnrichmentConfigurationProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bedrockFoundationModelConfiguration
@Stability(Stable) public CfnDataSourcePropsMixin.ContextEnrichmentConfigurationProperty.Builder bedrockFoundationModelConfiguration(IResolvable bedrockFoundationModelConfiguration) Sets the value ofCfnDataSourcePropsMixin.ContextEnrichmentConfigurationProperty.getBedrockFoundationModelConfiguration()- Parameters:
bedrockFoundationModelConfiguration- The configuration of the Amazon Bedrock foundation model used for context enrichment.- Returns:
this
-
bedrockFoundationModelConfiguration
@Stability(Stable) public CfnDataSourcePropsMixin.ContextEnrichmentConfigurationProperty.Builder bedrockFoundationModelConfiguration(CfnDataSourcePropsMixin.BedrockFoundationModelContextEnrichmentConfigurationProperty bedrockFoundationModelConfiguration) Sets the value ofCfnDataSourcePropsMixin.ContextEnrichmentConfigurationProperty.getBedrockFoundationModelConfiguration()- Parameters:
bedrockFoundationModelConfiguration- The configuration of the Amazon Bedrock foundation model used for context enrichment.- Returns:
this
-
type
@Stability(Stable) public CfnDataSourcePropsMixin.ContextEnrichmentConfigurationProperty.Builder type(String type) Sets the value ofCfnDataSourcePropsMixin.ContextEnrichmentConfigurationProperty.getType()- Parameters:
type- The method used for context enrichment. It must be Amazon Bedrock foundation models.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDataSourcePropsMixin.ContextEnrichmentConfigurationProperty>- Returns:
- a new instance of
CfnDataSourcePropsMixin.ContextEnrichmentConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-