AWS SDK for C++  1.9.70
AWS SDK for C++
OnDemandOptionsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace EC2
24 {
25 namespace Model
26 {
27 
35  {
36  public:
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  void OutputToStream(Aws::OStream& oStream, const char* location) const;
43 
44 
53  inline const FleetOnDemandAllocationStrategy& GetAllocationStrategy() const{ return m_allocationStrategy; }
54 
63  inline bool AllocationStrategyHasBeenSet() const { return m_allocationStrategyHasBeenSet; }
64 
73  inline void SetAllocationStrategy(const FleetOnDemandAllocationStrategy& value) { m_allocationStrategyHasBeenSet = true; m_allocationStrategy = value; }
74 
83  inline void SetAllocationStrategy(FleetOnDemandAllocationStrategy&& value) { m_allocationStrategyHasBeenSet = true; m_allocationStrategy = std::move(value); }
84 
93  inline OnDemandOptionsRequest& WithAllocationStrategy(const FleetOnDemandAllocationStrategy& value) { SetAllocationStrategy(value); return *this;}
94 
103  inline OnDemandOptionsRequest& WithAllocationStrategy(FleetOnDemandAllocationStrategy&& value) { SetAllocationStrategy(std::move(value)); return *this;}
104 
105 
110  inline const CapacityReservationOptionsRequest& GetCapacityReservationOptions() const{ return m_capacityReservationOptions; }
111 
116  inline bool CapacityReservationOptionsHasBeenSet() const { return m_capacityReservationOptionsHasBeenSet; }
117 
122  inline void SetCapacityReservationOptions(const CapacityReservationOptionsRequest& value) { m_capacityReservationOptionsHasBeenSet = true; m_capacityReservationOptions = value; }
123 
128  inline void SetCapacityReservationOptions(CapacityReservationOptionsRequest&& value) { m_capacityReservationOptionsHasBeenSet = true; m_capacityReservationOptions = std::move(value); }
129 
134  inline OnDemandOptionsRequest& WithCapacityReservationOptions(const CapacityReservationOptionsRequest& value) { SetCapacityReservationOptions(value); return *this;}
135 
140  inline OnDemandOptionsRequest& WithCapacityReservationOptions(CapacityReservationOptionsRequest&& value) { SetCapacityReservationOptions(std::move(value)); return *this;}
141 
142 
148  inline bool GetSingleInstanceType() const{ return m_singleInstanceType; }
149 
155  inline bool SingleInstanceTypeHasBeenSet() const { return m_singleInstanceTypeHasBeenSet; }
156 
162  inline void SetSingleInstanceType(bool value) { m_singleInstanceTypeHasBeenSet = true; m_singleInstanceType = value; }
163 
169  inline OnDemandOptionsRequest& WithSingleInstanceType(bool value) { SetSingleInstanceType(value); return *this;}
170 
171 
176  inline bool GetSingleAvailabilityZone() const{ return m_singleAvailabilityZone; }
177 
182  inline bool SingleAvailabilityZoneHasBeenSet() const { return m_singleAvailabilityZoneHasBeenSet; }
183 
188  inline void SetSingleAvailabilityZone(bool value) { m_singleAvailabilityZoneHasBeenSet = true; m_singleAvailabilityZone = value; }
189 
194  inline OnDemandOptionsRequest& WithSingleAvailabilityZone(bool value) { SetSingleAvailabilityZone(value); return *this;}
195 
196 
201  inline int GetMinTargetCapacity() const{ return m_minTargetCapacity; }
202 
207  inline bool MinTargetCapacityHasBeenSet() const { return m_minTargetCapacityHasBeenSet; }
208 
213  inline void SetMinTargetCapacity(int value) { m_minTargetCapacityHasBeenSet = true; m_minTargetCapacity = value; }
214 
219  inline OnDemandOptionsRequest& WithMinTargetCapacity(int value) { SetMinTargetCapacity(value); return *this;}
220 
221 
226  inline const Aws::String& GetMaxTotalPrice() const{ return m_maxTotalPrice; }
227 
232  inline bool MaxTotalPriceHasBeenSet() const { return m_maxTotalPriceHasBeenSet; }
233 
238  inline void SetMaxTotalPrice(const Aws::String& value) { m_maxTotalPriceHasBeenSet = true; m_maxTotalPrice = value; }
239 
244  inline void SetMaxTotalPrice(Aws::String&& value) { m_maxTotalPriceHasBeenSet = true; m_maxTotalPrice = std::move(value); }
245 
250  inline void SetMaxTotalPrice(const char* value) { m_maxTotalPriceHasBeenSet = true; m_maxTotalPrice.assign(value); }
251 
256  inline OnDemandOptionsRequest& WithMaxTotalPrice(const Aws::String& value) { SetMaxTotalPrice(value); return *this;}
257 
262  inline OnDemandOptionsRequest& WithMaxTotalPrice(Aws::String&& value) { SetMaxTotalPrice(std::move(value)); return *this;}
263 
268  inline OnDemandOptionsRequest& WithMaxTotalPrice(const char* value) { SetMaxTotalPrice(value); return *this;}
269 
270  private:
271 
272  FleetOnDemandAllocationStrategy m_allocationStrategy;
273  bool m_allocationStrategyHasBeenSet;
274 
275  CapacityReservationOptionsRequest m_capacityReservationOptions;
276  bool m_capacityReservationOptionsHasBeenSet;
277 
278  bool m_singleInstanceType;
279  bool m_singleInstanceTypeHasBeenSet;
280 
281  bool m_singleAvailabilityZone;
282  bool m_singleAvailabilityZoneHasBeenSet;
283 
284  int m_minTargetCapacity;
285  bool m_minTargetCapacityHasBeenSet;
286 
287  Aws::String m_maxTotalPrice;
288  bool m_maxTotalPriceHasBeenSet;
289  };
290 
291 } // namespace Model
292 } // namespace EC2
293 } // namespace Aws
Aws::EC2::Model::OnDemandOptionsRequest::WithMinTargetCapacity
OnDemandOptionsRequest & WithMinTargetCapacity(int value)
Definition: OnDemandOptionsRequest.h:219
Aws::EC2::Model::OnDemandOptionsRequest::WithMaxTotalPrice
OnDemandOptionsRequest & WithMaxTotalPrice(const char *value)
Definition: OnDemandOptionsRequest.h:268
Aws::EC2::Model::OnDemandOptionsRequest::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::FleetOnDemandAllocationStrategy
FleetOnDemandAllocationStrategy
Definition: FleetOnDemandAllocationStrategy.h:17
Aws::EC2::Model::OnDemandOptionsRequest::SetMaxTotalPrice
void SetMaxTotalPrice(Aws::String &&value)
Definition: OnDemandOptionsRequest.h:244
Aws::EC2::Model::OnDemandOptionsRequest::MaxTotalPriceHasBeenSet
bool MaxTotalPriceHasBeenSet() const
Definition: OnDemandOptionsRequest.h:232
Aws::EC2::Model::OnDemandOptionsRequest::WithMaxTotalPrice
OnDemandOptionsRequest & WithMaxTotalPrice(const Aws::String &value)
Definition: OnDemandOptionsRequest.h:256
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::OnDemandOptionsRequest::MinTargetCapacityHasBeenSet
bool MinTargetCapacityHasBeenSet() const
Definition: OnDemandOptionsRequest.h:207
Aws::EC2::Model::OnDemandOptionsRequest::WithCapacityReservationOptions
OnDemandOptionsRequest & WithCapacityReservationOptions(const CapacityReservationOptionsRequest &value)
Definition: OnDemandOptionsRequest.h:134
Aws::EC2::Model::OnDemandOptionsRequest
Definition: OnDemandOptionsRequest.h:35
AWSStreamFwd.h
Aws::EC2::Model::OnDemandOptionsRequest::WithAllocationStrategy
OnDemandOptionsRequest & WithAllocationStrategy(const FleetOnDemandAllocationStrategy &value)
Definition: OnDemandOptionsRequest.h:93
Aws::EC2::Model::OnDemandOptionsRequest::OnDemandOptionsRequest
OnDemandOptionsRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::OnDemandOptionsRequest::GetSingleInstanceType
bool GetSingleInstanceType() const
Definition: OnDemandOptionsRequest.h:148
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::OnDemandOptionsRequest::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::OnDemandOptionsRequest::SetAllocationStrategy
void SetAllocationStrategy(FleetOnDemandAllocationStrategy &&value)
Definition: OnDemandOptionsRequest.h:83
Aws::EC2::Model::OnDemandOptionsRequest::CapacityReservationOptionsHasBeenSet
bool CapacityReservationOptionsHasBeenSet() const
Definition: OnDemandOptionsRequest.h:116
Aws::EC2::Model::OnDemandOptionsRequest::GetCapacityReservationOptions
const CapacityReservationOptionsRequest & GetCapacityReservationOptions() const
Definition: OnDemandOptionsRequest.h:110
Aws::EC2::Model::CapacityReservationOptionsRequest
Definition: CapacityReservationOptionsRequest.h:41
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::OnDemandOptionsRequest::WithAllocationStrategy
OnDemandOptionsRequest & WithAllocationStrategy(FleetOnDemandAllocationStrategy &&value)
Definition: OnDemandOptionsRequest.h:103
Aws::EC2::Model::OnDemandOptionsRequest::SetCapacityReservationOptions
void SetCapacityReservationOptions(CapacityReservationOptionsRequest &&value)
Definition: OnDemandOptionsRequest.h:128
Aws::EC2::Model::OnDemandOptionsRequest::AllocationStrategyHasBeenSet
bool AllocationStrategyHasBeenSet() const
Definition: OnDemandOptionsRequest.h:63
Aws::EC2::Model::OnDemandOptionsRequest::SingleAvailabilityZoneHasBeenSet
bool SingleAvailabilityZoneHasBeenSet() const
Definition: OnDemandOptionsRequest.h:182
Aws::EC2::Model::OnDemandOptionsRequest::GetAllocationStrategy
const FleetOnDemandAllocationStrategy & GetAllocationStrategy() const
Definition: OnDemandOptionsRequest.h:53
Aws::EC2::Model::OnDemandOptionsRequest::GetSingleAvailabilityZone
bool GetSingleAvailabilityZone() const
Definition: OnDemandOptionsRequest.h:176
FleetOnDemandAllocationStrategy.h
Aws::EC2::Model::OnDemandOptionsRequest::operator=
OnDemandOptionsRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSString.h
Aws::EC2::Model::OnDemandOptionsRequest::SetAllocationStrategy
void SetAllocationStrategy(const FleetOnDemandAllocationStrategy &value)
Definition: OnDemandOptionsRequest.h:73
Aws::EC2::Model::OnDemandOptionsRequest::SingleInstanceTypeHasBeenSet
bool SingleInstanceTypeHasBeenSet() const
Definition: OnDemandOptionsRequest.h:155
CapacityReservationOptionsRequest.h
Aws::EC2::Model::OnDemandOptionsRequest::WithSingleInstanceType
OnDemandOptionsRequest & WithSingleInstanceType(bool value)
Definition: OnDemandOptionsRequest.h:169
Aws::EC2::Model::OnDemandOptionsRequest::WithSingleAvailabilityZone
OnDemandOptionsRequest & WithSingleAvailabilityZone(bool value)
Definition: OnDemandOptionsRequest.h:194
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::OnDemandOptionsRequest::OnDemandOptionsRequest
OnDemandOptionsRequest()
Aws::EC2::Model::OnDemandOptionsRequest::GetMinTargetCapacity
int GetMinTargetCapacity() const
Definition: OnDemandOptionsRequest.h:201
Aws::EC2::Model::OnDemandOptionsRequest::SetMaxTotalPrice
void SetMaxTotalPrice(const Aws::String &value)
Definition: OnDemandOptionsRequest.h:238
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::OnDemandOptionsRequest::WithMaxTotalPrice
OnDemandOptionsRequest & WithMaxTotalPrice(Aws::String &&value)
Definition: OnDemandOptionsRequest.h:262
Aws::EC2::Model::OnDemandOptionsRequest::GetMaxTotalPrice
const Aws::String & GetMaxTotalPrice() const
Definition: OnDemandOptionsRequest.h:226
Aws::EC2::Model::OnDemandOptionsRequest::SetCapacityReservationOptions
void SetCapacityReservationOptions(const CapacityReservationOptionsRequest &value)
Definition: OnDemandOptionsRequest.h:122
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::OnDemandOptionsRequest::SetSingleAvailabilityZone
void SetSingleAvailabilityZone(bool value)
Definition: OnDemandOptionsRequest.h:188
Aws::EC2::Model::OnDemandOptionsRequest::SetMaxTotalPrice
void SetMaxTotalPrice(const char *value)
Definition: OnDemandOptionsRequest.h:250
Aws::EC2::Model::OnDemandOptionsRequest::SetMinTargetCapacity
void SetMinTargetCapacity(int value)
Definition: OnDemandOptionsRequest.h:213
Aws::EC2::Model::OnDemandOptionsRequest::SetSingleInstanceType
void SetSingleInstanceType(bool value)
Definition: OnDemandOptionsRequest.h:162
EC2_EXPORTS.h
Aws::EC2::Model::OnDemandOptionsRequest::WithCapacityReservationOptions
OnDemandOptionsRequest & WithCapacityReservationOptions(CapacityReservationOptionsRequest &&value)
Definition: OnDemandOptionsRequest.h:140