Class WebSocketRouteAuthorizerConfig.Builder
java.lang.Object
software.amazon.awscdk.services.apigatewayv2.WebSocketRouteAuthorizerConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<WebSocketRouteAuthorizerConfig>
- Enclosing interface:
WebSocketRouteAuthorizerConfig
@Stability(Experimental)
public static final class WebSocketRouteAuthorizerConfig.Builder
extends Object
implements software.amazon.jsii.Builder<WebSocketRouteAuthorizerConfig>
A builder for
WebSocketRouteAuthorizerConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionauthorizationType
(String authorizationType) Sets the value ofWebSocketRouteAuthorizerConfig.getAuthorizationType()
authorizerId
(String authorizerId) Sets the value ofWebSocketRouteAuthorizerConfig.getAuthorizerId()
build()
Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authorizationType
@Stability(Experimental) public WebSocketRouteAuthorizerConfig.Builder authorizationType(String authorizationType) Sets the value ofWebSocketRouteAuthorizerConfig.getAuthorizationType()
- Parameters:
authorizationType
- The type of authorization. This parameter is required. Possible values are:- CUSTOM - Lambda Authorizer
- NONE - No Authorization
- Returns:
this
-
authorizerId
@Stability(Experimental) public WebSocketRouteAuthorizerConfig.Builder authorizerId(String authorizerId) Sets the value ofWebSocketRouteAuthorizerConfig.getAuthorizerId()
- Parameters:
authorizerId
- The authorizer id.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<WebSocketRouteAuthorizerConfig>
- Returns:
- a new instance of
WebSocketRouteAuthorizerConfig
- Throws:
NullPointerException
- if any required attribute was not provided
-