Class CfnDataSourcePropsMixin.BedrockFoundationModelConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.bedrock.CfnDataSourcePropsMixin.BedrockFoundationModelConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataSourcePropsMixin.BedrockFoundationModelConfigurationProperty>
- Enclosing interface:
CfnDataSourcePropsMixin.BedrockFoundationModelConfigurationProperty
@Stability(Stable)
public static final class CfnDataSourcePropsMixin.BedrockFoundationModelConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataSourcePropsMixin.BedrockFoundationModelConfigurationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.parsingModality(String parsingModality) parsingPrompt(CfnDataSourcePropsMixin.ParsingPromptProperty parsingPrompt) parsingPrompt(IResolvable parsingPrompt)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
modelArn
@Stability(Stable) public CfnDataSourcePropsMixin.BedrockFoundationModelConfigurationProperty.Builder modelArn(String modelArn) - Parameters:
modelArn- The ARN of the foundation model to use for parsing.- Returns:
this
-
parsingModality
@Stability(Stable) public CfnDataSourcePropsMixin.BedrockFoundationModelConfigurationProperty.Builder parsingModality(String parsingModality) Sets the value ofCfnDataSourcePropsMixin.BedrockFoundationModelConfigurationProperty.getParsingModality()- Parameters:
parsingModality- Specifies whether to enable parsing of multimodal data, including both text and/or images.- Returns:
this
-
parsingPrompt
@Stability(Stable) public CfnDataSourcePropsMixin.BedrockFoundationModelConfigurationProperty.Builder parsingPrompt(IResolvable parsingPrompt) Sets the value ofCfnDataSourcePropsMixin.BedrockFoundationModelConfigurationProperty.getParsingPrompt()- Parameters:
parsingPrompt- Instructions for interpreting the contents of a document.- Returns:
this
-
parsingPrompt
@Stability(Stable) public CfnDataSourcePropsMixin.BedrockFoundationModelConfigurationProperty.Builder parsingPrompt(CfnDataSourcePropsMixin.ParsingPromptProperty parsingPrompt) Sets the value ofCfnDataSourcePropsMixin.BedrockFoundationModelConfigurationProperty.getParsingPrompt()- Parameters:
parsingPrompt- Instructions for interpreting the contents of a document.- Returns:
this
-
build
@Stability(Stable) public CfnDataSourcePropsMixin.BedrockFoundationModelConfigurationProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDataSourcePropsMixin.BedrockFoundationModelConfigurationProperty>- Returns:
- a new instance of
CfnDataSourcePropsMixin.BedrockFoundationModelConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-