Interface MCPGatewayConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<MCPGatewayConfiguration.Builder,,MCPGatewayConfiguration> SdkBuilder<MCPGatewayConfiguration.Builder,,MCPGatewayConfiguration> SdkPojo
- Enclosing class:
MCPGatewayConfiguration
-
Method Summary
Modifier and TypeMethodDescriptioninstructions(String instructions) The instructions for using the Model Context Protocol gateway.searchType(String searchType) The search type for the Model Context Protocol gateway.searchType(SearchType searchType) The search type for the Model Context Protocol gateway.default MCPGatewayConfiguration.BuildersessionConfiguration(Consumer<SessionConfiguration.Builder> sessionConfiguration) The session configuration for the MCP gateway.sessionConfiguration(SessionConfiguration sessionConfiguration) The session configuration for the MCP gateway.default MCPGatewayConfiguration.BuilderstreamingConfiguration(Consumer<StreamingConfiguration.Builder> streamingConfiguration) The streaming configuration for the MCP gateway.streamingConfiguration(StreamingConfiguration streamingConfiguration) The streaming configuration for the MCP gateway.supportedVersions(String... supportedVersions) The supported versions of the Model Context Protocol.supportedVersions(Collection<String> supportedVersions) The supported versions of the Model Context Protocol.Methods 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, sdkFields
-
Method Details
-
supportedVersions
The supported versions of the Model Context Protocol. This field specifies which versions of the protocol the gateway can use.
- Parameters:
supportedVersions- The supported versions of the Model Context Protocol. This field specifies which versions of the protocol the gateway can use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
supportedVersions
The supported versions of the Model Context Protocol. This field specifies which versions of the protocol the gateway can use.
- Parameters:
supportedVersions- The supported versions of the Model Context Protocol. This field specifies which versions of the protocol the gateway can use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instructions
The instructions for using the Model Context Protocol gateway. These instructions provide guidance on how to interact with the gateway.
- Parameters:
instructions- The instructions for using the Model Context Protocol gateway. These instructions provide guidance on how to interact with the gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
searchType
The search type for the Model Context Protocol gateway. This field specifies how the gateway handles search operations.
- Parameters:
searchType- The search type for the Model Context Protocol gateway. This field specifies how the gateway handles search operations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
searchType
The search type for the Model Context Protocol gateway. This field specifies how the gateway handles search operations.
- Parameters:
searchType- The search type for the Model Context Protocol gateway. This field specifies how the gateway handles search operations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sessionConfiguration
The session configuration for the MCP gateway. This configuration controls session behavior, including session timeout settings.
- Parameters:
sessionConfiguration- The session configuration for the MCP gateway. This configuration controls session behavior, including session timeout settings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionConfiguration
default MCPGatewayConfiguration.Builder sessionConfiguration(Consumer<SessionConfiguration.Builder> sessionConfiguration) The session configuration for the MCP gateway. This configuration controls session behavior, including session timeout settings.
This is a convenience method that creates an instance of theSessionConfiguration.Builderavoiding the need to create one manually viaSessionConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosessionConfiguration(SessionConfiguration).- Parameters:
sessionConfiguration- a consumer that will call methods onSessionConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
streamingConfiguration
MCPGatewayConfiguration.Builder streamingConfiguration(StreamingConfiguration streamingConfiguration) The streaming configuration for the MCP gateway. This configuration controls whether response streaming is enabled for the gateway.
- Parameters:
streamingConfiguration- The streaming configuration for the MCP gateway. This configuration controls whether response streaming is enabled for the gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
streamingConfiguration
default MCPGatewayConfiguration.Builder streamingConfiguration(Consumer<StreamingConfiguration.Builder> streamingConfiguration) The streaming configuration for the MCP gateway. This configuration controls whether response streaming is enabled for the gateway.
This is a convenience method that creates an instance of theStreamingConfiguration.Builderavoiding the need to create one manually viaStreamingConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostreamingConfiguration(StreamingConfiguration).- Parameters:
streamingConfiguration- a consumer that will call methods onStreamingConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-