AWS SDK for C++  1.9.68
AWS SDK for C++
ReservationValue.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace EC2
22 {
23 namespace Model
24 {
25 
32  {
33  public:
37 
38  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39  void OutputToStream(Aws::OStream& oStream, const char* location) const;
40 
41 
45  inline const Aws::String& GetHourlyPrice() const{ return m_hourlyPrice; }
46 
50  inline bool HourlyPriceHasBeenSet() const { return m_hourlyPriceHasBeenSet; }
51 
55  inline void SetHourlyPrice(const Aws::String& value) { m_hourlyPriceHasBeenSet = true; m_hourlyPrice = value; }
56 
60  inline void SetHourlyPrice(Aws::String&& value) { m_hourlyPriceHasBeenSet = true; m_hourlyPrice = std::move(value); }
61 
65  inline void SetHourlyPrice(const char* value) { m_hourlyPriceHasBeenSet = true; m_hourlyPrice.assign(value); }
66 
70  inline ReservationValue& WithHourlyPrice(const Aws::String& value) { SetHourlyPrice(value); return *this;}
71 
75  inline ReservationValue& WithHourlyPrice(Aws::String&& value) { SetHourlyPrice(std::move(value)); return *this;}
76 
80  inline ReservationValue& WithHourlyPrice(const char* value) { SetHourlyPrice(value); return *this;}
81 
82 
87  inline const Aws::String& GetRemainingTotalValue() const{ return m_remainingTotalValue; }
88 
93  inline bool RemainingTotalValueHasBeenSet() const { return m_remainingTotalValueHasBeenSet; }
94 
99  inline void SetRemainingTotalValue(const Aws::String& value) { m_remainingTotalValueHasBeenSet = true; m_remainingTotalValue = value; }
100 
105  inline void SetRemainingTotalValue(Aws::String&& value) { m_remainingTotalValueHasBeenSet = true; m_remainingTotalValue = std::move(value); }
106 
111  inline void SetRemainingTotalValue(const char* value) { m_remainingTotalValueHasBeenSet = true; m_remainingTotalValue.assign(value); }
112 
117  inline ReservationValue& WithRemainingTotalValue(const Aws::String& value) { SetRemainingTotalValue(value); return *this;}
118 
123  inline ReservationValue& WithRemainingTotalValue(Aws::String&& value) { SetRemainingTotalValue(std::move(value)); return *this;}
124 
129  inline ReservationValue& WithRemainingTotalValue(const char* value) { SetRemainingTotalValue(value); return *this;}
130 
131 
135  inline const Aws::String& GetRemainingUpfrontValue() const{ return m_remainingUpfrontValue; }
136 
140  inline bool RemainingUpfrontValueHasBeenSet() const { return m_remainingUpfrontValueHasBeenSet; }
141 
145  inline void SetRemainingUpfrontValue(const Aws::String& value) { m_remainingUpfrontValueHasBeenSet = true; m_remainingUpfrontValue = value; }
146 
150  inline void SetRemainingUpfrontValue(Aws::String&& value) { m_remainingUpfrontValueHasBeenSet = true; m_remainingUpfrontValue = std::move(value); }
151 
155  inline void SetRemainingUpfrontValue(const char* value) { m_remainingUpfrontValueHasBeenSet = true; m_remainingUpfrontValue.assign(value); }
156 
160  inline ReservationValue& WithRemainingUpfrontValue(const Aws::String& value) { SetRemainingUpfrontValue(value); return *this;}
161 
165  inline ReservationValue& WithRemainingUpfrontValue(Aws::String&& value) { SetRemainingUpfrontValue(std::move(value)); return *this;}
166 
170  inline ReservationValue& WithRemainingUpfrontValue(const char* value) { SetRemainingUpfrontValue(value); return *this;}
171 
172  private:
173 
174  Aws::String m_hourlyPrice;
175  bool m_hourlyPriceHasBeenSet;
176 
177  Aws::String m_remainingTotalValue;
178  bool m_remainingTotalValueHasBeenSet;
179 
180  Aws::String m_remainingUpfrontValue;
181  bool m_remainingUpfrontValueHasBeenSet;
182  };
183 
184 } // namespace Model
185 } // namespace EC2
186 } // namespace Aws
Aws::EC2::Model::ReservationValue::WithRemainingTotalValue
ReservationValue & WithRemainingTotalValue(Aws::String &&value)
Definition: ReservationValue.h:123
Aws::EC2::Model::ReservationValue::WithRemainingUpfrontValue
ReservationValue & WithRemainingUpfrontValue(Aws::String &&value)
Definition: ReservationValue.h:165
Aws::EC2::Model::ReservationValue::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::ReservationValue::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::ReservationValue::operator=
ReservationValue & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ReservationValue::WithHourlyPrice
ReservationValue & WithHourlyPrice(Aws::String &&value)
Definition: ReservationValue.h:75
AWSStreamFwd.h
Aws::EC2::Model::ReservationValue::HourlyPriceHasBeenSet
bool HourlyPriceHasBeenSet() const
Definition: ReservationValue.h:50
Aws::EC2::Model::ReservationValue::ReservationValue
ReservationValue()
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::ReservationValue::GetRemainingTotalValue
const Aws::String & GetRemainingTotalValue() const
Definition: ReservationValue.h:87
Aws::EC2::Model::ReservationValue::WithHourlyPrice
ReservationValue & WithHourlyPrice(const Aws::String &value)
Definition: ReservationValue.h:70
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::ReservationValue::WithRemainingTotalValue
ReservationValue & WithRemainingTotalValue(const char *value)
Definition: ReservationValue.h:129
Aws::EC2::Model::ReservationValue
Definition: ReservationValue.h:32
Aws::EC2::Model::ReservationValue::SetRemainingTotalValue
void SetRemainingTotalValue(const char *value)
Definition: ReservationValue.h:111
Aws::EC2::Model::ReservationValue::SetHourlyPrice
void SetHourlyPrice(Aws::String &&value)
Definition: ReservationValue.h:60
AWSString.h
Aws::EC2::Model::ReservationValue::WithHourlyPrice
ReservationValue & WithHourlyPrice(const char *value)
Definition: ReservationValue.h:80
Aws::EC2::Model::ReservationValue::ReservationValue
ReservationValue(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ReservationValue::RemainingTotalValueHasBeenSet
bool RemainingTotalValueHasBeenSet() const
Definition: ReservationValue.h:93
Aws::EC2::Model::ReservationValue::SetRemainingTotalValue
void SetRemainingTotalValue(Aws::String &&value)
Definition: ReservationValue.h:105
Aws::EC2::Model::ReservationValue::GetHourlyPrice
const Aws::String & GetHourlyPrice() const
Definition: ReservationValue.h:45
Aws::EC2::Model::ReservationValue::GetRemainingUpfrontValue
const Aws::String & GetRemainingUpfrontValue() const
Definition: ReservationValue.h:135
Aws::EC2::Model::ReservationValue::WithRemainingTotalValue
ReservationValue & WithRemainingTotalValue(const Aws::String &value)
Definition: ReservationValue.h:117
Aws::EC2::Model::ReservationValue::RemainingUpfrontValueHasBeenSet
bool RemainingUpfrontValueHasBeenSet() const
Definition: ReservationValue.h:140
Aws::EC2::Model::ReservationValue::SetRemainingTotalValue
void SetRemainingTotalValue(const Aws::String &value)
Definition: ReservationValue.h:99
Aws::EC2::Model::ReservationValue::SetHourlyPrice
void SetHourlyPrice(const char *value)
Definition: ReservationValue.h:65
Aws::EC2::Model::ReservationValue::WithRemainingUpfrontValue
ReservationValue & WithRemainingUpfrontValue(const Aws::String &value)
Definition: ReservationValue.h:160
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ReservationValue::SetRemainingUpfrontValue
void SetRemainingUpfrontValue(Aws::String &&value)
Definition: ReservationValue.h:150
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::ReservationValue::SetRemainingUpfrontValue
void SetRemainingUpfrontValue(const Aws::String &value)
Definition: ReservationValue.h:145
Aws::EC2::Model::ReservationValue::WithRemainingUpfrontValue
ReservationValue & WithRemainingUpfrontValue(const char *value)
Definition: ReservationValue.h:170
Aws::EC2::Model::ReservationValue::SetHourlyPrice
void SetHourlyPrice(const Aws::String &value)
Definition: ReservationValue.h:55
EC2_EXPORTS.h
Aws::EC2::Model::ReservationValue::SetRemainingUpfrontValue
void SetRemainingUpfrontValue(const char *value)
Definition: ReservationValue.h:155