AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
CustomerManagedWorkerCapabilities.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/deadline/Deadline_EXPORTS.h>
9#include <aws/deadline/model/AcceleratorCountRange.h>
10#include <aws/deadline/model/AcceleratorTotalMemoryMiBRange.h>
11#include <aws/deadline/model/AcceleratorType.h>
12#include <aws/deadline/model/CpuArchitectureType.h>
13#include <aws/deadline/model/CustomerManagedFleetOperatingSystemFamily.h>
14#include <aws/deadline/model/FleetAmountCapability.h>
15#include <aws/deadline/model/FleetAttributeCapability.h>
16#include <aws/deadline/model/MemoryMiBRange.h>
17#include <aws/deadline/model/VCpuCountRange.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Utils {
23namespace Json {
24class JsonValue;
25class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace deadline {
29namespace Model {
30
38 public:
39 AWS_DEADLINE_API CustomerManagedWorkerCapabilities() = default;
42 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
48 inline const VCpuCountRange& GetVCpuCount() const { return m_vCpuCount; }
49 inline bool VCpuCountHasBeenSet() const { return m_vCpuCountHasBeenSet; }
50 template <typename VCpuCountT = VCpuCountRange>
51 void SetVCpuCount(VCpuCountT&& value) {
52 m_vCpuCountHasBeenSet = true;
53 m_vCpuCount = std::forward<VCpuCountT>(value);
54 }
55 template <typename VCpuCountT = VCpuCountRange>
57 SetVCpuCount(std::forward<VCpuCountT>(value));
58 return *this;
59 }
61
63
66 inline const MemoryMiBRange& GetMemoryMiB() const { return m_memoryMiB; }
67 inline bool MemoryMiBHasBeenSet() const { return m_memoryMiBHasBeenSet; }
68 template <typename MemoryMiBT = MemoryMiBRange>
69 void SetMemoryMiB(MemoryMiBT&& value) {
70 m_memoryMiBHasBeenSet = true;
71 m_memoryMiB = std::forward<MemoryMiBT>(value);
72 }
73 template <typename MemoryMiBT = MemoryMiBRange>
75 SetMemoryMiB(std::forward<MemoryMiBT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::Vector<AcceleratorType>& GetAcceleratorTypes() const { return m_acceleratorTypes; }
85 inline bool AcceleratorTypesHasBeenSet() const { return m_acceleratorTypesHasBeenSet; }
86 template <typename AcceleratorTypesT = Aws::Vector<AcceleratorType>>
87 void SetAcceleratorTypes(AcceleratorTypesT&& value) {
88 m_acceleratorTypesHasBeenSet = true;
89 m_acceleratorTypes = std::forward<AcceleratorTypesT>(value);
90 }
91 template <typename AcceleratorTypesT = Aws::Vector<AcceleratorType>>
93 SetAcceleratorTypes(std::forward<AcceleratorTypesT>(value));
94 return *this;
95 }
97 m_acceleratorTypesHasBeenSet = true;
98 m_acceleratorTypes.push_back(value);
99 return *this;
100 }
102
104
107 inline const AcceleratorCountRange& GetAcceleratorCount() const { return m_acceleratorCount; }
108 inline bool AcceleratorCountHasBeenSet() const { return m_acceleratorCountHasBeenSet; }
109 template <typename AcceleratorCountT = AcceleratorCountRange>
110 void SetAcceleratorCount(AcceleratorCountT&& value) {
111 m_acceleratorCountHasBeenSet = true;
112 m_acceleratorCount = std::forward<AcceleratorCountT>(value);
113 }
114 template <typename AcceleratorCountT = AcceleratorCountRange>
116 SetAcceleratorCount(std::forward<AcceleratorCountT>(value));
117 return *this;
118 }
120
122
125 inline const AcceleratorTotalMemoryMiBRange& GetAcceleratorTotalMemoryMiB() const { return m_acceleratorTotalMemoryMiB; }
126 inline bool AcceleratorTotalMemoryMiBHasBeenSet() const { return m_acceleratorTotalMemoryMiBHasBeenSet; }
127 template <typename AcceleratorTotalMemoryMiBT = AcceleratorTotalMemoryMiBRange>
128 void SetAcceleratorTotalMemoryMiB(AcceleratorTotalMemoryMiBT&& value) {
129 m_acceleratorTotalMemoryMiBHasBeenSet = true;
130 m_acceleratorTotalMemoryMiB = std::forward<AcceleratorTotalMemoryMiBT>(value);
131 }
132 template <typename AcceleratorTotalMemoryMiBT = AcceleratorTotalMemoryMiBRange>
134 SetAcceleratorTotalMemoryMiB(std::forward<AcceleratorTotalMemoryMiBT>(value));
135 return *this;
136 }
138
140
143 inline CustomerManagedFleetOperatingSystemFamily GetOsFamily() const { return m_osFamily; }
144 inline bool OsFamilyHasBeenSet() const { return m_osFamilyHasBeenSet; }
146 m_osFamilyHasBeenSet = true;
147 m_osFamily = value;
148 }
150 SetOsFamily(value);
151 return *this;
152 }
154
156
159 inline CpuArchitectureType GetCpuArchitectureType() const { return m_cpuArchitectureType; }
160 inline bool CpuArchitectureTypeHasBeenSet() const { return m_cpuArchitectureTypeHasBeenSet; }
162 m_cpuArchitectureTypeHasBeenSet = true;
163 m_cpuArchitectureType = value;
164 }
167 return *this;
168 }
170
172
175 inline const Aws::Vector<FleetAmountCapability>& GetCustomAmounts() const { return m_customAmounts; }
176 inline bool CustomAmountsHasBeenSet() const { return m_customAmountsHasBeenSet; }
177 template <typename CustomAmountsT = Aws::Vector<FleetAmountCapability>>
178 void SetCustomAmounts(CustomAmountsT&& value) {
179 m_customAmountsHasBeenSet = true;
180 m_customAmounts = std::forward<CustomAmountsT>(value);
181 }
182 template <typename CustomAmountsT = Aws::Vector<FleetAmountCapability>>
184 SetCustomAmounts(std::forward<CustomAmountsT>(value));
185 return *this;
186 }
187 template <typename CustomAmountsT = FleetAmountCapability>
189 m_customAmountsHasBeenSet = true;
190 m_customAmounts.emplace_back(std::forward<CustomAmountsT>(value));
191 return *this;
192 }
194
196
199 inline const Aws::Vector<FleetAttributeCapability>& GetCustomAttributes() const { return m_customAttributes; }
200 inline bool CustomAttributesHasBeenSet() const { return m_customAttributesHasBeenSet; }
201 template <typename CustomAttributesT = Aws::Vector<FleetAttributeCapability>>
202 void SetCustomAttributes(CustomAttributesT&& value) {
203 m_customAttributesHasBeenSet = true;
204 m_customAttributes = std::forward<CustomAttributesT>(value);
205 }
206 template <typename CustomAttributesT = Aws::Vector<FleetAttributeCapability>>
208 SetCustomAttributes(std::forward<CustomAttributesT>(value));
209 return *this;
210 }
211 template <typename CustomAttributesT = FleetAttributeCapability>
213 m_customAttributesHasBeenSet = true;
214 m_customAttributes.emplace_back(std::forward<CustomAttributesT>(value));
215 return *this;
216 }
218 private:
219 VCpuCountRange m_vCpuCount;
220
221 MemoryMiBRange m_memoryMiB;
222
223 Aws::Vector<AcceleratorType> m_acceleratorTypes;
224
225 AcceleratorCountRange m_acceleratorCount;
226
227 AcceleratorTotalMemoryMiBRange m_acceleratorTotalMemoryMiB;
228
230
232
234
235 Aws::Vector<FleetAttributeCapability> m_customAttributes;
236 bool m_vCpuCountHasBeenSet = false;
237 bool m_memoryMiBHasBeenSet = false;
238 bool m_acceleratorTypesHasBeenSet = false;
239 bool m_acceleratorCountHasBeenSet = false;
240 bool m_acceleratorTotalMemoryMiBHasBeenSet = false;
241 bool m_osFamilyHasBeenSet = false;
242 bool m_cpuArchitectureTypeHasBeenSet = false;
243 bool m_customAmountsHasBeenSet = false;
244 bool m_customAttributesHasBeenSet = false;
245};
246
247} // namespace Model
248} // namespace deadline
249} // namespace Aws
void SetOsFamily(CustomerManagedFleetOperatingSystemFamily value)
CustomerManagedWorkerCapabilities & WithVCpuCount(VCpuCountT &&value)
CustomerManagedWorkerCapabilities & AddCustomAmounts(CustomAmountsT &&value)
const Aws::Vector< AcceleratorType > & GetAcceleratorTypes() const
CustomerManagedWorkerCapabilities & WithMemoryMiB(MemoryMiBT &&value)
CustomerManagedWorkerCapabilities & AddCustomAttributes(CustomAttributesT &&value)
AWS_DEADLINE_API CustomerManagedWorkerCapabilities & operator=(Aws::Utils::Json::JsonView jsonValue)
CustomerManagedWorkerCapabilities & WithCustomAmounts(CustomAmountsT &&value)
AWS_DEADLINE_API CustomerManagedWorkerCapabilities()=default
CustomerManagedWorkerCapabilities & AddAcceleratorTypes(AcceleratorType value)
AWS_DEADLINE_API CustomerManagedWorkerCapabilities(Aws::Utils::Json::JsonView jsonValue)
CustomerManagedFleetOperatingSystemFamily GetOsFamily() const
CustomerManagedWorkerCapabilities & WithCpuArchitectureType(CpuArchitectureType value)
const AcceleratorTotalMemoryMiBRange & GetAcceleratorTotalMemoryMiB() const
CustomerManagedWorkerCapabilities & WithOsFamily(CustomerManagedFleetOperatingSystemFamily value)
CustomerManagedWorkerCapabilities & WithAcceleratorTotalMemoryMiB(AcceleratorTotalMemoryMiBT &&value)
CustomerManagedWorkerCapabilities & WithCustomAttributes(CustomAttributesT &&value)
CustomerManagedWorkerCapabilities & WithAcceleratorTypes(AcceleratorTypesT &&value)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< FleetAmountCapability > & GetCustomAmounts() const
const Aws::Vector< FleetAttributeCapability > & GetCustomAttributes() const
CustomerManagedWorkerCapabilities & WithAcceleratorCount(AcceleratorCountT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue