Class ApiGatewayToolOverride.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.ApiGatewayToolOverride.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ApiGatewayToolOverride>
- Enclosing interface:
ApiGatewayToolOverride
@Stability(Stable)
public static final class ApiGatewayToolOverride.Builder
extends Object
implements software.amazon.jsii.Builder<ApiGatewayToolOverride>
A builder for
ApiGatewayToolOverride-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofApiGatewayToolOverride.getDescription()method(ApiGatewayHttpMethod method) Sets the value ofApiGatewayToolOverride.getMethod()Sets the value ofApiGatewayToolOverride.getName()Sets the value ofApiGatewayToolOverride.getPath()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
method
Sets the value ofApiGatewayToolOverride.getMethod()- Parameters:
method- The HTTP method for this override Must be a single method (no wildcards). This parameter is required.- Returns:
this
-
name
Sets the value ofApiGatewayToolOverride.getName()- Parameters:
name- The custom tool name If not provided, the operationId from the OpenAPI definition will be used. This parameter is required.- Returns:
this
-
path
Sets the value ofApiGatewayToolOverride.getPath()- Parameters:
path- The explicit resource path (no wildcards) Must match an operation that exists in your API. This parameter is required.- Returns:
this
-
description
Sets the value ofApiGatewayToolOverride.getDescription()- Parameters:
description- Optional custom description for the tool.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ApiGatewayToolOverride>- Returns:
- a new instance of
ApiGatewayToolOverride - Throws:
NullPointerException- if any required attribute was not provided
-