AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CapacityReservationOptions.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/ec2/model/FleetCapacityReservationUsageStrategy.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2
22{
23namespace Model
24{
25
41 {
42 public:
46
47 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
48 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
49
50
52
66 inline const FleetCapacityReservationUsageStrategy& GetUsageStrategy() const{ return m_usageStrategy; }
67 inline bool UsageStrategyHasBeenSet() const { return m_usageStrategyHasBeenSet; }
68 inline void SetUsageStrategy(const FleetCapacityReservationUsageStrategy& value) { m_usageStrategyHasBeenSet = true; m_usageStrategy = value; }
69 inline void SetUsageStrategy(FleetCapacityReservationUsageStrategy&& value) { m_usageStrategyHasBeenSet = true; m_usageStrategy = std::move(value); }
73 private:
74
76 bool m_usageStrategyHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace EC2
81} // namespace Aws
const FleetCapacityReservationUsageStrategy & GetUsageStrategy() const
CapacityReservationOptions & WithUsageStrategy(FleetCapacityReservationUsageStrategy &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetUsageStrategy(FleetCapacityReservationUsageStrategy &&value)
AWS_EC2_API CapacityReservationOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
CapacityReservationOptions & WithUsageStrategy(const FleetCapacityReservationUsageStrategy &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API CapacityReservationOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetUsageStrategy(const FleetCapacityReservationUsageStrategy &value)
std::basic_ostream< char, std::char_traits< char > > OStream