/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

The capacity information for instances that can be launched onto the * Dedicated Host.

See Also:

AWS * API Reference

*/ class AvailableCapacity { public: AWS_EC2_API AvailableCapacity(); AWS_EC2_API AvailableCapacity(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API AvailableCapacity& 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 number of instances that can be launched onto the Dedicated Host * depending on the host's available capacity. For Dedicated Hosts that support * multiple instance types, this parameter represents the number of instances for * each instance size that is supported on the host.

*/ inline const Aws::Vector& GetAvailableInstanceCapacity() const{ return m_availableInstanceCapacity; } /** *

The number of instances that can be launched onto the Dedicated Host * depending on the host's available capacity. For Dedicated Hosts that support * multiple instance types, this parameter represents the number of instances for * each instance size that is supported on the host.

*/ inline bool AvailableInstanceCapacityHasBeenSet() const { return m_availableInstanceCapacityHasBeenSet; } /** *

The number of instances that can be launched onto the Dedicated Host * depending on the host's available capacity. For Dedicated Hosts that support * multiple instance types, this parameter represents the number of instances for * each instance size that is supported on the host.

*/ inline void SetAvailableInstanceCapacity(const Aws::Vector& value) { m_availableInstanceCapacityHasBeenSet = true; m_availableInstanceCapacity = value; } /** *

The number of instances that can be launched onto the Dedicated Host * depending on the host's available capacity. For Dedicated Hosts that support * multiple instance types, this parameter represents the number of instances for * each instance size that is supported on the host.

*/ inline void SetAvailableInstanceCapacity(Aws::Vector&& value) { m_availableInstanceCapacityHasBeenSet = true; m_availableInstanceCapacity = std::move(value); } /** *

The number of instances that can be launched onto the Dedicated Host * depending on the host's available capacity. For Dedicated Hosts that support * multiple instance types, this parameter represents the number of instances for * each instance size that is supported on the host.

*/ inline AvailableCapacity& WithAvailableInstanceCapacity(const Aws::Vector& value) { SetAvailableInstanceCapacity(value); return *this;} /** *

The number of instances that can be launched onto the Dedicated Host * depending on the host's available capacity. For Dedicated Hosts that support * multiple instance types, this parameter represents the number of instances for * each instance size that is supported on the host.

*/ inline AvailableCapacity& WithAvailableInstanceCapacity(Aws::Vector&& value) { SetAvailableInstanceCapacity(std::move(value)); return *this;} /** *

The number of instances that can be launched onto the Dedicated Host * depending on the host's available capacity. For Dedicated Hosts that support * multiple instance types, this parameter represents the number of instances for * each instance size that is supported on the host.

*/ inline AvailableCapacity& AddAvailableInstanceCapacity(const InstanceCapacity& value) { m_availableInstanceCapacityHasBeenSet = true; m_availableInstanceCapacity.push_back(value); return *this; } /** *

The number of instances that can be launched onto the Dedicated Host * depending on the host's available capacity. For Dedicated Hosts that support * multiple instance types, this parameter represents the number of instances for * each instance size that is supported on the host.

*/ inline AvailableCapacity& AddAvailableInstanceCapacity(InstanceCapacity&& value) { m_availableInstanceCapacityHasBeenSet = true; m_availableInstanceCapacity.push_back(std::move(value)); return *this; } /** *

The number of vCPUs available for launching instances onto the Dedicated * Host.

*/ inline int GetAvailableVCpus() const{ return m_availableVCpus; } /** *

The number of vCPUs available for launching instances onto the Dedicated * Host.

*/ inline bool AvailableVCpusHasBeenSet() const { return m_availableVCpusHasBeenSet; } /** *

The number of vCPUs available for launching instances onto the Dedicated * Host.

*/ inline void SetAvailableVCpus(int value) { m_availableVCpusHasBeenSet = true; m_availableVCpus = value; } /** *

The number of vCPUs available for launching instances onto the Dedicated * Host.

*/ inline AvailableCapacity& WithAvailableVCpus(int value) { SetAvailableVCpus(value); return *this;} private: Aws::Vector m_availableInstanceCapacity; bool m_availableInstanceCapacityHasBeenSet = false; int m_availableVCpus; bool m_availableVCpusHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws