AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CapacityReservationSpecification.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/CapacityReservationPreference.h>
10#include <aws/ec2/model/CapacityReservationTarget.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
42 {
43 public:
47
48 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
49 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
50
51
53
61 inline const CapacityReservationPreference& GetCapacityReservationPreference() const{ return m_capacityReservationPreference; }
62 inline bool CapacityReservationPreferenceHasBeenSet() const { return m_capacityReservationPreferenceHasBeenSet; }
63 inline void SetCapacityReservationPreference(const CapacityReservationPreference& value) { m_capacityReservationPreferenceHasBeenSet = true; m_capacityReservationPreference = value; }
64 inline void SetCapacityReservationPreference(CapacityReservationPreference&& value) { m_capacityReservationPreferenceHasBeenSet = true; m_capacityReservationPreference = std::move(value); }
68
70
74 inline const CapacityReservationTarget& GetCapacityReservationTarget() const{ return m_capacityReservationTarget; }
75 inline bool CapacityReservationTargetHasBeenSet() const { return m_capacityReservationTargetHasBeenSet; }
76 inline void SetCapacityReservationTarget(const CapacityReservationTarget& value) { m_capacityReservationTargetHasBeenSet = true; m_capacityReservationTarget = value; }
77 inline void SetCapacityReservationTarget(CapacityReservationTarget&& value) { m_capacityReservationTargetHasBeenSet = true; m_capacityReservationTarget = std::move(value); }
81 private:
82
83 CapacityReservationPreference m_capacityReservationPreference;
84 bool m_capacityReservationPreferenceHasBeenSet = false;
85
86 CapacityReservationTarget m_capacityReservationTarget;
87 bool m_capacityReservationTargetHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace EC2
92} // namespace Aws
CapacityReservationSpecification & WithCapacityReservationPreference(const CapacityReservationPreference &value)
const CapacityReservationTarget & GetCapacityReservationTarget() const
void SetCapacityReservationTarget(const CapacityReservationTarget &value)
const CapacityReservationPreference & GetCapacityReservationPreference() const
CapacityReservationSpecification & WithCapacityReservationTarget(const CapacityReservationTarget &value)
void SetCapacityReservationPreference(CapacityReservationPreference &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetCapacityReservationTarget(CapacityReservationTarget &&value)
AWS_EC2_API CapacityReservationSpecification(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API CapacityReservationSpecification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetCapacityReservationPreference(const CapacityReservationPreference &value)
CapacityReservationSpecification & WithCapacityReservationPreference(CapacityReservationPreference &&value)
CapacityReservationSpecification & WithCapacityReservationTarget(CapacityReservationTarget &&value)
std::basic_ostream< char, std::char_traits< char > > OStream