Class McpConfiguration.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.McpConfiguration.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<McpConfiguration>
- Enclosing interface:
McpConfiguration
@Stability(Stable)
public static final class McpConfiguration.Builder
extends Object
implements software.amazon.jsii.Builder<McpConfiguration>
A builder for
McpConfiguration-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.instructions(String instructions) Sets the value ofMcpConfiguration.getInstructions()searchType(McpGatewaySearchType searchType) Sets the value ofMcpConfiguration.getSearchType()supportedVersions(List<? extends MCPProtocolVersion> supportedVersions) Sets the value ofMcpConfiguration.getSupportedVersions()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
instructions
Sets the value ofMcpConfiguration.getInstructions()- Parameters:
instructions- The instructions for using the Model Context Protocol gateway. These instructions provide guidance on how to interact with the gateway.- Returns:
this
-
searchType
Sets the value ofMcpConfiguration.getSearchType()- Parameters:
searchType- The search type for the Model Context Protocol gateway. This field specifies how the gateway handles search operations.- Returns:
this
-
supportedVersions
@Stability(Stable) public McpConfiguration.Builder supportedVersions(List<? extends MCPProtocolVersion> supportedVersions) Sets the value ofMcpConfiguration.getSupportedVersions()- Parameters:
supportedVersions- The supported versions of the Model Context Protocol. This field specifies which versions of the protocol the gateway can use.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<McpConfiguration>- Returns:
- a new instance of
McpConfiguration - Throws:
NullPointerException- if any required attribute was not provided
-