Class CfnApiGatewayManagedOverrides.RouteSettingsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.apigatewayv2.CfnApiGatewayManagedOverrides.RouteSettingsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApiGatewayManagedOverrides.RouteSettingsProperty>
- Enclosing interface:
CfnApiGatewayManagedOverrides.RouteSettingsProperty
@Stability(Stable)
public static final class CfnApiGatewayManagedOverrides.RouteSettingsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApiGatewayManagedOverrides.RouteSettingsProperty>
A builder for
CfnApiGatewayManagedOverrides.RouteSettingsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.dataTraceEnabled
(Boolean dataTraceEnabled) dataTraceEnabled
(IResolvable dataTraceEnabled) detailedMetricsEnabled
(Boolean detailedMetricsEnabled) detailedMetricsEnabled
(IResolvable detailedMetricsEnabled) loggingLevel
(String loggingLevel) Sets the value ofCfnApiGatewayManagedOverrides.RouteSettingsProperty.getLoggingLevel()
throttlingBurstLimit
(Number throttlingBurstLimit) throttlingRateLimit
(Number throttlingRateLimit)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dataTraceEnabled
@Stability(Stable) public CfnApiGatewayManagedOverrides.RouteSettingsProperty.Builder dataTraceEnabled(Boolean dataTraceEnabled) - 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 CfnApiGatewayManagedOverrides.RouteSettingsProperty.Builder dataTraceEnabled(IResolvable dataTraceEnabled) - 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 CfnApiGatewayManagedOverrides.RouteSettingsProperty.Builder detailedMetricsEnabled(Boolean detailedMetricsEnabled) - Parameters:
detailedMetricsEnabled
- Specifies whether detailed metrics are enabled.- Returns:
this
-
detailedMetricsEnabled
@Stability(Stable) public CfnApiGatewayManagedOverrides.RouteSettingsProperty.Builder detailedMetricsEnabled(IResolvable detailedMetricsEnabled) - Parameters:
detailedMetricsEnabled
- Specifies whether detailed metrics are enabled.- Returns:
this
-
loggingLevel
@Stability(Stable) public CfnApiGatewayManagedOverrides.RouteSettingsProperty.Builder loggingLevel(String loggingLevel) Sets the value ofCfnApiGatewayManagedOverrides.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 CfnApiGatewayManagedOverrides.RouteSettingsProperty.Builder throttlingBurstLimit(Number throttlingBurstLimit) - Parameters:
throttlingBurstLimit
- Specifies the throttling burst limit.- Returns:
this
-
throttlingRateLimit
@Stability(Stable) public CfnApiGatewayManagedOverrides.RouteSettingsProperty.Builder throttlingRateLimit(Number throttlingRateLimit) - Parameters:
throttlingRateLimit
- Specifies the throttling rate limit.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnApiGatewayManagedOverrides.RouteSettingsProperty>
- Returns:
- a new instance of
CfnApiGatewayManagedOverrides.RouteSettingsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-