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

The minimum and maximum amount of network bandwidth, in gigabits per second * (Gbps).

Setting the minimum bandwidth does not guarantee that your * instance will achieve the minimum bandwidth. Amazon EC2 will identify instance * types that support the specified minimum bandwidth, but the actual bandwidth of * your instance might go below the specified minimum at times. For more * information, see Available * instance bandwidth in the Amazon EC2 User Guide.

*

See Also:

AWS * API Reference

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

The minimum amount of network bandwidth, in Gbps. If this parameter is not * specified, there is no minimum limit.

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

The minimum amount of network bandwidth, in Gbps. If this parameter is not * specified, there is no minimum limit.

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

The minimum amount of network bandwidth, in Gbps. If this parameter is not * specified, there is no minimum limit.

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

The minimum amount of network bandwidth, in Gbps. If this parameter is not * specified, there is no minimum limit.

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

The maximum amount of network bandwidth, in Gbps. If this parameter is not * specified, there is no maximum limit.

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

The maximum amount of network bandwidth, in Gbps. If this parameter is not * specified, there is no maximum limit.

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

The maximum amount of network bandwidth, in Gbps. If this parameter is not * specified, there is no maximum limit.

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

The maximum amount of network bandwidth, in Gbps. If this parameter is not * specified, there is no maximum limit.

*/ inline NetworkBandwidthGbps& 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 EC2 } // namespace Aws