AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CustomerManagedWorkerCapabilities.h
1
6#pragma once
7#include <aws/deadline/Deadline_EXPORTS.h>
8#include <aws/deadline/model/VCpuCountRange.h>
9#include <aws/deadline/model/MemoryMiBRange.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/deadline/model/AcceleratorCountRange.h>
12#include <aws/deadline/model/AcceleratorTotalMemoryMiBRange.h>
13#include <aws/deadline/model/CustomerManagedFleetOperatingSystemFamily.h>
14#include <aws/deadline/model/CpuArchitectureType.h>
15#include <aws/deadline/model/AcceleratorType.h>
16#include <aws/deadline/model/FleetAmountCapability.h>
17#include <aws/deadline/model/FleetAttributeCapability.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27 class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace deadline
31{
32namespace Model
33{
34
42 {
43 public:
44 AWS_DEADLINE_API CustomerManagedWorkerCapabilities() = default;
47 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
54 inline const VCpuCountRange& GetVCpuCount() const { return m_vCpuCount; }
55 inline bool VCpuCountHasBeenSet() const { return m_vCpuCountHasBeenSet; }
56 template<typename VCpuCountT = VCpuCountRange>
57 void SetVCpuCount(VCpuCountT&& value) { m_vCpuCountHasBeenSet = true; m_vCpuCount = std::forward<VCpuCountT>(value); }
58 template<typename VCpuCountT = VCpuCountRange>
59 CustomerManagedWorkerCapabilities& WithVCpuCount(VCpuCountT&& value) { SetVCpuCount(std::forward<VCpuCountT>(value)); return *this;}
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) { m_memoryMiBHasBeenSet = true; m_memoryMiB = std::forward<MemoryMiBT>(value); }
70 template<typename MemoryMiBT = MemoryMiBRange>
71 CustomerManagedWorkerCapabilities& WithMemoryMiB(MemoryMiBT&& value) { SetMemoryMiB(std::forward<MemoryMiBT>(value)); return *this;}
73
75
78 inline const Aws::Vector<AcceleratorType>& GetAcceleratorTypes() const { return m_acceleratorTypes; }
79 inline bool AcceleratorTypesHasBeenSet() const { return m_acceleratorTypesHasBeenSet; }
80 template<typename AcceleratorTypesT = Aws::Vector<AcceleratorType>>
81 void SetAcceleratorTypes(AcceleratorTypesT&& value) { m_acceleratorTypesHasBeenSet = true; m_acceleratorTypes = std::forward<AcceleratorTypesT>(value); }
82 template<typename AcceleratorTypesT = Aws::Vector<AcceleratorType>>
83 CustomerManagedWorkerCapabilities& WithAcceleratorTypes(AcceleratorTypesT&& value) { SetAcceleratorTypes(std::forward<AcceleratorTypesT>(value)); return *this;}
84 inline CustomerManagedWorkerCapabilities& AddAcceleratorTypes(AcceleratorType value) { m_acceleratorTypesHasBeenSet = true; m_acceleratorTypes.push_back(value); return *this; }
86
88
91 inline const AcceleratorCountRange& GetAcceleratorCount() const { return m_acceleratorCount; }
92 inline bool AcceleratorCountHasBeenSet() const { return m_acceleratorCountHasBeenSet; }
93 template<typename AcceleratorCountT = AcceleratorCountRange>
94 void SetAcceleratorCount(AcceleratorCountT&& value) { m_acceleratorCountHasBeenSet = true; m_acceleratorCount = std::forward<AcceleratorCountT>(value); }
95 template<typename AcceleratorCountT = AcceleratorCountRange>
96 CustomerManagedWorkerCapabilities& WithAcceleratorCount(AcceleratorCountT&& value) { SetAcceleratorCount(std::forward<AcceleratorCountT>(value)); return *this;}
98
100
103 inline const AcceleratorTotalMemoryMiBRange& GetAcceleratorTotalMemoryMiB() const { return m_acceleratorTotalMemoryMiB; }
104 inline bool AcceleratorTotalMemoryMiBHasBeenSet() const { return m_acceleratorTotalMemoryMiBHasBeenSet; }
105 template<typename AcceleratorTotalMemoryMiBT = AcceleratorTotalMemoryMiBRange>
106 void SetAcceleratorTotalMemoryMiB(AcceleratorTotalMemoryMiBT&& value) { m_acceleratorTotalMemoryMiBHasBeenSet = true; m_acceleratorTotalMemoryMiB = std::forward<AcceleratorTotalMemoryMiBT>(value); }
107 template<typename AcceleratorTotalMemoryMiBT = AcceleratorTotalMemoryMiBRange>
108 CustomerManagedWorkerCapabilities& WithAcceleratorTotalMemoryMiB(AcceleratorTotalMemoryMiBT&& value) { SetAcceleratorTotalMemoryMiB(std::forward<AcceleratorTotalMemoryMiBT>(value)); return *this;}
110
112
115 inline CustomerManagedFleetOperatingSystemFamily GetOsFamily() const { return m_osFamily; }
116 inline bool OsFamilyHasBeenSet() const { return m_osFamilyHasBeenSet; }
117 inline void SetOsFamily(CustomerManagedFleetOperatingSystemFamily value) { m_osFamilyHasBeenSet = true; m_osFamily = value; }
120
122
125 inline CpuArchitectureType GetCpuArchitectureType() const { return m_cpuArchitectureType; }
126 inline bool CpuArchitectureTypeHasBeenSet() const { return m_cpuArchitectureTypeHasBeenSet; }
127 inline void SetCpuArchitectureType(CpuArchitectureType value) { m_cpuArchitectureTypeHasBeenSet = true; m_cpuArchitectureType = value; }
130
132
135 inline const Aws::Vector<FleetAmountCapability>& GetCustomAmounts() const { return m_customAmounts; }
136 inline bool CustomAmountsHasBeenSet() const { return m_customAmountsHasBeenSet; }
137 template<typename CustomAmountsT = Aws::Vector<FleetAmountCapability>>
138 void SetCustomAmounts(CustomAmountsT&& value) { m_customAmountsHasBeenSet = true; m_customAmounts = std::forward<CustomAmountsT>(value); }
139 template<typename CustomAmountsT = Aws::Vector<FleetAmountCapability>>
140 CustomerManagedWorkerCapabilities& WithCustomAmounts(CustomAmountsT&& value) { SetCustomAmounts(std::forward<CustomAmountsT>(value)); return *this;}
141 template<typename CustomAmountsT = FleetAmountCapability>
142 CustomerManagedWorkerCapabilities& AddCustomAmounts(CustomAmountsT&& value) { m_customAmountsHasBeenSet = true; m_customAmounts.emplace_back(std::forward<CustomAmountsT>(value)); return *this; }
144
146
149 inline const Aws::Vector<FleetAttributeCapability>& GetCustomAttributes() const { return m_customAttributes; }
150 inline bool CustomAttributesHasBeenSet() const { return m_customAttributesHasBeenSet; }
151 template<typename CustomAttributesT = Aws::Vector<FleetAttributeCapability>>
152 void SetCustomAttributes(CustomAttributesT&& value) { m_customAttributesHasBeenSet = true; m_customAttributes = std::forward<CustomAttributesT>(value); }
153 template<typename CustomAttributesT = Aws::Vector<FleetAttributeCapability>>
154 CustomerManagedWorkerCapabilities& WithCustomAttributes(CustomAttributesT&& value) { SetCustomAttributes(std::forward<CustomAttributesT>(value)); return *this;}
155 template<typename CustomAttributesT = FleetAttributeCapability>
156 CustomerManagedWorkerCapabilities& AddCustomAttributes(CustomAttributesT&& value) { m_customAttributesHasBeenSet = true; m_customAttributes.emplace_back(std::forward<CustomAttributesT>(value)); return *this; }
158 private:
159
160 VCpuCountRange m_vCpuCount;
161 bool m_vCpuCountHasBeenSet = false;
162
163 MemoryMiBRange m_memoryMiB;
164 bool m_memoryMiBHasBeenSet = false;
165
166 Aws::Vector<AcceleratorType> m_acceleratorTypes;
167 bool m_acceleratorTypesHasBeenSet = false;
168
169 AcceleratorCountRange m_acceleratorCount;
170 bool m_acceleratorCountHasBeenSet = false;
171
172 AcceleratorTotalMemoryMiBRange m_acceleratorTotalMemoryMiB;
173 bool m_acceleratorTotalMemoryMiBHasBeenSet = false;
174
176 bool m_osFamilyHasBeenSet = false;
177
179 bool m_cpuArchitectureTypeHasBeenSet = false;
180
182 bool m_customAmountsHasBeenSet = false;
183
184 Aws::Vector<FleetAttributeCapability> m_customAttributes;
185 bool m_customAttributesHasBeenSet = false;
186 };
187
188} // namespace Model
189} // namespace deadline
190} // 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