/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apigatewayv2-2018-11-29.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.ApiGatewayV2.Model { /// /// Represents a collection of route settings. /// public partial class RouteSettings { private bool? _dataTraceEnabled; private bool? _detailedMetricsEnabled; private LoggingLevel _loggingLevel; private int? _throttlingBurstLimit; private double? _throttlingRateLimit; /// /// Gets and sets the property 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. /// /// public bool DataTraceEnabled { get { return this._dataTraceEnabled.GetValueOrDefault(); } set { this._dataTraceEnabled = value; } } // Check to see if DataTraceEnabled property is set internal bool IsSetDataTraceEnabled() { return this._dataTraceEnabled.HasValue; } /// /// Gets and sets the property DetailedMetricsEnabled. /// /// Specifies whether detailed metrics are enabled. /// /// public bool DetailedMetricsEnabled { get { return this._detailedMetricsEnabled.GetValueOrDefault(); } set { this._detailedMetricsEnabled = value; } } // Check to see if DetailedMetricsEnabled property is set internal bool IsSetDetailedMetricsEnabled() { return this._detailedMetricsEnabled.HasValue; } /// /// Gets and sets the property LoggingLevel. /// /// Specifies the logging level for this route: INFO, ERROR, or OFF. This property affects /// the log entries pushed to Amazon CloudWatch Logs. Supported only for WebSocket APIs. /// /// public LoggingLevel LoggingLevel { get { return this._loggingLevel; } set { this._loggingLevel = value; } } // Check to see if LoggingLevel property is set internal bool IsSetLoggingLevel() { return this._loggingLevel != null; } /// /// Gets and sets the property ThrottlingBurstLimit. /// /// Specifies the throttling burst limit. /// /// public int ThrottlingBurstLimit { get { return this._throttlingBurstLimit.GetValueOrDefault(); } set { this._throttlingBurstLimit = value; } } // Check to see if ThrottlingBurstLimit property is set internal bool IsSetThrottlingBurstLimit() { return this._throttlingBurstLimit.HasValue; } /// /// Gets and sets the property ThrottlingRateLimit. /// /// Specifies the throttling rate limit. /// /// public double ThrottlingRateLimit { get { return this._throttlingRateLimit.GetValueOrDefault(); } set { this._throttlingRateLimit = value; } } // Check to see if ThrottlingRateLimit property is set internal bool IsSetThrottlingRateLimit() { return this._throttlingRateLimit.HasValue; } } }