/** * 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 number of accelerators (GPUs, FPGAs, or Amazon Web * Services Inferentia chips) on an instance.

See Also:

AWS * API Reference

*/ class AcceleratorCount { public: AWS_EC2_API AcceleratorCount(); AWS_EC2_API AcceleratorCount(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API AcceleratorCount& 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 number of accelerators. If this parameter is not specified, there * is no minimum limit.

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

The minimum number of accelerators. If this parameter is not specified, there * is no minimum limit.

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

The minimum number of accelerators. If this parameter is not specified, there * is no minimum limit.

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

The minimum number of accelerators. If this parameter is not specified, there * is no minimum limit.

*/ inline AcceleratorCount& WithMin(int value) { SetMin(value); return *this;} /** *

The maximum number of accelerators. If this parameter is not specified, there * is no maximum limit.

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

The maximum number of accelerators. If this parameter is not specified, there * is no maximum limit.

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

The maximum number of accelerators. If this parameter is not specified, there * is no maximum limit.

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

The maximum number of accelerators. If this parameter is not specified, there * is no maximum limit.

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