/** * 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 RDS { namespace Model { /** *

A range of double values.

See Also:

AWS API * Reference

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

The minimum value in the range.

*/ inline double GetFrom() const{ return m_from; } /** *

The minimum value in the range.

*/ inline bool FromHasBeenSet() const { return m_fromHasBeenSet; } /** *

The minimum value in the range.

*/ inline void SetFrom(double value) { m_fromHasBeenSet = true; m_from = value; } /** *

The minimum value in the range.

*/ inline DoubleRange& WithFrom(double value) { SetFrom(value); return *this;} /** *

The maximum value in the range.

*/ inline double GetTo() const{ return m_to; } /** *

The maximum value in the range.

*/ inline bool ToHasBeenSet() const { return m_toHasBeenSet; } /** *

The maximum value in the range.

*/ inline void SetTo(double value) { m_toHasBeenSet = true; m_to = value; } /** *

The maximum value in the range.

*/ inline DoubleRange& WithTo(double value) { SetTo(value); return *this;} private: double m_from; bool m_fromHasBeenSet = false; double m_to; bool m_toHasBeenSet = false; }; } // namespace Model } // namespace RDS } // namespace Aws