/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The CPU and memory recommendations for a container within the tasks of your
* Amazon ECS service. See Also:
AWS
* API Reference
The name of the container.
*/ inline const Aws::String& GetContainerName() const{ return m_containerName; } /** *The name of the container.
*/ inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; } /** *The name of the container.
*/ inline void SetContainerName(const Aws::String& value) { m_containerNameHasBeenSet = true; m_containerName = value; } /** *The name of the container.
*/ inline void SetContainerName(Aws::String&& value) { m_containerNameHasBeenSet = true; m_containerName = std::move(value); } /** *The name of the container.
*/ inline void SetContainerName(const char* value) { m_containerNameHasBeenSet = true; m_containerName.assign(value); } /** *The name of the container.
*/ inline ContainerRecommendation& WithContainerName(const Aws::String& value) { SetContainerName(value); return *this;} /** *The name of the container.
*/ inline ContainerRecommendation& WithContainerName(Aws::String&& value) { SetContainerName(std::move(value)); return *this;} /** *The name of the container.
*/ inline ContainerRecommendation& WithContainerName(const char* value) { SetContainerName(value); return *this;} /** *The recommended memory size configurations for the container.
*/ inline const MemorySizeConfiguration& GetMemorySizeConfiguration() const{ return m_memorySizeConfiguration; } /** *The recommended memory size configurations for the container.
*/ inline bool MemorySizeConfigurationHasBeenSet() const { return m_memorySizeConfigurationHasBeenSet; } /** *The recommended memory size configurations for the container.
*/ inline void SetMemorySizeConfiguration(const MemorySizeConfiguration& value) { m_memorySizeConfigurationHasBeenSet = true; m_memorySizeConfiguration = value; } /** *The recommended memory size configurations for the container.
*/ inline void SetMemorySizeConfiguration(MemorySizeConfiguration&& value) { m_memorySizeConfigurationHasBeenSet = true; m_memorySizeConfiguration = std::move(value); } /** *The recommended memory size configurations for the container.
*/ inline ContainerRecommendation& WithMemorySizeConfiguration(const MemorySizeConfiguration& value) { SetMemorySizeConfiguration(value); return *this;} /** *The recommended memory size configurations for the container.
*/ inline ContainerRecommendation& WithMemorySizeConfiguration(MemorySizeConfiguration&& value) { SetMemorySizeConfiguration(std::move(value)); return *this;} /** *The recommended number of CPU units reserved for the container.
*/ inline int GetCpu() const{ return m_cpu; } /** *The recommended number of CPU units reserved for the container.
*/ inline bool CpuHasBeenSet() const { return m_cpuHasBeenSet; } /** *The recommended number of CPU units reserved for the container.
*/ inline void SetCpu(int value) { m_cpuHasBeenSet = true; m_cpu = value; } /** *The recommended number of CPU units reserved for the container.
*/ inline ContainerRecommendation& WithCpu(int value) { SetCpu(value); return *this;} private: Aws::String m_containerName; bool m_containerNameHasBeenSet = false; MemorySizeConfiguration m_memorySizeConfiguration; bool m_memorySizeConfigurationHasBeenSet = false; int m_cpu; bool m_cpuHasBeenSet = false; }; } // namespace Model } // namespace ComputeOptimizer } // namespace Aws