Interface GetAgentKnowledgeBaseResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,BedrockAgentResponse.Builder,Buildable,CopyableBuilder<GetAgentKnowledgeBaseResponse.Builder,,GetAgentKnowledgeBaseResponse> SdkBuilder<GetAgentKnowledgeBaseResponse.Builder,,GetAgentKnowledgeBaseResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetAgentKnowledgeBaseResponse
@Mutable
@NotThreadSafe
public static interface GetAgentKnowledgeBaseResponse.Builder
extends BedrockAgentResponse.Builder, SdkPojo, CopyableBuilder<GetAgentKnowledgeBaseResponse.Builder,GetAgentKnowledgeBaseResponse>
-
Method Summary
Modifier and TypeMethodDescriptionagentKnowledgeBase(Consumer<AgentKnowledgeBase.Builder> agentKnowledgeBase) Contains details about a knowledge base attached to an agent.agentKnowledgeBase(AgentKnowledgeBase agentKnowledgeBase) Contains details about a knowledge base attached to an agent.Methods inherited from interface software.amazon.awssdk.services.bedrockagent.model.BedrockAgentResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
agentKnowledgeBase
Contains details about a knowledge base attached to an agent.
- Parameters:
agentKnowledgeBase- Contains details about a knowledge base attached to an agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agentKnowledgeBase
default GetAgentKnowledgeBaseResponse.Builder agentKnowledgeBase(Consumer<AgentKnowledgeBase.Builder> agentKnowledgeBase) Contains details about a knowledge base attached to an agent.
This is a convenience method that creates an instance of theAgentKnowledgeBase.Builderavoiding the need to create one manually viaAgentKnowledgeBase.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toagentKnowledgeBase(AgentKnowledgeBase).- Parameters:
agentKnowledgeBase- a consumer that will call methods onAgentKnowledgeBase.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-