AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ReservationValue.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace EC2 {
20namespace Model {
21
28 public:
29 AWS_EC2_API ReservationValue() = default;
30 AWS_EC2_API ReservationValue(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
34 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
35
37
40 inline const Aws::String& GetHourlyPrice() const { return m_hourlyPrice; }
41 inline bool HourlyPriceHasBeenSet() const { return m_hourlyPriceHasBeenSet; }
42 template <typename HourlyPriceT = Aws::String>
43 void SetHourlyPrice(HourlyPriceT&& value) {
44 m_hourlyPriceHasBeenSet = true;
45 m_hourlyPrice = std::forward<HourlyPriceT>(value);
46 }
47 template <typename HourlyPriceT = Aws::String>
48 ReservationValue& WithHourlyPrice(HourlyPriceT&& value) {
49 SetHourlyPrice(std::forward<HourlyPriceT>(value));
50 return *this;
51 }
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) {
63 m_remainingTotalValueHasBeenSet = true;
64 m_remainingTotalValue = std::forward<RemainingTotalValueT>(value);
65 }
66 template <typename RemainingTotalValueT = Aws::String>
67 ReservationValue& WithRemainingTotalValue(RemainingTotalValueT&& value) {
68 SetRemainingTotalValue(std::forward<RemainingTotalValueT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetRemainingUpfrontValue() const { return m_remainingUpfrontValue; }
78 inline bool RemainingUpfrontValueHasBeenSet() const { return m_remainingUpfrontValueHasBeenSet; }
79 template <typename RemainingUpfrontValueT = Aws::String>
80 void SetRemainingUpfrontValue(RemainingUpfrontValueT&& value) {
81 m_remainingUpfrontValueHasBeenSet = true;
82 m_remainingUpfrontValue = std::forward<RemainingUpfrontValueT>(value);
83 }
84 template <typename RemainingUpfrontValueT = Aws::String>
85 ReservationValue& WithRemainingUpfrontValue(RemainingUpfrontValueT&& value) {
86 SetRemainingUpfrontValue(std::forward<RemainingUpfrontValueT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_hourlyPrice;
92
93 Aws::String m_remainingTotalValue;
94
95 Aws::String m_remainingUpfrontValue;
96 bool m_hourlyPriceHasBeenSet = false;
97 bool m_remainingTotalValueHasBeenSet = false;
98 bool m_remainingUpfrontValueHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace EC2
103} // 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