Class WebSocketRouteProps.Builder
java.lang.Object
software.amazon.awscdk.services.apigatewayv2.WebSocketRouteProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<WebSocketRouteProps>
- Enclosing interface:
- WebSocketRouteProps
@Stability(Experimental)
public static final class WebSocketRouteProps.Builder
extends Object
implements software.amazon.jsii.Builder<WebSocketRouteProps>
A builder for
WebSocketRouteProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapiKeyRequired(Boolean apiKeyRequired) Sets the value ofWebSocketRouteProps.getApiKeyRequired()authorizer(IWebSocketRouteAuthorizer authorizer) Sets the value ofWebSocketRouteOptions.getAuthorizer()build()Builds the configured instance.integration(WebSocketRouteIntegration integration) Sets the value ofWebSocketRouteOptions.getIntegration()Sets the value ofWebSocketRouteProps.getRouteKey()webSocketApi(IWebSocketApi webSocketApi) Sets the value ofWebSocketRouteProps.getWebSocketApi()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
routeKey
Sets the value ofWebSocketRouteProps.getRouteKey()- Parameters:
routeKey- The key to this route. This parameter is required.- Returns:
this
-
webSocketApi
@Stability(Experimental) public WebSocketRouteProps.Builder webSocketApi(IWebSocketApi webSocketApi) Sets the value ofWebSocketRouteProps.getWebSocketApi()- Parameters:
webSocketApi- The API the route is associated with. This parameter is required.- Returns:
this
-
apiKeyRequired
Sets the value ofWebSocketRouteProps.getApiKeyRequired()- Parameters:
apiKeyRequired- Whether the route requires an API Key to be provided.- Returns:
this
-
integration
@Stability(Experimental) public WebSocketRouteProps.Builder integration(WebSocketRouteIntegration integration) Sets the value ofWebSocketRouteOptions.getIntegration()- Parameters:
integration- The integration to be configured on this route. This parameter is required.- Returns:
this
-
authorizer
@Stability(Experimental) public WebSocketRouteProps.Builder authorizer(IWebSocketRouteAuthorizer authorizer) Sets the value ofWebSocketRouteOptions.getAuthorizer()- Parameters:
authorizer- The authorize to this route. You can only set authorizer to a $connect route.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<WebSocketRouteProps>- Returns:
- a new instance of
WebSocketRouteProps - Throws:
NullPointerException- if any required attribute was not provided
-