Class CfnPromptVersion.PromptVariantProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnPromptVersion.PromptVariantProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPromptVersion.PromptVariantProperty>
- Enclosing interface:
CfnPromptVersion.PromptVariantProperty
@Stability(Stable)
public static final class CfnPromptVersion.PromptVariantProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPromptVersion.PromptVariantProperty>
A builder for
CfnPromptVersion.PromptVariantProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.inferenceConfiguration(IResolvable inferenceConfiguration) Sets the value ofCfnPromptVersion.PromptVariantProperty.getInferenceConfiguration()inferenceConfiguration(CfnPromptVersion.PromptInferenceConfigurationProperty inferenceConfiguration) Sets the value ofCfnPromptVersion.PromptVariantProperty.getInferenceConfiguration()Sets the value ofCfnPromptVersion.PromptVariantProperty.getModelId()Sets the value ofCfnPromptVersion.PromptVariantProperty.getName()templateConfiguration(IResolvable templateConfiguration) Sets the value ofCfnPromptVersion.PromptVariantProperty.getTemplateConfiguration()templateConfiguration(CfnPromptVersion.PromptTemplateConfigurationProperty templateConfiguration) Sets the value ofCfnPromptVersion.PromptVariantProperty.getTemplateConfiguration()templateType(String templateType) Sets the value ofCfnPromptVersion.PromptVariantProperty.getTemplateType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnPromptVersion.PromptVariantProperty.getName()- Parameters:
name- The name of the prompt variant. This parameter is required.- Returns:
this
-
templateConfiguration
@Stability(Stable) public CfnPromptVersion.PromptVariantProperty.Builder templateConfiguration(IResolvable templateConfiguration) Sets the value ofCfnPromptVersion.PromptVariantProperty.getTemplateConfiguration()- Parameters:
templateConfiguration- Contains configurations for the prompt template. This parameter is required.- Returns:
this
-
templateConfiguration
@Stability(Stable) public CfnPromptVersion.PromptVariantProperty.Builder templateConfiguration(CfnPromptVersion.PromptTemplateConfigurationProperty templateConfiguration) Sets the value ofCfnPromptVersion.PromptVariantProperty.getTemplateConfiguration()- Parameters:
templateConfiguration- Contains configurations for the prompt template. This parameter is required.- Returns:
this
-
templateType
@Stability(Stable) public CfnPromptVersion.PromptVariantProperty.Builder templateType(String templateType) Sets the value ofCfnPromptVersion.PromptVariantProperty.getTemplateType()- Parameters:
templateType- The type of prompt template to use. This parameter is required.- Returns:
this
-
inferenceConfiguration
@Stability(Stable) public CfnPromptVersion.PromptVariantProperty.Builder inferenceConfiguration(IResolvable inferenceConfiguration) Sets the value ofCfnPromptVersion.PromptVariantProperty.getInferenceConfiguration()- Parameters:
inferenceConfiguration- Contains inference configurations for the prompt variant.- Returns:
this
-
inferenceConfiguration
@Stability(Stable) public CfnPromptVersion.PromptVariantProperty.Builder inferenceConfiguration(CfnPromptVersion.PromptInferenceConfigurationProperty inferenceConfiguration) Sets the value ofCfnPromptVersion.PromptVariantProperty.getInferenceConfiguration()- Parameters:
inferenceConfiguration- Contains inference configurations for the prompt variant.- Returns:
this
-
modelId
Sets the value ofCfnPromptVersion.PromptVariantProperty.getModelId()- Parameters:
modelId- The unique identifier of the model or inference profile with which to run inference on the prompt.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPromptVersion.PromptVariantProperty>- Returns:
- a new instance of
CfnPromptVersion.PromptVariantProperty - Throws:
NullPointerException- if any required attribute was not provided
-