Class HttpStageProps.Builder
java.lang.Object
software.amazon.awscdk.services.apigatewayv2.HttpStageProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<HttpStageProps>
- Enclosing interface:
HttpStageProps
@Stability(Stable)
public static final class HttpStageProps.Builder
extends Object
implements software.amazon.jsii.Builder<HttpStageProps>
A builder for
HttpStageProps
-
Constructor Summary
-
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 ofHttpStageProps.getHttpApi()
Sets the value ofHttpStageOptions.getStageName()
throttle
(ThrottleSettings throttle) Sets the value ofStageOptions.getThrottle()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
httpApi
Sets the value ofHttpStageProps.getHttpApi()
- Parameters:
httpApi
- The HTTP API to which this stage is associated. This parameter is required.- Returns:
this
-
stageName
Sets the value ofHttpStageOptions.getStageName()
- Parameters:
stageName
- The name of the stage. SeeStageName
class for more details.- 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
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:
build
in interfacesoftware.amazon.jsii.Builder<HttpStageProps>
- Returns:
- a new instance of
HttpStageProps
- Throws:
NullPointerException
- if any required attribute was not provided
-