Class CfnAgentPropsMixin.AgentKnowledgeBaseProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.bedrock.CfnAgentPropsMixin.AgentKnowledgeBaseProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAgentPropsMixin.AgentKnowledgeBaseProperty>
- Enclosing interface:
CfnAgentPropsMixin.AgentKnowledgeBaseProperty
@Stability(Stable)
public static final class CfnAgentPropsMixin.AgentKnowledgeBaseProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAgentPropsMixin.AgentKnowledgeBaseProperty>
A builder for
CfnAgentPropsMixin.AgentKnowledgeBaseProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnAgentPropsMixin.AgentKnowledgeBaseProperty.getDescription()knowledgeBaseId(String knowledgeBaseId) Sets the value ofCfnAgentPropsMixin.AgentKnowledgeBaseProperty.getKnowledgeBaseId()knowledgeBaseState(String knowledgeBaseState) Sets the value ofCfnAgentPropsMixin.AgentKnowledgeBaseProperty.getKnowledgeBaseState()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
@Stability(Stable) public CfnAgentPropsMixin.AgentKnowledgeBaseProperty.Builder description(String description) Sets the value ofCfnAgentPropsMixin.AgentKnowledgeBaseProperty.getDescription()- Parameters:
description- The description of the association between the agent and the knowledge base.- Returns:
this
-
knowledgeBaseId
@Stability(Stable) public CfnAgentPropsMixin.AgentKnowledgeBaseProperty.Builder knowledgeBaseId(String knowledgeBaseId) Sets the value ofCfnAgentPropsMixin.AgentKnowledgeBaseProperty.getKnowledgeBaseId()- Parameters:
knowledgeBaseId- The unique identifier of the association between the agent and the knowledge base.- Returns:
this
-
knowledgeBaseState
@Stability(Stable) public CfnAgentPropsMixin.AgentKnowledgeBaseProperty.Builder knowledgeBaseState(String knowledgeBaseState) Sets the value ofCfnAgentPropsMixin.AgentKnowledgeBaseProperty.getKnowledgeBaseState()- Parameters:
knowledgeBaseState- Specifies whether to use the knowledge base or not when sending an InvokeAgent request.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAgentPropsMixin.AgentKnowledgeBaseProperty>- Returns:
- a new instance of
CfnAgentPropsMixin.AgentKnowledgeBaseProperty - Throws:
NullPointerException- if any required attribute was not provided
-