Class GatewayTargetProps.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.GatewayTargetProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GatewayTargetProps>
- Enclosing interface:
GatewayTargetProps
@Stability(Stable)
public static final class GatewayTargetProps.Builder
extends Object
implements software.amazon.jsii.Builder<GatewayTargetProps>
A builder for
GatewayTargetProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.credentialProviderConfigurations(List<? extends ICredentialProviderConfig> credentialProviderConfigurations) Sets the value ofGatewayTargetProps.getCredentialProviderConfigurations()description(String description) Sets the value ofGatewayTargetCommonProps.getDescription()Sets the value ofGatewayTargetProps.getGateway()gatewayTargetName(String gatewayTargetName) Sets the value ofGatewayTargetCommonProps.getGatewayTargetName()targetConfiguration(ITargetConfiguration targetConfiguration) Sets the value ofGatewayTargetProps.getTargetConfiguration()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
gateway
Sets the value ofGatewayTargetProps.getGateway()- Parameters:
gateway- The gateway this target belongs to. This parameter is required.- Returns:
this
-
targetConfiguration
@Stability(Stable) public GatewayTargetProps.Builder targetConfiguration(ITargetConfiguration targetConfiguration) Sets the value ofGatewayTargetProps.getTargetConfiguration()- Parameters:
targetConfiguration- The target configuration (Lambda, OpenAPI, or Smithy) Use one of the configuration helper classes: - LambdaTargetConfiguration.create() - OpenApiTargetConfiguration.create() - SmithyTargetConfiguration.create(). This parameter is required.- Returns:
this
-
credentialProviderConfigurations
@Stability(Stable) public GatewayTargetProps.Builder credentialProviderConfigurations(List<? extends ICredentialProviderConfig> credentialProviderConfigurations) Sets the value ofGatewayTargetProps.getCredentialProviderConfigurations()- Parameters:
credentialProviderConfigurations- Credential providers for authentication.- Returns:
this
-
description
Sets the value ofGatewayTargetCommonProps.getDescription()- Parameters:
description- Optional description for the gateway target The description can have up to 200 characters.- Returns:
this
-
gatewayTargetName
Sets the value ofGatewayTargetCommonProps.getGatewayTargetName()- Parameters:
gatewayTargetName- The name of the gateway target The name must be unique within the gateway Pattern: ^([0-9a-zA-Z][-]?){1,100}$.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<GatewayTargetProps>- Returns:
- a new instance of
GatewayTargetProps - Throws:
NullPointerException- if any required attribute was not provided
-