Class CfnFlow.PromptInferenceConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnFlow.PromptInferenceConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFlow.PromptInferenceConfigurationProperty>
- Enclosing interface:
CfnFlow.PromptInferenceConfigurationProperty
@Stability(Stable)
public static final class CfnFlow.PromptInferenceConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFlow.PromptInferenceConfigurationProperty>
A builder for
CfnFlow.PromptInferenceConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.text(IResolvable text) Sets the value ofCfnFlow.PromptInferenceConfigurationProperty.getText()Sets the value ofCfnFlow.PromptInferenceConfigurationProperty.getText()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
text
@Stability(Stable) public CfnFlow.PromptInferenceConfigurationProperty.Builder text(IResolvable text) Sets the value ofCfnFlow.PromptInferenceConfigurationProperty.getText()- Parameters:
text- Contains inference configurations for a text prompt. This parameter is required.- Returns:
this
-
text
@Stability(Stable) public CfnFlow.PromptInferenceConfigurationProperty.Builder text(CfnFlow.PromptModelInferenceConfigurationProperty text) Sets the value ofCfnFlow.PromptInferenceConfigurationProperty.getText()- Parameters:
text- Contains inference configurations for a text prompt. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFlow.PromptInferenceConfigurationProperty>- Returns:
- a new instance of
CfnFlow.PromptInferenceConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-