Class CfnFlow.PromptFlowNodeInlineConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnFlow.PromptFlowNodeInlineConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFlow.PromptFlowNodeInlineConfigurationProperty>
- Enclosing interface:
CfnFlow.PromptFlowNodeInlineConfigurationProperty
@Stability(Stable)
public static final class CfnFlow.PromptFlowNodeInlineConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFlow.PromptFlowNodeInlineConfigurationProperty>
A builder for
CfnFlow.PromptFlowNodeInlineConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.inferenceConfiguration(IResolvable inferenceConfiguration) inferenceConfiguration(CfnFlow.PromptInferenceConfigurationProperty inferenceConfiguration) Sets the value ofCfnFlow.PromptFlowNodeInlineConfigurationProperty.getModelId()templateConfiguration(IResolvable templateConfiguration) templateConfiguration(CfnFlow.PromptTemplateConfigurationProperty templateConfiguration) templateType(String templateType) Sets the value ofCfnFlow.PromptFlowNodeInlineConfigurationProperty.getTemplateType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
modelId
@Stability(Stable) public CfnFlow.PromptFlowNodeInlineConfigurationProperty.Builder modelId(String modelId) Sets the value ofCfnFlow.PromptFlowNodeInlineConfigurationProperty.getModelId()- Parameters:
modelId- The unique identifier of the model or inference profile to run inference with. This parameter is required.- Returns:
this
-
templateConfiguration
@Stability(Stable) public CfnFlow.PromptFlowNodeInlineConfigurationProperty.Builder templateConfiguration(IResolvable templateConfiguration) - Parameters:
templateConfiguration- Contains a prompt and variables in the prompt that can be replaced with values at runtime. This parameter is required.- Returns:
this
-
templateConfiguration
@Stability(Stable) public CfnFlow.PromptFlowNodeInlineConfigurationProperty.Builder templateConfiguration(CfnFlow.PromptTemplateConfigurationProperty templateConfiguration) - Parameters:
templateConfiguration- Contains a prompt and variables in the prompt that can be replaced with values at runtime. This parameter is required.- Returns:
this
-
templateType
@Stability(Stable) public CfnFlow.PromptFlowNodeInlineConfigurationProperty.Builder templateType(String templateType) Sets the value ofCfnFlow.PromptFlowNodeInlineConfigurationProperty.getTemplateType()- Parameters:
templateType- The type of prompt template. This parameter is required.- Returns:
this
-
inferenceConfiguration
@Stability(Stable) public CfnFlow.PromptFlowNodeInlineConfigurationProperty.Builder inferenceConfiguration(IResolvable inferenceConfiguration) - Parameters:
inferenceConfiguration- Contains inference configurations for the prompt.- Returns:
this
-
inferenceConfiguration
@Stability(Stable) public CfnFlow.PromptFlowNodeInlineConfigurationProperty.Builder inferenceConfiguration(CfnFlow.PromptInferenceConfigurationProperty inferenceConfiguration) - Parameters:
inferenceConfiguration- Contains inference configurations for the prompt.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFlow.PromptFlowNodeInlineConfigurationProperty>- Returns:
- a new instance of
CfnFlow.PromptFlowNodeInlineConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-