Class CfnPrompt.PromptMetadataEntryProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnPrompt.PromptMetadataEntryProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPrompt.PromptMetadataEntryProperty>
- Enclosing interface:
CfnPrompt.PromptMetadataEntryProperty
@Stability(Stable)
public static final class CfnPrompt.PromptMetadataEntryProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPrompt.PromptMetadataEntryProperty>
A builder for
CfnPrompt.PromptMetadataEntryProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnPrompt.PromptMetadataEntryProperty.getKey()Sets the value ofCfnPrompt.PromptMetadataEntryProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
key
Sets the value ofCfnPrompt.PromptMetadataEntryProperty.getKey()- Parameters:
key- The key of a metadata tag for a prompt variant. This parameter is required.- Returns:
this
-
value
Sets the value ofCfnPrompt.PromptMetadataEntryProperty.getValue()- Parameters:
value- The value of a metadata tag for a prompt variant. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPrompt.PromptMetadataEntryProperty>- Returns:
- a new instance of
CfnPrompt.PromptMetadataEntryProperty - Throws:
NullPointerException- if any required attribute was not provided
-