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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessLogSettings
(IAccessLogSettings accessLogSettings) Sets the value ofStageOptions.getAccessLogSettings()
autoDeploy
(Boolean autoDeploy) Sets the value ofStageOptions.getAutoDeploy()
build()
Builds the configured instance.description
(String description) Sets the value ofStageOptions.getDescription()
detailedMetricsEnabled
(Boolean detailedMetricsEnabled) Sets the value ofStageOptions.getDetailedMetricsEnabled()
domainMapping
(DomainMappingOptions domainMapping) Sets the value ofStageOptions.getDomainMapping()
Sets the value ofHttpStageProps.getHttpApi()
Sets the value ofHttpStageOptions.getStageName()
stageVariables
(Map<String, String> stageVariables) Sets the value ofStageOptions.getStageVariables()
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
-
accessLogSettings
@Stability(Stable) public HttpStageProps.Builder accessLogSettings(IAccessLogSettings accessLogSettings) Sets the value ofStageOptions.getAccessLogSettings()
- Parameters:
accessLogSettings
- Settings for access logging.- 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
-
detailedMetricsEnabled
@Stability(Stable) public HttpStageProps.Builder detailedMetricsEnabled(Boolean detailedMetricsEnabled) Sets the value ofStageOptions.getDetailedMetricsEnabled()
- Parameters:
detailedMetricsEnabled
- Specifies whether detailed metrics are enabled.- Returns:
this
-
domainMapping
Sets the value ofStageOptions.getDomainMapping()
- Parameters:
domainMapping
- The options for custom domain and api mapping.- Returns:
this
-
stageVariables
Sets the value ofStageOptions.getStageVariables()
- Parameters:
stageVariables
- Stage variables for the stage. These are key-value pairs that you can define and use in your API routes. The allowed characters for variable names and the required pattern for variable values are specified here: https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-apigateway-stage.html#cfn-apigateway-stage-variables- 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
-