AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FleetLaunchTemplateOverrides.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/PlacementResponse.h>
12#include <aws/ec2/model/InstanceRequirements.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2
25{
26namespace Model
27{
28
35 {
36 public:
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
52 inline const InstanceType& GetInstanceType() const{ return m_instanceType; }
53 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
54 inline void SetInstanceType(const InstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
55 inline void SetInstanceType(InstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
56 inline FleetLaunchTemplateOverrides& WithInstanceType(const InstanceType& value) { SetInstanceType(value); return *this;}
57 inline FleetLaunchTemplateOverrides& WithInstanceType(InstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
59
61
69 inline const Aws::String& GetMaxPrice() const{ return m_maxPrice; }
70 inline bool MaxPriceHasBeenSet() const { return m_maxPriceHasBeenSet; }
71 inline void SetMaxPrice(const Aws::String& value) { m_maxPriceHasBeenSet = true; m_maxPrice = value; }
72 inline void SetMaxPrice(Aws::String&& value) { m_maxPriceHasBeenSet = true; m_maxPrice = std::move(value); }
73 inline void SetMaxPrice(const char* value) { m_maxPriceHasBeenSet = true; m_maxPrice.assign(value); }
74 inline FleetLaunchTemplateOverrides& WithMaxPrice(const Aws::String& value) { SetMaxPrice(value); return *this;}
75 inline FleetLaunchTemplateOverrides& WithMaxPrice(Aws::String&& value) { SetMaxPrice(std::move(value)); return *this;}
76 inline FleetLaunchTemplateOverrides& WithMaxPrice(const char* value) { SetMaxPrice(value); return *this;}
78
80
83 inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
84 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
85 inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
86 inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
87 inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
88 inline FleetLaunchTemplateOverrides& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
89 inline FleetLaunchTemplateOverrides& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
90 inline FleetLaunchTemplateOverrides& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
92
94
97 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
98 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
99 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
100 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
101 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
103 inline FleetLaunchTemplateOverrides& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
104 inline FleetLaunchTemplateOverrides& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
106
108
121 inline double GetWeightedCapacity() const{ return m_weightedCapacity; }
122 inline bool WeightedCapacityHasBeenSet() const { return m_weightedCapacityHasBeenSet; }
123 inline void SetWeightedCapacity(double value) { m_weightedCapacityHasBeenSet = true; m_weightedCapacity = value; }
124 inline FleetLaunchTemplateOverrides& WithWeightedCapacity(double value) { SetWeightedCapacity(value); return *this;}
126
128
141 inline double GetPriority() const{ return m_priority; }
142 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
143 inline void SetPriority(double value) { m_priorityHasBeenSet = true; m_priority = value; }
144 inline FleetLaunchTemplateOverrides& WithPriority(double value) { SetPriority(value); return *this;}
146
148
151 inline const PlacementResponse& GetPlacement() const{ return m_placement; }
152 inline bool PlacementHasBeenSet() const { return m_placementHasBeenSet; }
153 inline void SetPlacement(const PlacementResponse& value) { m_placementHasBeenSet = true; m_placement = value; }
154 inline void SetPlacement(PlacementResponse&& value) { m_placementHasBeenSet = true; m_placement = std::move(value); }
155 inline FleetLaunchTemplateOverrides& WithPlacement(const PlacementResponse& value) { SetPlacement(value); return *this;}
156 inline FleetLaunchTemplateOverrides& WithPlacement(PlacementResponse&& value) { SetPlacement(std::move(value)); return *this;}
158
160
166 inline const InstanceRequirements& GetInstanceRequirements() const{ return m_instanceRequirements; }
167 inline bool InstanceRequirementsHasBeenSet() const { return m_instanceRequirementsHasBeenSet; }
168 inline void SetInstanceRequirements(const InstanceRequirements& value) { m_instanceRequirementsHasBeenSet = true; m_instanceRequirements = value; }
169 inline void SetInstanceRequirements(InstanceRequirements&& value) { m_instanceRequirementsHasBeenSet = true; m_instanceRequirements = std::move(value); }
173
175
197 inline const Aws::String& GetImageId() const{ return m_imageId; }
198 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
199 inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
200 inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
201 inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); }
202 inline FleetLaunchTemplateOverrides& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
203 inline FleetLaunchTemplateOverrides& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
204 inline FleetLaunchTemplateOverrides& WithImageId(const char* value) { SetImageId(value); return *this;}
206 private:
207
208 InstanceType m_instanceType;
209 bool m_instanceTypeHasBeenSet = false;
210
211 Aws::String m_maxPrice;
212 bool m_maxPriceHasBeenSet = false;
213
214 Aws::String m_subnetId;
215 bool m_subnetIdHasBeenSet = false;
216
217 Aws::String m_availabilityZone;
218 bool m_availabilityZoneHasBeenSet = false;
219
220 double m_weightedCapacity;
221 bool m_weightedCapacityHasBeenSet = false;
222
223 double m_priority;
224 bool m_priorityHasBeenSet = false;
225
226 PlacementResponse m_placement;
227 bool m_placementHasBeenSet = false;
228
229 InstanceRequirements m_instanceRequirements;
230 bool m_instanceRequirementsHasBeenSet = false;
231
232 Aws::String m_imageId;
233 bool m_imageIdHasBeenSet = false;
234 };
235
236} // namespace Model
237} // namespace EC2
238} // namespace Aws
FleetLaunchTemplateOverrides & WithImageId(const char *value)
FleetLaunchTemplateOverrides & WithImageId(const Aws::String &value)
AWS_EC2_API FleetLaunchTemplateOverrides & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetInstanceRequirements(const InstanceRequirements &value)
FleetLaunchTemplateOverrides & WithSubnetId(Aws::String &&value)
FleetLaunchTemplateOverrides & WithInstanceType(const InstanceType &value)
FleetLaunchTemplateOverrides & WithPriority(double value)
FleetLaunchTemplateOverrides & WithAvailabilityZone(Aws::String &&value)
FleetLaunchTemplateOverrides & WithPlacement(PlacementResponse &&value)
FleetLaunchTemplateOverrides & WithSubnetId(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
FleetLaunchTemplateOverrides & WithPlacement(const PlacementResponse &value)
const InstanceRequirements & GetInstanceRequirements() const
AWS_EC2_API FleetLaunchTemplateOverrides(const Aws::Utils::Xml::XmlNode &xmlNode)
FleetLaunchTemplateOverrides & WithMaxPrice(const Aws::String &value)
FleetLaunchTemplateOverrides & WithInstanceType(InstanceType &&value)
FleetLaunchTemplateOverrides & WithSubnetId(const char *value)
FleetLaunchTemplateOverrides & WithAvailabilityZone(const char *value)
FleetLaunchTemplateOverrides & WithAvailabilityZone(const Aws::String &value)
FleetLaunchTemplateOverrides & WithMaxPrice(const char *value)
FleetLaunchTemplateOverrides & WithInstanceRequirements(InstanceRequirements &&value)
FleetLaunchTemplateOverrides & WithImageId(Aws::String &&value)
FleetLaunchTemplateOverrides & WithMaxPrice(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
FleetLaunchTemplateOverrides & WithInstanceRequirements(const InstanceRequirements &value)
FleetLaunchTemplateOverrides & WithWeightedCapacity(double value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream