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

Describes the container configurations within the tasks of your Amazon ECS * service.

See Also:

AWS * API Reference

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

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 ContainerConfiguration& WithContainerName(const Aws::String& value) { SetContainerName(value); return *this;} /** *

The name of the container.

*/ inline ContainerConfiguration& WithContainerName(Aws::String&& value) { SetContainerName(std::move(value)); return *this;} /** *

The name of the container.

*/ inline ContainerConfiguration& WithContainerName(const char* value) { SetContainerName(value); return *this;} /** *

The memory size configurations for the container.

*/ inline const MemorySizeConfiguration& GetMemorySizeConfiguration() const{ return m_memorySizeConfiguration; } /** *

The memory size configurations for the container.

*/ inline bool MemorySizeConfigurationHasBeenSet() const { return m_memorySizeConfigurationHasBeenSet; } /** *

The memory size configurations for the container.

*/ inline void SetMemorySizeConfiguration(const MemorySizeConfiguration& value) { m_memorySizeConfigurationHasBeenSet = true; m_memorySizeConfiguration = value; } /** *

The memory size configurations for the container.

*/ inline void SetMemorySizeConfiguration(MemorySizeConfiguration&& value) { m_memorySizeConfigurationHasBeenSet = true; m_memorySizeConfiguration = std::move(value); } /** *

The memory size configurations for the container.

*/ inline ContainerConfiguration& WithMemorySizeConfiguration(const MemorySizeConfiguration& value) { SetMemorySizeConfiguration(value); return *this;} /** *

The memory size configurations for the container.

*/ inline ContainerConfiguration& WithMemorySizeConfiguration(MemorySizeConfiguration&& value) { SetMemorySizeConfiguration(std::move(value)); return *this;} /** *

The number of CPU units reserved for the container.

*/ inline int GetCpu() const{ return m_cpu; } /** *

The number of CPU units reserved for the container.

*/ inline bool CpuHasBeenSet() const { return m_cpuHasBeenSet; } /** *

The number of CPU units reserved for the container.

*/ inline void SetCpu(int value) { m_cpuHasBeenSet = true; m_cpu = value; } /** *

The number of CPU units reserved for the container.

*/ inline ContainerConfiguration& 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