AWS SDK for C++  1.9.69
AWS SDK for C++
FleetSpotCapacityRebalance.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 
52  inline const FleetReplacementStrategy& GetReplacementStrategy() const{ return m_replacementStrategy; }
53 
63  inline bool ReplacementStrategyHasBeenSet() const { return m_replacementStrategyHasBeenSet; }
64 
74  inline void SetReplacementStrategy(const FleetReplacementStrategy& value) { m_replacementStrategyHasBeenSet = true; m_replacementStrategy = value; }
75 
85  inline void SetReplacementStrategy(FleetReplacementStrategy&& value) { m_replacementStrategyHasBeenSet = true; m_replacementStrategy = std::move(value); }
86 
96  inline FleetSpotCapacityRebalance& WithReplacementStrategy(const FleetReplacementStrategy& value) { SetReplacementStrategy(value); return *this;}
97 
107  inline FleetSpotCapacityRebalance& WithReplacementStrategy(FleetReplacementStrategy&& value) { SetReplacementStrategy(std::move(value)); return *this;}
108 
109  private:
110 
111  FleetReplacementStrategy m_replacementStrategy;
112  bool m_replacementStrategyHasBeenSet;
113  };
114 
115 } // namespace Model
116 } // namespace EC2
117 } // namespace Aws
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::FleetReplacementStrategy
FleetReplacementStrategy
Definition: FleetReplacementStrategy.h:17
AWSStreamFwd.h
Aws::EC2::Model::FleetSpotCapacityRebalance::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::EC2::Model::FleetSpotCapacityRebalance::SetReplacementStrategy
void SetReplacementStrategy(const FleetReplacementStrategy &value)
Definition: FleetSpotCapacityRebalance.h:74
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::FleetSpotCapacityRebalance::FleetSpotCapacityRebalance
FleetSpotCapacityRebalance()
Aws::EC2::Model::FleetSpotCapacityRebalance::ReplacementStrategyHasBeenSet
bool ReplacementStrategyHasBeenSet() const
Definition: FleetSpotCapacityRebalance.h:63
FleetReplacementStrategy.h
Aws::EC2::Model::FleetSpotCapacityRebalance::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::FleetSpotCapacityRebalance::FleetSpotCapacityRebalance
FleetSpotCapacityRebalance(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::FleetSpotCapacityRebalance::WithReplacementStrategy
FleetSpotCapacityRebalance & WithReplacementStrategy(FleetReplacementStrategy &&value)
Definition: FleetSpotCapacityRebalance.h:107
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::FleetSpotCapacityRebalance
Definition: FleetSpotCapacityRebalance.h:33
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::FleetSpotCapacityRebalance::WithReplacementStrategy
FleetSpotCapacityRebalance & WithReplacementStrategy(const FleetReplacementStrategy &value)
Definition: FleetSpotCapacityRebalance.h:96
Aws::EC2::Model::FleetSpotCapacityRebalance::operator=
FleetSpotCapacityRebalance & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
EC2_EXPORTS.h
Aws::EC2::Model::FleetSpotCapacityRebalance::SetReplacementStrategy
void SetReplacementStrategy(FleetReplacementStrategy &&value)
Definition: FleetSpotCapacityRebalance.h:85
Aws::EC2::Model::FleetSpotCapacityRebalance::GetReplacementStrategy
const FleetReplacementStrategy & GetReplacementStrategy() const
Definition: FleetSpotCapacityRebalance.h:52