Class WebSocketApiAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.apigatewayv2.WebSocketApiAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<WebSocketApiAttributes>
- Enclosing interface:
WebSocketApiAttributes
@Stability(Stable)
public static final class WebSocketApiAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<WebSocketApiAttributes>
A builder for
WebSocketApiAttributes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapiEndpoint
(String apiEndpoint) Sets the value ofWebSocketApiAttributes.getApiEndpoint()
build()
Builds the configured instance.webSocketId
(String webSocketId) Sets the value ofWebSocketApiAttributes.getWebSocketId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
webSocketId
Sets the value ofWebSocketApiAttributes.getWebSocketId()
- Parameters:
webSocketId
- The identifier of the WebSocketApi. This parameter is required.- Returns:
this
-
apiEndpoint
Sets the value ofWebSocketApiAttributes.getApiEndpoint()
- Parameters:
apiEndpoint
- The endpoint URL of the WebSocketApi.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<WebSocketApiAttributes>
- Returns:
- a new instance of
WebSocketApiAttributes
- Throws:
NullPointerException
- if any required attribute was not provided
-