AWS SDK for C++  1.9.71
AWS SDK for C++
SpotCapacityRebalance.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 
37  {
38  public:
42 
43  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44  void OutputToStream(Aws::OStream& oStream, const char* location) const;
45 
46 
57  inline const ReplacementStrategy& GetReplacementStrategy() const{ return m_replacementStrategy; }
58 
69  inline bool ReplacementStrategyHasBeenSet() const { return m_replacementStrategyHasBeenSet; }
70 
81  inline void SetReplacementStrategy(const ReplacementStrategy& value) { m_replacementStrategyHasBeenSet = true; m_replacementStrategy = value; }
82 
93  inline void SetReplacementStrategy(ReplacementStrategy&& value) { m_replacementStrategyHasBeenSet = true; m_replacementStrategy = std::move(value); }
94 
105  inline SpotCapacityRebalance& WithReplacementStrategy(const ReplacementStrategy& value) { SetReplacementStrategy(value); return *this;}
106 
117  inline SpotCapacityRebalance& WithReplacementStrategy(ReplacementStrategy&& value) { SetReplacementStrategy(std::move(value)); return *this;}
118 
119  private:
120 
121  ReplacementStrategy m_replacementStrategy;
122  bool m_replacementStrategyHasBeenSet;
123  };
124 
125 } // namespace Model
126 } // namespace EC2
127 } // namespace Aws
Aws::EC2::Model::SpotCapacityRebalance::SetReplacementStrategy
void SetReplacementStrategy(const ReplacementStrategy &value)
Definition: SpotCapacityRebalance.h:81
Aws::EC2::Model::SpotCapacityRebalance::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::ReplacementStrategy
ReplacementStrategy
Definition: ReplacementStrategy.h:17
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::SpotCapacityRebalance
Definition: SpotCapacityRebalance.h:37
AWSStreamFwd.h
Aws::EC2::Model::SpotCapacityRebalance::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::SpotCapacityRebalance::ReplacementStrategyHasBeenSet
bool ReplacementStrategyHasBeenSet() const
Definition: SpotCapacityRebalance.h:69
Aws::EC2::Model::SpotCapacityRebalance::WithReplacementStrategy
SpotCapacityRebalance & WithReplacementStrategy(ReplacementStrategy &&value)
Definition: SpotCapacityRebalance.h:117
Aws::EC2::Model::SpotCapacityRebalance::SpotCapacityRebalance
SpotCapacityRebalance(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::SpotCapacityRebalance::SetReplacementStrategy
void SetReplacementStrategy(ReplacementStrategy &&value)
Definition: SpotCapacityRebalance.h:93
Aws
Definition: AccessManagementClient.h:15
index
int index
Definition: cJSON.h:181
ReplacementStrategy.h
Aws::EC2::Model::SpotCapacityRebalance::SpotCapacityRebalance
SpotCapacityRebalance()
EC2_EXPORTS.h
Aws::EC2::Model::SpotCapacityRebalance::WithReplacementStrategy
SpotCapacityRebalance & WithReplacementStrategy(const ReplacementStrategy &value)
Definition: SpotCapacityRebalance.h:105
Aws::EC2::Model::SpotCapacityRebalance::operator=
SpotCapacityRebalance & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::SpotCapacityRebalance::GetReplacementStrategy
const ReplacementStrategy & GetReplacementStrategy() const
Definition: SpotCapacityRebalance.h:57