AWS SDK for C++  1.9.71
AWS SDK for C++
LaunchTemplateCapacityReservationSpecificationResponse.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
52  inline const CapacityReservationPreference& GetCapacityReservationPreference() const{ return m_capacityReservationPreference; }
53 
62  inline bool CapacityReservationPreferenceHasBeenSet() const { return m_capacityReservationPreferenceHasBeenSet; }
63 
72  inline void SetCapacityReservationPreference(const CapacityReservationPreference& value) { m_capacityReservationPreferenceHasBeenSet = true; m_capacityReservationPreference = value; }
73 
82  inline void SetCapacityReservationPreference(CapacityReservationPreference&& value) { m_capacityReservationPreferenceHasBeenSet = true; m_capacityReservationPreference = std::move(value); }
83 
92  inline LaunchTemplateCapacityReservationSpecificationResponse& WithCapacityReservationPreference(const CapacityReservationPreference& value) { SetCapacityReservationPreference(value); return *this;}
93 
102  inline LaunchTemplateCapacityReservationSpecificationResponse& WithCapacityReservationPreference(CapacityReservationPreference&& value) { SetCapacityReservationPreference(std::move(value)); return *this;}
103 
104 
109  inline const CapacityReservationTargetResponse& GetCapacityReservationTarget() const{ return m_capacityReservationTarget; }
110 
115  inline bool CapacityReservationTargetHasBeenSet() const { return m_capacityReservationTargetHasBeenSet; }
116 
121  inline void SetCapacityReservationTarget(const CapacityReservationTargetResponse& value) { m_capacityReservationTargetHasBeenSet = true; m_capacityReservationTarget = value; }
122 
127  inline void SetCapacityReservationTarget(CapacityReservationTargetResponse&& value) { m_capacityReservationTargetHasBeenSet = true; m_capacityReservationTarget = std::move(value); }
128 
133  inline LaunchTemplateCapacityReservationSpecificationResponse& WithCapacityReservationTarget(const CapacityReservationTargetResponse& value) { SetCapacityReservationTarget(value); return *this;}
134 
139  inline LaunchTemplateCapacityReservationSpecificationResponse& WithCapacityReservationTarget(CapacityReservationTargetResponse&& value) { SetCapacityReservationTarget(std::move(value)); return *this;}
140 
141  private:
142 
143  CapacityReservationPreference m_capacityReservationPreference;
144  bool m_capacityReservationPreferenceHasBeenSet;
145 
146  CapacityReservationTargetResponse m_capacityReservationTarget;
147  bool m_capacityReservationTargetHasBeenSet;
148  };
149 
150 } // namespace Model
151 } // namespace EC2
152 } // namespace Aws
Aws::EC2::Model::CapacityReservationPreference
CapacityReservationPreference
Definition: CapacityReservationPreference.h:17
Aws::EC2::Model::LaunchTemplateCapacityReservationSpecificationResponse::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::LaunchTemplateCapacityReservationSpecificationResponse::SetCapacityReservationTarget
void SetCapacityReservationTarget(const CapacityReservationTargetResponse &value)
Definition: LaunchTemplateCapacityReservationSpecificationResponse.h:121
Aws::EC2::Model::LaunchTemplateCapacityReservationSpecificationResponse::CapacityReservationTargetHasBeenSet
bool CapacityReservationTargetHasBeenSet() const
Definition: LaunchTemplateCapacityReservationSpecificationResponse.h:115
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
AWSStreamFwd.h
Aws::EC2::Model::LaunchTemplateCapacityReservationSpecificationResponse::SetCapacityReservationTarget
void SetCapacityReservationTarget(CapacityReservationTargetResponse &&value)
Definition: LaunchTemplateCapacityReservationSpecificationResponse.h:127
Aws::EC2::Model::LaunchTemplateCapacityReservationSpecificationResponse::WithCapacityReservationPreference
LaunchTemplateCapacityReservationSpecificationResponse & WithCapacityReservationPreference(const CapacityReservationPreference &value)
Definition: LaunchTemplateCapacityReservationSpecificationResponse.h:92
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::LaunchTemplateCapacityReservationSpecificationResponse::SetCapacityReservationPreference
void SetCapacityReservationPreference(CapacityReservationPreference &&value)
Definition: LaunchTemplateCapacityReservationSpecificationResponse.h:82
CapacityReservationPreference.h
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::LaunchTemplateCapacityReservationSpecificationResponse::SetCapacityReservationPreference
void SetCapacityReservationPreference(const CapacityReservationPreference &value)
Definition: LaunchTemplateCapacityReservationSpecificationResponse.h:72
Aws::EC2::Model::LaunchTemplateCapacityReservationSpecificationResponse::operator=
LaunchTemplateCapacityReservationSpecificationResponse & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::LaunchTemplateCapacityReservationSpecificationResponse::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::LaunchTemplateCapacityReservationSpecificationResponse::WithCapacityReservationTarget
LaunchTemplateCapacityReservationSpecificationResponse & WithCapacityReservationTarget(const CapacityReservationTargetResponse &value)
Definition: LaunchTemplateCapacityReservationSpecificationResponse.h:133
Aws::EC2::Model::LaunchTemplateCapacityReservationSpecificationResponse::CapacityReservationPreferenceHasBeenSet
bool CapacityReservationPreferenceHasBeenSet() const
Definition: LaunchTemplateCapacityReservationSpecificationResponse.h:62
Aws::EC2::Model::LaunchTemplateCapacityReservationSpecificationResponse::GetCapacityReservationPreference
const CapacityReservationPreference & GetCapacityReservationPreference() const
Definition: LaunchTemplateCapacityReservationSpecificationResponse.h:52
Aws::EC2::Model::CapacityReservationTargetResponse
Definition: CapacityReservationTargetResponse.h:33
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::LaunchTemplateCapacityReservationSpecificationResponse::LaunchTemplateCapacityReservationSpecificationResponse
LaunchTemplateCapacityReservationSpecificationResponse()
Aws::EC2::Model::LaunchTemplateCapacityReservationSpecificationResponse::WithCapacityReservationTarget
LaunchTemplateCapacityReservationSpecificationResponse & WithCapacityReservationTarget(CapacityReservationTargetResponse &&value)
Definition: LaunchTemplateCapacityReservationSpecificationResponse.h:139
Aws::EC2::Model::LaunchTemplateCapacityReservationSpecificationResponse::WithCapacityReservationPreference
LaunchTemplateCapacityReservationSpecificationResponse & WithCapacityReservationPreference(CapacityReservationPreference &&value)
Definition: LaunchTemplateCapacityReservationSpecificationResponse.h:102
Aws::EC2::Model::LaunchTemplateCapacityReservationSpecificationResponse::LaunchTemplateCapacityReservationSpecificationResponse
LaunchTemplateCapacityReservationSpecificationResponse(const Aws::Utils::Xml::XmlNode &xmlNode)
index
int index
Definition: cJSON.h:181
CapacityReservationTargetResponse.h
EC2_EXPORTS.h
Aws::EC2::Model::LaunchTemplateCapacityReservationSpecificationResponse::GetCapacityReservationTarget
const CapacityReservationTargetResponse & GetCapacityReservationTarget() const
Definition: LaunchTemplateCapacityReservationSpecificationResponse.h:109
Aws::EC2::Model::LaunchTemplateCapacityReservationSpecificationResponse
Definition: LaunchTemplateCapacityReservationSpecificationResponse.h:34