Class PromptVersionProps.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.alpha.PromptVersionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<PromptVersionProps>
- Enclosing interface:
PromptVersionProps
@Stability(Experimental)
public static final class PromptVersionProps.Builder
extends Object
implements software.amazon.jsii.Builder<PromptVersionProps>
A builder for
PromptVersionProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofPromptVersionProps.getDescription()Sets the value ofPromptVersionProps.getPrompt()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
prompt
Sets the value ofPromptVersionProps.getPrompt()- Parameters:
prompt- The prompt to use for this version. This parameter is required.- Returns:
this
-
description
Sets the value ofPromptVersionProps.getDescription()- Parameters:
description- The description of the prompt version.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PromptVersionProps>- Returns:
- a new instance of
PromptVersionProps - Throws:
NullPointerException- if any required attribute was not provided
-