AWS SDK for C++  1.9.67
AWS SDK for C++
LaunchTemplateCapacityReservationSpecificationRequest.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 
40  {
41  public:
45 
46  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47  void OutputToStream(Aws::OStream& oStream, const char* location) const;
48 
49 
58  inline const CapacityReservationPreference& GetCapacityReservationPreference() const{ return m_capacityReservationPreference; }
59 
68  inline bool CapacityReservationPreferenceHasBeenSet() const { return m_capacityReservationPreferenceHasBeenSet; }
69 
78  inline void SetCapacityReservationPreference(const CapacityReservationPreference& value) { m_capacityReservationPreferenceHasBeenSet = true; m_capacityReservationPreference = value; }
79 
88  inline void SetCapacityReservationPreference(CapacityReservationPreference&& value) { m_capacityReservationPreferenceHasBeenSet = true; m_capacityReservationPreference = std::move(value); }
89 
98  inline LaunchTemplateCapacityReservationSpecificationRequest& WithCapacityReservationPreference(const CapacityReservationPreference& value) { SetCapacityReservationPreference(value); return *this;}
99 
108  inline LaunchTemplateCapacityReservationSpecificationRequest& WithCapacityReservationPreference(CapacityReservationPreference&& value) { SetCapacityReservationPreference(std::move(value)); return *this;}
109 
110 
115  inline const CapacityReservationTarget& GetCapacityReservationTarget() const{ return m_capacityReservationTarget; }
116 
121  inline bool CapacityReservationTargetHasBeenSet() const { return m_capacityReservationTargetHasBeenSet; }
122 
127  inline void SetCapacityReservationTarget(const CapacityReservationTarget& value) { m_capacityReservationTargetHasBeenSet = true; m_capacityReservationTarget = value; }
128 
133  inline void SetCapacityReservationTarget(CapacityReservationTarget&& value) { m_capacityReservationTargetHasBeenSet = true; m_capacityReservationTarget = std::move(value); }
134 
139  inline LaunchTemplateCapacityReservationSpecificationRequest& WithCapacityReservationTarget(const CapacityReservationTarget& value) { SetCapacityReservationTarget(value); return *this;}
140 
145  inline LaunchTemplateCapacityReservationSpecificationRequest& WithCapacityReservationTarget(CapacityReservationTarget&& value) { SetCapacityReservationTarget(std::move(value)); return *this;}
146 
147  private:
148 
149  CapacityReservationPreference m_capacityReservationPreference;
150  bool m_capacityReservationPreferenceHasBeenSet;
151 
152  CapacityReservationTarget m_capacityReservationTarget;
153  bool m_capacityReservationTargetHasBeenSet;
154  };
155 
156 } // namespace Model
157 } // namespace EC2
158 } // namespace Aws
Aws::EC2::Model::LaunchTemplateCapacityReservationSpecificationRequest::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::CapacityReservationPreference
CapacityReservationPreference
Definition: CapacityReservationPreference.h:17
Aws::EC2::Model::LaunchTemplateCapacityReservationSpecificationRequest::CapacityReservationTargetHasBeenSet
bool CapacityReservationTargetHasBeenSet() const
Definition: LaunchTemplateCapacityReservationSpecificationRequest.h:121
Aws::EC2::Model::LaunchTemplateCapacityReservationSpecificationRequest::LaunchTemplateCapacityReservationSpecificationRequest
LaunchTemplateCapacityReservationSpecificationRequest()
Aws::EC2::Model::LaunchTemplateCapacityReservationSpecificationRequest::SetCapacityReservationTarget
void SetCapacityReservationTarget(CapacityReservationTarget &&value)
Definition: LaunchTemplateCapacityReservationSpecificationRequest.h:133
Aws::EC2::Model::LaunchTemplateCapacityReservationSpecificationRequest::SetCapacityReservationTarget
void SetCapacityReservationTarget(const CapacityReservationTarget &value)
Definition: LaunchTemplateCapacityReservationSpecificationRequest.h:127
Aws::EC2::Model::LaunchTemplateCapacityReservationSpecificationRequest::WithCapacityReservationTarget
LaunchTemplateCapacityReservationSpecificationRequest & WithCapacityReservationTarget(const CapacityReservationTarget &value)
Definition: LaunchTemplateCapacityReservationSpecificationRequest.h:139
Aws::EC2::Model::CapacityReservationTarget
Definition: CapacityReservationTarget.h:33
Aws::EC2::Model::LaunchTemplateCapacityReservationSpecificationRequest::operator=
LaunchTemplateCapacityReservationSpecificationRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::LaunchTemplateCapacityReservationSpecificationRequest
Definition: LaunchTemplateCapacityReservationSpecificationRequest.h:40
Aws::EC2::Model::LaunchTemplateCapacityReservationSpecificationRequest::LaunchTemplateCapacityReservationSpecificationRequest
LaunchTemplateCapacityReservationSpecificationRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSStreamFwd.h
Aws::EC2::Model::LaunchTemplateCapacityReservationSpecificationRequest::WithCapacityReservationTarget
LaunchTemplateCapacityReservationSpecificationRequest & WithCapacityReservationTarget(CapacityReservationTarget &&value)
Definition: LaunchTemplateCapacityReservationSpecificationRequest.h:145
Aws::EC2::Model::LaunchTemplateCapacityReservationSpecificationRequest::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::LaunchTemplateCapacityReservationSpecificationRequest::SetCapacityReservationPreference
void SetCapacityReservationPreference(const CapacityReservationPreference &value)
Definition: LaunchTemplateCapacityReservationSpecificationRequest.h:78
CapacityReservationPreference.h
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::LaunchTemplateCapacityReservationSpecificationRequest::WithCapacityReservationPreference
LaunchTemplateCapacityReservationSpecificationRequest & WithCapacityReservationPreference(CapacityReservationPreference &&value)
Definition: LaunchTemplateCapacityReservationSpecificationRequest.h:108
Aws::EC2::Model::LaunchTemplateCapacityReservationSpecificationRequest::SetCapacityReservationPreference
void SetCapacityReservationPreference(CapacityReservationPreference &&value)
Definition: LaunchTemplateCapacityReservationSpecificationRequest.h:88
Aws::EC2::Model::LaunchTemplateCapacityReservationSpecificationRequest::WithCapacityReservationPreference
LaunchTemplateCapacityReservationSpecificationRequest & WithCapacityReservationPreference(const CapacityReservationPreference &value)
Definition: LaunchTemplateCapacityReservationSpecificationRequest.h:98
CapacityReservationTarget.h
Aws::EC2::Model::LaunchTemplateCapacityReservationSpecificationRequest::GetCapacityReservationTarget
const CapacityReservationTarget & GetCapacityReservationTarget() const
Definition: LaunchTemplateCapacityReservationSpecificationRequest.h:115
Aws
Definition: AccessManagementClient.h:15
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::LaunchTemplateCapacityReservationSpecificationRequest::CapacityReservationPreferenceHasBeenSet
bool CapacityReservationPreferenceHasBeenSet() const
Definition: LaunchTemplateCapacityReservationSpecificationRequest.h:68
EC2_EXPORTS.h
Aws::EC2::Model::LaunchTemplateCapacityReservationSpecificationRequest::GetCapacityReservationPreference
const CapacityReservationPreference & GetCapacityReservationPreference() const
Definition: LaunchTemplateCapacityReservationSpecificationRequest.h:58