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

Specifies the minimum and maximum for the MemoryGiBPerVCpu * object when you specify InstanceRequirements for an Auto Scaling * group.

See Also:

AWS * API Reference

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

The memory minimum in GiB.

*/ inline double GetMin() const{ return m_min; } /** *

The memory minimum in GiB.

*/ inline bool MinHasBeenSet() const { return m_minHasBeenSet; } /** *

The memory minimum in GiB.

*/ inline void SetMin(double value) { m_minHasBeenSet = true; m_min = value; } /** *

The memory minimum in GiB.

*/ inline MemoryGiBPerVCpuRequest& WithMin(double value) { SetMin(value); return *this;} /** *

The memory maximum in GiB.

*/ inline double GetMax() const{ return m_max; } /** *

The memory maximum in GiB.

*/ inline bool MaxHasBeenSet() const { return m_maxHasBeenSet; } /** *

The memory maximum in GiB.

*/ inline void SetMax(double value) { m_maxHasBeenSet = true; m_max = value; } /** *

The memory maximum in GiB.

*/ inline MemoryGiBPerVCpuRequest& WithMax(double value) { SetMax(value); return *this;} private: double m_min; bool m_minHasBeenSet = false; double m_max; bool m_maxHasBeenSet = false; }; } // namespace Model } // namespace AutoScaling } // namespace Aws