Class HttpAuthorizerAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.apigatewayv2.HttpAuthorizerAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<HttpAuthorizerAttributes>
- Enclosing interface:
HttpAuthorizerAttributes
@Stability(Stable)
public static final class HttpAuthorizerAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<HttpAuthorizerAttributes>
A builder for
HttpAuthorizerAttributes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionauthorizerId
(String authorizerId) Sets the value ofHttpAuthorizerAttributes.getAuthorizerId()
authorizerType
(String authorizerType) Sets the value ofHttpAuthorizerAttributes.getAuthorizerType()
build()
Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authorizerId
Sets the value ofHttpAuthorizerAttributes.getAuthorizerId()
- Parameters:
authorizerId
- Id of the Authorizer. This parameter is required.- Returns:
this
-
authorizerType
Sets the value ofHttpAuthorizerAttributes.getAuthorizerType()
- Parameters:
authorizerType
- Type of authorizer. This parameter is required. Possible values are:- JWT - JSON Web Token Authorizer
- CUSTOM - Lambda Authorizer
- NONE - No Authorization
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<HttpAuthorizerAttributes>
- Returns:
- a new instance of
HttpAuthorizerAttributes
- Throws:
NullPointerException
- if any required attribute was not provided
-