Class GatewayTargetSmithyProps.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.GatewayTargetSmithyProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GatewayTargetSmithyProps>
- Enclosing interface:
GatewayTargetSmithyProps
@Stability(Stable)
public static final class GatewayTargetSmithyProps.Builder
extends Object
implements software.amazon.jsii.Builder<GatewayTargetSmithyProps>
A builder for
GatewayTargetSmithyProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.credentialProviderConfigurations(List<? extends ICredentialProviderConfig> credentialProviderConfigurations) Sets the value ofGatewayTargetSmithyProps.getCredentialProviderConfigurations()description(String description) Sets the value ofGatewayTargetCommonProps.getDescription()Sets the value ofGatewayTargetSmithyProps.getGateway()gatewayTargetName(String gatewayTargetName) Sets the value ofGatewayTargetCommonProps.getGatewayTargetName()smithyModel(ApiSchema smithyModel) Sets the value ofGatewayTargetSmithyProps.getSmithyModel()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
gateway
Sets the value ofGatewayTargetSmithyProps.getGateway()- Parameters:
gateway- The gateway this target belongs to. This parameter is required.- Returns:
this
-
smithyModel
Sets the value ofGatewayTargetSmithyProps.getSmithyModel()- Parameters:
smithyModel- The Smithy model defining the API. This parameter is required.- Returns:
this
-
credentialProviderConfigurations
@Stability(Stable) public GatewayTargetSmithyProps.Builder credentialProviderConfigurations(List<? extends ICredentialProviderConfig> credentialProviderConfigurations) Sets the value ofGatewayTargetSmithyProps.getCredentialProviderConfigurations()- Parameters:
credentialProviderConfigurations- Credential providers for authentication Smithy targets only support IAM role 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
@Stability(Stable) public GatewayTargetSmithyProps.Builder gatewayTargetName(String 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<GatewayTargetSmithyProps>- Returns:
- a new instance of
GatewayTargetSmithyProps - Throws:
NullPointerException- if any required attribute was not provided
-