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