Class GatewayOAuth2IdentityBinding.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.GatewayOAuth2IdentityBinding.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GatewayOAuth2IdentityBinding>
- Enclosing interface:
GatewayOAuth2IdentityBinding
@Stability(Stable)
public static final class GatewayOAuth2IdentityBinding.Builder
extends Object
implements software.amazon.jsii.Builder<GatewayOAuth2IdentityBinding>
A builder for
GatewayOAuth2IdentityBinding-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.customParameters(Map<String, String> customParameters) Sets the value ofGatewayOAuth2IdentityBinding.getCustomParameters()providerArn(String providerArn) Sets the value ofGatewayOAuth2IdentityBinding.getProviderArn()Sets the value ofGatewayOAuth2IdentityBinding.getScopes()Sets the value ofGatewayOAuth2IdentityBinding.getSecretArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
providerArn
Sets the value ofGatewayOAuth2IdentityBinding.getProviderArn()- Parameters:
providerArn- OAuth2 credential provider ARN. This parameter is required.- Returns:
this
-
scopes
Sets the value ofGatewayOAuth2IdentityBinding.getScopes()- Parameters:
scopes- OAuth scopes to request when invoking through the gateway. This parameter is required.- Returns:
this
-
secretArn
Sets the value ofGatewayOAuth2IdentityBinding.getSecretArn()- Parameters:
secretArn- Secrets Manager secret ARN for OAuth2 client credentials. This parameter is required.- Returns:
this
-
customParameters
@Stability(Stable) public GatewayOAuth2IdentityBinding.Builder customParameters(Map<String, String> customParameters) Sets the value ofGatewayOAuth2IdentityBinding.getCustomParameters()- Parameters:
customParameters- Optional custom parameters for the OAuth flow.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<GatewayOAuth2IdentityBinding>- Returns:
- a new instance of
GatewayOAuth2IdentityBinding - Throws:
NullPointerException- if any required attribute was not provided
-