/** * 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 Capacity Reservation usage.

See Also:

* AWS * API Reference

*/ class InstanceUsage { public: AWS_EC2_API InstanceUsage(); AWS_EC2_API InstanceUsage(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API InstanceUsage& 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 ID of the Amazon Web Services account that is making use of the Capacity * Reservation.

*/ inline const Aws::String& GetAccountId() const{ return m_accountId; } /** *

The ID of the Amazon Web Services account that is making use of the Capacity * Reservation.

*/ inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } /** *

The ID of the Amazon Web Services account that is making use of the Capacity * Reservation.

*/ inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; } /** *

The ID of the Amazon Web Services account that is making use of the Capacity * Reservation.

*/ inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); } /** *

The ID of the Amazon Web Services account that is making use of the Capacity * Reservation.

*/ inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); } /** *

The ID of the Amazon Web Services account that is making use of the Capacity * Reservation.

*/ inline InstanceUsage& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;} /** *

The ID of the Amazon Web Services account that is making use of the Capacity * Reservation.

*/ inline InstanceUsage& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;} /** *

The ID of the Amazon Web Services account that is making use of the Capacity * Reservation.

*/ inline InstanceUsage& WithAccountId(const char* value) { SetAccountId(value); return *this;} /** *

The number of instances the Amazon Web Services account currently has in the * Capacity Reservation.

*/ inline int GetUsedInstanceCount() const{ return m_usedInstanceCount; } /** *

The number of instances the Amazon Web Services account currently has in the * Capacity Reservation.

*/ inline bool UsedInstanceCountHasBeenSet() const { return m_usedInstanceCountHasBeenSet; } /** *

The number of instances the Amazon Web Services account currently has in the * Capacity Reservation.

*/ inline void SetUsedInstanceCount(int value) { m_usedInstanceCountHasBeenSet = true; m_usedInstanceCount = value; } /** *

The number of instances the Amazon Web Services account currently has in the * Capacity Reservation.

*/ inline InstanceUsage& WithUsedInstanceCount(int value) { SetUsedInstanceCount(value); return *this;} private: Aws::String m_accountId; bool m_accountIdHasBeenSet = false; int m_usedInstanceCount; bool m_usedInstanceCountHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws