AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LaunchTemplateOverrides.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/ec2/model/InstanceType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ec2/model/InstanceRequirements.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2
24{
25namespace Model
26{
27
34 {
35 public:
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const InstanceType& GetInstanceType() const{ return m_instanceType; }
49 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
50 inline void SetInstanceType(const InstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
51 inline void SetInstanceType(InstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
52 inline LaunchTemplateOverrides& WithInstanceType(const InstanceType& value) { SetInstanceType(value); return *this;}
53 inline LaunchTemplateOverrides& WithInstanceType(InstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
55
57
65 inline const Aws::String& GetSpotPrice() const{ return m_spotPrice; }
66 inline bool SpotPriceHasBeenSet() const { return m_spotPriceHasBeenSet; }
67 inline void SetSpotPrice(const Aws::String& value) { m_spotPriceHasBeenSet = true; m_spotPrice = value; }
68 inline void SetSpotPrice(Aws::String&& value) { m_spotPriceHasBeenSet = true; m_spotPrice = std::move(value); }
69 inline void SetSpotPrice(const char* value) { m_spotPriceHasBeenSet = true; m_spotPrice.assign(value); }
70 inline LaunchTemplateOverrides& WithSpotPrice(const Aws::String& value) { SetSpotPrice(value); return *this;}
71 inline LaunchTemplateOverrides& WithSpotPrice(Aws::String&& value) { SetSpotPrice(std::move(value)); return *this;}
72 inline LaunchTemplateOverrides& WithSpotPrice(const char* value) { SetSpotPrice(value); return *this;}
74
76
79 inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
80 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
81 inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
82 inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
83 inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
84 inline LaunchTemplateOverrides& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
85 inline LaunchTemplateOverrides& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
86 inline LaunchTemplateOverrides& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
88
90
93 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
94 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
95 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
96 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
97 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
98 inline LaunchTemplateOverrides& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
99 inline LaunchTemplateOverrides& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
100 inline LaunchTemplateOverrides& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
102
104
117 inline double GetWeightedCapacity() const{ return m_weightedCapacity; }
118 inline bool WeightedCapacityHasBeenSet() const { return m_weightedCapacityHasBeenSet; }
119 inline void SetWeightedCapacity(double value) { m_weightedCapacityHasBeenSet = true; m_weightedCapacity = value; }
120 inline LaunchTemplateOverrides& WithWeightedCapacity(double value) { SetWeightedCapacity(value); return *this;}
122
124
138 inline double GetPriority() const{ return m_priority; }
139 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
140 inline void SetPriority(double value) { m_priorityHasBeenSet = true; m_priority = value; }
141 inline LaunchTemplateOverrides& WithPriority(double value) { SetPriority(value); return *this;}
143
145
153 inline const InstanceRequirements& GetInstanceRequirements() const{ return m_instanceRequirements; }
154 inline bool InstanceRequirementsHasBeenSet() const { return m_instanceRequirementsHasBeenSet; }
155 inline void SetInstanceRequirements(const InstanceRequirements& value) { m_instanceRequirementsHasBeenSet = true; m_instanceRequirements = value; }
156 inline void SetInstanceRequirements(InstanceRequirements&& value) { m_instanceRequirementsHasBeenSet = true; m_instanceRequirements = std::move(value); }
160 private:
161
162 InstanceType m_instanceType;
163 bool m_instanceTypeHasBeenSet = false;
164
165 Aws::String m_spotPrice;
166 bool m_spotPriceHasBeenSet = false;
167
168 Aws::String m_subnetId;
169 bool m_subnetIdHasBeenSet = false;
170
171 Aws::String m_availabilityZone;
172 bool m_availabilityZoneHasBeenSet = false;
173
174 double m_weightedCapacity;
175 bool m_weightedCapacityHasBeenSet = false;
176
177 double m_priority;
178 bool m_priorityHasBeenSet = false;
179
180 InstanceRequirements m_instanceRequirements;
181 bool m_instanceRequirementsHasBeenSet = false;
182 };
183
184} // namespace Model
185} // namespace EC2
186} // namespace Aws
LaunchTemplateOverrides & WithInstanceRequirements(InstanceRequirements &&value)
void SetInstanceRequirements(const InstanceRequirements &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
LaunchTemplateOverrides & WithSpotPrice(Aws::String &&value)
void SetInstanceRequirements(InstanceRequirements &&value)
const InstanceRequirements & GetInstanceRequirements() const
LaunchTemplateOverrides & WithInstanceType(const InstanceType &value)
LaunchTemplateOverrides & WithPriority(double value)
LaunchTemplateOverrides & WithInstanceRequirements(const InstanceRequirements &value)
LaunchTemplateOverrides & WithSubnetId(const Aws::String &value)
LaunchTemplateOverrides & WithAvailabilityZone(const char *value)
void SetInstanceType(const InstanceType &value)
AWS_EC2_API LaunchTemplateOverrides(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API LaunchTemplateOverrides & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LaunchTemplateOverrides & WithAvailabilityZone(const Aws::String &value)
void SetAvailabilityZone(const Aws::String &value)
LaunchTemplateOverrides & WithSpotPrice(const char *value)
LaunchTemplateOverrides & WithInstanceType(InstanceType &&value)
LaunchTemplateOverrides & WithWeightedCapacity(double value)
LaunchTemplateOverrides & WithAvailabilityZone(Aws::String &&value)
LaunchTemplateOverrides & WithSubnetId(const char *value)
LaunchTemplateOverrides & WithSpotPrice(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
LaunchTemplateOverrides & WithSubnetId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream