AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
ServiceManagedEc2InstanceCapabilities.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/deadline/Deadline_EXPORTS.h>
10#include <aws/deadline/model/AcceleratorCapabilities.h>
11#include <aws/deadline/model/CpuArchitectureType.h>
12#include <aws/deadline/model/Ec2EbsVolume.h>
13#include <aws/deadline/model/FleetAmountCapability.h>
14#include <aws/deadline/model/FleetAttributeCapability.h>
15#include <aws/deadline/model/FleetSoftwareAddOn.h>
16#include <aws/deadline/model/MemoryMiBRange.h>
17#include <aws/deadline/model/ServiceManagedFleetOperatingSystemFamily.h>
18#include <aws/deadline/model/VCpuCountRange.h>
19
20#include <utility>
21
22namespace Aws {
23namespace Utils {
24namespace Json {
25class JsonValue;
26class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace deadline {
30namespace Model {
31
38 public:
39 AWS_DEADLINE_API ServiceManagedEc2InstanceCapabilities() = 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 ServiceManagedFleetOperatingSystemFamily GetOsFamily() const { return m_osFamily; }
85 inline bool OsFamilyHasBeenSet() const { return m_osFamilyHasBeenSet; }
87 m_osFamilyHasBeenSet = true;
88 m_osFamily = value;
89 }
95
97
100 inline CpuArchitectureType GetCpuArchitectureType() const { return m_cpuArchitectureType; }
101 inline bool CpuArchitectureTypeHasBeenSet() const { return m_cpuArchitectureTypeHasBeenSet; }
103 m_cpuArchitectureTypeHasBeenSet = true;
104 m_cpuArchitectureType = value;
105 }
111
113
116 inline const Ec2EbsVolume& GetRootEbsVolume() const { return m_rootEbsVolume; }
117 inline bool RootEbsVolumeHasBeenSet() const { return m_rootEbsVolumeHasBeenSet; }
118 template <typename RootEbsVolumeT = Ec2EbsVolume>
119 void SetRootEbsVolume(RootEbsVolumeT&& value) {
120 m_rootEbsVolumeHasBeenSet = true;
121 m_rootEbsVolume = std::forward<RootEbsVolumeT>(value);
122 }
123 template <typename RootEbsVolumeT = Ec2EbsVolume>
125 SetRootEbsVolume(std::forward<RootEbsVolumeT>(value));
126 return *this;
127 }
129
131
135 inline const AcceleratorCapabilities& GetAcceleratorCapabilities() const { return m_acceleratorCapabilities; }
136 inline bool AcceleratorCapabilitiesHasBeenSet() const { return m_acceleratorCapabilitiesHasBeenSet; }
137 template <typename AcceleratorCapabilitiesT = AcceleratorCapabilities>
138 void SetAcceleratorCapabilities(AcceleratorCapabilitiesT&& value) {
139 m_acceleratorCapabilitiesHasBeenSet = true;
140 m_acceleratorCapabilities = std::forward<AcceleratorCapabilitiesT>(value);
141 }
142 template <typename AcceleratorCapabilitiesT = AcceleratorCapabilities>
144 SetAcceleratorCapabilities(std::forward<AcceleratorCapabilitiesT>(value));
145 return *this;
146 }
148
150
155 inline const Aws::Vector<Aws::String>& GetAllowedInstanceTypes() const { return m_allowedInstanceTypes; }
156 inline bool AllowedInstanceTypesHasBeenSet() const { return m_allowedInstanceTypesHasBeenSet; }
157 template <typename AllowedInstanceTypesT = Aws::Vector<Aws::String>>
158 void SetAllowedInstanceTypes(AllowedInstanceTypesT&& value) {
159 m_allowedInstanceTypesHasBeenSet = true;
160 m_allowedInstanceTypes = std::forward<AllowedInstanceTypesT>(value);
161 }
162 template <typename AllowedInstanceTypesT = Aws::Vector<Aws::String>>
164 SetAllowedInstanceTypes(std::forward<AllowedInstanceTypesT>(value));
165 return *this;
166 }
167 template <typename AllowedInstanceTypesT = Aws::String>
169 m_allowedInstanceTypesHasBeenSet = true;
170 m_allowedInstanceTypes.emplace_back(std::forward<AllowedInstanceTypesT>(value));
171 return *this;
172 }
174
176
181 inline const Aws::Vector<Aws::String>& GetExcludedInstanceTypes() const { return m_excludedInstanceTypes; }
182 inline bool ExcludedInstanceTypesHasBeenSet() const { return m_excludedInstanceTypesHasBeenSet; }
183 template <typename ExcludedInstanceTypesT = Aws::Vector<Aws::String>>
184 void SetExcludedInstanceTypes(ExcludedInstanceTypesT&& value) {
185 m_excludedInstanceTypesHasBeenSet = true;
186 m_excludedInstanceTypes = std::forward<ExcludedInstanceTypesT>(value);
187 }
188 template <typename ExcludedInstanceTypesT = Aws::Vector<Aws::String>>
190 SetExcludedInstanceTypes(std::forward<ExcludedInstanceTypesT>(value));
191 return *this;
192 }
193 template <typename ExcludedInstanceTypesT = Aws::String>
195 m_excludedInstanceTypesHasBeenSet = true;
196 m_excludedInstanceTypes.emplace_back(std::forward<ExcludedInstanceTypesT>(value));
197 return *this;
198 }
200
202
205 inline const Aws::Vector<FleetAmountCapability>& GetCustomAmounts() const { return m_customAmounts; }
206 inline bool CustomAmountsHasBeenSet() const { return m_customAmountsHasBeenSet; }
207 template <typename CustomAmountsT = Aws::Vector<FleetAmountCapability>>
208 void SetCustomAmounts(CustomAmountsT&& value) {
209 m_customAmountsHasBeenSet = true;
210 m_customAmounts = std::forward<CustomAmountsT>(value);
211 }
212 template <typename CustomAmountsT = Aws::Vector<FleetAmountCapability>>
214 SetCustomAmounts(std::forward<CustomAmountsT>(value));
215 return *this;
216 }
217 template <typename CustomAmountsT = FleetAmountCapability>
219 m_customAmountsHasBeenSet = true;
220 m_customAmounts.emplace_back(std::forward<CustomAmountsT>(value));
221 return *this;
222 }
224
226
229 inline const Aws::Vector<FleetAttributeCapability>& GetCustomAttributes() const { return m_customAttributes; }
230 inline bool CustomAttributesHasBeenSet() const { return m_customAttributesHasBeenSet; }
231 template <typename CustomAttributesT = Aws::Vector<FleetAttributeCapability>>
232 void SetCustomAttributes(CustomAttributesT&& value) {
233 m_customAttributesHasBeenSet = true;
234 m_customAttributes = std::forward<CustomAttributesT>(value);
235 }
236 template <typename CustomAttributesT = Aws::Vector<FleetAttributeCapability>>
238 SetCustomAttributes(std::forward<CustomAttributesT>(value));
239 return *this;
240 }
241 template <typename CustomAttributesT = FleetAttributeCapability>
243 m_customAttributesHasBeenSet = true;
244 m_customAttributes.emplace_back(std::forward<CustomAttributesT>(value));
245 return *this;
246 }
248
250
254 inline const Aws::Vector<FleetSoftwareAddOn>& GetSoftwareAddOns() const { return m_softwareAddOns; }
255 inline bool SoftwareAddOnsHasBeenSet() const { return m_softwareAddOnsHasBeenSet; }
256 template <typename SoftwareAddOnsT = Aws::Vector<FleetSoftwareAddOn>>
257 void SetSoftwareAddOns(SoftwareAddOnsT&& value) {
258 m_softwareAddOnsHasBeenSet = true;
259 m_softwareAddOns = std::forward<SoftwareAddOnsT>(value);
260 }
261 template <typename SoftwareAddOnsT = Aws::Vector<FleetSoftwareAddOn>>
263 SetSoftwareAddOns(std::forward<SoftwareAddOnsT>(value));
264 return *this;
265 }
266 template <typename SoftwareAddOnsT = FleetSoftwareAddOn>
268 m_softwareAddOnsHasBeenSet = true;
269 m_softwareAddOns.emplace_back(std::forward<SoftwareAddOnsT>(value));
270 return *this;
271 }
273 private:
274 VCpuCountRange m_vCpuCount;
275
276 MemoryMiBRange m_memoryMiB;
277
279
281
282 Ec2EbsVolume m_rootEbsVolume;
283
284 AcceleratorCapabilities m_acceleratorCapabilities;
285
286 Aws::Vector<Aws::String> m_allowedInstanceTypes;
287
288 Aws::Vector<Aws::String> m_excludedInstanceTypes;
289
291
292 Aws::Vector<FleetAttributeCapability> m_customAttributes;
293
294 Aws::Vector<FleetSoftwareAddOn> m_softwareAddOns;
295 bool m_vCpuCountHasBeenSet = false;
296 bool m_memoryMiBHasBeenSet = false;
297 bool m_osFamilyHasBeenSet = false;
298 bool m_cpuArchitectureTypeHasBeenSet = false;
299 bool m_rootEbsVolumeHasBeenSet = false;
300 bool m_acceleratorCapabilitiesHasBeenSet = false;
301 bool m_allowedInstanceTypesHasBeenSet = false;
302 bool m_excludedInstanceTypesHasBeenSet = false;
303 bool m_customAmountsHasBeenSet = false;
304 bool m_customAttributesHasBeenSet = false;
305 bool m_softwareAddOnsHasBeenSet = false;
306};
307
308} // namespace Model
309} // namespace deadline
310} // namespace Aws
ServiceManagedEc2InstanceCapabilities & WithAllowedInstanceTypes(AllowedInstanceTypesT &&value)
ServiceManagedEc2InstanceCapabilities & AddCustomAmounts(CustomAmountsT &&value)
ServiceManagedEc2InstanceCapabilities & AddExcludedInstanceTypes(ExcludedInstanceTypesT &&value)
AWS_DEADLINE_API ServiceManagedEc2InstanceCapabilities & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceManagedEc2InstanceCapabilities & WithCustomAttributes(CustomAttributesT &&value)
ServiceManagedEc2InstanceCapabilities & AddAllowedInstanceTypes(AllowedInstanceTypesT &&value)
ServiceManagedEc2InstanceCapabilities & WithCpuArchitectureType(CpuArchitectureType value)
ServiceManagedEc2InstanceCapabilities & AddCustomAttributes(CustomAttributesT &&value)
ServiceManagedEc2InstanceCapabilities & WithSoftwareAddOns(SoftwareAddOnsT &&value)
ServiceManagedEc2InstanceCapabilities & WithRootEbsVolume(RootEbsVolumeT &&value)
ServiceManagedEc2InstanceCapabilities & WithExcludedInstanceTypes(ExcludedInstanceTypesT &&value)
const Aws::Vector< FleetAttributeCapability > & GetCustomAttributes() const
ServiceManagedEc2InstanceCapabilities & WithOsFamily(ServiceManagedFleetOperatingSystemFamily value)
ServiceManagedEc2InstanceCapabilities & WithVCpuCount(VCpuCountT &&value)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceManagedEc2InstanceCapabilities & AddSoftwareAddOns(SoftwareAddOnsT &&value)
ServiceManagedEc2InstanceCapabilities & WithMemoryMiB(MemoryMiBT &&value)
const Aws::Vector< FleetAmountCapability > & GetCustomAmounts() const
ServiceManagedEc2InstanceCapabilities & WithAcceleratorCapabilities(AcceleratorCapabilitiesT &&value)
ServiceManagedEc2InstanceCapabilities & WithCustomAmounts(CustomAmountsT &&value)
AWS_DEADLINE_API ServiceManagedEc2InstanceCapabilities(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue