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(Stable)
public static final class WebSocketRouteAuthorizerConfig.Builder
extends Object
implements software.amazon.jsii.Builder<WebSocketRouteAuthorizerConfig>
A builder for
WebSocketRouteAuthorizerConfig-
Constructor Summary
Constructors -
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(Stable) 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
Sets the value ofWebSocketRouteAuthorizerConfig.getAuthorizerId()- Parameters:
authorizerId- The authorizer id.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<WebSocketRouteAuthorizerConfig>- Returns:
- a new instance of
WebSocketRouteAuthorizerConfig - Throws:
NullPointerException- if any required attribute was not provided
-