Class CfnPromptMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.bedrock.CfnPromptMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPromptMixinProps>
- Enclosing interface:
CfnPromptMixinProps
@Stability(Stable)
public static final class CfnPromptMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPromptMixinProps>
A builder for
CfnPromptMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.customerEncryptionKeyArn(String customerEncryptionKeyArn) Sets the value ofCfnPromptMixinProps.getCustomerEncryptionKeyArn()defaultVariant(String defaultVariant) Sets the value ofCfnPromptMixinProps.getDefaultVariant()description(String description) Sets the value ofCfnPromptMixinProps.getDescription()Sets the value ofCfnPromptMixinProps.getName()Sets the value ofCfnPromptMixinProps.getTags()Sets the value ofCfnPromptMixinProps.getVariants()variants(IResolvable variants) Sets the value ofCfnPromptMixinProps.getVariants()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
customerEncryptionKeyArn
@Stability(Stable) public CfnPromptMixinProps.Builder customerEncryptionKeyArn(String customerEncryptionKeyArn) Sets the value ofCfnPromptMixinProps.getCustomerEncryptionKeyArn()- Parameters:
customerEncryptionKeyArn- The Amazon Resource Name (ARN) of the KMS key that the prompt is encrypted with.- Returns:
this
-
defaultVariant
Sets the value ofCfnPromptMixinProps.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 ofCfnPromptMixinProps.getDescription()- Parameters:
description- The description of the prompt.- Returns:
this
-
name
Sets the value ofCfnPromptMixinProps.getName()- Parameters:
name- The name of the prompt.- Returns:
this
-
tags
Sets the value ofCfnPromptMixinProps.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 ofCfnPromptMixinProps.getVariants()- Parameters:
variants- A list of objects, each containing details about a variant of the prompt.- Returns:
this
-
variants
Sets the value ofCfnPromptMixinProps.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<CfnPromptMixinProps>- Returns:
- a new instance of
CfnPromptMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-