Class PromptAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.alpha.PromptAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<PromptAttributes>
- Enclosing interface:
PromptAttributes
@Stability(Experimental)
public static final class PromptAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<PromptAttributes>
A builder for
PromptAttributes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofPromptAttributes.getKmsKey()
Sets the value ofPromptAttributes.getPromptArn()
promptVersion
(String promptVersion) Sets the value ofPromptAttributes.getPromptVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
promptArn
Sets the value ofPromptAttributes.getPromptArn()
- Parameters:
promptArn
- The ARN of the prompt. This parameter is required.- Returns:
this
-
kmsKey
Sets the value ofPromptAttributes.getKmsKey()
- Parameters:
kmsKey
- Optional KMS encryption key associated with this prompt.- Returns:
this
-
promptVersion
Sets the value ofPromptAttributes.getPromptVersion()
- Parameters:
promptVersion
- The version of the prompt.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<PromptAttributes>
- Returns:
- a new instance of
PromptAttributes
- Throws:
NullPointerException
- if any required attribute was not provided
-