Class CfnAIPromptProps.Builder
java.lang.Object
software.amazon.awscdk.services.wisdom.CfnAIPromptProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAIPromptProps>
- Enclosing interface:
CfnAIPromptProps
@Stability(Stable)
public static final class CfnAIPromptProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAIPromptProps>
A builder for
CfnAIPromptProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnAIPromptProps.getApiFormat()assistantId(String assistantId) Sets the value ofCfnAIPromptProps.getAssistantId()build()Builds the configured instance.description(String description) Sets the value ofCfnAIPromptProps.getDescription()Sets the value ofCfnAIPromptProps.getModelId()Sets the value ofCfnAIPromptProps.getName()Sets the value ofCfnAIPromptProps.getTags()templateConfiguration(IResolvable templateConfiguration) Sets the value ofCfnAIPromptProps.getTemplateConfiguration()templateConfiguration(CfnAIPrompt.AIPromptTemplateConfigurationProperty templateConfiguration) Sets the value ofCfnAIPromptProps.getTemplateConfiguration()templateType(String templateType) Sets the value ofCfnAIPromptProps.getTemplateType()Sets the value ofCfnAIPromptProps.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
apiFormat
Sets the value ofCfnAIPromptProps.getApiFormat()- Parameters:
apiFormat- The API format used for this AI Prompt. This parameter is required.- Returns:
this
-
modelId
Sets the value ofCfnAIPromptProps.getModelId()- Parameters:
modelId- The identifier of the model used for this AI Prompt. This parameter is required. Model Ids supported are:CLAUDE_3_HAIKU_20240307_V1.- Returns:
this
-
templateConfiguration
@Stability(Stable) public CfnAIPromptProps.Builder templateConfiguration(IResolvable templateConfiguration) Sets the value ofCfnAIPromptProps.getTemplateConfiguration()- Parameters:
templateConfiguration- The configuration of the prompt template for this AI Prompt. This parameter is required.- Returns:
this
-
templateConfiguration
@Stability(Stable) public CfnAIPromptProps.Builder templateConfiguration(CfnAIPrompt.AIPromptTemplateConfigurationProperty templateConfiguration) Sets the value ofCfnAIPromptProps.getTemplateConfiguration()- Parameters:
templateConfiguration- The configuration of the prompt template for this AI Prompt. This parameter is required.- Returns:
this
-
templateType
Sets the value ofCfnAIPromptProps.getTemplateType()- Parameters:
templateType- The type of the prompt template for this AI Prompt. This parameter is required.- Returns:
this
-
type
Sets the value ofCfnAIPromptProps.getType()- Parameters:
type- The type of this AI Prompt. This parameter is required.- Returns:
this
-
assistantId
Sets the value ofCfnAIPromptProps.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 ofCfnAIPromptProps.getDescription()- Parameters:
description- The description of the AI Prompt.- Returns:
this
-
name
Sets the value ofCfnAIPromptProps.getName()- Parameters:
name- The name of the AI Prompt.- Returns:
this
-
tags
Sets the value ofCfnAIPromptProps.getTags()- Parameters:
tags- The tags used to organize, track, or control access for this resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAIPromptProps>- Returns:
- a new instance of
CfnAIPromptProps - Throws:
NullPointerException- if any required attribute was not provided
-