Class CfnPromptProps.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnPromptProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPromptProps>
- Enclosing interface:
CfnPromptProps
@Stability(Stable)
public static final class CfnPromptProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPromptProps>
A builder for
CfnPromptProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.customerEncryptionKeyArn(String customerEncryptionKeyArn) Sets the value ofCfnPromptProps.getCustomerEncryptionKeyArn()defaultVariant(String defaultVariant) Sets the value ofCfnPromptProps.getDefaultVariant()description(String description) Sets the value ofCfnPromptProps.getDescription()Sets the value ofCfnPromptProps.getName()Sets the value ofCfnPromptProps.getTags()Sets the value ofCfnPromptProps.getVariants()variants(IResolvable variants) Sets the value ofCfnPromptProps.getVariants()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnPromptProps.getName()- Parameters:
name- The name of the prompt. This parameter is required.- Returns:
this
-
customerEncryptionKeyArn
@Stability(Stable) public CfnPromptProps.Builder customerEncryptionKeyArn(String customerEncryptionKeyArn) Sets the value ofCfnPromptProps.getCustomerEncryptionKeyArn()- Parameters:
customerEncryptionKeyArn- The Amazon Resource Name (ARN) of the KMS key that the prompt is encrypted with.- Returns:
this
-
defaultVariant
Sets the value ofCfnPromptProps.getDefaultVariant()- Parameters:
defaultVariant- The name of the default variant for the prompt. This value must match thenamefield in the relevant PromptVariant object.- Returns:
this
-
description
Sets the value ofCfnPromptProps.getDescription()- Parameters:
description- The description of the prompt.- Returns:
this
-
tags
Sets the value ofCfnPromptProps.getTags()- Parameters:
tags- Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:.- Returns:
this
-
variants
Sets the value ofCfnPromptProps.getVariants()- Parameters:
variants- A list of objects, each containing details about a variant of the prompt.- Returns:
this
-
variants
Sets the value ofCfnPromptProps.getVariants()- Parameters:
variants- A list of objects, each containing details about a variant of the prompt.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPromptProps>- Returns:
- a new instance of
CfnPromptProps - Throws:
NullPointerException- if any required attribute was not provided
-