Class CfnStage.RouteSettingsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.apigatewayv2.CfnStage.RouteSettingsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStage.RouteSettingsProperty>
- Enclosing interface:
CfnStage.RouteSettingsProperty
@Stability(Stable)
public static final class CfnStage.RouteSettingsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnStage.RouteSettingsProperty>
A builder for
CfnStage.RouteSettingsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dataTraceEnabled(Boolean dataTraceEnabled) Sets the value ofCfnStage.RouteSettingsProperty.getDataTraceEnabled()dataTraceEnabled(IResolvable dataTraceEnabled) Sets the value ofCfnStage.RouteSettingsProperty.getDataTraceEnabled()detailedMetricsEnabled(Boolean detailedMetricsEnabled) Sets the value ofCfnStage.RouteSettingsProperty.getDetailedMetricsEnabled()detailedMetricsEnabled(IResolvable detailedMetricsEnabled) Sets the value ofCfnStage.RouteSettingsProperty.getDetailedMetricsEnabled()loggingLevel(String loggingLevel) Sets the value ofCfnStage.RouteSettingsProperty.getLoggingLevel()throttlingBurstLimit(Number throttlingBurstLimit) Sets the value ofCfnStage.RouteSettingsProperty.getThrottlingBurstLimit()throttlingRateLimit(Number throttlingRateLimit) Sets the value ofCfnStage.RouteSettingsProperty.getThrottlingRateLimit()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dataTraceEnabled
@Stability(Stable) public CfnStage.RouteSettingsProperty.Builder dataTraceEnabled(Boolean dataTraceEnabled) Sets the value ofCfnStage.RouteSettingsProperty.getDataTraceEnabled()- Parameters:
dataTraceEnabled- Specifies whether (true) or not (false) data trace logging is enabled for this route. This property affects the log entries pushed to Amazon CloudWatch Logs. Supported only for WebSocket APIs.- Returns:
this
-
dataTraceEnabled
@Stability(Stable) public CfnStage.RouteSettingsProperty.Builder dataTraceEnabled(IResolvable dataTraceEnabled) Sets the value ofCfnStage.RouteSettingsProperty.getDataTraceEnabled()- Parameters:
dataTraceEnabled- Specifies whether (true) or not (false) data trace logging is enabled for this route. This property affects the log entries pushed to Amazon CloudWatch Logs. Supported only for WebSocket APIs.- Returns:
this
-
detailedMetricsEnabled
@Stability(Stable) public CfnStage.RouteSettingsProperty.Builder detailedMetricsEnabled(Boolean detailedMetricsEnabled) Sets the value ofCfnStage.RouteSettingsProperty.getDetailedMetricsEnabled()- Parameters:
detailedMetricsEnabled- Specifies whether detailed metrics are enabled.- Returns:
this
-
detailedMetricsEnabled
@Stability(Stable) public CfnStage.RouteSettingsProperty.Builder detailedMetricsEnabled(IResolvable detailedMetricsEnabled) Sets the value ofCfnStage.RouteSettingsProperty.getDetailedMetricsEnabled()- Parameters:
detailedMetricsEnabled- Specifies whether detailed metrics are enabled.- Returns:
this
-
loggingLevel
Sets the value ofCfnStage.RouteSettingsProperty.getLoggingLevel()- Parameters:
loggingLevel- Specifies the logging level for this route:INFO,ERROR, orOFF. This property affects the log entries pushed to Amazon CloudWatch Logs. Supported only for WebSocket APIs.- Returns:
this
-
throttlingBurstLimit
@Stability(Stable) public CfnStage.RouteSettingsProperty.Builder throttlingBurstLimit(Number throttlingBurstLimit) Sets the value ofCfnStage.RouteSettingsProperty.getThrottlingBurstLimit()- Parameters:
throttlingBurstLimit- Specifies the throttling burst limit.- Returns:
this
-
throttlingRateLimit
@Stability(Stable) public CfnStage.RouteSettingsProperty.Builder throttlingRateLimit(Number throttlingRateLimit) Sets the value ofCfnStage.RouteSettingsProperty.getThrottlingRateLimit()- Parameters:
throttlingRateLimit- Specifies the throttling rate limit.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnStage.RouteSettingsProperty>- Returns:
- a new instance of
CfnStage.RouteSettingsProperty - Throws:
NullPointerException- if any required attribute was not provided
-