AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
FleetLaunchTemplateOverrides.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/BlockDeviceMappingResponse.h>
12#include <aws/ec2/model/InstanceRequirements.h>
13#include <aws/ec2/model/InstanceType.h>
14#include <aws/ec2/model/PlacementResponse.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Xml {
21class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2 {
25namespace Model {
26
33 public:
34 AWS_EC2_API FleetLaunchTemplateOverrides() = default;
37
38 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
42
48 inline InstanceType GetInstanceType() const { return m_instanceType; }
49 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
50 inline void SetInstanceType(InstanceType value) {
51 m_instanceTypeHasBeenSet = true;
52 m_instanceType = value;
53 }
55 SetInstanceType(value);
56 return *this;
57 }
59
61
71 inline const Aws::String& GetMaxPrice() const { return m_maxPrice; }
72 inline bool MaxPriceHasBeenSet() const { return m_maxPriceHasBeenSet; }
73 template <typename MaxPriceT = Aws::String>
74 void SetMaxPrice(MaxPriceT&& value) {
75 m_maxPriceHasBeenSet = true;
76 m_maxPrice = std::forward<MaxPriceT>(value);
77 }
78 template <typename MaxPriceT = Aws::String>
80 SetMaxPrice(std::forward<MaxPriceT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
90 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
91 template <typename SubnetIdT = Aws::String>
92 void SetSubnetId(SubnetIdT&& value) {
93 m_subnetIdHasBeenSet = true;
94 m_subnetId = std::forward<SubnetIdT>(value);
95 }
96 template <typename SubnetIdT = Aws::String>
98 SetSubnetId(std::forward<SubnetIdT>(value));
99 return *this;
100 }
102
104
110 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
111 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
112 template <typename AvailabilityZoneT = Aws::String>
113 void SetAvailabilityZone(AvailabilityZoneT&& value) {
114 m_availabilityZoneHasBeenSet = true;
115 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
116 }
117 template <typename AvailabilityZoneT = Aws::String>
119 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
120 return *this;
121 }
123
125
138 inline double GetWeightedCapacity() const { return m_weightedCapacity; }
139 inline bool WeightedCapacityHasBeenSet() const { return m_weightedCapacityHasBeenSet; }
140 inline void SetWeightedCapacity(double value) {
141 m_weightedCapacityHasBeenSet = true;
142 m_weightedCapacity = value;
143 }
145 SetWeightedCapacity(value);
146 return *this;
147 }
149
151
164 inline double GetPriority() const { return m_priority; }
165 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
166 inline void SetPriority(double value) {
167 m_priorityHasBeenSet = true;
168 m_priority = value;
169 }
171 SetPriority(value);
172 return *this;
173 }
175
177
180 inline const PlacementResponse& GetPlacement() const { return m_placement; }
181 inline bool PlacementHasBeenSet() const { return m_placementHasBeenSet; }
182 template <typename PlacementT = PlacementResponse>
183 void SetPlacement(PlacementT&& value) {
184 m_placementHasBeenSet = true;
185 m_placement = std::forward<PlacementT>(value);
186 }
187 template <typename PlacementT = PlacementResponse>
189 SetPlacement(std::forward<PlacementT>(value));
190 return *this;
191 }
193
195
201 inline const InstanceRequirements& GetInstanceRequirements() const { return m_instanceRequirements; }
202 inline bool InstanceRequirementsHasBeenSet() const { return m_instanceRequirementsHasBeenSet; }
203 template <typename InstanceRequirementsT = InstanceRequirements>
204 void SetInstanceRequirements(InstanceRequirementsT&& value) {
205 m_instanceRequirementsHasBeenSet = true;
206 m_instanceRequirements = std::forward<InstanceRequirementsT>(value);
207 }
208 template <typename InstanceRequirementsT = InstanceRequirements>
210 SetInstanceRequirements(std::forward<InstanceRequirementsT>(value));
211 return *this;
212 }
214
216
238 inline const Aws::String& GetImageId() const { return m_imageId; }
239 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
240 template <typename ImageIdT = Aws::String>
241 void SetImageId(ImageIdT&& value) {
242 m_imageIdHasBeenSet = true;
243 m_imageId = std::forward<ImageIdT>(value);
244 }
245 template <typename ImageIdT = Aws::String>
247 SetImageId(std::forward<ImageIdT>(value));
248 return *this;
249 }
251
253
261 inline const Aws::Vector<BlockDeviceMappingResponse>& GetBlockDeviceMappings() const { return m_blockDeviceMappings; }
262 inline bool BlockDeviceMappingsHasBeenSet() const { return m_blockDeviceMappingsHasBeenSet; }
263 template <typename BlockDeviceMappingsT = Aws::Vector<BlockDeviceMappingResponse>>
264 void SetBlockDeviceMappings(BlockDeviceMappingsT&& value) {
265 m_blockDeviceMappingsHasBeenSet = true;
266 m_blockDeviceMappings = std::forward<BlockDeviceMappingsT>(value);
267 }
268 template <typename BlockDeviceMappingsT = Aws::Vector<BlockDeviceMappingResponse>>
270 SetBlockDeviceMappings(std::forward<BlockDeviceMappingsT>(value));
271 return *this;
272 }
273 template <typename BlockDeviceMappingsT = BlockDeviceMappingResponse>
275 m_blockDeviceMappingsHasBeenSet = true;
276 m_blockDeviceMappings.emplace_back(std::forward<BlockDeviceMappingsT>(value));
277 return *this;
278 }
280
282
288 inline const Aws::String& GetAvailabilityZoneId() const { return m_availabilityZoneId; }
289 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
290 template <typename AvailabilityZoneIdT = Aws::String>
291 void SetAvailabilityZoneId(AvailabilityZoneIdT&& value) {
292 m_availabilityZoneIdHasBeenSet = true;
293 m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value);
294 }
295 template <typename AvailabilityZoneIdT = Aws::String>
297 SetAvailabilityZoneId(std::forward<AvailabilityZoneIdT>(value));
298 return *this;
299 }
301 private:
302 InstanceType m_instanceType{InstanceType::NOT_SET};
303
304 Aws::String m_maxPrice;
305
306 Aws::String m_subnetId;
307
308 Aws::String m_availabilityZone;
309
310 double m_weightedCapacity{0.0};
311
312 double m_priority{0.0};
313
314 PlacementResponse m_placement;
315
316 InstanceRequirements m_instanceRequirements;
317
318 Aws::String m_imageId;
319
320 Aws::Vector<BlockDeviceMappingResponse> m_blockDeviceMappings;
321
322 Aws::String m_availabilityZoneId;
323 bool m_instanceTypeHasBeenSet = false;
324 bool m_maxPriceHasBeenSet = false;
325 bool m_subnetIdHasBeenSet = false;
326 bool m_availabilityZoneHasBeenSet = false;
327 bool m_weightedCapacityHasBeenSet = false;
328 bool m_priorityHasBeenSet = false;
329 bool m_placementHasBeenSet = false;
330 bool m_instanceRequirementsHasBeenSet = false;
331 bool m_imageIdHasBeenSet = false;
332 bool m_blockDeviceMappingsHasBeenSet = false;
333 bool m_availabilityZoneIdHasBeenSet = false;
334};
335
336} // namespace Model
337} // namespace EC2
338} // namespace Aws
const Aws::Vector< BlockDeviceMappingResponse > & GetBlockDeviceMappings() const
AWS_EC2_API FleetLaunchTemplateOverrides()=default
FleetLaunchTemplateOverrides & WithBlockDeviceMappings(BlockDeviceMappingsT &&value)
AWS_EC2_API FleetLaunchTemplateOverrides & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
FleetLaunchTemplateOverrides & WithPlacement(PlacementT &&value)
FleetLaunchTemplateOverrides & WithMaxPrice(MaxPriceT &&value)
FleetLaunchTemplateOverrides & WithInstanceType(InstanceType value)
FleetLaunchTemplateOverrides & WithPriority(double value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const InstanceRequirements & GetInstanceRequirements() const
FleetLaunchTemplateOverrides & WithSubnetId(SubnetIdT &&value)
AWS_EC2_API FleetLaunchTemplateOverrides(const Aws::Utils::Xml::XmlNode &xmlNode)
FleetLaunchTemplateOverrides & WithAvailabilityZone(AvailabilityZoneT &&value)
FleetLaunchTemplateOverrides & WithInstanceRequirements(InstanceRequirementsT &&value)
void SetInstanceRequirements(InstanceRequirementsT &&value)
FleetLaunchTemplateOverrides & AddBlockDeviceMappings(BlockDeviceMappingsT &&value)
FleetLaunchTemplateOverrides & WithImageId(ImageIdT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
FleetLaunchTemplateOverrides & WithAvailabilityZoneId(AvailabilityZoneIdT &&value)
FleetLaunchTemplateOverrides & WithWeightedCapacity(double value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream