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