Class CfnPromptVersionProps.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnPromptVersionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPromptVersionProps>
- Enclosing interface:
CfnPromptVersionProps
@Stability(Stable)
public static final class CfnPromptVersionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPromptVersionProps>
A builder for
CfnPromptVersionProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.description
(String description) Sets the value ofCfnPromptVersionProps.getDescription()
Sets the value ofCfnPromptVersionProps.getPromptArn()
Sets the value ofCfnPromptVersionProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
promptArn
Sets the value ofCfnPromptVersionProps.getPromptArn()
- Parameters:
promptArn
- The Amazon Resource Name (ARN) of the version of the prompt. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnPromptVersionProps.getDescription()
- Parameters:
description
- The description of the prompt version.- Returns:
this
-
tags
Sets the value ofCfnPromptVersionProps.getTags()
- Parameters:
tags
- A map of tags attached to the prompt version and their values.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPromptVersionProps>
- Returns:
- a new instance of
CfnPromptVersionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-