AWS SDK for C++  1.9.103
AWS SDK for C++
CapacityReservationSpecification.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 
42  {
43  public:
47 
48  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
49  void OutputToStream(Aws::OStream& oStream, const char* location) const;
50 
51 
60  inline const CapacityReservationPreference& GetCapacityReservationPreference() const{ return m_capacityReservationPreference; }
61 
70  inline bool CapacityReservationPreferenceHasBeenSet() const { return m_capacityReservationPreferenceHasBeenSet; }
71 
80  inline void SetCapacityReservationPreference(const CapacityReservationPreference& value) { m_capacityReservationPreferenceHasBeenSet = true; m_capacityReservationPreference = value; }
81 
90  inline void SetCapacityReservationPreference(CapacityReservationPreference&& value) { m_capacityReservationPreferenceHasBeenSet = true; m_capacityReservationPreference = std::move(value); }
91 
100  inline CapacityReservationSpecification& WithCapacityReservationPreference(const CapacityReservationPreference& value) { SetCapacityReservationPreference(value); return *this;}
101 
110  inline CapacityReservationSpecification& WithCapacityReservationPreference(CapacityReservationPreference&& value) { SetCapacityReservationPreference(std::move(value)); return *this;}
111 
112 
117  inline const CapacityReservationTarget& GetCapacityReservationTarget() const{ return m_capacityReservationTarget; }
118 
123  inline bool CapacityReservationTargetHasBeenSet() const { return m_capacityReservationTargetHasBeenSet; }
124 
129  inline void SetCapacityReservationTarget(const CapacityReservationTarget& value) { m_capacityReservationTargetHasBeenSet = true; m_capacityReservationTarget = value; }
130 
135  inline void SetCapacityReservationTarget(CapacityReservationTarget&& value) { m_capacityReservationTargetHasBeenSet = true; m_capacityReservationTarget = std::move(value); }
136 
141  inline CapacityReservationSpecification& WithCapacityReservationTarget(const CapacityReservationTarget& value) { SetCapacityReservationTarget(value); return *this;}
142 
147  inline CapacityReservationSpecification& WithCapacityReservationTarget(CapacityReservationTarget&& value) { SetCapacityReservationTarget(std::move(value)); return *this;}
148 
149  private:
150 
151  CapacityReservationPreference m_capacityReservationPreference;
152  bool m_capacityReservationPreferenceHasBeenSet;
153 
154  CapacityReservationTarget m_capacityReservationTarget;
155  bool m_capacityReservationTargetHasBeenSet;
156  };
157 
158 } // namespace Model
159 } // namespace EC2
160 } // namespace Aws
Aws::EC2::Model::CapacityReservationPreference
CapacityReservationPreference
Definition: CapacityReservationPreference.h:17
Aws::EC2::Model::CapacityReservationSpecification::GetCapacityReservationPreference
const CapacityReservationPreference & GetCapacityReservationPreference() const
Definition: CapacityReservationSpecification.h:60
Aws::EC2::Model::CapacityReservationSpecification::SetCapacityReservationTarget
void SetCapacityReservationTarget(CapacityReservationTarget &&value)
Definition: CapacityReservationSpecification.h:135
Aws::EC2::Model::CapacityReservationSpecification::operator=
CapacityReservationSpecification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::CapacityReservationSpecification::SetCapacityReservationTarget
void SetCapacityReservationTarget(const CapacityReservationTarget &value)
Definition: CapacityReservationSpecification.h:129
Aws::EC2::Model::CapacityReservationSpecification::CapacityReservationSpecification
CapacityReservationSpecification(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::CapacityReservationSpecification
Definition: CapacityReservationSpecification.h:42
Aws::EC2::Model::CapacityReservationTarget
Definition: CapacityReservationTarget.h:33
Aws::EC2::Model::CapacityReservationSpecification::CapacityReservationSpecification
CapacityReservationSpecification()
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CapacityReservationSpecification::SetCapacityReservationPreference
void SetCapacityReservationPreference(CapacityReservationPreference &&value)
Definition: CapacityReservationSpecification.h:90
AWSStreamFwd.h
Aws::EC2::Model::CapacityReservationSpecification::WithCapacityReservationPreference
CapacityReservationSpecification & WithCapacityReservationPreference(CapacityReservationPreference &&value)
Definition: CapacityReservationSpecification.h:110
Aws::EC2::Model::CapacityReservationSpecification::WithCapacityReservationPreference
CapacityReservationSpecification & WithCapacityReservationPreference(const CapacityReservationPreference &value)
Definition: CapacityReservationSpecification.h:100
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
CapacityReservationPreference.h
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::CapacityReservationSpecification::WithCapacityReservationTarget
CapacityReservationSpecification & WithCapacityReservationTarget(CapacityReservationTarget &&value)
Definition: CapacityReservationSpecification.h:147
Aws::EC2::Model::CapacityReservationSpecification::CapacityReservationTargetHasBeenSet
bool CapacityReservationTargetHasBeenSet() const
Definition: CapacityReservationSpecification.h:123
CapacityReservationTarget.h
Aws::EC2::Model::CapacityReservationSpecification::SetCapacityReservationPreference
void SetCapacityReservationPreference(const CapacityReservationPreference &value)
Definition: CapacityReservationSpecification.h:80
Aws::EC2::Model::CapacityReservationSpecification::GetCapacityReservationTarget
const CapacityReservationTarget & GetCapacityReservationTarget() const
Definition: CapacityReservationSpecification.h:117
Aws::EC2::Model::CapacityReservationSpecification::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CapacityReservationSpecification::CapacityReservationPreferenceHasBeenSet
bool CapacityReservationPreferenceHasBeenSet() const
Definition: CapacityReservationSpecification.h:70
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::CapacityReservationSpecification::WithCapacityReservationTarget
CapacityReservationSpecification & WithCapacityReservationTarget(const CapacityReservationTarget &value)
Definition: CapacityReservationSpecification.h:141
Aws::EC2::Model::CapacityReservationSpecification::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
EC2_EXPORTS.h