Interface McpTargetConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<McpTargetConfiguration.Builder,,McpTargetConfiguration> SdkBuilder<McpTargetConfiguration.Builder,,McpTargetConfiguration> SdkPojo
- Enclosing class:
McpTargetConfiguration
-
Method Summary
Modifier and TypeMethodDescriptiondefault McpTargetConfiguration.BuilderThe Lambda configuration for the Model Context Protocol target.lambda(McpLambdaTargetConfiguration lambda) The Lambda configuration for the Model Context Protocol target.default McpTargetConfiguration.BuildermcpServer(Consumer<McpServerTargetConfiguration.Builder> mcpServer) The MCP server specified as the gateway target.mcpServer(McpServerTargetConfiguration mcpServer) The MCP server specified as the gateway target.default McpTargetConfiguration.BuilderopenApiSchema(Consumer<ApiSchemaConfiguration.Builder> openApiSchema) The OpenAPI schema for the Model Context Protocol target.openApiSchema(ApiSchemaConfiguration openApiSchema) The OpenAPI schema for the Model Context Protocol target.default McpTargetConfiguration.BuildersmithyModel(Consumer<ApiSchemaConfiguration.Builder> smithyModel) The Smithy model for the Model Context Protocol target.smithyModel(ApiSchemaConfiguration smithyModel) The Smithy model for the Model Context Protocol target.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
-
openApiSchema
The OpenAPI schema for the Model Context Protocol target. This schema defines the API structure of the target.
- Parameters:
openApiSchema- The OpenAPI schema for the Model Context Protocol target. This schema defines the API structure of the target.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
openApiSchema
default McpTargetConfiguration.Builder openApiSchema(Consumer<ApiSchemaConfiguration.Builder> openApiSchema) The OpenAPI schema for the Model Context Protocol target. This schema defines the API structure of the target.
This is a convenience method that creates an instance of theApiSchemaConfiguration.Builderavoiding the need to create one manually viaApiSchemaConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toopenApiSchema(ApiSchemaConfiguration).- Parameters:
openApiSchema- a consumer that will call methods onApiSchemaConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
smithyModel
The Smithy model for the Model Context Protocol target. This model defines the API structure of the target using the Smithy specification.
- Parameters:
smithyModel- The Smithy model for the Model Context Protocol target. This model defines the API structure of the target using the Smithy specification.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
smithyModel
default McpTargetConfiguration.Builder smithyModel(Consumer<ApiSchemaConfiguration.Builder> smithyModel) The Smithy model for the Model Context Protocol target. This model defines the API structure of the target using the Smithy specification.
This is a convenience method that creates an instance of theApiSchemaConfiguration.Builderavoiding the need to create one manually viaApiSchemaConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosmithyModel(ApiSchemaConfiguration).- Parameters:
smithyModel- a consumer that will call methods onApiSchemaConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lambda
The Lambda configuration for the Model Context Protocol target. This configuration defines how the gateway uses a Lambda function to communicate with the target.
- Parameters:
lambda- The Lambda configuration for the Model Context Protocol target. This configuration defines how the gateway uses a Lambda function to communicate with the target.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lambda
default McpTargetConfiguration.Builder lambda(Consumer<McpLambdaTargetConfiguration.Builder> lambda) The Lambda configuration for the Model Context Protocol target. This configuration defines how the gateway uses a Lambda function to communicate with the target.
This is a convenience method that creates an instance of theMcpLambdaTargetConfiguration.Builderavoiding the need to create one manually viaMcpLambdaTargetConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolambda(McpLambdaTargetConfiguration).- Parameters:
lambda- a consumer that will call methods onMcpLambdaTargetConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
mcpServer
The MCP server specified as the gateway target.
- Parameters:
mcpServer- The MCP server specified as the gateway target.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mcpServer
default McpTargetConfiguration.Builder mcpServer(Consumer<McpServerTargetConfiguration.Builder> mcpServer) The MCP server specified as the gateway target.
This is a convenience method that creates an instance of theMcpServerTargetConfiguration.Builderavoiding the need to create one manually viaMcpServerTargetConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomcpServer(McpServerTargetConfiguration).- Parameters:
mcpServer- a consumer that will call methods onMcpServerTargetConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-