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