AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReservationValue.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_EC2_API ReservationValue();
35 AWS_EC2_API ReservationValue(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
41
43
46 inline const Aws::String& GetHourlyPrice() const{ return m_hourlyPrice; }
47 inline bool HourlyPriceHasBeenSet() const { return m_hourlyPriceHasBeenSet; }
48 inline void SetHourlyPrice(const Aws::String& value) { m_hourlyPriceHasBeenSet = true; m_hourlyPrice = value; }
49 inline void SetHourlyPrice(Aws::String&& value) { m_hourlyPriceHasBeenSet = true; m_hourlyPrice = std::move(value); }
50 inline void SetHourlyPrice(const char* value) { m_hourlyPriceHasBeenSet = true; m_hourlyPrice.assign(value); }
51 inline ReservationValue& WithHourlyPrice(const Aws::String& value) { SetHourlyPrice(value); return *this;}
52 inline ReservationValue& WithHourlyPrice(Aws::String&& value) { SetHourlyPrice(std::move(value)); return *this;}
53 inline ReservationValue& WithHourlyPrice(const char* value) { SetHourlyPrice(value); return *this;}
55
57
61 inline const Aws::String& GetRemainingTotalValue() const{ return m_remainingTotalValue; }
62 inline bool RemainingTotalValueHasBeenSet() const { return m_remainingTotalValueHasBeenSet; }
63 inline void SetRemainingTotalValue(const Aws::String& value) { m_remainingTotalValueHasBeenSet = true; m_remainingTotalValue = value; }
64 inline void SetRemainingTotalValue(Aws::String&& value) { m_remainingTotalValueHasBeenSet = true; m_remainingTotalValue = std::move(value); }
65 inline void SetRemainingTotalValue(const char* value) { m_remainingTotalValueHasBeenSet = true; m_remainingTotalValue.assign(value); }
66 inline ReservationValue& WithRemainingTotalValue(const Aws::String& value) { SetRemainingTotalValue(value); return *this;}
67 inline ReservationValue& WithRemainingTotalValue(Aws::String&& value) { SetRemainingTotalValue(std::move(value)); return *this;}
68 inline ReservationValue& WithRemainingTotalValue(const char* value) { SetRemainingTotalValue(value); return *this;}
70
72
75 inline const Aws::String& GetRemainingUpfrontValue() const{ return m_remainingUpfrontValue; }
76 inline bool RemainingUpfrontValueHasBeenSet() const { return m_remainingUpfrontValueHasBeenSet; }
77 inline void SetRemainingUpfrontValue(const Aws::String& value) { m_remainingUpfrontValueHasBeenSet = true; m_remainingUpfrontValue = value; }
78 inline void SetRemainingUpfrontValue(Aws::String&& value) { m_remainingUpfrontValueHasBeenSet = true; m_remainingUpfrontValue = std::move(value); }
79 inline void SetRemainingUpfrontValue(const char* value) { m_remainingUpfrontValueHasBeenSet = true; m_remainingUpfrontValue.assign(value); }
81 inline ReservationValue& WithRemainingUpfrontValue(Aws::String&& value) { SetRemainingUpfrontValue(std::move(value)); return *this;}
82 inline ReservationValue& WithRemainingUpfrontValue(const char* value) { SetRemainingUpfrontValue(value); return *this;}
84 private:
85
86 Aws::String m_hourlyPrice;
87 bool m_hourlyPriceHasBeenSet = false;
88
89 Aws::String m_remainingTotalValue;
90 bool m_remainingTotalValueHasBeenSet = false;
91
92 Aws::String m_remainingUpfrontValue;
93 bool m_remainingUpfrontValueHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace EC2
98} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetRemainingTotalValue(const Aws::String &value)
const Aws::String & GetRemainingTotalValue() const
void SetHourlyPrice(Aws::String &&value)
void SetRemainingTotalValue(Aws::String &&value)
ReservationValue & WithRemainingUpfrontValue(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ReservationValue & WithHourlyPrice(Aws::String &&value)
ReservationValue & WithHourlyPrice(const Aws::String &value)
const Aws::String & GetRemainingUpfrontValue() const
AWS_EC2_API ReservationValue & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ReservationValue & WithHourlyPrice(const char *value)
ReservationValue & WithRemainingTotalValue(const char *value)
void SetRemainingUpfrontValue(const Aws::String &value)
const Aws::String & GetHourlyPrice() const
void SetHourlyPrice(const char *value)
ReservationValue & WithRemainingTotalValue(const Aws::String &value)
void SetHourlyPrice(const Aws::String &value)
void SetRemainingUpfrontValue(Aws::String &&value)
void SetRemainingUpfrontValue(const char *value)
ReservationValue & WithRemainingUpfrontValue(const char *value)
ReservationValue & WithRemainingUpfrontValue(Aws::String &&value)
ReservationValue & WithRemainingTotalValue(Aws::String &&value)
AWS_EC2_API ReservationValue(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetRemainingTotalValue(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream