AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
WorkerResourceConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/emr-serverless/EMRServerless_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace EMRServerless {
20namespace Model {
21
29 public:
30 AWS_EMRSERVERLESS_API WorkerResourceConfig() = default;
31 AWS_EMRSERVERLESS_API WorkerResourceConfig(Aws::Utils::Json::JsonView jsonValue);
33 AWS_EMRSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetCpu() const { return m_cpu; }
40 inline bool CpuHasBeenSet() const { return m_cpuHasBeenSet; }
41 template <typename CpuT = Aws::String>
42 void SetCpu(CpuT&& value) {
43 m_cpuHasBeenSet = true;
44 m_cpu = std::forward<CpuT>(value);
45 }
46 template <typename CpuT = Aws::String>
48 SetCpu(std::forward<CpuT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetMemory() const { return m_memory; }
58 inline bool MemoryHasBeenSet() const { return m_memoryHasBeenSet; }
59 template <typename MemoryT = Aws::String>
60 void SetMemory(MemoryT&& value) {
61 m_memoryHasBeenSet = true;
62 m_memory = std::forward<MemoryT>(value);
63 }
64 template <typename MemoryT = Aws::String>
65 WorkerResourceConfig& WithMemory(MemoryT&& value) {
66 SetMemory(std::forward<MemoryT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetDisk() const { return m_disk; }
76 inline bool DiskHasBeenSet() const { return m_diskHasBeenSet; }
77 template <typename DiskT = Aws::String>
78 void SetDisk(DiskT&& value) {
79 m_diskHasBeenSet = true;
80 m_disk = std::forward<DiskT>(value);
81 }
82 template <typename DiskT = Aws::String>
84 SetDisk(std::forward<DiskT>(value));
85 return *this;
86 }
88
90
95 inline const Aws::String& GetDiskType() const { return m_diskType; }
96 inline bool DiskTypeHasBeenSet() const { return m_diskTypeHasBeenSet; }
97 template <typename DiskTypeT = Aws::String>
98 void SetDiskType(DiskTypeT&& value) {
99 m_diskTypeHasBeenSet = true;
100 m_diskType = std::forward<DiskTypeT>(value);
101 }
102 template <typename DiskTypeT = Aws::String>
103 WorkerResourceConfig& WithDiskType(DiskTypeT&& value) {
104 SetDiskType(std::forward<DiskTypeT>(value));
105 return *this;
106 }
108 private:
109 Aws::String m_cpu;
110
111 Aws::String m_memory;
112
113 Aws::String m_disk;
114
115 Aws::String m_diskType;
116 bool m_cpuHasBeenSet = false;
117 bool m_memoryHasBeenSet = false;
118 bool m_diskHasBeenSet = false;
119 bool m_diskTypeHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace EMRServerless
124} // namespace Aws
WorkerResourceConfig & WithCpu(CpuT &&value)
WorkerResourceConfig & WithDiskType(DiskTypeT &&value)
AWS_EMRSERVERLESS_API WorkerResourceConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_EMRSERVERLESS_API WorkerResourceConfig()=default
WorkerResourceConfig & WithMemory(MemoryT &&value)
AWS_EMRSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EMRSERVERLESS_API WorkerResourceConfig(Aws::Utils::Json::JsonView jsonValue)
WorkerResourceConfig & WithDisk(DiskT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue