Class CommonPromptVariantProps.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.alpha.CommonPromptVariantProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CommonPromptVariantProps>
- Enclosing interface:
CommonPromptVariantProps
@Stability(Experimental)
public static final class CommonPromptVariantProps.Builder
extends Object
implements software.amazon.jsii.Builder<CommonPromptVariantProps>
A builder for
CommonPromptVariantProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.model(IBedrockInvokable model) Sets the value ofCommonPromptVariantProps.getModel()promptVariables(List<String> promptVariables) Sets the value ofCommonPromptVariantProps.getPromptVariables()variantName(String variantName) Sets the value ofCommonPromptVariantProps.getVariantName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
model
Sets the value ofCommonPromptVariantProps.getModel()- Parameters:
model- The model which is used to run the prompt. This parameter is required. The model could be a foundation model, a custom model, or a provisioned model.- Returns:
this
-
variantName
Sets the value ofCommonPromptVariantProps.getVariantName()- Parameters:
variantName- The name of the prompt variant. This parameter is required.- Returns:
this
-
promptVariables
@Stability(Experimental) public CommonPromptVariantProps.Builder promptVariables(List<String> promptVariables) Sets the value ofCommonPromptVariantProps.getPromptVariables()- Parameters:
promptVariables- The variables in the prompt template that can be filled in at runtime.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CommonPromptVariantProps>- Returns:
- a new instance of
CommonPromptVariantProps - Throws:
NullPointerException- if any required attribute was not provided
-