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