Class CfnGatewayTarget.McpTargetConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.CfnGatewayTarget.McpTargetConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGatewayTarget.McpTargetConfigurationProperty>
- Enclosing interface:
CfnGatewayTarget.McpTargetConfigurationProperty
@Stability(Stable)
public static final class CfnGatewayTarget.McpTargetConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGatewayTarget.McpTargetConfigurationProperty>
A builder for
CfnGatewayTarget.McpTargetConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.lambda(IResolvable lambda) Sets the value ofCfnGatewayTarget.McpTargetConfigurationProperty.getLambda()Sets the value ofCfnGatewayTarget.McpTargetConfigurationProperty.getLambda()mcpServer(IResolvable mcpServer) Sets the value ofCfnGatewayTarget.McpTargetConfigurationProperty.getMcpServer()Sets the value ofCfnGatewayTarget.McpTargetConfigurationProperty.getMcpServer()openApiSchema(IResolvable openApiSchema) Sets the value ofCfnGatewayTarget.McpTargetConfigurationProperty.getOpenApiSchema()openApiSchema(CfnGatewayTarget.ApiSchemaConfigurationProperty openApiSchema) Sets the value ofCfnGatewayTarget.McpTargetConfigurationProperty.getOpenApiSchema()smithyModel(IResolvable smithyModel) Sets the value ofCfnGatewayTarget.McpTargetConfigurationProperty.getSmithyModel()Sets the value ofCfnGatewayTarget.McpTargetConfigurationProperty.getSmithyModel()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
lambda
@Stability(Stable) public CfnGatewayTarget.McpTargetConfigurationProperty.Builder lambda(IResolvable lambda) Sets the value ofCfnGatewayTarget.McpTargetConfigurationProperty.getLambda()- Parameters:
lambda- The Lambda MCP configuration for the gateway target.- Returns:
this
-
lambda
@Stability(Stable) public CfnGatewayTarget.McpTargetConfigurationProperty.Builder lambda(CfnGatewayTarget.McpLambdaTargetConfigurationProperty lambda) Sets the value ofCfnGatewayTarget.McpTargetConfigurationProperty.getLambda()- Parameters:
lambda- The Lambda MCP configuration for the gateway target.- Returns:
this
-
mcpServer
@Stability(Stable) public CfnGatewayTarget.McpTargetConfigurationProperty.Builder mcpServer(IResolvable mcpServer) Sets the value ofCfnGatewayTarget.McpTargetConfigurationProperty.getMcpServer()- Parameters:
mcpServer- the value to be set.- Returns:
this
-
mcpServer
@Stability(Stable) public CfnGatewayTarget.McpTargetConfigurationProperty.Builder mcpServer(CfnGatewayTarget.McpServerTargetConfigurationProperty mcpServer) Sets the value ofCfnGatewayTarget.McpTargetConfigurationProperty.getMcpServer()- Parameters:
mcpServer- the value to be set.- Returns:
this
-
openApiSchema
@Stability(Stable) public CfnGatewayTarget.McpTargetConfigurationProperty.Builder openApiSchema(IResolvable openApiSchema) Sets the value ofCfnGatewayTarget.McpTargetConfigurationProperty.getOpenApiSchema()- Parameters:
openApiSchema- The OpenApi schema for the gateway target MCP configuration.- Returns:
this
-
openApiSchema
@Stability(Stable) public CfnGatewayTarget.McpTargetConfigurationProperty.Builder openApiSchema(CfnGatewayTarget.ApiSchemaConfigurationProperty openApiSchema) Sets the value ofCfnGatewayTarget.McpTargetConfigurationProperty.getOpenApiSchema()- Parameters:
openApiSchema- The OpenApi schema for the gateway target MCP configuration.- Returns:
this
-
smithyModel
@Stability(Stable) public CfnGatewayTarget.McpTargetConfigurationProperty.Builder smithyModel(IResolvable smithyModel) Sets the value ofCfnGatewayTarget.McpTargetConfigurationProperty.getSmithyModel()- Parameters:
smithyModel- The target configuration for the Smithy model target.- Returns:
this
-
smithyModel
@Stability(Stable) public CfnGatewayTarget.McpTargetConfigurationProperty.Builder smithyModel(CfnGatewayTarget.ApiSchemaConfigurationProperty smithyModel) Sets the value ofCfnGatewayTarget.McpTargetConfigurationProperty.getSmithyModel()- Parameters:
smithyModel- The target configuration for the Smithy model target.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnGatewayTarget.McpTargetConfigurationProperty>- Returns:
- a new instance of
CfnGatewayTarget.McpTargetConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-