Interface McpTargetConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<McpTargetConfiguration.Builder,
,McpTargetConfiguration> SdkBuilder<McpTargetConfiguration.Builder,
,McpTargetConfiguration> SdkPojo
- Enclosing class:
McpTargetConfiguration
-
Method Summary
Modifier and TypeMethodDescriptiondefault McpTargetConfiguration.Builder
The Lambda configuration for the Model Context Protocol target.lambda
(McpLambdaTargetConfiguration lambda) The Lambda configuration for the Model Context Protocol target.default McpTargetConfiguration.Builder
openApiSchema
(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.Builder
smithyModel
(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
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods 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.Builder
avoiding the need to create one manually viaApiSchemaConfiguration.builder()
.When the
Consumer
completes,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.Builder
avoiding the need to create one manually viaApiSchemaConfiguration.builder()
.When the
Consumer
completes,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.Builder
avoiding the need to create one manually viaMcpLambdaTargetConfiguration.builder()
.When the
Consumer
completes,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:
-