AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FleetLaunchTemplateOverridesRequest.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/Placement.h>
12#include <aws/ec2/model/InstanceRequirementsRequest.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); }
57 inline FleetLaunchTemplateOverridesRequest& 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 FleetLaunchTemplateOverridesRequest& WithMaxPrice(const Aws::String& value) { SetMaxPrice(value); return *this;}
75 inline FleetLaunchTemplateOverridesRequest& WithMaxPrice(Aws::String&& value) { SetMaxPrice(std::move(value)); return *this;}
76 inline FleetLaunchTemplateOverridesRequest& WithMaxPrice(const char* value) { SetMaxPrice(value); return *this;}
78
80
86 inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
87 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
88 inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
89 inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
90 inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
91 inline FleetLaunchTemplateOverridesRequest& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
92 inline FleetLaunchTemplateOverridesRequest& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
93 inline FleetLaunchTemplateOverridesRequest& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
95
97
100 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
101 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
102 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
103 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
104 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
107 inline FleetLaunchTemplateOverridesRequest& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
109
111
124 inline double GetWeightedCapacity() const{ return m_weightedCapacity; }
125 inline bool WeightedCapacityHasBeenSet() const { return m_weightedCapacityHasBeenSet; }
126 inline void SetWeightedCapacity(double value) { m_weightedCapacityHasBeenSet = true; m_weightedCapacity = value; }
129
131
145 inline double GetPriority() const{ return m_priority; }
146 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
147 inline void SetPriority(double value) { m_priorityHasBeenSet = true; m_priority = value; }
148 inline FleetLaunchTemplateOverridesRequest& WithPriority(double value) { SetPriority(value); return *this;}
150
152
155 inline const Placement& GetPlacement() const{ return m_placement; }
156 inline bool PlacementHasBeenSet() const { return m_placementHasBeenSet; }
157 inline void SetPlacement(const Placement& value) { m_placementHasBeenSet = true; m_placement = value; }
158 inline void SetPlacement(Placement&& value) { m_placementHasBeenSet = true; m_placement = std::move(value); }
159 inline FleetLaunchTemplateOverridesRequest& WithPlacement(const Placement& value) { SetPlacement(value); return *this;}
160 inline FleetLaunchTemplateOverridesRequest& WithPlacement(Placement&& value) { SetPlacement(std::move(value)); return *this;}
162
164
170 inline const InstanceRequirementsRequest& GetInstanceRequirements() const{ return m_instanceRequirements; }
171 inline bool InstanceRequirementsHasBeenSet() const { return m_instanceRequirementsHasBeenSet; }
172 inline void SetInstanceRequirements(const InstanceRequirementsRequest& value) { m_instanceRequirementsHasBeenSet = true; m_instanceRequirements = value; }
173 inline void SetInstanceRequirements(InstanceRequirementsRequest&& value) { m_instanceRequirementsHasBeenSet = true; m_instanceRequirements = std::move(value); }
177
179
201 inline const Aws::String& GetImageId() const{ return m_imageId; }
202 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
203 inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
204 inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
205 inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); }
206 inline FleetLaunchTemplateOverridesRequest& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
207 inline FleetLaunchTemplateOverridesRequest& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
208 inline FleetLaunchTemplateOverridesRequest& WithImageId(const char* value) { SetImageId(value); return *this;}
210 private:
211
212 InstanceType m_instanceType;
213 bool m_instanceTypeHasBeenSet = false;
214
215 Aws::String m_maxPrice;
216 bool m_maxPriceHasBeenSet = false;
217
218 Aws::String m_subnetId;
219 bool m_subnetIdHasBeenSet = false;
220
221 Aws::String m_availabilityZone;
222 bool m_availabilityZoneHasBeenSet = false;
223
224 double m_weightedCapacity;
225 bool m_weightedCapacityHasBeenSet = false;
226
227 double m_priority;
228 bool m_priorityHasBeenSet = false;
229
230 Placement m_placement;
231 bool m_placementHasBeenSet = false;
232
233 InstanceRequirementsRequest m_instanceRequirements;
234 bool m_instanceRequirementsHasBeenSet = false;
235
236 Aws::String m_imageId;
237 bool m_imageIdHasBeenSet = false;
238 };
239
240} // namespace Model
241} // namespace EC2
242} // namespace Aws
FleetLaunchTemplateOverridesRequest & WithPlacement(Placement &&value)
FleetLaunchTemplateOverridesRequest & WithMaxPrice(const Aws::String &value)
FleetLaunchTemplateOverridesRequest & WithImageId(Aws::String &&value)
FleetLaunchTemplateOverridesRequest & WithSubnetId(const char *value)
FleetLaunchTemplateOverridesRequest & WithImageId(const Aws::String &value)
FleetLaunchTemplateOverridesRequest & WithImageId(const char *value)
FleetLaunchTemplateOverridesRequest & WithPlacement(const Placement &value)
FleetLaunchTemplateOverridesRequest & WithInstanceRequirements(InstanceRequirementsRequest &&value)
FleetLaunchTemplateOverridesRequest & WithAvailabilityZone(const char *value)
FleetLaunchTemplateOverridesRequest & WithSubnetId(Aws::String &&value)
FleetLaunchTemplateOverridesRequest & WithInstanceRequirements(const InstanceRequirementsRequest &value)
FleetLaunchTemplateOverridesRequest & WithMaxPrice(const char *value)
FleetLaunchTemplateOverridesRequest & WithWeightedCapacity(double value)
FleetLaunchTemplateOverridesRequest & WithInstanceType(InstanceType &&value)
FleetLaunchTemplateOverridesRequest & WithAvailabilityZone(Aws::String &&value)
FleetLaunchTemplateOverridesRequest & WithPriority(double value)
FleetLaunchTemplateOverridesRequest & WithMaxPrice(Aws::String &&value)
AWS_EC2_API FleetLaunchTemplateOverridesRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetInstanceRequirements(const InstanceRequirementsRequest &value)
FleetLaunchTemplateOverridesRequest & WithInstanceType(const InstanceType &value)
FleetLaunchTemplateOverridesRequest & WithSubnetId(const Aws::String &value)
FleetLaunchTemplateOverridesRequest & WithAvailabilityZone(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API FleetLaunchTemplateOverridesRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream