AWS SDK for C++  1.9.125
AWS SDK for C++
SpotMaintenanceStrategies.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace EC2
22 {
23 namespace Model
24 {
25 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
47  inline const SpotCapacityRebalance& GetCapacityRebalance() const{ return m_capacityRebalance; }
48 
53  inline bool CapacityRebalanceHasBeenSet() const { return m_capacityRebalanceHasBeenSet; }
54 
59  inline void SetCapacityRebalance(const SpotCapacityRebalance& value) { m_capacityRebalanceHasBeenSet = true; m_capacityRebalance = value; }
60 
65  inline void SetCapacityRebalance(SpotCapacityRebalance&& value) { m_capacityRebalanceHasBeenSet = true; m_capacityRebalance = std::move(value); }
66 
71  inline SpotMaintenanceStrategies& WithCapacityRebalance(const SpotCapacityRebalance& value) { SetCapacityRebalance(value); return *this;}
72 
77  inline SpotMaintenanceStrategies& WithCapacityRebalance(SpotCapacityRebalance&& value) { SetCapacityRebalance(std::move(value)); return *this;}
78 
79  private:
80 
81  SpotCapacityRebalance m_capacityRebalance;
82  bool m_capacityRebalanceHasBeenSet;
83  };
84 
85 } // namespace Model
86 } // namespace EC2
87 } // namespace Aws
Aws::EC2::Model::SpotMaintenanceStrategies::GetCapacityRebalance
const SpotCapacityRebalance & GetCapacityRebalance() const
Definition: SpotMaintenanceStrategies.h:47
Aws::EC2::Model::SpotMaintenanceStrategies::SpotMaintenanceStrategies
SpotMaintenanceStrategies(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::SpotMaintenanceStrategies::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::SpotCapacityRebalance
Definition: SpotCapacityRebalance.h:37
Aws::EC2::Model::SpotMaintenanceStrategies::WithCapacityRebalance
SpotMaintenanceStrategies & WithCapacityRebalance(SpotCapacityRebalance &&value)
Definition: SpotMaintenanceStrategies.h:77
Aws::EC2::Model::SpotMaintenanceStrategies::CapacityRebalanceHasBeenSet
bool CapacityRebalanceHasBeenSet() const
Definition: SpotMaintenanceStrategies.h:53
AWSStreamFwd.h
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::SpotMaintenanceStrategies::SpotMaintenanceStrategies
SpotMaintenanceStrategies()
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::SpotMaintenanceStrategies::SetCapacityRebalance
void SetCapacityRebalance(SpotCapacityRebalance &&value)
Definition: SpotMaintenanceStrategies.h:65
Aws::EC2::Model::SpotMaintenanceStrategies::SetCapacityRebalance
void SetCapacityRebalance(const SpotCapacityRebalance &value)
Definition: SpotMaintenanceStrategies.h:59
Aws::EC2::Model::SpotMaintenanceStrategies
Definition: SpotMaintenanceStrategies.h:33
Aws::EC2::Model::SpotMaintenanceStrategies::WithCapacityRebalance
SpotMaintenanceStrategies & WithCapacityRebalance(const SpotCapacityRebalance &value)
Definition: SpotMaintenanceStrategies.h:71
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::SpotMaintenanceStrategies::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
index
int index
Definition: cJSON.h:181
SpotCapacityRebalance.h
Aws::EC2::Model::SpotMaintenanceStrategies::operator=
SpotMaintenanceStrategies & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
EC2_EXPORTS.h