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