/** * 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 { /** *

Describes the default credit option for CPU usage of a burstable performance * instance family.

See Also:

AWS * API Reference

*/ class InstanceFamilyCreditSpecification { public: AWS_EC2_API InstanceFamilyCreditSpecification(); AWS_EC2_API InstanceFamilyCreditSpecification(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API InstanceFamilyCreditSpecification& 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 instance family.

*/ inline const UnlimitedSupportedInstanceFamily& GetInstanceFamily() const{ return m_instanceFamily; } /** *

The instance family.

*/ inline bool InstanceFamilyHasBeenSet() const { return m_instanceFamilyHasBeenSet; } /** *

The instance family.

*/ inline void SetInstanceFamily(const UnlimitedSupportedInstanceFamily& value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily = value; } /** *

The instance family.

*/ inline void SetInstanceFamily(UnlimitedSupportedInstanceFamily&& value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily = std::move(value); } /** *

The instance family.

*/ inline InstanceFamilyCreditSpecification& WithInstanceFamily(const UnlimitedSupportedInstanceFamily& value) { SetInstanceFamily(value); return *this;} /** *

The instance family.

*/ inline InstanceFamilyCreditSpecification& WithInstanceFamily(UnlimitedSupportedInstanceFamily&& value) { SetInstanceFamily(std::move(value)); return *this;} /** *

The default credit option for CPU usage of the instance family. Valid values * are standard and unlimited.

*/ inline const Aws::String& GetCpuCredits() const{ return m_cpuCredits; } /** *

The default credit option for CPU usage of the instance family. Valid values * are standard and unlimited.

*/ inline bool CpuCreditsHasBeenSet() const { return m_cpuCreditsHasBeenSet; } /** *

The default credit option for CPU usage of the instance family. Valid values * are standard and unlimited.

*/ inline void SetCpuCredits(const Aws::String& value) { m_cpuCreditsHasBeenSet = true; m_cpuCredits = value; } /** *

The default credit option for CPU usage of the instance family. Valid values * are standard and unlimited.

*/ inline void SetCpuCredits(Aws::String&& value) { m_cpuCreditsHasBeenSet = true; m_cpuCredits = std::move(value); } /** *

The default credit option for CPU usage of the instance family. Valid values * are standard and unlimited.

*/ inline void SetCpuCredits(const char* value) { m_cpuCreditsHasBeenSet = true; m_cpuCredits.assign(value); } /** *

The default credit option for CPU usage of the instance family. Valid values * are standard and unlimited.

*/ inline InstanceFamilyCreditSpecification& WithCpuCredits(const Aws::String& value) { SetCpuCredits(value); return *this;} /** *

The default credit option for CPU usage of the instance family. Valid values * are standard and unlimited.

*/ inline InstanceFamilyCreditSpecification& WithCpuCredits(Aws::String&& value) { SetCpuCredits(std::move(value)); return *this;} /** *

The default credit option for CPU usage of the instance family. Valid values * are standard and unlimited.

*/ inline InstanceFamilyCreditSpecification& WithCpuCredits(const char* value) { SetCpuCredits(value); return *this;} private: UnlimitedSupportedInstanceFamily m_instanceFamily; bool m_instanceFamilyHasBeenSet = false; Aws::String m_cpuCredits; bool m_cpuCreditsHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws