Class WebSocketStageProps.Builder
java.lang.Object
software.amazon.awscdk.services.apigatewayv2.WebSocketStageProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<WebSocketStageProps>
- Enclosing interface:
WebSocketStageProps
@Stability(Stable)
public static final class WebSocketStageProps.Builder
extends Object
implements software.amazon.jsii.Builder<WebSocketStageProps>
A builder for
WebSocketStageProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionautoDeploy(Boolean autoDeploy) Sets the value ofStageOptions.getAutoDeploy()build()Builds the configured instance.description(String description) Sets the value ofStageOptions.getDescription()domainMapping(DomainMappingOptions domainMapping) Sets the value ofStageOptions.getDomainMapping()Sets the value ofWebSocketStageProps.getStageName()throttle(ThrottleSettings throttle) Sets the value ofStageOptions.getThrottle()webSocketApi(IWebSocketApi webSocketApi) Sets the value ofWebSocketStageProps.getWebSocketApi()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
stageName
Sets the value ofWebSocketStageProps.getStageName()- Parameters:
stageName- The name of the stage. This parameter is required.- Returns:
this
-
webSocketApi
Sets the value ofWebSocketStageProps.getWebSocketApi()- Parameters:
webSocketApi- The WebSocket API to which this stage is associated. This parameter is required.- Returns:
this
-
autoDeploy
Sets the value ofStageOptions.getAutoDeploy()- Parameters:
autoDeploy- Whether updates to an API automatically trigger a new deployment.- Returns:
this
-
description
Sets the value ofStageOptions.getDescription()- Parameters:
description- The description for the API stage.- Returns:
this
-
domainMapping
@Stability(Stable) public WebSocketStageProps.Builder domainMapping(DomainMappingOptions domainMapping) Sets the value ofStageOptions.getDomainMapping()- Parameters:
domainMapping- The options for custom domain and api mapping.- Returns:
this
-
throttle
Sets the value ofStageOptions.getThrottle()- Parameters:
throttle- Throttle settings for the routes of this stage.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<WebSocketStageProps>- Returns:
- a new instance of
WebSocketStageProps - Throws:
NullPointerException- if any required attribute was not provided
-