Class CfnPrompt.PromptGenAiResourceProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnPrompt.PromptGenAiResourceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPrompt.PromptGenAiResourceProperty>
- Enclosing interface:
CfnPrompt.PromptGenAiResourceProperty
@Stability(Stable)
public static final class CfnPrompt.PromptGenAiResourceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPrompt.PromptGenAiResourceProperty>
A builder for
CfnPrompt.PromptGenAiResourceProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionagent(IResolvable agent) Sets the value ofCfnPrompt.PromptGenAiResourceProperty.getAgent()Sets the value ofCfnPrompt.PromptGenAiResourceProperty.getAgent()build()Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
agent
Sets the value ofCfnPrompt.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 CfnPrompt.PromptGenAiResourceProperty.Builder agent(CfnPrompt.PromptAgentResourceProperty agent) Sets the value ofCfnPrompt.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<CfnPrompt.PromptGenAiResourceProperty>- Returns:
- a new instance of
CfnPrompt.PromptGenAiResourceProperty - Throws:
NullPointerException- if any required attribute was not provided
-