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

The minimum and maximum amount of memory per vCPU, in GiB.

See * Also:

AWS * API Reference

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

The maximum amount of memory per vCPU, in GiB. If this parameter is omitted, * there's no maximum limit.

*/ inline double GetMax() const{ return m_max; } /** *

The maximum amount of memory per vCPU, in GiB. If this parameter is omitted, * there's no maximum limit.

*/ inline bool MaxHasBeenSet() const { return m_maxHasBeenSet; } /** *

The maximum amount of memory per vCPU, in GiB. If this parameter is omitted, * there's no maximum limit.

*/ inline void SetMax(double value) { m_maxHasBeenSet = true; m_max = value; } /** *

The maximum amount of memory per vCPU, in GiB. If this parameter is omitted, * there's no maximum limit.

*/ inline AwsEc2LaunchTemplateDataInstanceRequirementsMemoryGiBPerVCpuDetails& WithMax(double value) { SetMax(value); return *this;} /** *

The minimum amount of memory per vCPU, in GiB. If this parameter is omitted, * there's no maximum limit.

*/ inline double GetMin() const{ return m_min; } /** *

The minimum amount of memory per vCPU, in GiB. If this parameter is omitted, * there's no maximum limit.

*/ inline bool MinHasBeenSet() const { return m_minHasBeenSet; } /** *

The minimum amount of memory per vCPU, in GiB. If this parameter is omitted, * there's no maximum limit.

*/ inline void SetMin(double value) { m_minHasBeenSet = true; m_min = value; } /** *

The minimum amount of memory per vCPU, in GiB. If this parameter is omitted, * there's no maximum limit.

*/ inline AwsEc2LaunchTemplateDataInstanceRequirementsMemoryGiBPerVCpuDetails& WithMin(double value) { SetMin(value); return *this;} private: double m_max; bool m_maxHasBeenSet = false; double m_min; bool m_minHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws