Class CfnAIAgent.AnswerRecommendationAIAgentConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.wisdom.CfnAIAgent.AnswerRecommendationAIAgentConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAIAgent.AnswerRecommendationAIAgentConfigurationProperty>
- Enclosing interface:
CfnAIAgent.AnswerRecommendationAIAgentConfigurationProperty
@Stability(Stable)
public static final class CfnAIAgent.AnswerRecommendationAIAgentConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAIAgent.AnswerRecommendationAIAgentConfigurationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionanswerGenerationAiGuardrailId
(String answerGenerationAiGuardrailId) answerGenerationAiPromptId
(String answerGenerationAiPromptId) associationConfigurations
(List<? extends Object> associationConfigurations) associationConfigurations
(IResolvable associationConfigurations) build()
Builds the configured instance.intentLabelingGenerationAiPromptId
(String intentLabelingGenerationAiPromptId) Sets the value ofCfnAIAgent.AnswerRecommendationAIAgentConfigurationProperty.getLocale()
queryReformulationAiPromptId
(String queryReformulationAiPromptId)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
answerGenerationAiGuardrailId
@Stability(Stable) public CfnAIAgent.AnswerRecommendationAIAgentConfigurationProperty.Builder answerGenerationAiGuardrailId(String answerGenerationAiGuardrailId) Sets the value ofCfnAIAgent.AnswerRecommendationAIAgentConfigurationProperty.getAnswerGenerationAiGuardrailId()
- Parameters:
answerGenerationAiGuardrailId
- The ID of the answer generation AI guardrail.- Returns:
this
-
answerGenerationAiPromptId
@Stability(Stable) public CfnAIAgent.AnswerRecommendationAIAgentConfigurationProperty.Builder answerGenerationAiPromptId(String answerGenerationAiPromptId) Sets the value ofCfnAIAgent.AnswerRecommendationAIAgentConfigurationProperty.getAnswerGenerationAiPromptId()
- Parameters:
answerGenerationAiPromptId
- The AI Prompt identifier for the Answer Generation prompt used by theANSWER_RECOMMENDATION
AI Agent.- Returns:
this
-
associationConfigurations
@Stability(Stable) public CfnAIAgent.AnswerRecommendationAIAgentConfigurationProperty.Builder associationConfigurations(IResolvable associationConfigurations) Sets the value ofCfnAIAgent.AnswerRecommendationAIAgentConfigurationProperty.getAssociationConfigurations()
- Parameters:
associationConfigurations
- The association configurations for overriding behavior on this AI Agent.- Returns:
this
-
associationConfigurations
@Stability(Stable) public CfnAIAgent.AnswerRecommendationAIAgentConfigurationProperty.Builder associationConfigurations(List<? extends Object> associationConfigurations) Sets the value ofCfnAIAgent.AnswerRecommendationAIAgentConfigurationProperty.getAssociationConfigurations()
- Parameters:
associationConfigurations
- The association configurations for overriding behavior on this AI Agent.- Returns:
this
-
intentLabelingGenerationAiPromptId
@Stability(Stable) public CfnAIAgent.AnswerRecommendationAIAgentConfigurationProperty.Builder intentLabelingGenerationAiPromptId(String intentLabelingGenerationAiPromptId) Sets the value ofCfnAIAgent.AnswerRecommendationAIAgentConfigurationProperty.getIntentLabelingGenerationAiPromptId()
- Parameters:
intentLabelingGenerationAiPromptId
- The AI Prompt identifier for the Intent Labeling prompt used by theANSWER_RECOMMENDATION
AI Agent.- Returns:
this
-
locale
@Stability(Stable) public CfnAIAgent.AnswerRecommendationAIAgentConfigurationProperty.Builder locale(String locale) Sets the value ofCfnAIAgent.AnswerRecommendationAIAgentConfigurationProperty.getLocale()
- Parameters:
locale
- the value to be set.- Returns:
this
-
queryReformulationAiPromptId
@Stability(Stable) public CfnAIAgent.AnswerRecommendationAIAgentConfigurationProperty.Builder queryReformulationAiPromptId(String queryReformulationAiPromptId) Sets the value ofCfnAIAgent.AnswerRecommendationAIAgentConfigurationProperty.getQueryReformulationAiPromptId()
- Parameters:
queryReformulationAiPromptId
- The AI Prompt identifier for the Query Reformulation prompt used by theANSWER_RECOMMENDATION
AI Agent.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAIAgent.AnswerRecommendationAIAgentConfigurationProperty>
- Returns:
- a new instance of
CfnAIAgent.AnswerRecommendationAIAgentConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-