/** * 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, in MiB, for an Amazon EC2 * instance.

See Also:

AWS * API Reference

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

The maximum amount of memory, in MiB.

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

The maximum amount of memory, in MiB.

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

The maximum amount of memory, in MiB.

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

The maximum amount of memory, in MiB.

*/ inline AwsEc2LaunchTemplateDataInstanceRequirementsMemoryMiBDetails& WithMax(int value) { SetMax(value); return *this;} /** *

The minimum amount of memory, in MiB.

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

The minimum amount of memory, in MiB.

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

The minimum amount of memory, in MiB.

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

The minimum amount of memory, in MiB.

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