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