AWS SDK for C++  1.9.107
AWS SDK for C++
FleetSpotMaintenanceStrategiesRequest.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 FleetSpotCapacityRebalanceRequest& GetCapacityRebalance() const{ return m_capacityRebalance; }
48 
53  inline bool CapacityRebalanceHasBeenSet() const { return m_capacityRebalanceHasBeenSet; }
54 
59  inline void SetCapacityRebalance(const FleetSpotCapacityRebalanceRequest& value) { m_capacityRebalanceHasBeenSet = true; m_capacityRebalance = value; }
60 
65  inline void SetCapacityRebalance(FleetSpotCapacityRebalanceRequest&& value) { m_capacityRebalanceHasBeenSet = true; m_capacityRebalance = std::move(value); }
66 
71  inline FleetSpotMaintenanceStrategiesRequest& WithCapacityRebalance(const FleetSpotCapacityRebalanceRequest& value) { SetCapacityRebalance(value); return *this;}
72 
77  inline FleetSpotMaintenanceStrategiesRequest& WithCapacityRebalance(FleetSpotCapacityRebalanceRequest&& value) { SetCapacityRebalance(std::move(value)); return *this;}
78 
79  private:
80 
81  FleetSpotCapacityRebalanceRequest m_capacityRebalance;
82  bool m_capacityRebalanceHasBeenSet;
83  };
84 
85 } // namespace Model
86 } // namespace EC2
87 } // namespace Aws
Aws::EC2::Model::FleetSpotMaintenanceStrategiesRequest
Definition: FleetSpotMaintenanceStrategiesRequest.h:33
Aws::EC2::Model::FleetSpotMaintenanceStrategiesRequest::GetCapacityRebalance
const FleetSpotCapacityRebalanceRequest & GetCapacityRebalance() const
Definition: FleetSpotMaintenanceStrategiesRequest.h:47
Aws::EC2::Model::FleetSpotMaintenanceStrategiesRequest::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
AWSStreamFwd.h
Aws::EC2::Model::FleetSpotMaintenanceStrategiesRequest::SetCapacityRebalance
void SetCapacityRebalance(const FleetSpotCapacityRebalanceRequest &value)
Definition: FleetSpotMaintenanceStrategiesRequest.h:59
Aws::EC2::Model::FleetSpotMaintenanceStrategiesRequest::FleetSpotMaintenanceStrategiesRequest
FleetSpotMaintenanceStrategiesRequest()
Aws::EC2::Model::FleetSpotMaintenanceStrategiesRequest::SetCapacityRebalance
void SetCapacityRebalance(FleetSpotCapacityRebalanceRequest &&value)
Definition: FleetSpotMaintenanceStrategiesRequest.h:65
Aws::EC2::Model::FleetSpotMaintenanceStrategiesRequest::operator=
FleetSpotMaintenanceStrategiesRequest & 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
FleetSpotCapacityRebalanceRequest.h
Aws::EC2::Model::FleetSpotMaintenanceStrategiesRequest::WithCapacityRebalance
FleetSpotMaintenanceStrategiesRequest & WithCapacityRebalance(const FleetSpotCapacityRebalanceRequest &value)
Definition: FleetSpotMaintenanceStrategiesRequest.h:71
Aws::EC2::Model::FleetSpotMaintenanceStrategiesRequest::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::FleetSpotMaintenanceStrategiesRequest::FleetSpotMaintenanceStrategiesRequest
FleetSpotMaintenanceStrategiesRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::FleetSpotMaintenanceStrategiesRequest::CapacityRebalanceHasBeenSet
bool CapacityRebalanceHasBeenSet() const
Definition: FleetSpotMaintenanceStrategiesRequest.h:53
Aws::EC2::Model::FleetSpotMaintenanceStrategiesRequest::WithCapacityRebalance
FleetSpotMaintenanceStrategiesRequest & WithCapacityRebalance(FleetSpotCapacityRebalanceRequest &&value)
Definition: FleetSpotMaintenanceStrategiesRequest.h:77
index
int index
Definition: cJSON.h:181
EC2_EXPORTS.h
Aws::EC2::Model::FleetSpotCapacityRebalanceRequest
Definition: FleetSpotCapacityRebalanceRequest.h:37