AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LaunchTemplateCapacityReservationSpecificationRequest.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
40 {
41 public:
45
46 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
48
49
51
59 inline const CapacityReservationPreference& GetCapacityReservationPreference() const{ return m_capacityReservationPreference; }
60 inline bool CapacityReservationPreferenceHasBeenSet() const { return m_capacityReservationPreferenceHasBeenSet; }
61 inline void SetCapacityReservationPreference(const CapacityReservationPreference& value) { m_capacityReservationPreferenceHasBeenSet = true; m_capacityReservationPreference = value; }
62 inline void SetCapacityReservationPreference(CapacityReservationPreference&& value) { m_capacityReservationPreferenceHasBeenSet = true; m_capacityReservationPreference = std::move(value); }
66
68
72 inline const CapacityReservationTarget& GetCapacityReservationTarget() const{ return m_capacityReservationTarget; }
73 inline bool CapacityReservationTargetHasBeenSet() const { return m_capacityReservationTargetHasBeenSet; }
74 inline void SetCapacityReservationTarget(const CapacityReservationTarget& value) { m_capacityReservationTargetHasBeenSet = true; m_capacityReservationTarget = value; }
75 inline void SetCapacityReservationTarget(CapacityReservationTarget&& value) { m_capacityReservationTargetHasBeenSet = true; m_capacityReservationTarget = std::move(value); }
79 private:
80
81 CapacityReservationPreference m_capacityReservationPreference;
82 bool m_capacityReservationPreferenceHasBeenSet = false;
83
84 CapacityReservationTarget m_capacityReservationTarget;
85 bool m_capacityReservationTargetHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace EC2
90} // namespace Aws
AWS_EC2_API LaunchTemplateCapacityReservationSpecificationRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LaunchTemplateCapacityReservationSpecificationRequest & WithCapacityReservationTarget(const CapacityReservationTarget &value)
LaunchTemplateCapacityReservationSpecificationRequest & WithCapacityReservationPreference(CapacityReservationPreference &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API LaunchTemplateCapacityReservationSpecificationRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
LaunchTemplateCapacityReservationSpecificationRequest & WithCapacityReservationPreference(const CapacityReservationPreference &value)
LaunchTemplateCapacityReservationSpecificationRequest & WithCapacityReservationTarget(CapacityReservationTarget &&value)
std::basic_ostream< char, std::char_traits< char > > OStream