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(Experimental)
public static final class StageOptions.Builder
extends Object
implements software.amazon.jsii.Builder<StageOptions>
A builder for
StageOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionautoDeploy
(Boolean autoDeploy) Sets the value ofStageOptions.getAutoDeploy()
build()
Builds the configured instance.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
-
domainMapping
@Stability(Experimental) public StageOptions.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:
build
in interfacesoftware.amazon.jsii.Builder<StageOptions>
- Returns:
- a new instance of
StageOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-