/** * 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 integer values.

See Also:

AWS API * Reference

*/ class Range { public: AWS_RDS_API Range(); AWS_RDS_API Range(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_RDS_API Range& 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 int 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(int value) { m_fromHasBeenSet = true; m_from = value; } /** *

The minimum value in the range.

*/ inline Range& WithFrom(int value) { SetFrom(value); return *this;} /** *

The maximum value in the range.

*/ inline int 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(int value) { m_toHasBeenSet = true; m_to = value; } /** *

The maximum value in the range.

*/ inline Range& WithTo(int value) { SetTo(value); return *this;} /** *

The step value for the range. For example, if you have a range of 5,000 to * 10,000, with a step value of 1,000, the valid values start at 5,000 and step up * by 1,000. Even though 7,500 is within the range, it isn't a valid value for the * range. The valid values are 5,000, 6,000, 7,000, 8,000...

*/ inline int GetStep() const{ return m_step; } /** *

The step value for the range. For example, if you have a range of 5,000 to * 10,000, with a step value of 1,000, the valid values start at 5,000 and step up * by 1,000. Even though 7,500 is within the range, it isn't a valid value for the * range. The valid values are 5,000, 6,000, 7,000, 8,000...

*/ inline bool StepHasBeenSet() const { return m_stepHasBeenSet; } /** *

The step value for the range. For example, if you have a range of 5,000 to * 10,000, with a step value of 1,000, the valid values start at 5,000 and step up * by 1,000. Even though 7,500 is within the range, it isn't a valid value for the * range. The valid values are 5,000, 6,000, 7,000, 8,000...

*/ inline void SetStep(int value) { m_stepHasBeenSet = true; m_step = value; } /** *

The step value for the range. For example, if you have a range of 5,000 to * 10,000, with a step value of 1,000, the valid values start at 5,000 and step up * by 1,000. Even though 7,500 is within the range, it isn't a valid value for the * range. The valid values are 5,000, 6,000, 7,000, 8,000...

*/ inline Range& WithStep(int value) { SetStep(value); return *this;} private: int m_from; bool m_fromHasBeenSet = false; int m_to; bool m_toHasBeenSet = false; int m_step; bool m_stepHasBeenSet = false; }; } // namespace Model } // namespace RDS } // namespace Aws