Class AddLambdaTargetOptions.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.AddLambdaTargetOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AddLambdaTargetOptions>
- Enclosing interface:
AddLambdaTargetOptions
@Stability(Stable)
public static final class AddLambdaTargetOptions.Builder
extends Object
implements software.amazon.jsii.Builder<AddLambdaTargetOptions>
A builder for
AddLambdaTargetOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.credentialProviderConfigurations(List<? extends ICredentialProviderConfig> credentialProviderConfigurations) Sets the value ofAddLambdaTargetOptions.getCredentialProviderConfigurations()description(String description) Sets the value ofAddLambdaTargetOptions.getDescription()gatewayTargetName(String gatewayTargetName) Sets the value ofAddLambdaTargetOptions.getGatewayTargetName()lambdaFunction(IFunction lambdaFunction) Sets the value ofAddLambdaTargetOptions.getLambdaFunction()toolSchema(ToolSchema toolSchema) Sets the value ofAddLambdaTargetOptions.getToolSchema()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
lambdaFunction
Sets the value ofAddLambdaTargetOptions.getLambdaFunction()- Parameters:
lambdaFunction- The Lambda function to associate with this target. This parameter is required.- Returns:
this
-
toolSchema
Sets the value ofAddLambdaTargetOptions.getToolSchema()- Parameters:
toolSchema- The tool schema defining the available tools. This parameter is required.- Returns:
this
-
credentialProviderConfigurations
@Stability(Stable) public AddLambdaTargetOptions.Builder credentialProviderConfigurations(List<? extends ICredentialProviderConfig> credentialProviderConfigurations) Sets the value ofAddLambdaTargetOptions.getCredentialProviderConfigurations()- Parameters:
credentialProviderConfigurations- Credential providers for authentication.- Returns:
this
-
description
Sets the value ofAddLambdaTargetOptions.getDescription()- Parameters:
description- Optional description for the gateway target.- Returns:
this
-
gatewayTargetName
@Stability(Stable) public AddLambdaTargetOptions.Builder gatewayTargetName(String gatewayTargetName) Sets the value ofAddLambdaTargetOptions.getGatewayTargetName()- Parameters:
gatewayTargetName- The name of the gateway target Valid characters are a-z, A-Z, 0-9, _ (underscore) and - (hyphen).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AddLambdaTargetOptions>- Returns:
- a new instance of
AddLambdaTargetOptions - Throws:
NullPointerException- if any required attribute was not provided
-