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>
65 template<
typename SpotPriceT = Aws::String>
66 void SetSpotPrice(SpotPriceT&& value) { m_spotPriceHasBeenSet =
true; m_spotPrice = std::forward<SpotPriceT>(value); }
67 template<
typename SpotPriceT = Aws::String>
77 template<
typename SubnetIdT = Aws::String>
78 void SetSubnetId(SubnetIdT&& value) { m_subnetIdHasBeenSet =
true; m_subnetId = std::forward<SubnetIdT>(value); }
79 template<
typename SubnetIdT = Aws::String>
89 template<
typename AvailabilityZoneT = Aws::String>
90 void SetAvailabilityZone(AvailabilityZoneT&& value) { m_availabilityZoneHasBeenSet =
true; m_availabilityZone = std::forward<AvailabilityZoneT>(value); }
91 template<
typename AvailabilityZoneT = Aws::String>
111 inline void SetWeightedCapacity(
double value) { m_weightedCapacityHasBeenSet =
true; m_weightedCapacity = value; }
132 inline void SetPriority(
double value) { m_priorityHasBeenSet =
true; m_priority = value; }
147 template<
typename InstanceRequirementsT = InstanceRequirements>
148 void SetInstanceRequirements(InstanceRequirementsT&& value) { m_instanceRequirementsHasBeenSet =
true; m_instanceRequirements = std::forward<InstanceRequirementsT>(value); }
149 template<
typename InstanceRequirementsT = InstanceRequirements>
155 bool m_instanceTypeHasBeenSet =
false;
158 bool m_spotPriceHasBeenSet =
false;
161 bool m_subnetIdHasBeenSet =
false;
164 bool m_availabilityZoneHasBeenSet =
false;
166 double m_weightedCapacity{0.0};
167 bool m_weightedCapacityHasBeenSet =
false;
169 double m_priority{0.0};
170 bool m_priorityHasBeenSet =
false;
172 InstanceRequirements m_instanceRequirements;
173 bool m_instanceRequirementsHasBeenSet =
false;
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetSpotPrice(SpotPriceT &&value)
void SetWeightedCapacity(double value)
LaunchTemplateOverrides & WithSpotPrice(SpotPriceT &&value)
const Aws::String & GetAvailabilityZone() const
const InstanceRequirements & GetInstanceRequirements() const
LaunchTemplateOverrides & WithPriority(double value)
void SetSubnetId(SubnetIdT &&value)
AWS_EC2_API LaunchTemplateOverrides(const Aws::Utils::Xml::XmlNode &xmlNode)
bool InstanceRequirementsHasBeenSet() const
InstanceType GetInstanceType() const
bool SubnetIdHasBeenSet() const
AWS_EC2_API LaunchTemplateOverrides & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetAvailabilityZone(AvailabilityZoneT &&value)
LaunchTemplateOverrides & WithAvailabilityZone(AvailabilityZoneT &&value)
LaunchTemplateOverrides & WithInstanceType(InstanceType value)
LaunchTemplateOverrides & WithSubnetId(SubnetIdT &&value)
LaunchTemplateOverrides & WithWeightedCapacity(double value)
bool InstanceTypeHasBeenSet() const
void SetInstanceType(InstanceType value)
LaunchTemplateOverrides & WithInstanceRequirements(InstanceRequirementsT &&value)
bool SpotPriceHasBeenSet() const
bool PriorityHasBeenSet() const
void SetPriority(double value)
bool AvailabilityZoneHasBeenSet() const
bool WeightedCapacityHasBeenSet() const
AWS_EC2_API LaunchTemplateOverrides()=default
const Aws::String & GetSubnetId() const
double GetPriority() const
double GetWeightedCapacity() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetSpotPrice() const
void SetInstanceRequirements(InstanceRequirementsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream