Class CfnFlowVersion.PromptFlowNodeInlineConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptFlowNodeInlineConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFlowVersion.PromptFlowNodeInlineConfigurationProperty>
- Enclosing interface:
CfnFlowVersion.PromptFlowNodeInlineConfigurationProperty
@Stability(Stable)
public static final class CfnFlowVersion.PromptFlowNodeInlineConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFlowVersion.PromptFlowNodeInlineConfigurationProperty>
A builder for
CfnFlowVersion.PromptFlowNodeInlineConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.inferenceConfiguration
(IResolvable inferenceConfiguration) inferenceConfiguration
(CfnFlowVersion.PromptInferenceConfigurationProperty inferenceConfiguration) Sets the value ofCfnFlowVersion.PromptFlowNodeInlineConfigurationProperty.getModelId()
templateConfiguration
(IResolvable templateConfiguration) templateConfiguration
(CfnFlowVersion.PromptTemplateConfigurationProperty templateConfiguration) templateType
(String templateType)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
modelId
@Stability(Stable) public CfnFlowVersion.PromptFlowNodeInlineConfigurationProperty.Builder modelId(String modelId) Sets the value ofCfnFlowVersion.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 CfnFlowVersion.PromptFlowNodeInlineConfigurationProperty.Builder templateConfiguration(IResolvable templateConfiguration) Sets the value ofCfnFlowVersion.PromptFlowNodeInlineConfigurationProperty.getTemplateConfiguration()
- 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 CfnFlowVersion.PromptFlowNodeInlineConfigurationProperty.Builder templateConfiguration(CfnFlowVersion.PromptTemplateConfigurationProperty templateConfiguration) Sets the value ofCfnFlowVersion.PromptFlowNodeInlineConfigurationProperty.getTemplateConfiguration()
- 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 CfnFlowVersion.PromptFlowNodeInlineConfigurationProperty.Builder templateType(String templateType) - Parameters:
templateType
- The type of prompt template. This parameter is required.- Returns:
this
-
inferenceConfiguration
@Stability(Stable) public CfnFlowVersion.PromptFlowNodeInlineConfigurationProperty.Builder inferenceConfiguration(IResolvable inferenceConfiguration) Sets the value ofCfnFlowVersion.PromptFlowNodeInlineConfigurationProperty.getInferenceConfiguration()
- Parameters:
inferenceConfiguration
- Contains inference configurations for the prompt.- Returns:
this
-
inferenceConfiguration
@Stability(Stable) public CfnFlowVersion.PromptFlowNodeInlineConfigurationProperty.Builder inferenceConfiguration(CfnFlowVersion.PromptInferenceConfigurationProperty inferenceConfiguration) Sets the value ofCfnFlowVersion.PromptFlowNodeInlineConfigurationProperty.getInferenceConfiguration()
- Parameters:
inferenceConfiguration
- Contains inference configurations for the prompt.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFlowVersion.PromptFlowNodeInlineConfigurationProperty>
- Returns:
- a new instance of
CfnFlowVersion.PromptFlowNodeInlineConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-