Class WebSocketIntegrationProps.Builder
java.lang.Object
software.amazon.awscdk.services.apigatewayv2.WebSocketIntegrationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<WebSocketIntegrationProps>
- Enclosing interface:
- WebSocketIntegrationProps
@Stability(Experimental)
public static final class WebSocketIntegrationProps.Builder
extends Object
implements software.amazon.jsii.Builder<WebSocketIntegrationProps>
A builder for
WebSocketIntegrationProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.integrationType(WebSocketIntegrationType integrationType) Sets the value ofWebSocketIntegrationProps.getIntegrationType()integrationUri(String integrationUri) Sets the value ofWebSocketIntegrationProps.getIntegrationUri()webSocketApi(IWebSocketApi webSocketApi) Sets the value ofWebSocketIntegrationProps.getWebSocketApi()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
integrationType
@Stability(Experimental) public WebSocketIntegrationProps.Builder integrationType(WebSocketIntegrationType integrationType) Sets the value ofWebSocketIntegrationProps.getIntegrationType()- Parameters:
integrationType- Integration type. This parameter is required.- Returns:
this
-
integrationUri
@Stability(Experimental) public WebSocketIntegrationProps.Builder integrationUri(String integrationUri) Sets the value ofWebSocketIntegrationProps.getIntegrationUri()- Parameters:
integrationUri- Integration URI. This parameter is required.- Returns:
this
-
webSocketApi
@Stability(Experimental) public WebSocketIntegrationProps.Builder webSocketApi(IWebSocketApi webSocketApi) Sets the value ofWebSocketIntegrationProps.getWebSocketApi()- Parameters:
webSocketApi- The WebSocket API to which this integration should be bound. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<WebSocketIntegrationProps>- Returns:
- a new instance of
WebSocketIntegrationProps - Throws:
NullPointerException- if any required attribute was not provided
-