AWS SDK for C++  1.9.71
AWS SDK for C++
FleetLaunchTemplateOverridesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace EC2
24 {
25 namespace Model
26 {
27 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
47  inline const InstanceType& GetInstanceType() const{ return m_instanceType; }
48 
52  inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
53 
57  inline void SetInstanceType(const InstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
58 
62  inline void SetInstanceType(InstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
63 
67  inline FleetLaunchTemplateOverridesRequest& WithInstanceType(const InstanceType& value) { SetInstanceType(value); return *this;}
68 
72  inline FleetLaunchTemplateOverridesRequest& WithInstanceType(InstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
73 
74 
79  inline const Aws::String& GetMaxPrice() const{ return m_maxPrice; }
80 
85  inline bool MaxPriceHasBeenSet() const { return m_maxPriceHasBeenSet; }
86 
91  inline void SetMaxPrice(const Aws::String& value) { m_maxPriceHasBeenSet = true; m_maxPrice = value; }
92 
97  inline void SetMaxPrice(Aws::String&& value) { m_maxPriceHasBeenSet = true; m_maxPrice = std::move(value); }
98 
103  inline void SetMaxPrice(const char* value) { m_maxPriceHasBeenSet = true; m_maxPrice.assign(value); }
104 
109  inline FleetLaunchTemplateOverridesRequest& WithMaxPrice(const Aws::String& value) { SetMaxPrice(value); return *this;}
110 
115  inline FleetLaunchTemplateOverridesRequest& WithMaxPrice(Aws::String&& value) { SetMaxPrice(std::move(value)); return *this;}
116 
121  inline FleetLaunchTemplateOverridesRequest& WithMaxPrice(const char* value) { SetMaxPrice(value); return *this;}
122 
123 
130  inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
131 
138  inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
139 
146  inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
147 
154  inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
155 
162  inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
163 
170  inline FleetLaunchTemplateOverridesRequest& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
171 
178  inline FleetLaunchTemplateOverridesRequest& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
179 
186  inline FleetLaunchTemplateOverridesRequest& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
187 
188 
192  inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
193 
197  inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
198 
202  inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
203 
207  inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
208 
212  inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
213 
217  inline FleetLaunchTemplateOverridesRequest& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
218 
222  inline FleetLaunchTemplateOverridesRequest& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
223 
227  inline FleetLaunchTemplateOverridesRequest& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
228 
229 
233  inline double GetWeightedCapacity() const{ return m_weightedCapacity; }
234 
238  inline bool WeightedCapacityHasBeenSet() const { return m_weightedCapacityHasBeenSet; }
239 
243  inline void SetWeightedCapacity(double value) { m_weightedCapacityHasBeenSet = true; m_weightedCapacity = value; }
244 
248  inline FleetLaunchTemplateOverridesRequest& WithWeightedCapacity(double value) { SetWeightedCapacity(value); return *this;}
249 
250 
265  inline double GetPriority() const{ return m_priority; }
266 
281  inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
282 
297  inline void SetPriority(double value) { m_priorityHasBeenSet = true; m_priority = value; }
298 
313  inline FleetLaunchTemplateOverridesRequest& WithPriority(double value) { SetPriority(value); return *this;}
314 
315 
319  inline const Placement& GetPlacement() const{ return m_placement; }
320 
324  inline bool PlacementHasBeenSet() const { return m_placementHasBeenSet; }
325 
329  inline void SetPlacement(const Placement& value) { m_placementHasBeenSet = true; m_placement = value; }
330 
334  inline void SetPlacement(Placement&& value) { m_placementHasBeenSet = true; m_placement = std::move(value); }
335 
339  inline FleetLaunchTemplateOverridesRequest& WithPlacement(const Placement& value) { SetPlacement(value); return *this;}
340 
344  inline FleetLaunchTemplateOverridesRequest& WithPlacement(Placement&& value) { SetPlacement(std::move(value)); return *this;}
345 
346  private:
347 
348  InstanceType m_instanceType;
349  bool m_instanceTypeHasBeenSet;
350 
351  Aws::String m_maxPrice;
352  bool m_maxPriceHasBeenSet;
353 
354  Aws::String m_subnetId;
355  bool m_subnetIdHasBeenSet;
356 
357  Aws::String m_availabilityZone;
358  bool m_availabilityZoneHasBeenSet;
359 
360  double m_weightedCapacity;
361  bool m_weightedCapacityHasBeenSet;
362 
363  double m_priority;
364  bool m_priorityHasBeenSet;
365 
366  Placement m_placement;
367  bool m_placementHasBeenSet;
368  };
369 
370 } // namespace Model
371 } // namespace EC2
372 } // namespace Aws
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::WithAvailabilityZone
FleetLaunchTemplateOverridesRequest & WithAvailabilityZone(const Aws::String &value)
Definition: FleetLaunchTemplateOverridesRequest.h:217
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::SubnetIdHasBeenSet
bool SubnetIdHasBeenSet() const
Definition: FleetLaunchTemplateOverridesRequest.h:138
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::FleetLaunchTemplateOverridesRequest
FleetLaunchTemplateOverridesRequest()
Aws::EC2::Model::Placement
Definition: Placement.h:33
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::SetPriority
void SetPriority(double value)
Definition: FleetLaunchTemplateOverridesRequest.h:297
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::WithInstanceType
FleetLaunchTemplateOverridesRequest & WithInstanceType(const InstanceType &value)
Definition: FleetLaunchTemplateOverridesRequest.h:67
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::FleetLaunchTemplateOverridesRequest
FleetLaunchTemplateOverridesRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::SetInstanceType
void SetInstanceType(InstanceType &&value)
Definition: FleetLaunchTemplateOverridesRequest.h:62
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::GetInstanceType
const InstanceType & GetInstanceType() const
Definition: FleetLaunchTemplateOverridesRequest.h:47
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::GetMaxPrice
const Aws::String & GetMaxPrice() const
Definition: FleetLaunchTemplateOverridesRequest.h:79
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::GetWeightedCapacity
double GetWeightedCapacity() const
Definition: FleetLaunchTemplateOverridesRequest.h:233
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest
Definition: FleetLaunchTemplateOverridesRequest.h:34
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::GetPlacement
const Placement & GetPlacement() const
Definition: FleetLaunchTemplateOverridesRequest.h:319
AWSStreamFwd.h
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::SetSubnetId
void SetSubnetId(const Aws::String &value)
Definition: FleetLaunchTemplateOverridesRequest.h:146
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::SetMaxPrice
void SetMaxPrice(Aws::String &&value)
Definition: FleetLaunchTemplateOverridesRequest.h:97
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::MaxPriceHasBeenSet
bool MaxPriceHasBeenSet() const
Definition: FleetLaunchTemplateOverridesRequest.h:85
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::GetSubnetId
const Aws::String & GetSubnetId() const
Definition: FleetLaunchTemplateOverridesRequest.h:130
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::InstanceTypeHasBeenSet
bool InstanceTypeHasBeenSet() const
Definition: FleetLaunchTemplateOverridesRequest.h:52
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::SetAvailabilityZone
void SetAvailabilityZone(const char *value)
Definition: FleetLaunchTemplateOverridesRequest.h:212
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::SetWeightedCapacity
void SetWeightedCapacity(double value)
Definition: FleetLaunchTemplateOverridesRequest.h:243
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::WithSubnetId
FleetLaunchTemplateOverridesRequest & WithSubnetId(Aws::String &&value)
Definition: FleetLaunchTemplateOverridesRequest.h:178
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::PriorityHasBeenSet
bool PriorityHasBeenSet() const
Definition: FleetLaunchTemplateOverridesRequest.h:281
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::SetAvailabilityZone
void SetAvailabilityZone(Aws::String &&value)
Definition: FleetLaunchTemplateOverridesRequest.h:207
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::WithSubnetId
FleetLaunchTemplateOverridesRequest & WithSubnetId(const char *value)
Definition: FleetLaunchTemplateOverridesRequest.h:186
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::SetSubnetId
void SetSubnetId(Aws::String &&value)
Definition: FleetLaunchTemplateOverridesRequest.h:154
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::WithPlacement
FleetLaunchTemplateOverridesRequest & WithPlacement(Placement &&value)
Definition: FleetLaunchTemplateOverridesRequest.h:344
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::SetMaxPrice
void SetMaxPrice(const char *value)
Definition: FleetLaunchTemplateOverridesRequest.h:103
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::AvailabilityZoneHasBeenSet
bool AvailabilityZoneHasBeenSet() const
Definition: FleetLaunchTemplateOverridesRequest.h:197
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::SetInstanceType
void SetInstanceType(const InstanceType &value)
Definition: FleetLaunchTemplateOverridesRequest.h:57
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::WithPlacement
FleetLaunchTemplateOverridesRequest & WithPlacement(const Placement &value)
Definition: FleetLaunchTemplateOverridesRequest.h:339
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::SetPlacement
void SetPlacement(const Placement &value)
Definition: FleetLaunchTemplateOverridesRequest.h:329
Placement.h
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::PlacementHasBeenSet
bool PlacementHasBeenSet() const
Definition: FleetLaunchTemplateOverridesRequest.h:324
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::GetPriority
double GetPriority() const
Definition: FleetLaunchTemplateOverridesRequest.h:265
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
AWSString.h
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::SetMaxPrice
void SetMaxPrice(const Aws::String &value)
Definition: FleetLaunchTemplateOverridesRequest.h:91
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::WithAvailabilityZone
FleetLaunchTemplateOverridesRequest & WithAvailabilityZone(const char *value)
Definition: FleetLaunchTemplateOverridesRequest.h:227
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::SetPlacement
void SetPlacement(Placement &&value)
Definition: FleetLaunchTemplateOverridesRequest.h:334
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::WithPriority
FleetLaunchTemplateOverridesRequest & WithPriority(double value)
Definition: FleetLaunchTemplateOverridesRequest.h:313
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::WeightedCapacityHasBeenSet
bool WeightedCapacityHasBeenSet() const
Definition: FleetLaunchTemplateOverridesRequest.h:238
InstanceType.h
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::WithAvailabilityZone
FleetLaunchTemplateOverridesRequest & WithAvailabilityZone(Aws::String &&value)
Definition: FleetLaunchTemplateOverridesRequest.h:222
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::WithMaxPrice
FleetLaunchTemplateOverridesRequest & WithMaxPrice(const char *value)
Definition: FleetLaunchTemplateOverridesRequest.h:121
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::SetAvailabilityZone
void SetAvailabilityZone(const Aws::String &value)
Definition: FleetLaunchTemplateOverridesRequest.h:202
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::WithInstanceType
FleetLaunchTemplateOverridesRequest & WithInstanceType(InstanceType &&value)
Definition: FleetLaunchTemplateOverridesRequest.h:72
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::WithWeightedCapacity
FleetLaunchTemplateOverridesRequest & WithWeightedCapacity(double value)
Definition: FleetLaunchTemplateOverridesRequest.h:248
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
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::FleetLaunchTemplateOverridesRequest::operator=
FleetLaunchTemplateOverridesRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::WithSubnetId
FleetLaunchTemplateOverridesRequest & WithSubnetId(const Aws::String &value)
Definition: FleetLaunchTemplateOverridesRequest.h:170
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::SetSubnetId
void SetSubnetId(const char *value)
Definition: FleetLaunchTemplateOverridesRequest.h:162
EC2_EXPORTS.h
Aws::EC2::Model::InstanceType
InstanceType
Definition: InstanceType.h:17
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::GetAvailabilityZone
const Aws::String & GetAvailabilityZone() const
Definition: FleetLaunchTemplateOverridesRequest.h:192
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::WithMaxPrice
FleetLaunchTemplateOverridesRequest & WithMaxPrice(const Aws::String &value)
Definition: FleetLaunchTemplateOverridesRequest.h:109
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest::WithMaxPrice
FleetLaunchTemplateOverridesRequest & WithMaxPrice(Aws::String &&value)
Definition: FleetLaunchTemplateOverridesRequest.h:115