Class HttpStageOptions.Builder
java.lang.Object
software.amazon.awscdk.services.apigatewayv2.HttpStageOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<HttpStageOptions>
- Enclosing interface:
HttpStageOptions
@Stability(Stable)
public static final class HttpStageOptions.Builder
extends Object
implements software.amazon.jsii.Builder<HttpStageOptions>
A builder for
HttpStageOptions-
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 ofHttpStageOptions.getStageName()throttle(ThrottleSettings throttle) Sets the value ofStageOptions.getThrottle()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
stageName
Sets the value ofHttpStageOptions.getStageName()- Parameters:
stageName- The name of the stage. SeeStageNameclass 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
@Stability(Stable) public HttpStageOptions.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<HttpStageOptions>- Returns:
- a new instance of
HttpStageOptions - Throws:
NullPointerException- if any required attribute was not provided
-