AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename HourlyPriceT = Aws::String>
49 void SetHourlyPrice(HourlyPriceT&& value) { m_hourlyPriceHasBeenSet = true; m_hourlyPrice = std::forward<HourlyPriceT>(value); }
50 template<typename HourlyPriceT = Aws::String>
51 ReservationValue& WithHourlyPrice(HourlyPriceT&& value) { SetHourlyPrice(std::forward<HourlyPriceT>(value)); return *this;}
53
55
59 inline const Aws::String& GetRemainingTotalValue() const { return m_remainingTotalValue; }
60 inline bool RemainingTotalValueHasBeenSet() const { return m_remainingTotalValueHasBeenSet; }
61 template<typename RemainingTotalValueT = Aws::String>
62 void SetRemainingTotalValue(RemainingTotalValueT&& value) { m_remainingTotalValueHasBeenSet = true; m_remainingTotalValue = std::forward<RemainingTotalValueT>(value); }
63 template<typename RemainingTotalValueT = Aws::String>
64 ReservationValue& WithRemainingTotalValue(RemainingTotalValueT&& value) { SetRemainingTotalValue(std::forward<RemainingTotalValueT>(value)); return *this;}
66
68
71 inline const Aws::String& GetRemainingUpfrontValue() const { return m_remainingUpfrontValue; }
72 inline bool RemainingUpfrontValueHasBeenSet() const { return m_remainingUpfrontValueHasBeenSet; }
73 template<typename RemainingUpfrontValueT = Aws::String>
74 void SetRemainingUpfrontValue(RemainingUpfrontValueT&& value) { m_remainingUpfrontValueHasBeenSet = true; m_remainingUpfrontValue = std::forward<RemainingUpfrontValueT>(value); }
75 template<typename RemainingUpfrontValueT = Aws::String>
76 ReservationValue& WithRemainingUpfrontValue(RemainingUpfrontValueT&& value) { SetRemainingUpfrontValue(std::forward<RemainingUpfrontValueT>(value)); return *this;}
78 private:
79
80 Aws::String m_hourlyPrice;
81 bool m_hourlyPriceHasBeenSet = false;
82
83 Aws::String m_remainingTotalValue;
84 bool m_remainingTotalValueHasBeenSet = false;
85
86 Aws::String m_remainingUpfrontValue;
87 bool m_remainingUpfrontValueHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace EC2
92} // namespace Aws
void SetHourlyPrice(HourlyPriceT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetRemainingTotalValue() const
ReservationValue & WithRemainingUpfrontValue(RemainingUpfrontValueT &&value)
AWS_EC2_API ReservationValue()=default
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetRemainingUpfrontValue() const
AWS_EC2_API ReservationValue & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ReservationValue & WithHourlyPrice(HourlyPriceT &&value)
const Aws::String & GetHourlyPrice() const
ReservationValue & WithRemainingTotalValue(RemainingTotalValueT &&value)
void SetRemainingUpfrontValue(RemainingUpfrontValueT &&value)
void SetRemainingTotalValue(RemainingTotalValueT &&value)
AWS_EC2_API ReservationValue(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream