/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace Neptune { namespace Model { /** *

Contains the scaling configuration of a Neptune Serverless DB cluster.

*

For more information, see Using * Amazon Neptune Serverless in the Amazon Neptune User * Guide.

See Also:

AWS * API Reference

*/ class ServerlessV2ScalingConfiguration { public: AWS_NEPTUNE_API ServerlessV2ScalingConfiguration(); AWS_NEPTUNE_API ServerlessV2ScalingConfiguration(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_NEPTUNE_API ServerlessV2ScalingConfiguration& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_NEPTUNE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_NEPTUNE_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The minimum number of Neptune capacity units (NCUs) for a DB instance in a * Neptune Serverless cluster. You can specify NCU values in half-step increments, * such as 8, 8.5, 9, and so on.

*/ inline double GetMinCapacity() const{ return m_minCapacity; } /** *

The minimum number of Neptune capacity units (NCUs) for a DB instance in a * Neptune Serverless cluster. You can specify NCU values in half-step increments, * such as 8, 8.5, 9, and so on.

*/ inline bool MinCapacityHasBeenSet() const { return m_minCapacityHasBeenSet; } /** *

The minimum number of Neptune capacity units (NCUs) for a DB instance in a * Neptune Serverless cluster. You can specify NCU values in half-step increments, * such as 8, 8.5, 9, and so on.

*/ inline void SetMinCapacity(double value) { m_minCapacityHasBeenSet = true; m_minCapacity = value; } /** *

The minimum number of Neptune capacity units (NCUs) for a DB instance in a * Neptune Serverless cluster. You can specify NCU values in half-step increments, * such as 8, 8.5, 9, and so on.

*/ inline ServerlessV2ScalingConfiguration& WithMinCapacity(double value) { SetMinCapacity(value); return *this;} /** *

The maximum number of Neptune capacity units (NCUs) for a DB instance in a * Neptune Serverless cluster. You can specify NCU values in half-step increments, * such as 40, 40.5, 41, and so on.

*/ inline double GetMaxCapacity() const{ return m_maxCapacity; } /** *

The maximum number of Neptune capacity units (NCUs) for a DB instance in a * Neptune Serverless cluster. You can specify NCU values in half-step increments, * such as 40, 40.5, 41, and so on.

*/ inline bool MaxCapacityHasBeenSet() const { return m_maxCapacityHasBeenSet; } /** *

The maximum number of Neptune capacity units (NCUs) for a DB instance in a * Neptune Serverless cluster. You can specify NCU values in half-step increments, * such as 40, 40.5, 41, and so on.

*/ inline void SetMaxCapacity(double value) { m_maxCapacityHasBeenSet = true; m_maxCapacity = value; } /** *

The maximum number of Neptune capacity units (NCUs) for a DB instance in a * Neptune Serverless cluster. You can specify NCU values in half-step increments, * such as 40, 40.5, 41, and so on.

*/ inline ServerlessV2ScalingConfiguration& 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 Neptune } // namespace Aws