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