AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LaunchTemplateCapacityReservationSpecificationResponse.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/CapacityReservationTargetResponse.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
34 {
35 public:
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
53 inline const CapacityReservationPreference& GetCapacityReservationPreference() const{ return m_capacityReservationPreference; }
54 inline bool CapacityReservationPreferenceHasBeenSet() const { return m_capacityReservationPreferenceHasBeenSet; }
55 inline void SetCapacityReservationPreference(const CapacityReservationPreference& value) { m_capacityReservationPreferenceHasBeenSet = true; m_capacityReservationPreference = value; }
56 inline void SetCapacityReservationPreference(CapacityReservationPreference&& value) { m_capacityReservationPreferenceHasBeenSet = true; m_capacityReservationPreference = std::move(value); }
60
62
66 inline const CapacityReservationTargetResponse& GetCapacityReservationTarget() const{ return m_capacityReservationTarget; }
67 inline bool CapacityReservationTargetHasBeenSet() const { return m_capacityReservationTargetHasBeenSet; }
68 inline void SetCapacityReservationTarget(const CapacityReservationTargetResponse& value) { m_capacityReservationTargetHasBeenSet = true; m_capacityReservationTarget = value; }
69 inline void SetCapacityReservationTarget(CapacityReservationTargetResponse&& value) { m_capacityReservationTargetHasBeenSet = true; m_capacityReservationTarget = std::move(value); }
73 private:
74
75 CapacityReservationPreference m_capacityReservationPreference;
76 bool m_capacityReservationPreferenceHasBeenSet = false;
77
78 CapacityReservationTargetResponse m_capacityReservationTarget;
79 bool m_capacityReservationTargetHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace EC2
84} // namespace Aws
LaunchTemplateCapacityReservationSpecificationResponse & WithCapacityReservationTarget(const CapacityReservationTargetResponse &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
LaunchTemplateCapacityReservationSpecificationResponse & WithCapacityReservationPreference(const CapacityReservationPreference &value)
AWS_EC2_API LaunchTemplateCapacityReservationSpecificationResponse(const Aws::Utils::Xml::XmlNode &xmlNode)
LaunchTemplateCapacityReservationSpecificationResponse & WithCapacityReservationTarget(CapacityReservationTargetResponse &&value)
AWS_EC2_API LaunchTemplateCapacityReservationSpecificationResponse & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LaunchTemplateCapacityReservationSpecificationResponse & WithCapacityReservationPreference(CapacityReservationPreference &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
std::basic_ostream< char, std::char_traits< char > > OStream