AWS SDK for C++  1.9.104
AWS SDK for C++
ReservedNodeOffering.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Xml
20 {
21  class XmlNode;
22 } // namespace Xml
23 } // namespace Utils
24 namespace Redshift
25 {
26 namespace Model
27 {
28 
35  {
36  public:
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  void OutputToStream(Aws::OStream& oStream, const char* location) const;
43 
44 
48  inline const Aws::String& GetReservedNodeOfferingId() const{ return m_reservedNodeOfferingId; }
49 
53  inline bool ReservedNodeOfferingIdHasBeenSet() const { return m_reservedNodeOfferingIdHasBeenSet; }
54 
58  inline void SetReservedNodeOfferingId(const Aws::String& value) { m_reservedNodeOfferingIdHasBeenSet = true; m_reservedNodeOfferingId = value; }
59 
63  inline void SetReservedNodeOfferingId(Aws::String&& value) { m_reservedNodeOfferingIdHasBeenSet = true; m_reservedNodeOfferingId = std::move(value); }
64 
68  inline void SetReservedNodeOfferingId(const char* value) { m_reservedNodeOfferingIdHasBeenSet = true; m_reservedNodeOfferingId.assign(value); }
69 
73  inline ReservedNodeOffering& WithReservedNodeOfferingId(const Aws::String& value) { SetReservedNodeOfferingId(value); return *this;}
74 
78  inline ReservedNodeOffering& WithReservedNodeOfferingId(Aws::String&& value) { SetReservedNodeOfferingId(std::move(value)); return *this;}
79 
83  inline ReservedNodeOffering& WithReservedNodeOfferingId(const char* value) { SetReservedNodeOfferingId(value); return *this;}
84 
85 
89  inline const Aws::String& GetNodeType() const{ return m_nodeType; }
90 
94  inline bool NodeTypeHasBeenSet() const { return m_nodeTypeHasBeenSet; }
95 
99  inline void SetNodeType(const Aws::String& value) { m_nodeTypeHasBeenSet = true; m_nodeType = value; }
100 
104  inline void SetNodeType(Aws::String&& value) { m_nodeTypeHasBeenSet = true; m_nodeType = std::move(value); }
105 
109  inline void SetNodeType(const char* value) { m_nodeTypeHasBeenSet = true; m_nodeType.assign(value); }
110 
114  inline ReservedNodeOffering& WithNodeType(const Aws::String& value) { SetNodeType(value); return *this;}
115 
119  inline ReservedNodeOffering& WithNodeType(Aws::String&& value) { SetNodeType(std::move(value)); return *this;}
120 
124  inline ReservedNodeOffering& WithNodeType(const char* value) { SetNodeType(value); return *this;}
125 
126 
130  inline int GetDuration() const{ return m_duration; }
131 
135  inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
136 
140  inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
141 
145  inline ReservedNodeOffering& WithDuration(int value) { SetDuration(value); return *this;}
146 
147 
152  inline double GetFixedPrice() const{ return m_fixedPrice; }
153 
158  inline bool FixedPriceHasBeenSet() const { return m_fixedPriceHasBeenSet; }
159 
164  inline void SetFixedPrice(double value) { m_fixedPriceHasBeenSet = true; m_fixedPrice = value; }
165 
170  inline ReservedNodeOffering& WithFixedPrice(double value) { SetFixedPrice(value); return *this;}
171 
172 
177  inline double GetUsagePrice() const{ return m_usagePrice; }
178 
183  inline bool UsagePriceHasBeenSet() const { return m_usagePriceHasBeenSet; }
184 
189  inline void SetUsagePrice(double value) { m_usagePriceHasBeenSet = true; m_usagePrice = value; }
190 
195  inline ReservedNodeOffering& WithUsagePrice(double value) { SetUsagePrice(value); return *this;}
196 
197 
201  inline const Aws::String& GetCurrencyCode() const{ return m_currencyCode; }
202 
206  inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
207 
211  inline void SetCurrencyCode(const Aws::String& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = value; }
212 
216  inline void SetCurrencyCode(Aws::String&& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = std::move(value); }
217 
221  inline void SetCurrencyCode(const char* value) { m_currencyCodeHasBeenSet = true; m_currencyCode.assign(value); }
222 
226  inline ReservedNodeOffering& WithCurrencyCode(const Aws::String& value) { SetCurrencyCode(value); return *this;}
227 
231  inline ReservedNodeOffering& WithCurrencyCode(Aws::String&& value) { SetCurrencyCode(std::move(value)); return *this;}
232 
236  inline ReservedNodeOffering& WithCurrencyCode(const char* value) { SetCurrencyCode(value); return *this;}
237 
238 
243  inline const Aws::String& GetOfferingType() const{ return m_offeringType; }
244 
249  inline bool OfferingTypeHasBeenSet() const { return m_offeringTypeHasBeenSet; }
250 
255  inline void SetOfferingType(const Aws::String& value) { m_offeringTypeHasBeenSet = true; m_offeringType = value; }
256 
261  inline void SetOfferingType(Aws::String&& value) { m_offeringTypeHasBeenSet = true; m_offeringType = std::move(value); }
262 
267  inline void SetOfferingType(const char* value) { m_offeringTypeHasBeenSet = true; m_offeringType.assign(value); }
268 
273  inline ReservedNodeOffering& WithOfferingType(const Aws::String& value) { SetOfferingType(value); return *this;}
274 
279  inline ReservedNodeOffering& WithOfferingType(Aws::String&& value) { SetOfferingType(std::move(value)); return *this;}
280 
285  inline ReservedNodeOffering& WithOfferingType(const char* value) { SetOfferingType(value); return *this;}
286 
287 
293  inline const Aws::Vector<RecurringCharge>& GetRecurringCharges() const{ return m_recurringCharges; }
294 
300  inline bool RecurringChargesHasBeenSet() const { return m_recurringChargesHasBeenSet; }
301 
307  inline void SetRecurringCharges(const Aws::Vector<RecurringCharge>& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges = value; }
308 
314  inline void SetRecurringCharges(Aws::Vector<RecurringCharge>&& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges = std::move(value); }
315 
321  inline ReservedNodeOffering& WithRecurringCharges(const Aws::Vector<RecurringCharge>& value) { SetRecurringCharges(value); return *this;}
322 
328  inline ReservedNodeOffering& WithRecurringCharges(Aws::Vector<RecurringCharge>&& value) { SetRecurringCharges(std::move(value)); return *this;}
329 
335  inline ReservedNodeOffering& AddRecurringCharges(const RecurringCharge& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges.push_back(value); return *this; }
336 
342  inline ReservedNodeOffering& AddRecurringCharges(RecurringCharge&& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges.push_back(std::move(value)); return *this; }
343 
344 
348  inline const ReservedNodeOfferingType& GetReservedNodeOfferingType() const{ return m_reservedNodeOfferingType; }
349 
353  inline bool ReservedNodeOfferingTypeHasBeenSet() const { return m_reservedNodeOfferingTypeHasBeenSet; }
354 
358  inline void SetReservedNodeOfferingType(const ReservedNodeOfferingType& value) { m_reservedNodeOfferingTypeHasBeenSet = true; m_reservedNodeOfferingType = value; }
359 
363  inline void SetReservedNodeOfferingType(ReservedNodeOfferingType&& value) { m_reservedNodeOfferingTypeHasBeenSet = true; m_reservedNodeOfferingType = std::move(value); }
364 
368  inline ReservedNodeOffering& WithReservedNodeOfferingType(const ReservedNodeOfferingType& value) { SetReservedNodeOfferingType(value); return *this;}
369 
373  inline ReservedNodeOffering& WithReservedNodeOfferingType(ReservedNodeOfferingType&& value) { SetReservedNodeOfferingType(std::move(value)); return *this;}
374 
375  private:
376 
377  Aws::String m_reservedNodeOfferingId;
378  bool m_reservedNodeOfferingIdHasBeenSet;
379 
380  Aws::String m_nodeType;
381  bool m_nodeTypeHasBeenSet;
382 
383  int m_duration;
384  bool m_durationHasBeenSet;
385 
386  double m_fixedPrice;
387  bool m_fixedPriceHasBeenSet;
388 
389  double m_usagePrice;
390  bool m_usagePriceHasBeenSet;
391 
392  Aws::String m_currencyCode;
393  bool m_currencyCodeHasBeenSet;
394 
395  Aws::String m_offeringType;
396  bool m_offeringTypeHasBeenSet;
397 
398  Aws::Vector<RecurringCharge> m_recurringCharges;
399  bool m_recurringChargesHasBeenSet;
400 
401  ReservedNodeOfferingType m_reservedNodeOfferingType;
402  bool m_reservedNodeOfferingTypeHasBeenSet;
403  };
404 
405 } // namespace Model
406 } // namespace Redshift
407 } // namespace Aws
Aws::Redshift::Model::ReservedNodeOffering::SetDuration
void SetDuration(int value)
Definition: ReservedNodeOffering.h:140
Aws::Redshift::Model::ReservedNodeOffering::GetDuration
int GetDuration() const
Definition: ReservedNodeOffering.h:130
Aws::Redshift::Model::ReservedNodeOffering::CurrencyCodeHasBeenSet
bool CurrencyCodeHasBeenSet() const
Definition: ReservedNodeOffering.h:206
Aws::Redshift::Model::ReservedNodeOffering::WithUsagePrice
ReservedNodeOffering & WithUsagePrice(double value)
Definition: ReservedNodeOffering.h:195
Aws::Redshift::Model::ReservedNodeOffering::SetOfferingType
void SetOfferingType(const Aws::String &value)
Definition: ReservedNodeOffering.h:255
Aws::Redshift::Model::ReservedNodeOffering::SetReservedNodeOfferingType
void SetReservedNodeOfferingType(const ReservedNodeOfferingType &value)
Definition: ReservedNodeOffering.h:358
Aws::Redshift::Model::ReservedNodeOffering
Definition: ReservedNodeOffering.h:35
Aws::Redshift::Model::ReservedNodeOffering::GetCurrencyCode
const Aws::String & GetCurrencyCode() const
Definition: ReservedNodeOffering.h:201
Aws::Redshift::Model::ReservedNodeOffering::GetReservedNodeOfferingType
const ReservedNodeOfferingType & GetReservedNodeOfferingType() const
Definition: ReservedNodeOffering.h:348
Aws::Redshift::Model::ReservedNodeOffering::GetOfferingType
const Aws::String & GetOfferingType() const
Definition: ReservedNodeOffering.h:243
Aws::Redshift::Model::ReservedNodeOffering::WithNodeType
ReservedNodeOffering & WithNodeType(const Aws::String &value)
Definition: ReservedNodeOffering.h:114
Aws::Redshift::Model::ReservedNodeOffering::WithReservedNodeOfferingId
ReservedNodeOffering & WithReservedNodeOfferingId(const Aws::String &value)
Definition: ReservedNodeOffering.h:73
Aws::Redshift::Model::ReservedNodeOffering::NodeTypeHasBeenSet
bool NodeTypeHasBeenSet() const
Definition: ReservedNodeOffering.h:94
Aws::Redshift::Model::ReservedNodeOffering::GetUsagePrice
double GetUsagePrice() const
Definition: ReservedNodeOffering.h:177
Aws::Redshift::Model::ReservedNodeOffering::WithNodeType
ReservedNodeOffering & WithNodeType(Aws::String &&value)
Definition: ReservedNodeOffering.h:119
Aws::Redshift::Model::ReservedNodeOffering::SetReservedNodeOfferingType
void SetReservedNodeOfferingType(ReservedNodeOfferingType &&value)
Definition: ReservedNodeOffering.h:363
Aws::Redshift::Model::ReservedNodeOffering::WithReservedNodeOfferingType
ReservedNodeOffering & WithReservedNodeOfferingType(const ReservedNodeOfferingType &value)
Definition: ReservedNodeOffering.h:368
Aws::Redshift::Model::ReservedNodeOffering::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::Redshift::Model::ReservedNodeOffering::WithCurrencyCode
ReservedNodeOffering & WithCurrencyCode(const Aws::String &value)
Definition: ReservedNodeOffering.h:226
Aws::Redshift::Model::ReservedNodeOffering::WithNodeType
ReservedNodeOffering & WithNodeType(const char *value)
Definition: ReservedNodeOffering.h:124
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Redshift::Model::ReservedNodeOffering::FixedPriceHasBeenSet
bool FixedPriceHasBeenSet() const
Definition: ReservedNodeOffering.h:158
Aws::Redshift::Model::ReservedNodeOffering::SetReservedNodeOfferingId
void SetReservedNodeOfferingId(const Aws::String &value)
Definition: ReservedNodeOffering.h:58
Aws::Redshift::Model::ReservedNodeOffering::SetOfferingType
void SetOfferingType(const char *value)
Definition: ReservedNodeOffering.h:267
AWSStreamFwd.h
AWSVector.h
Aws::Redshift::Model::ReservedNodeOffering::ReservedNodeOffering
ReservedNodeOffering(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::ReservedNodeOffering::SetUsagePrice
void SetUsagePrice(double value)
Definition: ReservedNodeOffering.h:189
Aws::Redshift::Model::ReservedNodeOffering::GetReservedNodeOfferingId
const Aws::String & GetReservedNodeOfferingId() const
Definition: ReservedNodeOffering.h:48
Aws::Redshift::Model::ReservedNodeOffering::RecurringChargesHasBeenSet
bool RecurringChargesHasBeenSet() const
Definition: ReservedNodeOffering.h:300
Aws::Redshift::Model::ReservedNodeOffering::GetNodeType
const Aws::String & GetNodeType() const
Definition: ReservedNodeOffering.h:89
Aws::Redshift::Model::ReservedNodeOffering::SetNodeType
void SetNodeType(const char *value)
Definition: ReservedNodeOffering.h:109
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Redshift::Model::ReservedNodeOffering::SetNodeType
void SetNodeType(const Aws::String &value)
Definition: ReservedNodeOffering.h:99
Aws::Redshift::Model::ReservedNodeOffering::AddRecurringCharges
ReservedNodeOffering & AddRecurringCharges(RecurringCharge &&value)
Definition: ReservedNodeOffering.h:342
Aws::Redshift::Model::ReservedNodeOffering::SetReservedNodeOfferingId
void SetReservedNodeOfferingId(Aws::String &&value)
Definition: ReservedNodeOffering.h:63
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::Redshift::Model::ReservedNodeOffering::ReservedNodeOfferingIdHasBeenSet
bool ReservedNodeOfferingIdHasBeenSet() const
Definition: ReservedNodeOffering.h:53
Aws::Redshift::Model::ReservedNodeOffering::SetRecurringCharges
void SetRecurringCharges(Aws::Vector< RecurringCharge > &&value)
Definition: ReservedNodeOffering.h:314
Aws::Redshift::Model::ReservedNodeOffering::SetCurrencyCode
void SetCurrencyCode(const char *value)
Definition: ReservedNodeOffering.h:221
Aws::Redshift::Model::ReservedNodeOfferingType
ReservedNodeOfferingType
Definition: ReservedNodeOfferingType.h:17
Aws::Redshift::Model::ReservedNodeOffering::WithOfferingType
ReservedNodeOffering & WithOfferingType(const Aws::String &value)
Definition: ReservedNodeOffering.h:273
Aws::Redshift::Model::ReservedNodeOffering::SetRecurringCharges
void SetRecurringCharges(const Aws::Vector< RecurringCharge > &value)
Definition: ReservedNodeOffering.h:307
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::ReservedNodeOffering::WithOfferingType
ReservedNodeOffering & WithOfferingType(Aws::String &&value)
Definition: ReservedNodeOffering.h:279
Aws::Redshift::Model::ReservedNodeOffering::WithReservedNodeOfferingType
ReservedNodeOffering & WithReservedNodeOfferingType(ReservedNodeOfferingType &&value)
Definition: ReservedNodeOffering.h:373
Aws::Redshift::Model::ReservedNodeOffering::WithOfferingType
ReservedNodeOffering & WithOfferingType(const char *value)
Definition: ReservedNodeOffering.h:285
Aws::Redshift::Model::ReservedNodeOffering::SetCurrencyCode
void SetCurrencyCode(const Aws::String &value)
Definition: ReservedNodeOffering.h:211
Aws::Redshift::Model::ReservedNodeOffering::WithRecurringCharges
ReservedNodeOffering & WithRecurringCharges(const Aws::Vector< RecurringCharge > &value)
Definition: ReservedNodeOffering.h:321
Aws::Redshift::Model::ReservedNodeOffering::GetFixedPrice
double GetFixedPrice() const
Definition: ReservedNodeOffering.h:152
AWSString.h
Aws::Redshift::Model::ReservedNodeOffering::WithDuration
ReservedNodeOffering & WithDuration(int value)
Definition: ReservedNodeOffering.h:145
Aws::Redshift::Model::RecurringCharge
Definition: RecurringCharge.h:32
Aws::Redshift::Model::ReservedNodeOffering::DurationHasBeenSet
bool DurationHasBeenSet() const
Definition: ReservedNodeOffering.h:135
Aws::Redshift::Model::ReservedNodeOffering::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Redshift::Model::ReservedNodeOffering::ReservedNodeOffering
ReservedNodeOffering()
Aws::Redshift::Model::ReservedNodeOffering::WithRecurringCharges
ReservedNodeOffering & WithRecurringCharges(Aws::Vector< RecurringCharge > &&value)
Definition: ReservedNodeOffering.h:328
Aws::Redshift::Model::ReservedNodeOffering::SetFixedPrice
void SetFixedPrice(double value)
Definition: ReservedNodeOffering.h:164
Aws
Definition: AccessManagementClient.h:15
Aws::Redshift::Model::ReservedNodeOffering::SetReservedNodeOfferingId
void SetReservedNodeOfferingId(const char *value)
Definition: ReservedNodeOffering.h:68
Aws::Redshift::Model::ReservedNodeOffering::SetCurrencyCode
void SetCurrencyCode(Aws::String &&value)
Definition: ReservedNodeOffering.h:216
Redshift_EXPORTS.h
Aws::Redshift::Model::ReservedNodeOffering::UsagePriceHasBeenSet
bool UsagePriceHasBeenSet() const
Definition: ReservedNodeOffering.h:183
Aws::Redshift::Model::ReservedNodeOffering::WithReservedNodeOfferingId
ReservedNodeOffering & WithReservedNodeOfferingId(Aws::String &&value)
Definition: ReservedNodeOffering.h:78
Aws::Redshift::Model::ReservedNodeOffering::SetNodeType
void SetNodeType(Aws::String &&value)
Definition: ReservedNodeOffering.h:104
Aws::Redshift::Model::ReservedNodeOffering::operator=
ReservedNodeOffering & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::ReservedNodeOffering::WithCurrencyCode
ReservedNodeOffering & WithCurrencyCode(Aws::String &&value)
Definition: ReservedNodeOffering.h:231
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::Redshift::Model::ReservedNodeOffering::GetRecurringCharges
const Aws::Vector< RecurringCharge > & GetRecurringCharges() const
Definition: ReservedNodeOffering.h:293
RecurringCharge.h
ReservedNodeOfferingType.h
Aws::Redshift::Model::ReservedNodeOffering::WithFixedPrice
ReservedNodeOffering & WithFixedPrice(double value)
Definition: ReservedNodeOffering.h:170
Aws::Redshift::Model::ReservedNodeOffering::AddRecurringCharges
ReservedNodeOffering & AddRecurringCharges(const RecurringCharge &value)
Definition: ReservedNodeOffering.h:335
Aws::Redshift::Model::ReservedNodeOffering::OfferingTypeHasBeenSet
bool OfferingTypeHasBeenSet() const
Definition: ReservedNodeOffering.h:249
Aws::Redshift::Model::ReservedNodeOffering::WithCurrencyCode
ReservedNodeOffering & WithCurrencyCode(const char *value)
Definition: ReservedNodeOffering.h:236
Aws::Redshift::Model::ReservedNodeOffering::ReservedNodeOfferingTypeHasBeenSet
bool ReservedNodeOfferingTypeHasBeenSet() const
Definition: ReservedNodeOffering.h:353
Aws::Redshift::Model::ReservedNodeOffering::SetOfferingType
void SetOfferingType(Aws::String &&value)
Definition: ReservedNodeOffering.h:261
Aws::Redshift::Model::ReservedNodeOffering::WithReservedNodeOfferingId
ReservedNodeOffering & WithReservedNodeOfferingId(const char *value)
Definition: ReservedNodeOffering.h:83