Class WebSocketStageAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.apigatewayv2.WebSocketStageAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<WebSocketStageAttributes>
- Enclosing interface:
WebSocketStageAttributes
@Stability(Stable)
public static final class WebSocketStageAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<WebSocketStageAttributes>
A builder for
WebSocketStageAttributes-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapi(IWebSocketApi api) Sets the value ofWebSocketStageAttributes.getApi()build()Builds the configured instance.Sets the value ofStageAttributes.getStageName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
api
Sets the value ofWebSocketStageAttributes.getApi()- Parameters:
api- The API to which this stage is associated. This parameter is required.- Returns:
this
-
stageName
Sets the value ofStageAttributes.getStageName()- Parameters:
stageName- The name of the stage. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<WebSocketStageAttributes>- Returns:
- a new instance of
WebSocketStageAttributes - Throws:
NullPointerException- if any required attribute was not provided
-