Class HttpUserPoolAuthorizerProps.Builder
java.lang.Object
software.amazon.awscdk.services.apigatewayv2.authorizers.HttpUserPoolAuthorizerProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<HttpUserPoolAuthorizerProps>
- Enclosing interface:
- HttpUserPoolAuthorizerProps
@Stability(Experimental)
public static final class HttpUserPoolAuthorizerProps.Builder
extends Object
implements software.amazon.jsii.Builder<HttpUserPoolAuthorizerProps>
A builder for
HttpUserPoolAuthorizerProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionauthorizerName
(String authorizerName) Sets the value ofHttpUserPoolAuthorizerProps.getAuthorizerName()
build()
Builds the configured instance.identitySource
(List<String> identitySource) Sets the value ofHttpUserPoolAuthorizerProps.getIdentitySource()
userPoolClients
(List<? extends IUserPoolClient> userPoolClients) Sets the value ofHttpUserPoolAuthorizerProps.getUserPoolClients()
userPoolRegion
(String userPoolRegion) Sets the value ofHttpUserPoolAuthorizerProps.getUserPoolRegion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authorizerName
@Stability(Experimental) public HttpUserPoolAuthorizerProps.Builder authorizerName(String authorizerName) Sets the value ofHttpUserPoolAuthorizerProps.getAuthorizerName()
- Parameters:
authorizerName
- Friendly name of the authorizer.- Returns:
this
-
identitySource
@Stability(Experimental) public HttpUserPoolAuthorizerProps.Builder identitySource(List<String> identitySource) Sets the value ofHttpUserPoolAuthorizerProps.getIdentitySource()
- Parameters:
identitySource
- The identity source for which authorization is requested.- Returns:
this
-
userPoolClients
@Stability(Experimental) public HttpUserPoolAuthorizerProps.Builder userPoolClients(List<? extends IUserPoolClient> userPoolClients) Sets the value ofHttpUserPoolAuthorizerProps.getUserPoolClients()
- Parameters:
userPoolClients
- The user pool clients that should be used to authorize requests with the user pool.- Returns:
this
-
userPoolRegion
@Stability(Experimental) public HttpUserPoolAuthorizerProps.Builder userPoolRegion(String userPoolRegion) Sets the value ofHttpUserPoolAuthorizerProps.getUserPoolRegion()
- Parameters:
userPoolRegion
- The AWS region in which the user pool is present.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<HttpUserPoolAuthorizerProps>
- Returns:
- a new instance of
HttpUserPoolAuthorizerProps
- Throws:
NullPointerException
- if any required attribute was not provided
-