AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReservedNodeOffering.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/redshift/model/ReservedNodeOfferingType.h>
12#include <aws/redshift/model/RecurringCharge.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace Redshift
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_REDSHIFT_API ReservedNodeOffering();
38 AWS_REDSHIFT_API ReservedNodeOffering(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_REDSHIFT_API ReservedNodeOffering& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetReservedNodeOfferingId() const{ return m_reservedNodeOfferingId; }
50 inline bool ReservedNodeOfferingIdHasBeenSet() const { return m_reservedNodeOfferingIdHasBeenSet; }
51 inline void SetReservedNodeOfferingId(const Aws::String& value) { m_reservedNodeOfferingIdHasBeenSet = true; m_reservedNodeOfferingId = value; }
52 inline void SetReservedNodeOfferingId(Aws::String&& value) { m_reservedNodeOfferingIdHasBeenSet = true; m_reservedNodeOfferingId = std::move(value); }
53 inline void SetReservedNodeOfferingId(const char* value) { m_reservedNodeOfferingIdHasBeenSet = true; m_reservedNodeOfferingId.assign(value); }
55 inline ReservedNodeOffering& WithReservedNodeOfferingId(Aws::String&& value) { SetReservedNodeOfferingId(std::move(value)); return *this;}
56 inline ReservedNodeOffering& WithReservedNodeOfferingId(const char* value) { SetReservedNodeOfferingId(value); return *this;}
58
60
63 inline const Aws::String& GetNodeType() const{ return m_nodeType; }
64 inline bool NodeTypeHasBeenSet() const { return m_nodeTypeHasBeenSet; }
65 inline void SetNodeType(const Aws::String& value) { m_nodeTypeHasBeenSet = true; m_nodeType = value; }
66 inline void SetNodeType(Aws::String&& value) { m_nodeTypeHasBeenSet = true; m_nodeType = std::move(value); }
67 inline void SetNodeType(const char* value) { m_nodeTypeHasBeenSet = true; m_nodeType.assign(value); }
68 inline ReservedNodeOffering& WithNodeType(const Aws::String& value) { SetNodeType(value); return *this;}
69 inline ReservedNodeOffering& WithNodeType(Aws::String&& value) { SetNodeType(std::move(value)); return *this;}
70 inline ReservedNodeOffering& WithNodeType(const char* value) { SetNodeType(value); return *this;}
72
74
77 inline int GetDuration() const{ return m_duration; }
78 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
79 inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
80 inline ReservedNodeOffering& WithDuration(int value) { SetDuration(value); return *this;}
82
84
88 inline double GetFixedPrice() const{ return m_fixedPrice; }
89 inline bool FixedPriceHasBeenSet() const { return m_fixedPriceHasBeenSet; }
90 inline void SetFixedPrice(double value) { m_fixedPriceHasBeenSet = true; m_fixedPrice = value; }
91 inline ReservedNodeOffering& WithFixedPrice(double value) { SetFixedPrice(value); return *this;}
93
95
99 inline double GetUsagePrice() const{ return m_usagePrice; }
100 inline bool UsagePriceHasBeenSet() const { return m_usagePriceHasBeenSet; }
101 inline void SetUsagePrice(double value) { m_usagePriceHasBeenSet = true; m_usagePrice = value; }
102 inline ReservedNodeOffering& WithUsagePrice(double value) { SetUsagePrice(value); return *this;}
104
106
109 inline const Aws::String& GetCurrencyCode() const{ return m_currencyCode; }
110 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
111 inline void SetCurrencyCode(const Aws::String& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = value; }
112 inline void SetCurrencyCode(Aws::String&& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = std::move(value); }
113 inline void SetCurrencyCode(const char* value) { m_currencyCodeHasBeenSet = true; m_currencyCode.assign(value); }
114 inline ReservedNodeOffering& WithCurrencyCode(const Aws::String& value) { SetCurrencyCode(value); return *this;}
115 inline ReservedNodeOffering& WithCurrencyCode(Aws::String&& value) { SetCurrencyCode(std::move(value)); return *this;}
116 inline ReservedNodeOffering& WithCurrencyCode(const char* value) { SetCurrencyCode(value); return *this;}
118
120
124 inline const Aws::String& GetOfferingType() const{ return m_offeringType; }
125 inline bool OfferingTypeHasBeenSet() const { return m_offeringTypeHasBeenSet; }
126 inline void SetOfferingType(const Aws::String& value) { m_offeringTypeHasBeenSet = true; m_offeringType = value; }
127 inline void SetOfferingType(Aws::String&& value) { m_offeringTypeHasBeenSet = true; m_offeringType = std::move(value); }
128 inline void SetOfferingType(const char* value) { m_offeringTypeHasBeenSet = true; m_offeringType.assign(value); }
129 inline ReservedNodeOffering& WithOfferingType(const Aws::String& value) { SetOfferingType(value); return *this;}
130 inline ReservedNodeOffering& WithOfferingType(Aws::String&& value) { SetOfferingType(std::move(value)); return *this;}
131 inline ReservedNodeOffering& WithOfferingType(const char* value) { SetOfferingType(value); return *this;}
133
135
140 inline const Aws::Vector<RecurringCharge>& GetRecurringCharges() const{ return m_recurringCharges; }
141 inline bool RecurringChargesHasBeenSet() const { return m_recurringChargesHasBeenSet; }
142 inline void SetRecurringCharges(const Aws::Vector<RecurringCharge>& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges = value; }
143 inline void SetRecurringCharges(Aws::Vector<RecurringCharge>&& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges = std::move(value); }
146 inline ReservedNodeOffering& AddRecurringCharges(const RecurringCharge& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges.push_back(value); return *this; }
147 inline ReservedNodeOffering& AddRecurringCharges(RecurringCharge&& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges.push_back(std::move(value)); return *this; }
149
151
154 inline const ReservedNodeOfferingType& GetReservedNodeOfferingType() const{ return m_reservedNodeOfferingType; }
155 inline bool ReservedNodeOfferingTypeHasBeenSet() const { return m_reservedNodeOfferingTypeHasBeenSet; }
156 inline void SetReservedNodeOfferingType(const ReservedNodeOfferingType& value) { m_reservedNodeOfferingTypeHasBeenSet = true; m_reservedNodeOfferingType = value; }
157 inline void SetReservedNodeOfferingType(ReservedNodeOfferingType&& value) { m_reservedNodeOfferingTypeHasBeenSet = true; m_reservedNodeOfferingType = std::move(value); }
161 private:
162
163 Aws::String m_reservedNodeOfferingId;
164 bool m_reservedNodeOfferingIdHasBeenSet = false;
165
166 Aws::String m_nodeType;
167 bool m_nodeTypeHasBeenSet = false;
168
169 int m_duration;
170 bool m_durationHasBeenSet = false;
171
172 double m_fixedPrice;
173 bool m_fixedPriceHasBeenSet = false;
174
175 double m_usagePrice;
176 bool m_usagePriceHasBeenSet = false;
177
178 Aws::String m_currencyCode;
179 bool m_currencyCodeHasBeenSet = false;
180
181 Aws::String m_offeringType;
182 bool m_offeringTypeHasBeenSet = false;
183
184 Aws::Vector<RecurringCharge> m_recurringCharges;
185 bool m_recurringChargesHasBeenSet = false;
186
187 ReservedNodeOfferingType m_reservedNodeOfferingType;
188 bool m_reservedNodeOfferingTypeHasBeenSet = false;
189 };
190
191} // namespace Model
192} // namespace Redshift
193} // namespace Aws
void SetCurrencyCode(const Aws::String &value)
void SetReservedNodeOfferingType(const ReservedNodeOfferingType &value)
ReservedNodeOffering & WithUsagePrice(double value)
void SetReservedNodeOfferingId(const Aws::String &value)
void SetOfferingType(const Aws::String &value)
AWS_REDSHIFT_API ReservedNodeOffering(const Aws::Utils::Xml::XmlNode &xmlNode)
ReservedNodeOffering & WithCurrencyCode(const Aws::String &value)
ReservedNodeOffering & WithCurrencyCode(const char *value)
ReservedNodeOffering & WithNodeType(const Aws::String &value)
ReservedNodeOffering & WithDuration(int value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ReservedNodeOffering & AddRecurringCharges(const RecurringCharge &value)
const Aws::Vector< RecurringCharge > & GetRecurringCharges() const
void SetRecurringCharges(const Aws::Vector< RecurringCharge > &value)
const Aws::String & GetReservedNodeOfferingId() const
const ReservedNodeOfferingType & GetReservedNodeOfferingType() const
ReservedNodeOffering & WithOfferingType(const char *value)
ReservedNodeOffering & WithNodeType(const char *value)
ReservedNodeOffering & WithCurrencyCode(Aws::String &&value)
ReservedNodeOffering & WithReservedNodeOfferingId(const char *value)
ReservedNodeOffering & WithReservedNodeOfferingType(ReservedNodeOfferingType &&value)
ReservedNodeOffering & WithOfferingType(const Aws::String &value)
ReservedNodeOffering & WithRecurringCharges(Aws::Vector< RecurringCharge > &&value)
ReservedNodeOffering & WithOfferingType(Aws::String &&value)
ReservedNodeOffering & WithFixedPrice(double value)
ReservedNodeOffering & WithNodeType(Aws::String &&value)
void SetReservedNodeOfferingType(ReservedNodeOfferingType &&value)
AWS_REDSHIFT_API ReservedNodeOffering & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ReservedNodeOffering & WithRecurringCharges(const Aws::Vector< RecurringCharge > &value)
void SetRecurringCharges(Aws::Vector< RecurringCharge > &&value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ReservedNodeOffering & AddRecurringCharges(RecurringCharge &&value)
ReservedNodeOffering & WithReservedNodeOfferingType(const ReservedNodeOfferingType &value)
ReservedNodeOffering & WithReservedNodeOfferingId(Aws::String &&value)
ReservedNodeOffering & WithReservedNodeOfferingId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream