Class CfnAgent.AgentKnowledgeBaseProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnAgent.AgentKnowledgeBaseProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAgent.AgentKnowledgeBaseProperty>
- Enclosing interface:
CfnAgent.AgentKnowledgeBaseProperty
@Stability(Stable)
public static final class CfnAgent.AgentKnowledgeBaseProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAgent.AgentKnowledgeBaseProperty>
A builder for
CfnAgent.AgentKnowledgeBaseProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnAgent.AgentKnowledgeBaseProperty.getDescription()knowledgeBaseId(String knowledgeBaseId) Sets the value ofCfnAgent.AgentKnowledgeBaseProperty.getKnowledgeBaseId()knowledgeBaseState(String knowledgeBaseState) Sets the value ofCfnAgent.AgentKnowledgeBaseProperty.getKnowledgeBaseState()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
@Stability(Stable) public CfnAgent.AgentKnowledgeBaseProperty.Builder description(String description) Sets the value ofCfnAgent.AgentKnowledgeBaseProperty.getDescription()- Parameters:
description- The description of the association between the agent and the knowledge base. This parameter is required.- Returns:
this
-
knowledgeBaseId
@Stability(Stable) public CfnAgent.AgentKnowledgeBaseProperty.Builder knowledgeBaseId(String knowledgeBaseId) Sets the value ofCfnAgent.AgentKnowledgeBaseProperty.getKnowledgeBaseId()- Parameters:
knowledgeBaseId- The unique identifier of the association between the agent and the knowledge base. This parameter is required.- Returns:
this
-
knowledgeBaseState
@Stability(Stable) public CfnAgent.AgentKnowledgeBaseProperty.Builder knowledgeBaseState(String knowledgeBaseState) Sets the value ofCfnAgent.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<CfnAgent.AgentKnowledgeBaseProperty>- Returns:
- a new instance of
CfnAgent.AgentKnowledgeBaseProperty - Throws:
NullPointerException- if any required attribute was not provided
-