/** * 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 ComputeOptimizer { namespace Model { /** *

The memory size configurations of a container.

See Also:

* AWS * API Reference

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

The amount of memory in the container.

*/ inline int GetMemory() const{ return m_memory; } /** *

The amount of memory in the container.

*/ inline bool MemoryHasBeenSet() const { return m_memoryHasBeenSet; } /** *

The amount of memory in the container.

*/ inline void SetMemory(int value) { m_memoryHasBeenSet = true; m_memory = value; } /** *

The amount of memory in the container.

*/ inline MemorySizeConfiguration& WithMemory(int value) { SetMemory(value); return *this;} /** *

The limit of memory reserve for the container.

*/ inline int GetMemoryReservation() const{ return m_memoryReservation; } /** *

The limit of memory reserve for the container.

*/ inline bool MemoryReservationHasBeenSet() const { return m_memoryReservationHasBeenSet; } /** *

The limit of memory reserve for the container.

*/ inline void SetMemoryReservation(int value) { m_memoryReservationHasBeenSet = true; m_memoryReservation = value; } /** *

The limit of memory reserve for the container.

*/ inline MemorySizeConfiguration& WithMemoryReservation(int value) { SetMemoryReservation(value); return *this;} private: int m_memory; bool m_memoryHasBeenSet = false; int m_memoryReservation; bool m_memoryReservationHasBeenSet = false; }; } // namespace Model } // namespace ComputeOptimizer } // namespace Aws