AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReservedNode.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/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/redshift/model/ReservedNodeOfferingType.h>
13#include <aws/redshift/model/RecurringCharge.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace Redshift
26{
27namespace Model
28{
29
38 {
39 public:
40 AWS_REDSHIFT_API ReservedNode();
41 AWS_REDSHIFT_API ReservedNode(const Aws::Utils::Xml::XmlNode& xmlNode);
42 AWS_REDSHIFT_API ReservedNode& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43
44 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
46
47
49
52 inline const Aws::String& GetReservedNodeId() const{ return m_reservedNodeId; }
53 inline bool ReservedNodeIdHasBeenSet() const { return m_reservedNodeIdHasBeenSet; }
54 inline void SetReservedNodeId(const Aws::String& value) { m_reservedNodeIdHasBeenSet = true; m_reservedNodeId = value; }
55 inline void SetReservedNodeId(Aws::String&& value) { m_reservedNodeIdHasBeenSet = true; m_reservedNodeId = std::move(value); }
56 inline void SetReservedNodeId(const char* value) { m_reservedNodeIdHasBeenSet = true; m_reservedNodeId.assign(value); }
57 inline ReservedNode& WithReservedNodeId(const Aws::String& value) { SetReservedNodeId(value); return *this;}
58 inline ReservedNode& WithReservedNodeId(Aws::String&& value) { SetReservedNodeId(std::move(value)); return *this;}
59 inline ReservedNode& WithReservedNodeId(const char* value) { SetReservedNodeId(value); return *this;}
61
63
66 inline const Aws::String& GetReservedNodeOfferingId() const{ return m_reservedNodeOfferingId; }
67 inline bool ReservedNodeOfferingIdHasBeenSet() const { return m_reservedNodeOfferingIdHasBeenSet; }
68 inline void SetReservedNodeOfferingId(const Aws::String& value) { m_reservedNodeOfferingIdHasBeenSet = true; m_reservedNodeOfferingId = value; }
69 inline void SetReservedNodeOfferingId(Aws::String&& value) { m_reservedNodeOfferingIdHasBeenSet = true; m_reservedNodeOfferingId = std::move(value); }
70 inline void SetReservedNodeOfferingId(const char* value) { m_reservedNodeOfferingIdHasBeenSet = true; m_reservedNodeOfferingId.assign(value); }
72 inline ReservedNode& WithReservedNodeOfferingId(Aws::String&& value) { SetReservedNodeOfferingId(std::move(value)); return *this;}
73 inline ReservedNode& WithReservedNodeOfferingId(const char* value) { SetReservedNodeOfferingId(value); return *this;}
75
77
80 inline const Aws::String& GetNodeType() const{ return m_nodeType; }
81 inline bool NodeTypeHasBeenSet() const { return m_nodeTypeHasBeenSet; }
82 inline void SetNodeType(const Aws::String& value) { m_nodeTypeHasBeenSet = true; m_nodeType = value; }
83 inline void SetNodeType(Aws::String&& value) { m_nodeTypeHasBeenSet = true; m_nodeType = std::move(value); }
84 inline void SetNodeType(const char* value) { m_nodeTypeHasBeenSet = true; m_nodeType.assign(value); }
85 inline ReservedNode& WithNodeType(const Aws::String& value) { SetNodeType(value); return *this;}
86 inline ReservedNode& WithNodeType(Aws::String&& value) { SetNodeType(std::move(value)); return *this;}
87 inline ReservedNode& WithNodeType(const char* value) { SetNodeType(value); return *this;}
89
91
95 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
96 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
97 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
98 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
99 inline ReservedNode& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
100 inline ReservedNode& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
102
104
107 inline int GetDuration() const{ return m_duration; }
108 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
109 inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
110 inline ReservedNode& WithDuration(int value) { SetDuration(value); return *this;}
112
114
117 inline double GetFixedPrice() const{ return m_fixedPrice; }
118 inline bool FixedPriceHasBeenSet() const { return m_fixedPriceHasBeenSet; }
119 inline void SetFixedPrice(double value) { m_fixedPriceHasBeenSet = true; m_fixedPrice = value; }
120 inline ReservedNode& WithFixedPrice(double value) { SetFixedPrice(value); return *this;}
122
124
127 inline double GetUsagePrice() const{ return m_usagePrice; }
128 inline bool UsagePriceHasBeenSet() const { return m_usagePriceHasBeenSet; }
129 inline void SetUsagePrice(double value) { m_usagePriceHasBeenSet = true; m_usagePrice = value; }
130 inline ReservedNode& WithUsagePrice(double value) { SetUsagePrice(value); return *this;}
132
134
137 inline const Aws::String& GetCurrencyCode() const{ return m_currencyCode; }
138 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
139 inline void SetCurrencyCode(const Aws::String& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = value; }
140 inline void SetCurrencyCode(Aws::String&& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = std::move(value); }
141 inline void SetCurrencyCode(const char* value) { m_currencyCodeHasBeenSet = true; m_currencyCode.assign(value); }
142 inline ReservedNode& WithCurrencyCode(const Aws::String& value) { SetCurrencyCode(value); return *this;}
143 inline ReservedNode& WithCurrencyCode(Aws::String&& value) { SetCurrencyCode(std::move(value)); return *this;}
144 inline ReservedNode& WithCurrencyCode(const char* value) { SetCurrencyCode(value); return *this;}
146
148
151 inline int GetNodeCount() const{ return m_nodeCount; }
152 inline bool NodeCountHasBeenSet() const { return m_nodeCountHasBeenSet; }
153 inline void SetNodeCount(int value) { m_nodeCountHasBeenSet = true; m_nodeCount = value; }
154 inline ReservedNode& WithNodeCount(int value) { SetNodeCount(value); return *this;}
156
158
168 inline const Aws::String& GetState() const{ return m_state; }
169 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
170 inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; }
171 inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
172 inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); }
173 inline ReservedNode& WithState(const Aws::String& value) { SetState(value); return *this;}
174 inline ReservedNode& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;}
175 inline ReservedNode& WithState(const char* value) { SetState(value); return *this;}
177
179
183 inline const Aws::String& GetOfferingType() const{ return m_offeringType; }
184 inline bool OfferingTypeHasBeenSet() const { return m_offeringTypeHasBeenSet; }
185 inline void SetOfferingType(const Aws::String& value) { m_offeringTypeHasBeenSet = true; m_offeringType = value; }
186 inline void SetOfferingType(Aws::String&& value) { m_offeringTypeHasBeenSet = true; m_offeringType = std::move(value); }
187 inline void SetOfferingType(const char* value) { m_offeringTypeHasBeenSet = true; m_offeringType.assign(value); }
188 inline ReservedNode& WithOfferingType(const Aws::String& value) { SetOfferingType(value); return *this;}
189 inline ReservedNode& WithOfferingType(Aws::String&& value) { SetOfferingType(std::move(value)); return *this;}
190 inline ReservedNode& WithOfferingType(const char* value) { SetOfferingType(value); return *this;}
192
194
197 inline const Aws::Vector<RecurringCharge>& GetRecurringCharges() const{ return m_recurringCharges; }
198 inline bool RecurringChargesHasBeenSet() const { return m_recurringChargesHasBeenSet; }
199 inline void SetRecurringCharges(const Aws::Vector<RecurringCharge>& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges = value; }
200 inline void SetRecurringCharges(Aws::Vector<RecurringCharge>&& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges = std::move(value); }
202 inline ReservedNode& WithRecurringCharges(Aws::Vector<RecurringCharge>&& value) { SetRecurringCharges(std::move(value)); return *this;}
203 inline ReservedNode& AddRecurringCharges(const RecurringCharge& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges.push_back(value); return *this; }
204 inline ReservedNode& AddRecurringCharges(RecurringCharge&& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges.push_back(std::move(value)); return *this; }
206
208
211 inline const ReservedNodeOfferingType& GetReservedNodeOfferingType() const{ return m_reservedNodeOfferingType; }
212 inline bool ReservedNodeOfferingTypeHasBeenSet() const { return m_reservedNodeOfferingTypeHasBeenSet; }
213 inline void SetReservedNodeOfferingType(const ReservedNodeOfferingType& value) { m_reservedNodeOfferingTypeHasBeenSet = true; m_reservedNodeOfferingType = value; }
214 inline void SetReservedNodeOfferingType(ReservedNodeOfferingType&& value) { m_reservedNodeOfferingTypeHasBeenSet = true; m_reservedNodeOfferingType = std::move(value); }
218 private:
219
220 Aws::String m_reservedNodeId;
221 bool m_reservedNodeIdHasBeenSet = false;
222
223 Aws::String m_reservedNodeOfferingId;
224 bool m_reservedNodeOfferingIdHasBeenSet = false;
225
226 Aws::String m_nodeType;
227 bool m_nodeTypeHasBeenSet = false;
228
229 Aws::Utils::DateTime m_startTime;
230 bool m_startTimeHasBeenSet = false;
231
232 int m_duration;
233 bool m_durationHasBeenSet = false;
234
235 double m_fixedPrice;
236 bool m_fixedPriceHasBeenSet = false;
237
238 double m_usagePrice;
239 bool m_usagePriceHasBeenSet = false;
240
241 Aws::String m_currencyCode;
242 bool m_currencyCodeHasBeenSet = false;
243
244 int m_nodeCount;
245 bool m_nodeCountHasBeenSet = false;
246
247 Aws::String m_state;
248 bool m_stateHasBeenSet = false;
249
250 Aws::String m_offeringType;
251 bool m_offeringTypeHasBeenSet = false;
252
253 Aws::Vector<RecurringCharge> m_recurringCharges;
254 bool m_recurringChargesHasBeenSet = false;
255
256 ReservedNodeOfferingType m_reservedNodeOfferingType;
257 bool m_reservedNodeOfferingTypeHasBeenSet = false;
258 };
259
260} // namespace Model
261} // namespace Redshift
262} // namespace Aws
void SetReservedNodeId(const Aws::String &value)
void SetReservedNodeId(Aws::String &&value)
ReservedNode & WithReservedNodeOfferingType(const ReservedNodeOfferingType &value)
ReservedNode & WithReservedNodeOfferingType(ReservedNodeOfferingType &&value)
ReservedNode & WithNodeType(const char *value)
void SetCurrencyCode(const char *value)
ReservedNode & WithNodeType(Aws::String &&value)
void SetCurrencyCode(Aws::String &&value)
ReservedNode & WithReservedNodeId(const Aws::String &value)
void SetReservedNodeOfferingId(Aws::String &&value)
void SetNodeType(Aws::String &&value)
void SetStartTime(Aws::Utils::DateTime &&value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetNodeType(const char *value)
void SetRecurringCharges(const Aws::Vector< RecurringCharge > &value)
ReservedNode & WithState(const Aws::String &value)
ReservedNode & WithRecurringCharges(Aws::Vector< RecurringCharge > &&value)
ReservedNode & WithFixedPrice(double value)
const Aws::String & GetCurrencyCode() const
const Aws::String & GetReservedNodeId() const
ReservedNode & WithState(Aws::String &&value)
ReservedNode & WithDuration(int value)
void SetCurrencyCode(const Aws::String &value)
ReservedNode & WithCurrencyCode(const char *value)
void SetOfferingType(const char *value)
ReservedNode & WithOfferingType(const Aws::String &value)
void SetStartTime(const Aws::Utils::DateTime &value)
void SetOfferingType(const Aws::String &value)
const Aws::Utils::DateTime & GetStartTime() const
ReservedNode & WithReservedNodeOfferingId(Aws::String &&value)
void SetNodeType(const Aws::String &value)
ReservedNode & WithStartTime(const Aws::Utils::DateTime &value)
void SetReservedNodeOfferingId(const char *value)
ReservedNode & WithOfferingType(Aws::String &&value)
ReservedNode & WithRecurringCharges(const Aws::Vector< RecurringCharge > &value)
ReservedNode & WithState(const char *value)
ReservedNode & WithCurrencyCode(Aws::String &&value)
const Aws::Vector< RecurringCharge > & GetRecurringCharges() const
ReservedNode & WithReservedNodeId(Aws::String &&value)
const Aws::String & GetReservedNodeOfferingId() const
void SetReservedNodeOfferingId(const Aws::String &value)
void SetRecurringCharges(Aws::Vector< RecurringCharge > &&value)
AWS_REDSHIFT_API ReservedNode(const Aws::Utils::Xml::XmlNode &xmlNode)
ReservedNode & WithReservedNodeOfferingId(const Aws::String &value)
ReservedNode & WithCurrencyCode(const Aws::String &value)
ReservedNode & AddRecurringCharges(RecurringCharge &&value)
AWS_REDSHIFT_API ReservedNode & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetOfferingType() const
ReservedNode & WithOfferingType(const char *value)
void SetReservedNodeOfferingType(const ReservedNodeOfferingType &value)
void SetState(const char *value)
const Aws::String & GetNodeType() const
void SetOfferingType(Aws::String &&value)
void SetReservedNodeOfferingType(ReservedNodeOfferingType &&value)
ReservedNode & AddRecurringCharges(const RecurringCharge &value)
const Aws::String & GetState() const
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ReservedNode & WithUsagePrice(double value)
ReservedNode & WithReservedNodeOfferingId(const char *value)
ReservedNode & WithReservedNodeId(const char *value)
ReservedNode & WithNodeType(const Aws::String &value)
ReservedNode & WithStartTime(Aws::Utils::DateTime &&value)
const ReservedNodeOfferingType & GetReservedNodeOfferingType() const
void SetState(Aws::String &&value)
void SetReservedNodeId(const char *value)
void SetState(const Aws::String &value)
ReservedNode & WithNodeCount(int 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