Class CfnFlow.PromptFlowNodeConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnFlow.PromptFlowNodeConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFlow.PromptFlowNodeConfigurationProperty>
- Enclosing interface:
CfnFlow.PromptFlowNodeConfigurationProperty
@Stability(Stable)
public static final class CfnFlow.PromptFlowNodeConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFlow.PromptFlowNodeConfigurationProperty>
A builder for
CfnFlow.PromptFlowNodeConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.guardrailConfiguration
(IResolvable guardrailConfiguration) Sets the value ofCfnFlow.PromptFlowNodeConfigurationProperty.getGuardrailConfiguration()
guardrailConfiguration
(CfnFlow.GuardrailConfigurationProperty guardrailConfiguration) Sets the value ofCfnFlow.PromptFlowNodeConfigurationProperty.getGuardrailConfiguration()
sourceConfiguration
(IResolvable sourceConfiguration) Sets the value ofCfnFlow.PromptFlowNodeConfigurationProperty.getSourceConfiguration()
sourceConfiguration
(CfnFlow.PromptFlowNodeSourceConfigurationProperty sourceConfiguration) Sets the value ofCfnFlow.PromptFlowNodeConfigurationProperty.getSourceConfiguration()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
sourceConfiguration
@Stability(Stable) public CfnFlow.PromptFlowNodeConfigurationProperty.Builder sourceConfiguration(IResolvable sourceConfiguration) Sets the value ofCfnFlow.PromptFlowNodeConfigurationProperty.getSourceConfiguration()
- Parameters:
sourceConfiguration
- Specifies whether the prompt is from Prompt management or defined inline. This parameter is required.- Returns:
this
-
sourceConfiguration
@Stability(Stable) public CfnFlow.PromptFlowNodeConfigurationProperty.Builder sourceConfiguration(CfnFlow.PromptFlowNodeSourceConfigurationProperty sourceConfiguration) Sets the value ofCfnFlow.PromptFlowNodeConfigurationProperty.getSourceConfiguration()
- Parameters:
sourceConfiguration
- Specifies whether the prompt is from Prompt management or defined inline. This parameter is required.- Returns:
this
-
guardrailConfiguration
@Stability(Stable) public CfnFlow.PromptFlowNodeConfigurationProperty.Builder guardrailConfiguration(IResolvable guardrailConfiguration) Sets the value ofCfnFlow.PromptFlowNodeConfigurationProperty.getGuardrailConfiguration()
- Parameters:
guardrailConfiguration
- Contains configurations for a guardrail to apply to the prompt in this node and the response generated from it.- Returns:
this
-
guardrailConfiguration
@Stability(Stable) public CfnFlow.PromptFlowNodeConfigurationProperty.Builder guardrailConfiguration(CfnFlow.GuardrailConfigurationProperty guardrailConfiguration) Sets the value ofCfnFlow.PromptFlowNodeConfigurationProperty.getGuardrailConfiguration()
- Parameters:
guardrailConfiguration
- Contains configurations for a guardrail to apply to the prompt in this node and the response generated from it.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFlow.PromptFlowNodeConfigurationProperty>
- Returns:
- a new instance of
CfnFlow.PromptFlowNodeConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-