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

Specifies the credit option for CPU usage of a T2, T3, or T3a Amazon EC2 * instance.

See Also:

AWS * API Reference

*/ class AwsEc2LaunchTemplateDataCreditSpecificationDetails { public: AWS_SECURITYHUB_API AwsEc2LaunchTemplateDataCreditSpecificationDetails(); AWS_SECURITYHUB_API AwsEc2LaunchTemplateDataCreditSpecificationDetails(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API AwsEc2LaunchTemplateDataCreditSpecificationDetails& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The credit option for CPU usage of a T instance.

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

The credit option for CPU usage of a T instance.

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

The credit option for CPU usage of a T instance.

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

The credit option for CPU usage of a T instance.

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

The credit option for CPU usage of a T instance.

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

The credit option for CPU usage of a T instance.

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

The credit option for CPU usage of a T instance.

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

The credit option for CPU usage of a T instance.

*/ inline AwsEc2LaunchTemplateDataCreditSpecificationDetails& WithCpuCredits(const char* value) { SetCpuCredits(value); return *this;} private: Aws::String m_cpuCredits; bool m_cpuCreditsHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws