/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The maximum allowed cumulative resources for an application. No new resources
* will be created once the limit is hit.See Also:
AWS
* API Reference
The maximum allowed CPU for an application.
*/ inline const Aws::String& GetCpu() const{ return m_cpu; } /** *The maximum allowed CPU for an application.
*/ inline bool CpuHasBeenSet() const { return m_cpuHasBeenSet; } /** *The maximum allowed CPU for an application.
*/ inline void SetCpu(const Aws::String& value) { m_cpuHasBeenSet = true; m_cpu = value; } /** *The maximum allowed CPU for an application.
*/ inline void SetCpu(Aws::String&& value) { m_cpuHasBeenSet = true; m_cpu = std::move(value); } /** *The maximum allowed CPU for an application.
*/ inline void SetCpu(const char* value) { m_cpuHasBeenSet = true; m_cpu.assign(value); } /** *The maximum allowed CPU for an application.
*/ inline MaximumAllowedResources& WithCpu(const Aws::String& value) { SetCpu(value); return *this;} /** *The maximum allowed CPU for an application.
*/ inline MaximumAllowedResources& WithCpu(Aws::String&& value) { SetCpu(std::move(value)); return *this;} /** *The maximum allowed CPU for an application.
*/ inline MaximumAllowedResources& WithCpu(const char* value) { SetCpu(value); return *this;} /** *The maximum allowed resources for an application.
*/ inline const Aws::String& GetMemory() const{ return m_memory; } /** *The maximum allowed resources for an application.
*/ inline bool MemoryHasBeenSet() const { return m_memoryHasBeenSet; } /** *The maximum allowed resources for an application.
*/ inline void SetMemory(const Aws::String& value) { m_memoryHasBeenSet = true; m_memory = value; } /** *The maximum allowed resources for an application.
*/ inline void SetMemory(Aws::String&& value) { m_memoryHasBeenSet = true; m_memory = std::move(value); } /** *The maximum allowed resources for an application.
*/ inline void SetMemory(const char* value) { m_memoryHasBeenSet = true; m_memory.assign(value); } /** *The maximum allowed resources for an application.
*/ inline MaximumAllowedResources& WithMemory(const Aws::String& value) { SetMemory(value); return *this;} /** *The maximum allowed resources for an application.
*/ inline MaximumAllowedResources& WithMemory(Aws::String&& value) { SetMemory(std::move(value)); return *this;} /** *The maximum allowed resources for an application.
*/ inline MaximumAllowedResources& WithMemory(const char* value) { SetMemory(value); return *this;} /** *The maximum allowed disk for an application.
*/ inline const Aws::String& GetDisk() const{ return m_disk; } /** *The maximum allowed disk for an application.
*/ inline bool DiskHasBeenSet() const { return m_diskHasBeenSet; } /** *The maximum allowed disk for an application.
*/ inline void SetDisk(const Aws::String& value) { m_diskHasBeenSet = true; m_disk = value; } /** *The maximum allowed disk for an application.
*/ inline void SetDisk(Aws::String&& value) { m_diskHasBeenSet = true; m_disk = std::move(value); } /** *The maximum allowed disk for an application.
*/ inline void SetDisk(const char* value) { m_diskHasBeenSet = true; m_disk.assign(value); } /** *The maximum allowed disk for an application.
*/ inline MaximumAllowedResources& WithDisk(const Aws::String& value) { SetDisk(value); return *this;} /** *The maximum allowed disk for an application.
*/ inline MaximumAllowedResources& WithDisk(Aws::String&& value) { SetDisk(std::move(value)); return *this;} /** *The maximum allowed disk for an application.
*/ inline MaximumAllowedResources& WithDisk(const char* value) { SetDisk(value); return *this;} private: Aws::String m_cpu; bool m_cpuHasBeenSet = false; Aws::String m_memory; bool m_memoryHasBeenSet = false; Aws::String m_disk; bool m_diskHasBeenSet = false; }; } // namespace Model } // namespace EMRServerless } // namespace Aws