AWS SDK for C++  1.9.130
AWS SDK for C++
TargetReservationValue.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 
49  inline const ReservationValue& GetReservationValue() const{ return m_reservationValue; }
50 
56  inline bool ReservationValueHasBeenSet() const { return m_reservationValueHasBeenSet; }
57 
63  inline void SetReservationValue(const ReservationValue& value) { m_reservationValueHasBeenSet = true; m_reservationValue = value; }
64 
70  inline void SetReservationValue(ReservationValue&& value) { m_reservationValueHasBeenSet = true; m_reservationValue = std::move(value); }
71 
77  inline TargetReservationValue& WithReservationValue(const ReservationValue& value) { SetReservationValue(value); return *this;}
78 
84  inline TargetReservationValue& WithReservationValue(ReservationValue&& value) { SetReservationValue(std::move(value)); return *this;}
85 
86 
91  inline const TargetConfiguration& GetTargetConfiguration() const{ return m_targetConfiguration; }
92 
97  inline bool TargetConfigurationHasBeenSet() const { return m_targetConfigurationHasBeenSet; }
98 
103  inline void SetTargetConfiguration(const TargetConfiguration& value) { m_targetConfigurationHasBeenSet = true; m_targetConfiguration = value; }
104 
109  inline void SetTargetConfiguration(TargetConfiguration&& value) { m_targetConfigurationHasBeenSet = true; m_targetConfiguration = std::move(value); }
110 
115  inline TargetReservationValue& WithTargetConfiguration(const TargetConfiguration& value) { SetTargetConfiguration(value); return *this;}
116 
121  inline TargetReservationValue& WithTargetConfiguration(TargetConfiguration&& value) { SetTargetConfiguration(std::move(value)); return *this;}
122 
123  private:
124 
125  ReservationValue m_reservationValue;
126  bool m_reservationValueHasBeenSet;
127 
128  TargetConfiguration m_targetConfiguration;
129  bool m_targetConfigurationHasBeenSet;
130  };
131 
132 } // namespace Model
133 } // namespace EC2
134 } // namespace Aws
Aws::EC2::Model::TargetConfiguration
Definition: TargetConfiguration.h:33
Aws::EC2::Model::TargetReservationValue::SetReservationValue
void SetReservationValue(ReservationValue &&value)
Definition: TargetReservationValue.h:70
Aws::EC2::Model::TargetReservationValue::TargetReservationValue
TargetReservationValue()
Aws::EC2::Model::TargetReservationValue::WithTargetConfiguration
TargetReservationValue & WithTargetConfiguration(const TargetConfiguration &value)
Definition: TargetReservationValue.h:115
Aws::EC2::Model::TargetReservationValue::SetTargetConfiguration
void SetTargetConfiguration(TargetConfiguration &&value)
Definition: TargetReservationValue.h:109
Aws::EC2::Model::TargetReservationValue
Definition: TargetReservationValue.h:34
Aws::EC2::Model::TargetReservationValue::TargetReservationValue
TargetReservationValue(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::TargetReservationValue::TargetConfigurationHasBeenSet
bool TargetConfigurationHasBeenSet() const
Definition: TargetReservationValue.h:97
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::TargetReservationValue::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWSStreamFwd.h
Aws::EC2::Model::TargetReservationValue::operator=
TargetReservationValue & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::TargetReservationValue::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
ReservationValue.h
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::ReservationValue
Definition: ReservationValue.h:32
Aws::EC2::Model::TargetReservationValue::WithTargetConfiguration
TargetReservationValue & WithTargetConfiguration(TargetConfiguration &&value)
Definition: TargetReservationValue.h:121
Aws::EC2::Model::TargetReservationValue::ReservationValueHasBeenSet
bool ReservationValueHasBeenSet() const
Definition: TargetReservationValue.h:56
Aws::EC2::Model::TargetReservationValue::WithReservationValue
TargetReservationValue & WithReservationValue(const ReservationValue &value)
Definition: TargetReservationValue.h:77
Aws::EC2::Model::TargetReservationValue::GetReservationValue
const ReservationValue & GetReservationValue() const
Definition: TargetReservationValue.h:49
Aws::EC2::Model::TargetReservationValue::SetTargetConfiguration
void SetTargetConfiguration(const TargetConfiguration &value)
Definition: TargetReservationValue.h:103
Aws::EC2::Model::TargetReservationValue::GetTargetConfiguration
const TargetConfiguration & GetTargetConfiguration() const
Definition: TargetReservationValue.h:91
Aws::EC2::Model::TargetReservationValue::SetReservationValue
void SetReservationValue(const ReservationValue &value)
Definition: TargetReservationValue.h:63
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::TargetReservationValue::WithReservationValue
TargetReservationValue & WithReservationValue(ReservationValue &&value)
Definition: TargetReservationValue.h:84
index
int index
Definition: cJSON.h:181
TargetConfiguration.h
EC2_EXPORTS.h