/* * 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 rds-2014-10-31.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.RDS.Model { /// /// The scaling configuration for an Aurora DB cluster in serverless DB engine /// mode. /// /// /// /// For more information, see Using /// Amazon Aurora Serverless v1 in the Amazon Aurora User Guide. /// /// public partial class ScalingConfigurationInfo { private bool? _autoPause; private int? _maxCapacity; private int? _minCapacity; private int? _secondsBeforeTimeout; private int? _secondsUntilAutoPause; private string _timeoutAction; /// /// Gets and sets the property AutoPause. /// /// A value that indicates whether automatic pause is allowed for the Aurora DB cluster /// in serverless DB engine mode. /// /// /// /// When the value is set to false for an Aurora Serverless v1 DB cluster, the DB cluster /// automatically resumes. /// /// public bool AutoPause { get { return this._autoPause.GetValueOrDefault(); } set { this._autoPause = value; } } // Check to see if AutoPause property is set internal bool IsSetAutoPause() { return this._autoPause.HasValue; } /// /// Gets and sets the property MaxCapacity. /// /// The maximum capacity for an Aurora DB cluster in serverless DB engine /// mode. /// /// public int MaxCapacity { get { return this._maxCapacity.GetValueOrDefault(); } set { this._maxCapacity = value; } } // Check to see if MaxCapacity property is set internal bool IsSetMaxCapacity() { return this._maxCapacity.HasValue; } /// /// Gets and sets the property MinCapacity. /// /// The minimum capacity for an Aurora DB cluster in serverless DB engine /// mode. /// /// public int MinCapacity { get { return this._minCapacity.GetValueOrDefault(); } set { this._minCapacity = value; } } // Check to see if MinCapacity property is set internal bool IsSetMinCapacity() { return this._minCapacity.HasValue; } /// /// Gets and sets the property SecondsBeforeTimeout. /// /// The number of seconds before scaling times out. What happens when an attempted scaling /// action times out is determined by the TimeoutAction setting. /// /// public int SecondsBeforeTimeout { get { return this._secondsBeforeTimeout.GetValueOrDefault(); } set { this._secondsBeforeTimeout = value; } } // Check to see if SecondsBeforeTimeout property is set internal bool IsSetSecondsBeforeTimeout() { return this._secondsBeforeTimeout.HasValue; } /// /// Gets and sets the property SecondsUntilAutoPause. /// /// The remaining amount of time, in seconds, before the Aurora DB cluster in serverless /// mode is paused. A DB cluster can be paused only when it's idle (it has no connections). /// /// public int SecondsUntilAutoPause { get { return this._secondsUntilAutoPause.GetValueOrDefault(); } set { this._secondsUntilAutoPause = value; } } // Check to see if SecondsUntilAutoPause property is set internal bool IsSetSecondsUntilAutoPause() { return this._secondsUntilAutoPause.HasValue; } /// /// Gets and sets the property TimeoutAction. /// /// The action that occurs when Aurora times out while attempting to change the capacity /// of an Aurora Serverless v1 cluster. The value is either ForceApplyCapacityChange /// or RollbackCapacityChange. /// /// /// /// ForceApplyCapacityChange, the default, sets the capacity to the specified /// value as soon as possible. /// /// /// /// RollbackCapacityChange ignores the capacity change if a scaling point /// isn't found in the timeout period. /// /// public string TimeoutAction { get { return this._timeoutAction; } set { this._timeoutAction = value; } } // Check to see if TimeoutAction property is set internal bool IsSetTimeoutAction() { return this._timeoutAction != null; } } }