AWS SDK for C++  1.9.68
AWS SDK for C++
LaunchTemplateOverrides.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
46  inline const InstanceType& GetInstanceType() const{ return m_instanceType; }
47 
51  inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
52 
56  inline void SetInstanceType(const InstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
57 
61  inline void SetInstanceType(InstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
62 
66  inline LaunchTemplateOverrides& WithInstanceType(const InstanceType& value) { SetInstanceType(value); return *this;}
67 
71  inline LaunchTemplateOverrides& WithInstanceType(InstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
72 
73 
78  inline const Aws::String& GetSpotPrice() const{ return m_spotPrice; }
79 
84  inline bool SpotPriceHasBeenSet() const { return m_spotPriceHasBeenSet; }
85 
90  inline void SetSpotPrice(const Aws::String& value) { m_spotPriceHasBeenSet = true; m_spotPrice = value; }
91 
96  inline void SetSpotPrice(Aws::String&& value) { m_spotPriceHasBeenSet = true; m_spotPrice = std::move(value); }
97 
102  inline void SetSpotPrice(const char* value) { m_spotPriceHasBeenSet = true; m_spotPrice.assign(value); }
103 
108  inline LaunchTemplateOverrides& WithSpotPrice(const Aws::String& value) { SetSpotPrice(value); return *this;}
109 
114  inline LaunchTemplateOverrides& WithSpotPrice(Aws::String&& value) { SetSpotPrice(std::move(value)); return *this;}
115 
120  inline LaunchTemplateOverrides& WithSpotPrice(const char* value) { SetSpotPrice(value); return *this;}
121 
122 
126  inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
127 
131  inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
132 
136  inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
137 
141  inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
142 
146  inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
147 
151  inline LaunchTemplateOverrides& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
152 
156  inline LaunchTemplateOverrides& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
157 
161  inline LaunchTemplateOverrides& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
162 
163 
167  inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
168 
172  inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
173 
177  inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
178 
182  inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
183 
187  inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
188 
192  inline LaunchTemplateOverrides& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
193 
197  inline LaunchTemplateOverrides& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
198 
202  inline LaunchTemplateOverrides& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
203 
204 
208  inline double GetWeightedCapacity() const{ return m_weightedCapacity; }
209 
213  inline bool WeightedCapacityHasBeenSet() const { return m_weightedCapacityHasBeenSet; }
214 
218  inline void SetWeightedCapacity(double value) { m_weightedCapacityHasBeenSet = true; m_weightedCapacity = value; }
219 
223  inline LaunchTemplateOverrides& WithWeightedCapacity(double value) { SetWeightedCapacity(value); return *this;}
224 
225 
240  inline double GetPriority() const{ return m_priority; }
241 
256  inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
257 
272  inline void SetPriority(double value) { m_priorityHasBeenSet = true; m_priority = value; }
273 
288  inline LaunchTemplateOverrides& WithPriority(double value) { SetPriority(value); return *this;}
289 
290  private:
291 
292  InstanceType m_instanceType;
293  bool m_instanceTypeHasBeenSet;
294 
295  Aws::String m_spotPrice;
296  bool m_spotPriceHasBeenSet;
297 
298  Aws::String m_subnetId;
299  bool m_subnetIdHasBeenSet;
300 
301  Aws::String m_availabilityZone;
302  bool m_availabilityZoneHasBeenSet;
303 
304  double m_weightedCapacity;
305  bool m_weightedCapacityHasBeenSet;
306 
307  double m_priority;
308  bool m_priorityHasBeenSet;
309  };
310 
311 } // namespace Model
312 } // namespace EC2
313 } // namespace Aws
Aws::EC2::Model::LaunchTemplateOverrides::WithAvailabilityZone
LaunchTemplateOverrides & WithAvailabilityZone(Aws::String &&value)
Definition: LaunchTemplateOverrides.h:197
Aws::EC2::Model::LaunchTemplateOverrides::WithAvailabilityZone
LaunchTemplateOverrides & WithAvailabilityZone(const char *value)
Definition: LaunchTemplateOverrides.h:202
Aws::EC2::Model::LaunchTemplateOverrides::GetSpotPrice
const Aws::String & GetSpotPrice() const
Definition: LaunchTemplateOverrides.h:78
Aws::EC2::Model::LaunchTemplateOverrides::WithSubnetId
LaunchTemplateOverrides & WithSubnetId(const char *value)
Definition: LaunchTemplateOverrides.h:161
Aws::EC2::Model::LaunchTemplateOverrides::SetAvailabilityZone
void SetAvailabilityZone(const char *value)
Definition: LaunchTemplateOverrides.h:187
Aws::EC2::Model::LaunchTemplateOverrides::SubnetIdHasBeenSet
bool SubnetIdHasBeenSet() const
Definition: LaunchTemplateOverrides.h:131
Aws::EC2::Model::LaunchTemplateOverrides::SetSubnetId
void SetSubnetId(const char *value)
Definition: LaunchTemplateOverrides.h:146
Aws::EC2::Model::LaunchTemplateOverrides::AvailabilityZoneHasBeenSet
bool AvailabilityZoneHasBeenSet() const
Definition: LaunchTemplateOverrides.h:172
Aws::EC2::Model::LaunchTemplateOverrides::GetInstanceType
const InstanceType & GetInstanceType() const
Definition: LaunchTemplateOverrides.h:46
Aws::EC2::Model::LaunchTemplateOverrides::GetPriority
double GetPriority() const
Definition: LaunchTemplateOverrides.h:240
Aws::EC2::Model::LaunchTemplateOverrides::WithSpotPrice
LaunchTemplateOverrides & WithSpotPrice(const Aws::String &value)
Definition: LaunchTemplateOverrides.h:108
Aws::EC2::Model::LaunchTemplateOverrides::SetSubnetId
void SetSubnetId(const Aws::String &value)
Definition: LaunchTemplateOverrides.h:136
Aws::EC2::Model::LaunchTemplateOverrides::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::LaunchTemplateOverrides::WithSpotPrice
LaunchTemplateOverrides & WithSpotPrice(const char *value)
Definition: LaunchTemplateOverrides.h:120
Aws::EC2::Model::LaunchTemplateOverrides::WeightedCapacityHasBeenSet
bool WeightedCapacityHasBeenSet() const
Definition: LaunchTemplateOverrides.h:213
Aws::EC2::Model::LaunchTemplateOverrides::SetSpotPrice
void SetSpotPrice(const Aws::String &value)
Definition: LaunchTemplateOverrides.h:90
Aws::EC2::Model::LaunchTemplateOverrides::SetAvailabilityZone
void SetAvailabilityZone(const Aws::String &value)
Definition: LaunchTemplateOverrides.h:177
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::LaunchTemplateOverrides::WithInstanceType
LaunchTemplateOverrides & WithInstanceType(InstanceType &&value)
Definition: LaunchTemplateOverrides.h:71
Aws::EC2::Model::LaunchTemplateOverrides::SetWeightedCapacity
void SetWeightedCapacity(double value)
Definition: LaunchTemplateOverrides.h:218
Aws::EC2::Model::LaunchTemplateOverrides::InstanceTypeHasBeenSet
bool InstanceTypeHasBeenSet() const
Definition: LaunchTemplateOverrides.h:51
Aws::EC2::Model::LaunchTemplateOverrides::WithAvailabilityZone
LaunchTemplateOverrides & WithAvailabilityZone(const Aws::String &value)
Definition: LaunchTemplateOverrides.h:192
AWSStreamFwd.h
Aws::EC2::Model::LaunchTemplateOverrides::SetSpotPrice
void SetSpotPrice(const char *value)
Definition: LaunchTemplateOverrides.h:102
Aws::EC2::Model::LaunchTemplateOverrides::operator=
LaunchTemplateOverrides & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::LaunchTemplateOverrides::WithPriority
LaunchTemplateOverrides & WithPriority(double value)
Definition: LaunchTemplateOverrides.h:288
Aws::EC2::Model::LaunchTemplateOverrides::SetPriority
void SetPriority(double value)
Definition: LaunchTemplateOverrides.h:272
Aws::EC2::Model::LaunchTemplateOverrides::WithSubnetId
LaunchTemplateOverrides & WithSubnetId(Aws::String &&value)
Definition: LaunchTemplateOverrides.h:156
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::LaunchTemplateOverrides::SpotPriceHasBeenSet
bool SpotPriceHasBeenSet() const
Definition: LaunchTemplateOverrides.h:84
Aws::EC2::Model::LaunchTemplateOverrides::LaunchTemplateOverrides
LaunchTemplateOverrides(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::LaunchTemplateOverrides::SetSpotPrice
void SetSpotPrice(Aws::String &&value)
Definition: LaunchTemplateOverrides.h:96
Aws::EC2::Model::LaunchTemplateOverrides::PriorityHasBeenSet
bool PriorityHasBeenSet() const
Definition: LaunchTemplateOverrides.h:256
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::LaunchTemplateOverrides::LaunchTemplateOverrides
LaunchTemplateOverrides()
Aws::EC2::Model::LaunchTemplateOverrides::GetAvailabilityZone
const Aws::String & GetAvailabilityZone() const
Definition: LaunchTemplateOverrides.h:167
Aws::EC2::Model::LaunchTemplateOverrides::GetSubnetId
const Aws::String & GetSubnetId() const
Definition: LaunchTemplateOverrides.h:126
Aws::EC2::Model::LaunchTemplateOverrides::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWSString.h
Aws::EC2::Model::LaunchTemplateOverrides::WithWeightedCapacity
LaunchTemplateOverrides & WithWeightedCapacity(double value)
Definition: LaunchTemplateOverrides.h:223
Aws::EC2::Model::LaunchTemplateOverrides::GetWeightedCapacity
double GetWeightedCapacity() const
Definition: LaunchTemplateOverrides.h:208
Aws::EC2::Model::LaunchTemplateOverrides::WithSpotPrice
LaunchTemplateOverrides & WithSpotPrice(Aws::String &&value)
Definition: LaunchTemplateOverrides.h:114
InstanceType.h
Aws::EC2::Model::LaunchTemplateOverrides::SetInstanceType
void SetInstanceType(const InstanceType &value)
Definition: LaunchTemplateOverrides.h:56
Aws::EC2::Model::LaunchTemplateOverrides::SetSubnetId
void SetSubnetId(Aws::String &&value)
Definition: LaunchTemplateOverrides.h:141
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::LaunchTemplateOverrides::WithInstanceType
LaunchTemplateOverrides & WithInstanceType(const InstanceType &value)
Definition: LaunchTemplateOverrides.h:66
Aws::EC2::Model::LaunchTemplateOverrides::SetAvailabilityZone
void SetAvailabilityZone(Aws::String &&value)
Definition: LaunchTemplateOverrides.h:182
Aws::EC2::Model::LaunchTemplateOverrides::SetInstanceType
void SetInstanceType(InstanceType &&value)
Definition: LaunchTemplateOverrides.h:61
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::LaunchTemplateOverrides::WithSubnetId
LaunchTemplateOverrides & WithSubnetId(const Aws::String &value)
Definition: LaunchTemplateOverrides.h:151
Aws::EC2::Model::LaunchTemplateOverrides
Definition: LaunchTemplateOverrides.h:33
EC2_EXPORTS.h
Aws::EC2::Model::InstanceType
InstanceType
Definition: InstanceType.h:17