Class CfnPromptVersion.PromptGenAiResourceProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnPromptVersion.PromptGenAiResourceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPromptVersion.PromptGenAiResourceProperty>
- Enclosing interface:
CfnPromptVersion.PromptGenAiResourceProperty
@Stability(Stable)
public static final class CfnPromptVersion.PromptGenAiResourceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPromptVersion.PromptGenAiResourceProperty>
A builder for
CfnPromptVersion.PromptGenAiResourceProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionagent(IResolvable agent) Sets the value ofCfnPromptVersion.PromptGenAiResourceProperty.getAgent()Sets the value ofCfnPromptVersion.PromptGenAiResourceProperty.getAgent()build()Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
agent
@Stability(Stable) public CfnPromptVersion.PromptGenAiResourceProperty.Builder agent(IResolvable agent) Sets the value ofCfnPromptVersion.PromptGenAiResourceProperty.getAgent()- Parameters:
agent- Specifies an Amazon Bedrock agent with which to use the prompt. This parameter is required.- Returns:
this
-
agent
@Stability(Stable) public CfnPromptVersion.PromptGenAiResourceProperty.Builder agent(CfnPromptVersion.PromptAgentResourceProperty agent) Sets the value ofCfnPromptVersion.PromptGenAiResourceProperty.getAgent()- Parameters:
agent- Specifies an Amazon Bedrock agent with which to use the prompt. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPromptVersion.PromptGenAiResourceProperty>- Returns:
- a new instance of
CfnPromptVersion.PromptGenAiResourceProperty - Throws:
NullPointerException- if any required attribute was not provided
-