AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CapacityReservationSpecification.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/ec2/EC2_EXPORTS.h>
9#include <aws/ec2/model/CapacityReservationPreference.h>
10#include <aws/ec2/model/CapacityReservationTarget.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace EC2 {
21namespace Model {
22
39 public:
40 AWS_EC2_API CapacityReservationSpecification() = default;
43
44 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
46
48
60 inline CapacityReservationPreference GetCapacityReservationPreference() const { return m_capacityReservationPreference; }
61 inline bool CapacityReservationPreferenceHasBeenSet() const { return m_capacityReservationPreferenceHasBeenSet; }
63 m_capacityReservationPreferenceHasBeenSet = true;
64 m_capacityReservationPreference = value;
65 }
68 return *this;
69 }
71
73
77 inline const CapacityReservationTarget& GetCapacityReservationTarget() const { return m_capacityReservationTarget; }
78 inline bool CapacityReservationTargetHasBeenSet() const { return m_capacityReservationTargetHasBeenSet; }
79 template <typename CapacityReservationTargetT = CapacityReservationTarget>
80 void SetCapacityReservationTarget(CapacityReservationTargetT&& value) {
81 m_capacityReservationTargetHasBeenSet = true;
82 m_capacityReservationTarget = std::forward<CapacityReservationTargetT>(value);
83 }
84 template <typename CapacityReservationTargetT = CapacityReservationTarget>
86 SetCapacityReservationTarget(std::forward<CapacityReservationTargetT>(value));
87 return *this;
88 }
90 private:
92
93 CapacityReservationTarget m_capacityReservationTarget;
94 bool m_capacityReservationPreferenceHasBeenSet = false;
95 bool m_capacityReservationTargetHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace EC2
100} // namespace Aws
void SetCapacityReservationPreference(CapacityReservationPreference value)
const CapacityReservationTarget & GetCapacityReservationTarget() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
CapacityReservationPreference GetCapacityReservationPreference() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API CapacityReservationSpecification(const Aws::Utils::Xml::XmlNode &xmlNode)
CapacityReservationSpecification & WithCapacityReservationPreference(CapacityReservationPreference value)
AWS_EC2_API CapacityReservationSpecification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetCapacityReservationTarget(CapacityReservationTargetT &&value)
CapacityReservationSpecification & WithCapacityReservationTarget(CapacityReservationTargetT &&value)
std::basic_ostream< char, std::char_traits< char > > OStream