public static final class WebSocketRouteProps.Builder
extends java.lang.Object
WebSocketRouteProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
WebSocketRouteProps.Builder |
apiKeyRequired(java.lang.Boolean apiKeyRequired)
Sets the value of
WebSocketRouteProps.getApiKeyRequired() |
WebSocketRouteProps.Builder |
authorizer(IWebSocketRouteAuthorizer authorizer)
Sets the value of
WebSocketRouteOptions.getAuthorizer() |
WebSocketRouteProps |
build()
Builds the configured instance.
|
WebSocketRouteProps.Builder |
integration(WebSocketRouteIntegration integration)
Sets the value of
WebSocketRouteOptions.getIntegration() |
WebSocketRouteProps.Builder |
routeKey(java.lang.String routeKey)
Sets the value of
WebSocketRouteProps.getRouteKey() |
WebSocketRouteProps.Builder |
webSocketApi(IWebSocketApi webSocketApi)
Sets the value of
WebSocketRouteProps.getWebSocketApi() |
public WebSocketRouteProps.Builder routeKey(java.lang.String routeKey)
WebSocketRouteProps.getRouteKey()
routeKey
- The key to this route. This parameter is required.this
public WebSocketRouteProps.Builder webSocketApi(IWebSocketApi webSocketApi)
WebSocketRouteProps.getWebSocketApi()
webSocketApi
- The API the route is associated with. This parameter is required.this
public WebSocketRouteProps.Builder apiKeyRequired(java.lang.Boolean apiKeyRequired)
WebSocketRouteProps.getApiKeyRequired()
apiKeyRequired
- Whether the route requires an API Key to be provided.this
public WebSocketRouteProps.Builder integration(WebSocketRouteIntegration integration)
WebSocketRouteOptions.getIntegration()
integration
- The integration to be configured on this route. This parameter is required.this
public WebSocketRouteProps.Builder authorizer(IWebSocketRouteAuthorizer authorizer)
WebSocketRouteOptions.getAuthorizer()
authorizer
- The authorize to this route.
You can only set authorizer to a $connect route.this
public WebSocketRouteProps build()
WebSocketRouteProps
java.lang.NullPointerException
- if any required attribute was not provided