AWS SDK for C++  1.9.71
AWS SDK for C++
CapacityReservationOptionsRequest.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 
41  {
42  public:
46 
47  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
48  void OutputToStream(Aws::OStream& oStream, const char* location) const;
49 
50 
65  inline const FleetCapacityReservationUsageStrategy& GetUsageStrategy() const{ return m_usageStrategy; }
66 
81  inline bool UsageStrategyHasBeenSet() const { return m_usageStrategyHasBeenSet; }
82 
97  inline void SetUsageStrategy(const FleetCapacityReservationUsageStrategy& value) { m_usageStrategyHasBeenSet = true; m_usageStrategy = value; }
98 
113  inline void SetUsageStrategy(FleetCapacityReservationUsageStrategy&& value) { m_usageStrategyHasBeenSet = true; m_usageStrategy = std::move(value); }
114 
129  inline CapacityReservationOptionsRequest& WithUsageStrategy(const FleetCapacityReservationUsageStrategy& value) { SetUsageStrategy(value); return *this;}
130 
145  inline CapacityReservationOptionsRequest& WithUsageStrategy(FleetCapacityReservationUsageStrategy&& value) { SetUsageStrategy(std::move(value)); return *this;}
146 
147  private:
148 
150  bool m_usageStrategyHasBeenSet;
151  };
152 
153 } // namespace Model
154 } // namespace EC2
155 } // namespace Aws
FleetCapacityReservationUsageStrategy.h
Aws::EC2::Model::CapacityReservationOptionsRequest::WithUsageStrategy
CapacityReservationOptionsRequest & WithUsageStrategy(FleetCapacityReservationUsageStrategy &&value)
Definition: CapacityReservationOptionsRequest.h:145
Aws::EC2::Model::CapacityReservationOptionsRequest::GetUsageStrategy
const FleetCapacityReservationUsageStrategy & GetUsageStrategy() const
Definition: CapacityReservationOptionsRequest.h:65
Aws::EC2::Model::CapacityReservationOptionsRequest::SetUsageStrategy
void SetUsageStrategy(FleetCapacityReservationUsageStrategy &&value)
Definition: CapacityReservationOptionsRequest.h:113
Aws::EC2::Model::FleetCapacityReservationUsageStrategy
FleetCapacityReservationUsageStrategy
Definition: FleetCapacityReservationUsageStrategy.h:17
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
AWSStreamFwd.h
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::CapacityReservationOptionsRequest::CapacityReservationOptionsRequest
CapacityReservationOptionsRequest()
Aws::EC2::Model::CapacityReservationOptionsRequest::WithUsageStrategy
CapacityReservationOptionsRequest & WithUsageStrategy(const FleetCapacityReservationUsageStrategy &value)
Definition: CapacityReservationOptionsRequest.h:129
Aws::EC2::Model::CapacityReservationOptionsRequest::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::CapacityReservationOptionsRequest
Definition: CapacityReservationOptionsRequest.h:41
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::CapacityReservationOptionsRequest::UsageStrategyHasBeenSet
bool UsageStrategyHasBeenSet() const
Definition: CapacityReservationOptionsRequest.h:81
Aws::EC2::Model::CapacityReservationOptionsRequest::CapacityReservationOptionsRequest
CapacityReservationOptionsRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::CapacityReservationOptionsRequest::SetUsageStrategy
void SetUsageStrategy(const FleetCapacityReservationUsageStrategy &value)
Definition: CapacityReservationOptionsRequest.h:97
Aws::EC2::Model::CapacityReservationOptionsRequest::operator=
CapacityReservationOptionsRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CapacityReservationOptionsRequest::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
index
int index
Definition: cJSON.h:181
EC2_EXPORTS.h