Class CfnFlow.PromptFlowNodeSourceConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnFlow.PromptFlowNodeSourceConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFlow.PromptFlowNodeSourceConfigurationProperty>
- Enclosing interface:
CfnFlow.PromptFlowNodeSourceConfigurationProperty
@Stability(Stable)
public static final class CfnFlow.PromptFlowNodeSourceConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFlow.PromptFlowNodeSourceConfigurationProperty>
A builder for
CfnFlow.PromptFlowNodeSourceConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.inline
(IResolvable inline) Sets the value ofCfnFlow.PromptFlowNodeSourceConfigurationProperty.getInline()
Sets the value ofCfnFlow.PromptFlowNodeSourceConfigurationProperty.getInline()
resource
(IResolvable resource) Sets the value ofCfnFlow.PromptFlowNodeSourceConfigurationProperty.getResource()
Sets the value ofCfnFlow.PromptFlowNodeSourceConfigurationProperty.getResource()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
inline
@Stability(Stable) public CfnFlow.PromptFlowNodeSourceConfigurationProperty.Builder inline(IResolvable inline) Sets the value ofCfnFlow.PromptFlowNodeSourceConfigurationProperty.getInline()
- Parameters:
inline
- Contains configurations for a prompt that is defined inline.- Returns:
this
-
inline
@Stability(Stable) public CfnFlow.PromptFlowNodeSourceConfigurationProperty.Builder inline(CfnFlow.PromptFlowNodeInlineConfigurationProperty inline) Sets the value ofCfnFlow.PromptFlowNodeSourceConfigurationProperty.getInline()
- Parameters:
inline
- Contains configurations for a prompt that is defined inline.- Returns:
this
-
resource
@Stability(Stable) public CfnFlow.PromptFlowNodeSourceConfigurationProperty.Builder resource(IResolvable resource) Sets the value ofCfnFlow.PromptFlowNodeSourceConfigurationProperty.getResource()
- Parameters:
resource
- Contains configurations for a prompt from Prompt management.- Returns:
this
-
resource
@Stability(Stable) public CfnFlow.PromptFlowNodeSourceConfigurationProperty.Builder resource(CfnFlow.PromptFlowNodeResourceConfigurationProperty resource) Sets the value ofCfnFlow.PromptFlowNodeSourceConfigurationProperty.getResource()
- Parameters:
resource
- Contains configurations for a prompt from Prompt management.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFlow.PromptFlowNodeSourceConfigurationProperty>
- Returns:
- a new instance of
CfnFlow.PromptFlowNodeSourceConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-