/**
* 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
{
/**
* Describes the credit option for CPU usage of a T2, T3, or T3a
* instance.
See Also:
AWS
* API Reference
*/
class AWS_EC2_API CreditSpecification
{
public:
CreditSpecification();
CreditSpecification(const Aws::Utils::Xml::XmlNode& xmlNode);
CreditSpecification& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
void OutputToStream(Aws::OStream& oStream, const char* location) const;
/**
* The credit option for CPU usage of a T2, T3, or T3a instance. Valid values
* are standard and unlimited.
*/
inline const Aws::String& GetCpuCredits() const{ return m_cpuCredits; }
/**
* The credit option for CPU usage of a T2, T3, or T3a instance. Valid values
* are standard and unlimited.
*/
inline bool CpuCreditsHasBeenSet() const { return m_cpuCreditsHasBeenSet; }
/**
* The credit option for CPU usage of a T2, T3, or T3a instance. Valid values
* are standard and unlimited.
*/
inline void SetCpuCredits(const Aws::String& value) { m_cpuCreditsHasBeenSet = true; m_cpuCredits = value; }
/**
* The credit option for CPU usage of a T2, T3, or T3a instance. Valid values
* are standard and unlimited.
*/
inline void SetCpuCredits(Aws::String&& value) { m_cpuCreditsHasBeenSet = true; m_cpuCredits = std::move(value); }
/**
* The credit option for CPU usage of a T2, T3, or T3a instance. Valid values
* are standard and unlimited.
*/
inline void SetCpuCredits(const char* value) { m_cpuCreditsHasBeenSet = true; m_cpuCredits.assign(value); }
/**
* The credit option for CPU usage of a T2, T3, or T3a instance. Valid values
* are standard and unlimited.
*/
inline CreditSpecification& WithCpuCredits(const Aws::String& value) { SetCpuCredits(value); return *this;}
/**
* The credit option for CPU usage of a T2, T3, or T3a instance. Valid values
* are standard and unlimited.
*/
inline CreditSpecification& WithCpuCredits(Aws::String&& value) { SetCpuCredits(std::move(value)); return *this;}
/**
* The credit option for CPU usage of a T2, T3, or T3a instance. Valid values
* are standard and unlimited.
*/
inline CreditSpecification& WithCpuCredits(const char* value) { SetCpuCredits(value); return *this;}
private:
Aws::String m_cpuCredits;
bool m_cpuCreditsHasBeenSet;
};
} // namespace Model
} // namespace EC2
} // namespace Aws