Class CfnHttpApi.RouteSettingsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sam.CfnHttpApi.RouteSettingsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnHttpApi.RouteSettingsProperty>
- Enclosing interface:
- CfnHttpApi.RouteSettingsProperty
@Stability(Stable)
public static final class CfnHttpApi.RouteSettingsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnHttpApi.RouteSettingsProperty>
A builder for
CfnHttpApi.RouteSettingsProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.dataTraceEnabled
(Boolean dataTraceEnabled) Sets the value ofCfnHttpApi.RouteSettingsProperty.getDataTraceEnabled()
dataTraceEnabled
(IResolvable dataTraceEnabled) Sets the value ofCfnHttpApi.RouteSettingsProperty.getDataTraceEnabled()
detailedMetricsEnabled
(Boolean detailedMetricsEnabled) Sets the value ofCfnHttpApi.RouteSettingsProperty.getDetailedMetricsEnabled()
detailedMetricsEnabled
(IResolvable detailedMetricsEnabled) Sets the value ofCfnHttpApi.RouteSettingsProperty.getDetailedMetricsEnabled()
loggingLevel
(String loggingLevel) Sets the value ofCfnHttpApi.RouteSettingsProperty.getLoggingLevel()
throttlingBurstLimit
(Number throttlingBurstLimit) Sets the value ofCfnHttpApi.RouteSettingsProperty.getThrottlingBurstLimit()
throttlingRateLimit
(Number throttlingRateLimit) Sets the value ofCfnHttpApi.RouteSettingsProperty.getThrottlingRateLimit()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dataTraceEnabled
@Stability(Stable) public CfnHttpApi.RouteSettingsProperty.Builder dataTraceEnabled(Boolean dataTraceEnabled) Sets the value ofCfnHttpApi.RouteSettingsProperty.getDataTraceEnabled()
- Parameters:
dataTraceEnabled
-CfnHttpApi.RouteSettingsProperty.DataTraceEnabled
.- Returns:
this
-
dataTraceEnabled
@Stability(Stable) public CfnHttpApi.RouteSettingsProperty.Builder dataTraceEnabled(IResolvable dataTraceEnabled) Sets the value ofCfnHttpApi.RouteSettingsProperty.getDataTraceEnabled()
- Parameters:
dataTraceEnabled
-CfnHttpApi.RouteSettingsProperty.DataTraceEnabled
.- Returns:
this
-
detailedMetricsEnabled
@Stability(Stable) public CfnHttpApi.RouteSettingsProperty.Builder detailedMetricsEnabled(Boolean detailedMetricsEnabled) Sets the value ofCfnHttpApi.RouteSettingsProperty.getDetailedMetricsEnabled()
- Parameters:
detailedMetricsEnabled
-CfnHttpApi.RouteSettingsProperty.DetailedMetricsEnabled
.- Returns:
this
-
detailedMetricsEnabled
@Stability(Stable) public CfnHttpApi.RouteSettingsProperty.Builder detailedMetricsEnabled(IResolvable detailedMetricsEnabled) Sets the value ofCfnHttpApi.RouteSettingsProperty.getDetailedMetricsEnabled()
- Parameters:
detailedMetricsEnabled
-CfnHttpApi.RouteSettingsProperty.DetailedMetricsEnabled
.- Returns:
this
-
loggingLevel
@Stability(Stable) public CfnHttpApi.RouteSettingsProperty.Builder loggingLevel(String loggingLevel) Sets the value ofCfnHttpApi.RouteSettingsProperty.getLoggingLevel()
- Parameters:
loggingLevel
-CfnHttpApi.RouteSettingsProperty.LoggingLevel
.- Returns:
this
-
throttlingBurstLimit
@Stability(Stable) public CfnHttpApi.RouteSettingsProperty.Builder throttlingBurstLimit(Number throttlingBurstLimit) Sets the value ofCfnHttpApi.RouteSettingsProperty.getThrottlingBurstLimit()
- Parameters:
throttlingBurstLimit
-CfnHttpApi.RouteSettingsProperty.ThrottlingBurstLimit
.- Returns:
this
-
throttlingRateLimit
@Stability(Stable) public CfnHttpApi.RouteSettingsProperty.Builder throttlingRateLimit(Number throttlingRateLimit) Sets the value ofCfnHttpApi.RouteSettingsProperty.getThrottlingRateLimit()
- Parameters:
throttlingRateLimit
-CfnHttpApi.RouteSettingsProperty.ThrottlingRateLimit
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnHttpApi.RouteSettingsProperty>
- Returns:
- a new instance of
CfnHttpApi.RouteSettingsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-