Class McpProtocolConfiguration.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.McpProtocolConfiguration.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<McpProtocolConfiguration>
- Enclosing class:
McpProtocolConfiguration
@Stability(Stable)
public static final class McpProtocolConfiguration.Builder
extends Object
implements software.amazon.jsii.Builder<McpProtocolConfiguration>
A fluent builder for
McpProtocolConfiguration.-
Method Summary
Modifier and TypeMethodDescriptionbuild()create()instructions(String instructions) The instructions for using the Model Context Protocol gateway.searchType(McpGatewaySearchType searchType) The search type for the Model Context Protocol gateway.supportedVersions(List<? extends MCPProtocolVersion> supportedVersions) The supported versions of the Model Context Protocol.
-
Method Details
-
create
- Returns:
- a new instance of
McpProtocolConfiguration.Builder.
-
instructions
The instructions for using the Model Context Protocol gateway.These instructions provide guidance on how to interact with the gateway.
Default: - No instructions provided
- Parameters:
instructions- The instructions for using the Model Context Protocol gateway. This parameter is required.- Returns:
this
-
searchType
@Stability(Stable) public McpProtocolConfiguration.Builder searchType(McpGatewaySearchType searchType) The search type for the Model Context Protocol gateway.This field specifies how the gateway handles search operations.
Default: - No search type specified
- Parameters:
searchType- The search type for the Model Context Protocol gateway. This parameter is required.- Returns:
this
-
supportedVersions
@Stability(Stable) public McpProtocolConfiguration.Builder supportedVersions(List<? extends MCPProtocolVersion> supportedVersions) The supported versions of the Model Context Protocol.This field specifies which versions of the protocol the gateway can use.
Default: - No specific versions specified
- Parameters:
supportedVersions- The supported versions of the Model Context Protocol. This parameter is required.- Returns:
this
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<McpProtocolConfiguration>- Returns:
- a newly built instance of
McpProtocolConfiguration.
-