Class CfnAIPromptMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.wisdom.CfnAIPromptMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAIPromptMixinProps>
- Enclosing interface:
CfnAIPromptMixinProps
@Stability(Stable)
public static final class CfnAIPromptMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAIPromptMixinProps>
A builder for
CfnAIPromptMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnAIPromptMixinProps.getApiFormat()assistantId(String assistantId) Sets the value ofCfnAIPromptMixinProps.getAssistantId()build()Builds the configured instance.description(String description) Sets the value ofCfnAIPromptMixinProps.getDescription()Sets the value ofCfnAIPromptMixinProps.getModelId()Sets the value ofCfnAIPromptMixinProps.getName()Sets the value ofCfnAIPromptMixinProps.getTags()templateConfiguration(CfnAIPromptPropsMixin.AIPromptTemplateConfigurationProperty templateConfiguration) Sets the value ofCfnAIPromptMixinProps.getTemplateConfiguration()templateConfiguration(IResolvable templateConfiguration) Sets the value ofCfnAIPromptMixinProps.getTemplateConfiguration()templateType(String templateType) Sets the value ofCfnAIPromptMixinProps.getTemplateType()Sets the value ofCfnAIPromptMixinProps.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
apiFormat
Sets the value ofCfnAIPromptMixinProps.getApiFormat()- Parameters:
apiFormat- The API format used for this AI Prompt.- Returns:
this
-
assistantId
Sets the value ofCfnAIPromptMixinProps.getAssistantId()- Parameters:
assistantId- The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.- Returns:
this
-
description
Sets the value ofCfnAIPromptMixinProps.getDescription()- Parameters:
description- The description of the AI Prompt.- Returns:
this
-
modelId
Sets the value ofCfnAIPromptMixinProps.getModelId()- Parameters:
modelId- The identifier of the model used for this AI Prompt. The following model Ids are supported:.anthropic.claude-3-haiku--v1:0apac.amazon.nova-lite-v1:0apac.amazon.nova-micro-v1:0apac.amazon.nova-pro-v1:0apac.anthropic.claude-3-5-sonnet--v2:0apac.anthropic.claude-3-haiku-20240307-v1:0eu.amazon.nova-lite-v1:0eu.amazon.nova-micro-v1:0eu.amazon.nova-pro-v1:0eu.anthropic.claude-3-7-sonnet-20250219-v1:0eu.anthropic.claude-3-haiku-20240307-v1:0us.amazon.nova-lite-v1:0us.amazon.nova-micro-v1:0us.amazon.nova-pro-v1:0us.anthropic.claude-3-5-haiku-20241022-v1:0us.anthropic.claude-3-7-sonnet-20250219-v1:0us.anthropic.claude-3-haiku-20240307-v1:0
- Returns:
this
-
name
Sets the value ofCfnAIPromptMixinProps.getName()- Parameters:
name- The name of the AI Prompt.- Returns:
this
-
tags
Sets the value ofCfnAIPromptMixinProps.getTags()- Parameters:
tags- The tags used to organize, track, or control access for this resource.- Returns:
this
-
templateConfiguration
@Stability(Stable) public CfnAIPromptMixinProps.Builder templateConfiguration(IResolvable templateConfiguration) Sets the value ofCfnAIPromptMixinProps.getTemplateConfiguration()- Parameters:
templateConfiguration- The configuration of the prompt template for this AI Prompt.- Returns:
this
-
templateConfiguration
@Stability(Stable) public CfnAIPromptMixinProps.Builder templateConfiguration(CfnAIPromptPropsMixin.AIPromptTemplateConfigurationProperty templateConfiguration) Sets the value ofCfnAIPromptMixinProps.getTemplateConfiguration()- Parameters:
templateConfiguration- The configuration of the prompt template for this AI Prompt.- Returns:
this
-
templateType
Sets the value ofCfnAIPromptMixinProps.getTemplateType()- Parameters:
templateType- The type of the prompt template for this AI Prompt.- Returns:
this
-
type
Sets the value ofCfnAIPromptMixinProps.getType()- Parameters:
type- The type of this AI Prompt.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAIPromptMixinProps>- Returns:
- a new instance of
CfnAIPromptMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-