AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ServiceManagedEc2InstanceCapabilities.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/deadline/model/ServiceManagedFleetOperatingSystemFamily.h>
11#include <aws/deadline/model/CpuArchitectureType.h>
12#include <aws/deadline/model/Ec2EbsVolume.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/deadline/model/FleetAmountCapability.h>
16#include <aws/deadline/model/FleetAttributeCapability.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace deadline
30{
31namespace Model
32{
33
40 {
41 public:
45 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const VCpuCountRange& GetVCpuCount() const{ return m_vCpuCount; }
53 inline bool VCpuCountHasBeenSet() const { return m_vCpuCountHasBeenSet; }
54 inline void SetVCpuCount(const VCpuCountRange& value) { m_vCpuCountHasBeenSet = true; m_vCpuCount = value; }
55 inline void SetVCpuCount(VCpuCountRange&& value) { m_vCpuCountHasBeenSet = true; m_vCpuCount = std::move(value); }
57 inline ServiceManagedEc2InstanceCapabilities& WithVCpuCount(VCpuCountRange&& value) { SetVCpuCount(std::move(value)); return *this;}
59
61
64 inline const MemoryMiBRange& GetMemoryMiB() const{ return m_memoryMiB; }
65 inline bool MemoryMiBHasBeenSet() const { return m_memoryMiBHasBeenSet; }
66 inline void SetMemoryMiB(const MemoryMiBRange& value) { m_memoryMiBHasBeenSet = true; m_memoryMiB = value; }
67 inline void SetMemoryMiB(MemoryMiBRange&& value) { m_memoryMiBHasBeenSet = true; m_memoryMiB = std::move(value); }
69 inline ServiceManagedEc2InstanceCapabilities& WithMemoryMiB(MemoryMiBRange&& value) { SetMemoryMiB(std::move(value)); return *this;}
71
73
76 inline const ServiceManagedFleetOperatingSystemFamily& GetOsFamily() const{ return m_osFamily; }
77 inline bool OsFamilyHasBeenSet() const { return m_osFamilyHasBeenSet; }
78 inline void SetOsFamily(const ServiceManagedFleetOperatingSystemFamily& value) { m_osFamilyHasBeenSet = true; m_osFamily = value; }
79 inline void SetOsFamily(ServiceManagedFleetOperatingSystemFamily&& value) { m_osFamilyHasBeenSet = true; m_osFamily = std::move(value); }
83
85
88 inline const CpuArchitectureType& GetCpuArchitectureType() const{ return m_cpuArchitectureType; }
89 inline bool CpuArchitectureTypeHasBeenSet() const { return m_cpuArchitectureTypeHasBeenSet; }
90 inline void SetCpuArchitectureType(const CpuArchitectureType& value) { m_cpuArchitectureTypeHasBeenSet = true; m_cpuArchitectureType = value; }
91 inline void SetCpuArchitectureType(CpuArchitectureType&& value) { m_cpuArchitectureTypeHasBeenSet = true; m_cpuArchitectureType = std::move(value); }
95
97
100 inline const Ec2EbsVolume& GetRootEbsVolume() const{ return m_rootEbsVolume; }
101 inline bool RootEbsVolumeHasBeenSet() const { return m_rootEbsVolumeHasBeenSet; }
102 inline void SetRootEbsVolume(const Ec2EbsVolume& value) { m_rootEbsVolumeHasBeenSet = true; m_rootEbsVolume = value; }
103 inline void SetRootEbsVolume(Ec2EbsVolume&& value) { m_rootEbsVolumeHasBeenSet = true; m_rootEbsVolume = std::move(value); }
107
109
112 inline const Aws::Vector<Aws::String>& GetAllowedInstanceTypes() const{ return m_allowedInstanceTypes; }
113 inline bool AllowedInstanceTypesHasBeenSet() const { return m_allowedInstanceTypesHasBeenSet; }
114 inline void SetAllowedInstanceTypes(const Aws::Vector<Aws::String>& value) { m_allowedInstanceTypesHasBeenSet = true; m_allowedInstanceTypes = value; }
115 inline void SetAllowedInstanceTypes(Aws::Vector<Aws::String>&& value) { m_allowedInstanceTypesHasBeenSet = true; m_allowedInstanceTypes = std::move(value); }
118 inline ServiceManagedEc2InstanceCapabilities& AddAllowedInstanceTypes(const Aws::String& value) { m_allowedInstanceTypesHasBeenSet = true; m_allowedInstanceTypes.push_back(value); return *this; }
119 inline ServiceManagedEc2InstanceCapabilities& AddAllowedInstanceTypes(Aws::String&& value) { m_allowedInstanceTypesHasBeenSet = true; m_allowedInstanceTypes.push_back(std::move(value)); return *this; }
120 inline ServiceManagedEc2InstanceCapabilities& AddAllowedInstanceTypes(const char* value) { m_allowedInstanceTypesHasBeenSet = true; m_allowedInstanceTypes.push_back(value); return *this; }
122
124
127 inline const Aws::Vector<Aws::String>& GetExcludedInstanceTypes() const{ return m_excludedInstanceTypes; }
128 inline bool ExcludedInstanceTypesHasBeenSet() const { return m_excludedInstanceTypesHasBeenSet; }
129 inline void SetExcludedInstanceTypes(const Aws::Vector<Aws::String>& value) { m_excludedInstanceTypesHasBeenSet = true; m_excludedInstanceTypes = value; }
130 inline void SetExcludedInstanceTypes(Aws::Vector<Aws::String>&& value) { m_excludedInstanceTypesHasBeenSet = true; m_excludedInstanceTypes = std::move(value); }
133 inline ServiceManagedEc2InstanceCapabilities& AddExcludedInstanceTypes(const Aws::String& value) { m_excludedInstanceTypesHasBeenSet = true; m_excludedInstanceTypes.push_back(value); return *this; }
134 inline ServiceManagedEc2InstanceCapabilities& AddExcludedInstanceTypes(Aws::String&& value) { m_excludedInstanceTypesHasBeenSet = true; m_excludedInstanceTypes.push_back(std::move(value)); return *this; }
135 inline ServiceManagedEc2InstanceCapabilities& AddExcludedInstanceTypes(const char* value) { m_excludedInstanceTypesHasBeenSet = true; m_excludedInstanceTypes.push_back(value); return *this; }
137
139
142 inline const Aws::Vector<FleetAmountCapability>& GetCustomAmounts() const{ return m_customAmounts; }
143 inline bool CustomAmountsHasBeenSet() const { return m_customAmountsHasBeenSet; }
144 inline void SetCustomAmounts(const Aws::Vector<FleetAmountCapability>& value) { m_customAmountsHasBeenSet = true; m_customAmounts = value; }
145 inline void SetCustomAmounts(Aws::Vector<FleetAmountCapability>&& value) { m_customAmountsHasBeenSet = true; m_customAmounts = std::move(value); }
148 inline ServiceManagedEc2InstanceCapabilities& AddCustomAmounts(const FleetAmountCapability& value) { m_customAmountsHasBeenSet = true; m_customAmounts.push_back(value); return *this; }
149 inline ServiceManagedEc2InstanceCapabilities& AddCustomAmounts(FleetAmountCapability&& value) { m_customAmountsHasBeenSet = true; m_customAmounts.push_back(std::move(value)); return *this; }
151
153
156 inline const Aws::Vector<FleetAttributeCapability>& GetCustomAttributes() const{ return m_customAttributes; }
157 inline bool CustomAttributesHasBeenSet() const { return m_customAttributesHasBeenSet; }
158 inline void SetCustomAttributes(const Aws::Vector<FleetAttributeCapability>& value) { m_customAttributesHasBeenSet = true; m_customAttributes = value; }
159 inline void SetCustomAttributes(Aws::Vector<FleetAttributeCapability>&& value) { m_customAttributesHasBeenSet = true; m_customAttributes = std::move(value); }
162 inline ServiceManagedEc2InstanceCapabilities& AddCustomAttributes(const FleetAttributeCapability& value) { m_customAttributesHasBeenSet = true; m_customAttributes.push_back(value); return *this; }
163 inline ServiceManagedEc2InstanceCapabilities& AddCustomAttributes(FleetAttributeCapability&& value) { m_customAttributesHasBeenSet = true; m_customAttributes.push_back(std::move(value)); return *this; }
165 private:
166
167 VCpuCountRange m_vCpuCount;
168 bool m_vCpuCountHasBeenSet = false;
169
170 MemoryMiBRange m_memoryMiB;
171 bool m_memoryMiBHasBeenSet = false;
172
174 bool m_osFamilyHasBeenSet = false;
175
176 CpuArchitectureType m_cpuArchitectureType;
177 bool m_cpuArchitectureTypeHasBeenSet = false;
178
179 Ec2EbsVolume m_rootEbsVolume;
180 bool m_rootEbsVolumeHasBeenSet = false;
181
182 Aws::Vector<Aws::String> m_allowedInstanceTypes;
183 bool m_allowedInstanceTypesHasBeenSet = false;
184
185 Aws::Vector<Aws::String> m_excludedInstanceTypes;
186 bool m_excludedInstanceTypesHasBeenSet = false;
187
189 bool m_customAmountsHasBeenSet = false;
190
191 Aws::Vector<FleetAttributeCapability> m_customAttributes;
192 bool m_customAttributesHasBeenSet = false;
193 };
194
195} // namespace Model
196} // namespace deadline
197} // namespace Aws
void SetCustomAmounts(const Aws::Vector< FleetAmountCapability > &value)
ServiceManagedEc2InstanceCapabilities & WithCustomAmounts(const Aws::Vector< FleetAmountCapability > &value)
ServiceManagedEc2InstanceCapabilities & WithCpuArchitectureType(CpuArchitectureType &&value)
ServiceManagedEc2InstanceCapabilities & WithMemoryMiB(const MemoryMiBRange &value)
void SetCustomAttributes(Aws::Vector< FleetAttributeCapability > &&value)
const ServiceManagedFleetOperatingSystemFamily & GetOsFamily() const
ServiceManagedEc2InstanceCapabilities & WithCpuArchitectureType(const CpuArchitectureType &value)
ServiceManagedEc2InstanceCapabilities & WithMemoryMiB(MemoryMiBRange &&value)
ServiceManagedEc2InstanceCapabilities & AddCustomAttributes(const FleetAttributeCapability &value)
AWS_DEADLINE_API ServiceManagedEc2InstanceCapabilities & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceManagedEc2InstanceCapabilities & AddAllowedInstanceTypes(const Aws::String &value)
ServiceManagedEc2InstanceCapabilities & AddCustomAmounts(FleetAmountCapability &&value)
ServiceManagedEc2InstanceCapabilities & WithCustomAmounts(Aws::Vector< FleetAmountCapability > &&value)
ServiceManagedEc2InstanceCapabilities & WithRootEbsVolume(Ec2EbsVolume &&value)
ServiceManagedEc2InstanceCapabilities & WithExcludedInstanceTypes(const Aws::Vector< Aws::String > &value)
ServiceManagedEc2InstanceCapabilities & WithExcludedInstanceTypes(Aws::Vector< Aws::String > &&value)
void SetCustomAttributes(const Aws::Vector< FleetAttributeCapability > &value)
void SetOsFamily(const ServiceManagedFleetOperatingSystemFamily &value)
ServiceManagedEc2InstanceCapabilities & AddCustomAttributes(FleetAttributeCapability &&value)
ServiceManagedEc2InstanceCapabilities & WithAllowedInstanceTypes(Aws::Vector< Aws::String > &&value)
ServiceManagedEc2InstanceCapabilities & WithRootEbsVolume(const Ec2EbsVolume &value)
void SetOsFamily(ServiceManagedFleetOperatingSystemFamily &&value)
const Aws::Vector< FleetAttributeCapability > & GetCustomAttributes() const
ServiceManagedEc2InstanceCapabilities & AddExcludedInstanceTypes(const char *value)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceManagedEc2InstanceCapabilities & AddAllowedInstanceTypes(const char *value)
ServiceManagedEc2InstanceCapabilities & WithOsFamily(const ServiceManagedFleetOperatingSystemFamily &value)
ServiceManagedEc2InstanceCapabilities & AddExcludedInstanceTypes(const Aws::String &value)
const Aws::Vector< FleetAmountCapability > & GetCustomAmounts() const
ServiceManagedEc2InstanceCapabilities & AddAllowedInstanceTypes(Aws::String &&value)
ServiceManagedEc2InstanceCapabilities & WithCustomAttributes(Aws::Vector< FleetAttributeCapability > &&value)
ServiceManagedEc2InstanceCapabilities & WithVCpuCount(VCpuCountRange &&value)
ServiceManagedEc2InstanceCapabilities & WithCustomAttributes(const Aws::Vector< FleetAttributeCapability > &value)
ServiceManagedEc2InstanceCapabilities & AddCustomAmounts(const FleetAmountCapability &value)
ServiceManagedEc2InstanceCapabilities & WithVCpuCount(const VCpuCountRange &value)
ServiceManagedEc2InstanceCapabilities & WithOsFamily(ServiceManagedFleetOperatingSystemFamily &&value)
AWS_DEADLINE_API ServiceManagedEc2InstanceCapabilities(Aws::Utils::Json::JsonView jsonValue)
ServiceManagedEc2InstanceCapabilities & AddExcludedInstanceTypes(Aws::String &&value)
ServiceManagedEc2InstanceCapabilities & WithAllowedInstanceTypes(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue