/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The scaling configuration for an Aurora Serverless v2 DB cluster. For
* more information, see Using
* Amazon Aurora Serverless v2 in the Amazon Aurora User
* Guide.See Also:
AWS
* API Reference
The minimum number of Aurora capacity units (ACUs) for a DB instance in an * Aurora Serverless v2 cluster. You can specify ACU values in half-step * increments, such as 8, 8.5, 9, and so on. The smallest value that you can use is * 0.5.
*/ inline double GetMinCapacity() const{ return m_minCapacity; } /** *The minimum number of Aurora capacity units (ACUs) for a DB instance in an * Aurora Serverless v2 cluster. You can specify ACU values in half-step * increments, such as 8, 8.5, 9, and so on. The smallest value that you can use is * 0.5.
*/ inline bool MinCapacityHasBeenSet() const { return m_minCapacityHasBeenSet; } /** *The minimum number of Aurora capacity units (ACUs) for a DB instance in an * Aurora Serverless v2 cluster. You can specify ACU values in half-step * increments, such as 8, 8.5, 9, and so on. The smallest value that you can use is * 0.5.
*/ inline void SetMinCapacity(double value) { m_minCapacityHasBeenSet = true; m_minCapacity = value; } /** *The minimum number of Aurora capacity units (ACUs) for a DB instance in an * Aurora Serverless v2 cluster. You can specify ACU values in half-step * increments, such as 8, 8.5, 9, and so on. The smallest value that you can use is * 0.5.
*/ inline ServerlessV2ScalingConfigurationInfo& WithMinCapacity(double value) { SetMinCapacity(value); return *this;} /** *The maximum number of Aurora capacity units (ACUs) for a DB instance in an * Aurora Serverless v2 cluster. You can specify ACU values in half-step * increments, such as 40, 40.5, 41, and so on. The largest value that you can use * is 128.
*/ inline double GetMaxCapacity() const{ return m_maxCapacity; } /** *The maximum number of Aurora capacity units (ACUs) for a DB instance in an * Aurora Serverless v2 cluster. You can specify ACU values in half-step * increments, such as 40, 40.5, 41, and so on. The largest value that you can use * is 128.
*/ inline bool MaxCapacityHasBeenSet() const { return m_maxCapacityHasBeenSet; } /** *The maximum number of Aurora capacity units (ACUs) for a DB instance in an * Aurora Serverless v2 cluster. You can specify ACU values in half-step * increments, such as 40, 40.5, 41, and so on. The largest value that you can use * is 128.
*/ inline void SetMaxCapacity(double value) { m_maxCapacityHasBeenSet = true; m_maxCapacity = value; } /** *The maximum number of Aurora capacity units (ACUs) for a DB instance in an * Aurora Serverless v2 cluster. You can specify ACU values in half-step * increments, such as 40, 40.5, 41, and so on. The largest value that you can use * is 128.
*/ inline ServerlessV2ScalingConfigurationInfo& WithMaxCapacity(double value) { SetMaxCapacity(value); return *this;} private: double m_minCapacity; bool m_minCapacityHasBeenSet = false; double m_maxCapacity; bool m_maxCapacityHasBeenSet = false; }; } // namespace Model } // namespace RDS } // namespace Aws