Class WebSocketRouteIntegrationBindOptions.Builder
java.lang.Object
software.amazon.awscdk.services.apigatewayv2.WebSocketRouteIntegrationBindOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<WebSocketRouteIntegrationBindOptions>
- Enclosing interface:
WebSocketRouteIntegrationBindOptions
@Stability(Experimental)
public static final class WebSocketRouteIntegrationBindOptions.Builder
extends Object
implements software.amazon.jsii.Builder<WebSocketRouteIntegrationBindOptions>
A builder for
WebSocketRouteIntegrationBindOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.route
(IWebSocketRoute route) Sets the value ofWebSocketRouteIntegrationBindOptions.getRoute()
Sets the value ofWebSocketRouteIntegrationBindOptions.getScope()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
route
@Stability(Experimental) public WebSocketRouteIntegrationBindOptions.Builder route(IWebSocketRoute route) Sets the value ofWebSocketRouteIntegrationBindOptions.getRoute()
- Parameters:
route
- The route to which this is being bound. This parameter is required.- Returns:
this
-
scope
Sets the value ofWebSocketRouteIntegrationBindOptions.getScope()
- Parameters:
scope
- The current scope in which the bind is occurring. This parameter is required. If theWebSocketRouteIntegration
being bound creates additional constructs, this will be used as their parent scope.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<WebSocketRouteIntegrationBindOptions>
- Returns:
- a new instance of
WebSocketRouteIntegrationBindOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-