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

Information about the number of instances that can be launched onto the * Dedicated Host.

See Also:

AWS * API Reference

*/ class InstanceCapacity { public: AWS_EC2_API InstanceCapacity(); AWS_EC2_API InstanceCapacity(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API InstanceCapacity& 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 based on * the host's available capacity.

*/ inline int GetAvailableCapacity() const{ return m_availableCapacity; } /** *

The number of instances that can be launched onto the Dedicated Host based on * the host's available capacity.

*/ inline bool AvailableCapacityHasBeenSet() const { return m_availableCapacityHasBeenSet; } /** *

The number of instances that can be launched onto the Dedicated Host based on * the host's available capacity.

*/ inline void SetAvailableCapacity(int value) { m_availableCapacityHasBeenSet = true; m_availableCapacity = value; } /** *

The number of instances that can be launched onto the Dedicated Host based on * the host's available capacity.

*/ inline InstanceCapacity& WithAvailableCapacity(int value) { SetAvailableCapacity(value); return *this;} /** *

The instance type supported by the Dedicated Host.

*/ inline const Aws::String& GetInstanceType() const{ return m_instanceType; } /** *

The instance type supported by the Dedicated Host.

*/ inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; } /** *

The instance type supported by the Dedicated Host.

*/ inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; } /** *

The instance type supported by the Dedicated Host.

*/ inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); } /** *

The instance type supported by the Dedicated Host.

*/ inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); } /** *

The instance type supported by the Dedicated Host.

*/ inline InstanceCapacity& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;} /** *

The instance type supported by the Dedicated Host.

*/ inline InstanceCapacity& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;} /** *

The instance type supported by the Dedicated Host.

*/ inline InstanceCapacity& WithInstanceType(const char* value) { SetInstanceType(value); return *this;} /** *

The total number of instances that can be launched onto the Dedicated Host if * there are no instances running on it.

*/ inline int GetTotalCapacity() const{ return m_totalCapacity; } /** *

The total number of instances that can be launched onto the Dedicated Host if * there are no instances running on it.

*/ inline bool TotalCapacityHasBeenSet() const { return m_totalCapacityHasBeenSet; } /** *

The total number of instances that can be launched onto the Dedicated Host if * there are no instances running on it.

*/ inline void SetTotalCapacity(int value) { m_totalCapacityHasBeenSet = true; m_totalCapacity = value; } /** *

The total number of instances that can be launched onto the Dedicated Host if * there are no instances running on it.

*/ inline InstanceCapacity& WithTotalCapacity(int value) { SetTotalCapacity(value); return *this;} private: int m_availableCapacity; bool m_availableCapacityHasBeenSet = false; Aws::String m_instanceType; bool m_instanceTypeHasBeenSet = false; int m_totalCapacity; bool m_totalCapacityHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws