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