AWS SDK for C++  1.9.74
AWS SDK for C++
ReservedInstanceReservationValue.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 
48  inline const ReservationValue& GetReservationValue() const{ return m_reservationValue; }
49 
54  inline bool ReservationValueHasBeenSet() const { return m_reservationValueHasBeenSet; }
55 
60  inline void SetReservationValue(const ReservationValue& value) { m_reservationValueHasBeenSet = true; m_reservationValue = value; }
61 
66  inline void SetReservationValue(ReservationValue&& value) { m_reservationValueHasBeenSet = true; m_reservationValue = std::move(value); }
67 
72  inline ReservedInstanceReservationValue& WithReservationValue(const ReservationValue& value) { SetReservationValue(value); return *this;}
73 
78  inline ReservedInstanceReservationValue& WithReservationValue(ReservationValue&& value) { SetReservationValue(std::move(value)); return *this;}
79 
80 
84  inline const Aws::String& GetReservedInstanceId() const{ return m_reservedInstanceId; }
85 
89  inline bool ReservedInstanceIdHasBeenSet() const { return m_reservedInstanceIdHasBeenSet; }
90 
94  inline void SetReservedInstanceId(const Aws::String& value) { m_reservedInstanceIdHasBeenSet = true; m_reservedInstanceId = value; }
95 
99  inline void SetReservedInstanceId(Aws::String&& value) { m_reservedInstanceIdHasBeenSet = true; m_reservedInstanceId = std::move(value); }
100 
104  inline void SetReservedInstanceId(const char* value) { m_reservedInstanceIdHasBeenSet = true; m_reservedInstanceId.assign(value); }
105 
109  inline ReservedInstanceReservationValue& WithReservedInstanceId(const Aws::String& value) { SetReservedInstanceId(value); return *this;}
110 
114  inline ReservedInstanceReservationValue& WithReservedInstanceId(Aws::String&& value) { SetReservedInstanceId(std::move(value)); return *this;}
115 
119  inline ReservedInstanceReservationValue& WithReservedInstanceId(const char* value) { SetReservedInstanceId(value); return *this;}
120 
121  private:
122 
123  ReservationValue m_reservationValue;
124  bool m_reservationValueHasBeenSet;
125 
126  Aws::String m_reservedInstanceId;
127  bool m_reservedInstanceIdHasBeenSet;
128  };
129 
130 } // namespace Model
131 } // namespace EC2
132 } // namespace Aws
Aws::EC2::Model::ReservedInstanceReservationValue::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::ReservedInstanceReservationValue::GetReservedInstanceId
const Aws::String & GetReservedInstanceId() const
Definition: ReservedInstanceReservationValue.h:84
Aws::EC2::Model::ReservedInstanceReservationValue::SetReservationValue
void SetReservationValue(const ReservationValue &value)
Definition: ReservedInstanceReservationValue.h:60
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ReservedInstanceReservationValue::WithReservedInstanceId
ReservedInstanceReservationValue & WithReservedInstanceId(Aws::String &&value)
Definition: ReservedInstanceReservationValue.h:114
Aws::EC2::Model::ReservedInstanceReservationValue::operator=
ReservedInstanceReservationValue & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ReservedInstanceReservationValue::SetReservedInstanceId
void SetReservedInstanceId(const char *value)
Definition: ReservedInstanceReservationValue.h:104
AWSStreamFwd.h
Aws::EC2::Model::ReservedInstanceReservationValue::ReservedInstanceReservationValue
ReservedInstanceReservationValue(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ReservedInstanceReservationValue::WithReservationValue
ReservedInstanceReservationValue & WithReservationValue(const ReservationValue &value)
Definition: ReservedInstanceReservationValue.h:72
Aws::EC2::Model::ReservedInstanceReservationValue::SetReservationValue
void SetReservationValue(ReservationValue &&value)
Definition: ReservedInstanceReservationValue.h:66
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
ReservationValue.h
Aws::EC2::Model::ReservedInstanceReservationValue::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::ReservedInstanceReservationValue::SetReservedInstanceId
void SetReservedInstanceId(const Aws::String &value)
Definition: ReservedInstanceReservationValue.h:94
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::ReservedInstanceReservationValue::WithReservationValue
ReservedInstanceReservationValue & WithReservationValue(ReservationValue &&value)
Definition: ReservedInstanceReservationValue.h:78
Aws::EC2::Model::ReservedInstanceReservationValue::ReservedInstanceReservationValue
ReservedInstanceReservationValue()
Aws::EC2::Model::ReservedInstanceReservationValue::SetReservedInstanceId
void SetReservedInstanceId(Aws::String &&value)
Definition: ReservedInstanceReservationValue.h:99
Aws::EC2::Model::ReservationValue
Definition: ReservationValue.h:32
AWSString.h
Aws::EC2::Model::ReservedInstanceReservationValue::WithReservedInstanceId
ReservedInstanceReservationValue & WithReservedInstanceId(const Aws::String &value)
Definition: ReservedInstanceReservationValue.h:109
Aws::EC2::Model::ReservedInstanceReservationValue::GetReservationValue
const ReservationValue & GetReservationValue() const
Definition: ReservedInstanceReservationValue.h:48
Aws::EC2::Model::ReservedInstanceReservationValue::WithReservedInstanceId
ReservedInstanceReservationValue & WithReservedInstanceId(const char *value)
Definition: ReservedInstanceReservationValue.h:119
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ReservedInstanceReservationValue
Definition: ReservedInstanceReservationValue.h:34
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::ReservedInstanceReservationValue::ReservationValueHasBeenSet
bool ReservationValueHasBeenSet() const
Definition: ReservedInstanceReservationValue.h:54
Aws::EC2::Model::ReservedInstanceReservationValue::ReservedInstanceIdHasBeenSet
bool ReservedInstanceIdHasBeenSet() const
Definition: ReservedInstanceReservationValue.h:89
EC2_EXPORTS.h