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