AWS SDK for C++  1.9.155
AWS SDK for C++
FleetLaunchTemplateOverrides.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Xml
20 {
21  class XmlNode;
22 } // namespace Xml
23 } // namespace Utils
24 namespace EC2
25 {
26 namespace Model
27 {
28 
35  {
36  public:
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  void OutputToStream(Aws::OStream& oStream, const char* location) const;
43 
44 
49  inline const InstanceType& GetInstanceType() const{ return m_instanceType; }
50 
55  inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
56 
61  inline void SetInstanceType(const InstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
62 
67  inline void SetInstanceType(InstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
68 
73  inline FleetLaunchTemplateOverrides& WithInstanceType(const InstanceType& value) { SetInstanceType(value); return *this;}
74 
79  inline FleetLaunchTemplateOverrides& WithInstanceType(InstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
80 
81 
86  inline const Aws::String& GetMaxPrice() const{ return m_maxPrice; }
87 
92  inline bool MaxPriceHasBeenSet() const { return m_maxPriceHasBeenSet; }
93 
98  inline void SetMaxPrice(const Aws::String& value) { m_maxPriceHasBeenSet = true; m_maxPrice = value; }
99 
104  inline void SetMaxPrice(Aws::String&& value) { m_maxPriceHasBeenSet = true; m_maxPrice = std::move(value); }
105 
110  inline void SetMaxPrice(const char* value) { m_maxPriceHasBeenSet = true; m_maxPrice.assign(value); }
111 
116  inline FleetLaunchTemplateOverrides& WithMaxPrice(const Aws::String& value) { SetMaxPrice(value); return *this;}
117 
122  inline FleetLaunchTemplateOverrides& WithMaxPrice(Aws::String&& value) { SetMaxPrice(std::move(value)); return *this;}
123 
128  inline FleetLaunchTemplateOverrides& WithMaxPrice(const char* value) { SetMaxPrice(value); return *this;}
129 
130 
134  inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
135 
139  inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
140 
144  inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
145 
149  inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
150 
154  inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
155 
159  inline FleetLaunchTemplateOverrides& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
160 
164  inline FleetLaunchTemplateOverrides& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
165 
169  inline FleetLaunchTemplateOverrides& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
170 
171 
175  inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
176 
180  inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
181 
185  inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
186 
190  inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
191 
195  inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
196 
200  inline FleetLaunchTemplateOverrides& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
201 
205  inline FleetLaunchTemplateOverrides& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
206 
210  inline FleetLaunchTemplateOverrides& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
211 
212 
216  inline double GetWeightedCapacity() const{ return m_weightedCapacity; }
217 
221  inline bool WeightedCapacityHasBeenSet() const { return m_weightedCapacityHasBeenSet; }
222 
226  inline void SetWeightedCapacity(double value) { m_weightedCapacityHasBeenSet = true; m_weightedCapacity = value; }
227 
231  inline FleetLaunchTemplateOverrides& WithWeightedCapacity(double value) { SetWeightedCapacity(value); return *this;}
232 
233 
247  inline double GetPriority() const{ return m_priority; }
248 
262  inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
263 
277  inline void SetPriority(double value) { m_priorityHasBeenSet = true; m_priority = value; }
278 
292  inline FleetLaunchTemplateOverrides& WithPriority(double value) { SetPriority(value); return *this;}
293 
294 
298  inline const PlacementResponse& GetPlacement() const{ return m_placement; }
299 
303  inline bool PlacementHasBeenSet() const { return m_placementHasBeenSet; }
304 
308  inline void SetPlacement(const PlacementResponse& value) { m_placementHasBeenSet = true; m_placement = value; }
309 
313  inline void SetPlacement(PlacementResponse&& value) { m_placementHasBeenSet = true; m_placement = std::move(value); }
314 
318  inline FleetLaunchTemplateOverrides& WithPlacement(const PlacementResponse& value) { SetPlacement(value); return *this;}
319 
323  inline FleetLaunchTemplateOverrides& WithPlacement(PlacementResponse&& value) { SetPlacement(std::move(value)); return *this;}
324 
325 
332  inline const InstanceRequirements& GetInstanceRequirements() const{ return m_instanceRequirements; }
333 
340  inline bool InstanceRequirementsHasBeenSet() const { return m_instanceRequirementsHasBeenSet; }
341 
348  inline void SetInstanceRequirements(const InstanceRequirements& value) { m_instanceRequirementsHasBeenSet = true; m_instanceRequirements = value; }
349 
356  inline void SetInstanceRequirements(InstanceRequirements&& value) { m_instanceRequirementsHasBeenSet = true; m_instanceRequirements = std::move(value); }
357 
364  inline FleetLaunchTemplateOverrides& WithInstanceRequirements(const InstanceRequirements& value) { SetInstanceRequirements(value); return *this;}
365 
372  inline FleetLaunchTemplateOverrides& WithInstanceRequirements(InstanceRequirements&& value) { SetInstanceRequirements(std::move(value)); return *this;}
373 
374  private:
375 
376  InstanceType m_instanceType;
377  bool m_instanceTypeHasBeenSet;
378 
379  Aws::String m_maxPrice;
380  bool m_maxPriceHasBeenSet;
381 
382  Aws::String m_subnetId;
383  bool m_subnetIdHasBeenSet;
384 
385  Aws::String m_availabilityZone;
386  bool m_availabilityZoneHasBeenSet;
387 
388  double m_weightedCapacity;
389  bool m_weightedCapacityHasBeenSet;
390 
391  double m_priority;
392  bool m_priorityHasBeenSet;
393 
394  PlacementResponse m_placement;
395  bool m_placementHasBeenSet;
396 
397  InstanceRequirements m_instanceRequirements;
398  bool m_instanceRequirementsHasBeenSet;
399  };
400 
401 } // namespace Model
402 } // namespace EC2
403 } // namespace Aws
Aws::EC2::Model::FleetLaunchTemplateOverrides::InstanceTypeHasBeenSet
bool InstanceTypeHasBeenSet() const
Definition: FleetLaunchTemplateOverrides.h:55
Aws::EC2::Model::FleetLaunchTemplateOverrides::WeightedCapacityHasBeenSet
bool WeightedCapacityHasBeenSet() const
Definition: FleetLaunchTemplateOverrides.h:221
Aws::EC2::Model::PlacementResponse
Definition: PlacementResponse.h:32
Aws::EC2::Model::FleetLaunchTemplateOverrides::WithSubnetId
FleetLaunchTemplateOverrides & WithSubnetId(const Aws::String &value)
Definition: FleetLaunchTemplateOverrides.h:159
Aws::EC2::Model::FleetLaunchTemplateOverrides::MaxPriceHasBeenSet
bool MaxPriceHasBeenSet() const
Definition: FleetLaunchTemplateOverrides.h:92
Aws::EC2::Model::FleetLaunchTemplateOverrides::InstanceRequirementsHasBeenSet
bool InstanceRequirementsHasBeenSet() const
Definition: FleetLaunchTemplateOverrides.h:340
Aws::EC2::Model::FleetLaunchTemplateOverrides::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::FleetLaunchTemplateOverrides::SetWeightedCapacity
void SetWeightedCapacity(double value)
Definition: FleetLaunchTemplateOverrides.h:226
Aws::EC2::Model::FleetLaunchTemplateOverrides::WithAvailabilityZone
FleetLaunchTemplateOverrides & WithAvailabilityZone(const Aws::String &value)
Definition: FleetLaunchTemplateOverrides.h:200
Aws::EC2::Model::FleetLaunchTemplateOverrides::AvailabilityZoneHasBeenSet
bool AvailabilityZoneHasBeenSet() const
Definition: FleetLaunchTemplateOverrides.h:180
Aws::EC2::Model::FleetLaunchTemplateOverrides::WithPlacement
FleetLaunchTemplateOverrides & WithPlacement(const PlacementResponse &value)
Definition: FleetLaunchTemplateOverrides.h:318
Aws::EC2::Model::FleetLaunchTemplateOverrides::GetInstanceRequirements
const InstanceRequirements & GetInstanceRequirements() const
Definition: FleetLaunchTemplateOverrides.h:332
Aws::EC2::Model::FleetLaunchTemplateOverrides::GetMaxPrice
const Aws::String & GetMaxPrice() const
Definition: FleetLaunchTemplateOverrides.h:86
Aws::EC2::Model::FleetLaunchTemplateOverrides::SetAvailabilityZone
void SetAvailabilityZone(Aws::String &&value)
Definition: FleetLaunchTemplateOverrides.h:190
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::FleetLaunchTemplateOverrides::WithPlacement
FleetLaunchTemplateOverrides & WithPlacement(PlacementResponse &&value)
Definition: FleetLaunchTemplateOverrides.h:323
AWSStreamFwd.h
Aws::EC2::Model::FleetLaunchTemplateOverrides::WithMaxPrice
FleetLaunchTemplateOverrides & WithMaxPrice(const Aws::String &value)
Definition: FleetLaunchTemplateOverrides.h:116
Aws::EC2::Model::FleetLaunchTemplateOverrides::WithInstanceType
FleetLaunchTemplateOverrides & WithInstanceType(InstanceType &&value)
Definition: FleetLaunchTemplateOverrides.h:79
Aws::EC2::Model::FleetLaunchTemplateOverrides::WithInstanceRequirements
FleetLaunchTemplateOverrides & WithInstanceRequirements(InstanceRequirements &&value)
Definition: FleetLaunchTemplateOverrides.h:372
Aws::EC2::Model::FleetLaunchTemplateOverrides::SetPlacement
void SetPlacement(const PlacementResponse &value)
Definition: FleetLaunchTemplateOverrides.h:308
Aws::EC2::Model::FleetLaunchTemplateOverrides::GetAvailabilityZone
const Aws::String & GetAvailabilityZone() const
Definition: FleetLaunchTemplateOverrides.h:175
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::FleetLaunchTemplateOverrides::GetInstanceType
const InstanceType & GetInstanceType() const
Definition: FleetLaunchTemplateOverrides.h:49
Aws::EC2::Model::FleetLaunchTemplateOverrides::WithPriority
FleetLaunchTemplateOverrides & WithPriority(double value)
Definition: FleetLaunchTemplateOverrides.h:292
Aws::EC2::Model::FleetLaunchTemplateOverrides::SetSubnetId
void SetSubnetId(const Aws::String &value)
Definition: FleetLaunchTemplateOverrides.h:144
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::FleetLaunchTemplateOverrides::SetInstanceRequirements
void SetInstanceRequirements(const InstanceRequirements &value)
Definition: FleetLaunchTemplateOverrides.h:348
Aws::EC2::Model::FleetLaunchTemplateOverrides::WithSubnetId
FleetLaunchTemplateOverrides & WithSubnetId(Aws::String &&value)
Definition: FleetLaunchTemplateOverrides.h:164
Aws::EC2::Model::FleetLaunchTemplateOverrides::WithMaxPrice
FleetLaunchTemplateOverrides & WithMaxPrice(Aws::String &&value)
Definition: FleetLaunchTemplateOverrides.h:122
Aws::EC2::Model::FleetLaunchTemplateOverrides::WithAvailabilityZone
FleetLaunchTemplateOverrides & WithAvailabilityZone(const char *value)
Definition: FleetLaunchTemplateOverrides.h:210
Aws::EC2::Model::FleetLaunchTemplateOverrides::GetPlacement
const PlacementResponse & GetPlacement() const
Definition: FleetLaunchTemplateOverrides.h:298
Aws::EC2::Model::FleetLaunchTemplateOverrides::SetInstanceType
void SetInstanceType(InstanceType &&value)
Definition: FleetLaunchTemplateOverrides.h:67
Aws::EC2::Model::FleetLaunchTemplateOverrides::operator=
FleetLaunchTemplateOverrides & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::FleetLaunchTemplateOverrides::GetSubnetId
const Aws::String & GetSubnetId() const
Definition: FleetLaunchTemplateOverrides.h:134
Aws::EC2::Model::FleetLaunchTemplateOverrides::PriorityHasBeenSet
bool PriorityHasBeenSet() const
Definition: FleetLaunchTemplateOverrides.h:262
AWSString.h
Aws::EC2::Model::FleetLaunchTemplateOverrides::SetInstanceRequirements
void SetInstanceRequirements(InstanceRequirements &&value)
Definition: FleetLaunchTemplateOverrides.h:356
Aws::EC2::Model::FleetLaunchTemplateOverrides::FleetLaunchTemplateOverrides
FleetLaunchTemplateOverrides()
Aws::EC2::Model::FleetLaunchTemplateOverrides::SetPriority
void SetPriority(double value)
Definition: FleetLaunchTemplateOverrides.h:277
PlacementResponse.h
Aws::EC2::Model::FleetLaunchTemplateOverrides::WithWeightedCapacity
FleetLaunchTemplateOverrides & WithWeightedCapacity(double value)
Definition: FleetLaunchTemplateOverrides.h:231
Aws::EC2::Model::FleetLaunchTemplateOverrides::WithSubnetId
FleetLaunchTemplateOverrides & WithSubnetId(const char *value)
Definition: FleetLaunchTemplateOverrides.h:169
InstanceType.h
Aws::EC2::Model::FleetLaunchTemplateOverrides::SetSubnetId
void SetSubnetId(Aws::String &&value)
Definition: FleetLaunchTemplateOverrides.h:149
InstanceRequirements.h
Aws::EC2::Model::FleetLaunchTemplateOverrides::FleetLaunchTemplateOverrides
FleetLaunchTemplateOverrides(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::FleetLaunchTemplateOverrides::SetInstanceType
void SetInstanceType(const InstanceType &value)
Definition: FleetLaunchTemplateOverrides.h:61
Aws::EC2::Model::FleetLaunchTemplateOverrides::WithInstanceRequirements
FleetLaunchTemplateOverrides & WithInstanceRequirements(const InstanceRequirements &value)
Definition: FleetLaunchTemplateOverrides.h:364
Aws::EC2::Model::FleetLaunchTemplateOverrides
Definition: FleetLaunchTemplateOverrides.h:35
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::FleetLaunchTemplateOverrides::WithInstanceType
FleetLaunchTemplateOverrides & WithInstanceType(const InstanceType &value)
Definition: FleetLaunchTemplateOverrides.h:73
Aws::EC2::Model::FleetLaunchTemplateOverrides::GetWeightedCapacity
double GetWeightedCapacity() const
Definition: FleetLaunchTemplateOverrides.h:216
Aws::EC2::Model::FleetLaunchTemplateOverrides::WithMaxPrice
FleetLaunchTemplateOverrides & WithMaxPrice(const char *value)
Definition: FleetLaunchTemplateOverrides.h:128
Aws::EC2::Model::FleetLaunchTemplateOverrides::SetMaxPrice
void SetMaxPrice(const char *value)
Definition: FleetLaunchTemplateOverrides.h:110
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::FleetLaunchTemplateOverrides::SetAvailabilityZone
void SetAvailabilityZone(const char *value)
Definition: FleetLaunchTemplateOverrides.h:195
Aws::EC2::Model::FleetLaunchTemplateOverrides::SetSubnetId
void SetSubnetId(const char *value)
Definition: FleetLaunchTemplateOverrides.h:154
Aws::EC2::Model::FleetLaunchTemplateOverrides::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::FleetLaunchTemplateOverrides::SetPlacement
void SetPlacement(PlacementResponse &&value)
Definition: FleetLaunchTemplateOverrides.h:313
Aws::EC2::Model::FleetLaunchTemplateOverrides::SetMaxPrice
void SetMaxPrice(Aws::String &&value)
Definition: FleetLaunchTemplateOverrides.h:104
Aws::EC2::Model::FleetLaunchTemplateOverrides::GetPriority
double GetPriority() const
Definition: FleetLaunchTemplateOverrides.h:247
EC2_EXPORTS.h
Aws::EC2::Model::InstanceRequirements
Definition: InstanceRequirements.h:64
Aws::EC2::Model::InstanceType
InstanceType
Definition: InstanceType.h:17
Aws::EC2::Model::FleetLaunchTemplateOverrides::WithAvailabilityZone
FleetLaunchTemplateOverrides & WithAvailabilityZone(Aws::String &&value)
Definition: FleetLaunchTemplateOverrides.h:205
Aws::EC2::Model::FleetLaunchTemplateOverrides::SubnetIdHasBeenSet
bool SubnetIdHasBeenSet() const
Definition: FleetLaunchTemplateOverrides.h:139
Aws::EC2::Model::FleetLaunchTemplateOverrides::SetAvailabilityZone
void SetAvailabilityZone(const Aws::String &value)
Definition: FleetLaunchTemplateOverrides.h:185
Aws::EC2::Model::FleetLaunchTemplateOverrides::PlacementHasBeenSet
bool PlacementHasBeenSet() const
Definition: FleetLaunchTemplateOverrides.h:303
Aws::EC2::Model::FleetLaunchTemplateOverrides::SetMaxPrice
void SetMaxPrice(const Aws::String &value)
Definition: FleetLaunchTemplateOverrides.h:98