AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReservedCacheNodesOffering.h
1
6#pragma once
7#include <aws/elasticache/ElastiCache_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/elasticache/model/RecurringCharge.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace ElastiCache
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_ELASTICACHE_API ReservedCacheNodesOffering();
38 AWS_ELASTICACHE_API ReservedCacheNodesOffering(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetReservedCacheNodesOfferingId() const{ return m_reservedCacheNodesOfferingId; }
50 inline bool ReservedCacheNodesOfferingIdHasBeenSet() const { return m_reservedCacheNodesOfferingIdHasBeenSet; }
51 inline void SetReservedCacheNodesOfferingId(const Aws::String& value) { m_reservedCacheNodesOfferingIdHasBeenSet = true; m_reservedCacheNodesOfferingId = value; }
52 inline void SetReservedCacheNodesOfferingId(Aws::String&& value) { m_reservedCacheNodesOfferingIdHasBeenSet = true; m_reservedCacheNodesOfferingId = std::move(value); }
53 inline void SetReservedCacheNodesOfferingId(const char* value) { m_reservedCacheNodesOfferingIdHasBeenSet = true; m_reservedCacheNodesOfferingId.assign(value); }
58
60
134 inline const Aws::String& GetCacheNodeType() const{ return m_cacheNodeType; }
135 inline bool CacheNodeTypeHasBeenSet() const { return m_cacheNodeTypeHasBeenSet; }
136 inline void SetCacheNodeType(const Aws::String& value) { m_cacheNodeTypeHasBeenSet = true; m_cacheNodeType = value; }
137 inline void SetCacheNodeType(Aws::String&& value) { m_cacheNodeTypeHasBeenSet = true; m_cacheNodeType = std::move(value); }
138 inline void SetCacheNodeType(const char* value) { m_cacheNodeTypeHasBeenSet = true; m_cacheNodeType.assign(value); }
139 inline ReservedCacheNodesOffering& WithCacheNodeType(const Aws::String& value) { SetCacheNodeType(value); return *this;}
140 inline ReservedCacheNodesOffering& WithCacheNodeType(Aws::String&& value) { SetCacheNodeType(std::move(value)); return *this;}
141 inline ReservedCacheNodesOffering& WithCacheNodeType(const char* value) { SetCacheNodeType(value); return *this;}
143
145
148 inline int GetDuration() const{ return m_duration; }
149 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
150 inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
151 inline ReservedCacheNodesOffering& WithDuration(int value) { SetDuration(value); return *this;}
153
155
158 inline double GetFixedPrice() const{ return m_fixedPrice; }
159 inline bool FixedPriceHasBeenSet() const { return m_fixedPriceHasBeenSet; }
160 inline void SetFixedPrice(double value) { m_fixedPriceHasBeenSet = true; m_fixedPrice = value; }
161 inline ReservedCacheNodesOffering& WithFixedPrice(double value) { SetFixedPrice(value); return *this;}
163
165
168 inline double GetUsagePrice() const{ return m_usagePrice; }
169 inline bool UsagePriceHasBeenSet() const { return m_usagePriceHasBeenSet; }
170 inline void SetUsagePrice(double value) { m_usagePriceHasBeenSet = true; m_usagePrice = value; }
171 inline ReservedCacheNodesOffering& WithUsagePrice(double value) { SetUsagePrice(value); return *this;}
173
175
178 inline const Aws::String& GetProductDescription() const{ return m_productDescription; }
179 inline bool ProductDescriptionHasBeenSet() const { return m_productDescriptionHasBeenSet; }
180 inline void SetProductDescription(const Aws::String& value) { m_productDescriptionHasBeenSet = true; m_productDescription = value; }
181 inline void SetProductDescription(Aws::String&& value) { m_productDescriptionHasBeenSet = true; m_productDescription = std::move(value); }
182 inline void SetProductDescription(const char* value) { m_productDescriptionHasBeenSet = true; m_productDescription.assign(value); }
184 inline ReservedCacheNodesOffering& WithProductDescription(Aws::String&& value) { SetProductDescription(std::move(value)); return *this;}
185 inline ReservedCacheNodesOffering& WithProductDescription(const char* value) { SetProductDescription(value); return *this;}
187
189
192 inline const Aws::String& GetOfferingType() const{ return m_offeringType; }
193 inline bool OfferingTypeHasBeenSet() const { return m_offeringTypeHasBeenSet; }
194 inline void SetOfferingType(const Aws::String& value) { m_offeringTypeHasBeenSet = true; m_offeringType = value; }
195 inline void SetOfferingType(Aws::String&& value) { m_offeringTypeHasBeenSet = true; m_offeringType = std::move(value); }
196 inline void SetOfferingType(const char* value) { m_offeringTypeHasBeenSet = true; m_offeringType.assign(value); }
197 inline ReservedCacheNodesOffering& WithOfferingType(const Aws::String& value) { SetOfferingType(value); return *this;}
198 inline ReservedCacheNodesOffering& WithOfferingType(Aws::String&& value) { SetOfferingType(std::move(value)); return *this;}
199 inline ReservedCacheNodesOffering& WithOfferingType(const char* value) { SetOfferingType(value); return *this;}
201
203
206 inline const Aws::Vector<RecurringCharge>& GetRecurringCharges() const{ return m_recurringCharges; }
207 inline bool RecurringChargesHasBeenSet() const { return m_recurringChargesHasBeenSet; }
208 inline void SetRecurringCharges(const Aws::Vector<RecurringCharge>& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges = value; }
209 inline void SetRecurringCharges(Aws::Vector<RecurringCharge>&& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges = std::move(value); }
212 inline ReservedCacheNodesOffering& AddRecurringCharges(const RecurringCharge& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges.push_back(value); return *this; }
213 inline ReservedCacheNodesOffering& AddRecurringCharges(RecurringCharge&& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges.push_back(std::move(value)); return *this; }
215 private:
216
217 Aws::String m_reservedCacheNodesOfferingId;
218 bool m_reservedCacheNodesOfferingIdHasBeenSet = false;
219
220 Aws::String m_cacheNodeType;
221 bool m_cacheNodeTypeHasBeenSet = false;
222
223 int m_duration;
224 bool m_durationHasBeenSet = false;
225
226 double m_fixedPrice;
227 bool m_fixedPriceHasBeenSet = false;
228
229 double m_usagePrice;
230 bool m_usagePriceHasBeenSet = false;
231
232 Aws::String m_productDescription;
233 bool m_productDescriptionHasBeenSet = false;
234
235 Aws::String m_offeringType;
236 bool m_offeringTypeHasBeenSet = false;
237
238 Aws::Vector<RecurringCharge> m_recurringCharges;
239 bool m_recurringChargesHasBeenSet = false;
240 };
241
242} // namespace Model
243} // namespace ElastiCache
244} // namespace Aws
ReservedCacheNodesOffering & AddRecurringCharges(const RecurringCharge &value)
ReservedCacheNodesOffering & WithReservedCacheNodesOfferingId(const char *value)
void SetRecurringCharges(Aws::Vector< RecurringCharge > &&value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ReservedCacheNodesOffering & WithCacheNodeType(Aws::String &&value)
ReservedCacheNodesOffering & WithProductDescription(const Aws::String &value)
ReservedCacheNodesOffering & WithOfferingType(const Aws::String &value)
ReservedCacheNodesOffering & AddRecurringCharges(RecurringCharge &&value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ReservedCacheNodesOffering & WithProductDescription(Aws::String &&value)
void SetRecurringCharges(const Aws::Vector< RecurringCharge > &value)
ReservedCacheNodesOffering & WithProductDescription(const char *value)
ReservedCacheNodesOffering & WithCacheNodeType(const Aws::String &value)
ReservedCacheNodesOffering & WithRecurringCharges(const Aws::Vector< RecurringCharge > &value)
ReservedCacheNodesOffering & WithRecurringCharges(Aws::Vector< RecurringCharge > &&value)
ReservedCacheNodesOffering & WithReservedCacheNodesOfferingId(const Aws::String &value)
ReservedCacheNodesOffering & WithReservedCacheNodesOfferingId(Aws::String &&value)
const Aws::Vector< RecurringCharge > & GetRecurringCharges() const
ReservedCacheNodesOffering & WithFixedPrice(double value)
ReservedCacheNodesOffering & WithOfferingType(const char *value)
AWS_ELASTICACHE_API ReservedCacheNodesOffering & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ReservedCacheNodesOffering & WithUsagePrice(double value)
ReservedCacheNodesOffering & WithOfferingType(Aws::String &&value)
ReservedCacheNodesOffering & WithCacheNodeType(const char *value)
AWS_ELASTICACHE_API ReservedCacheNodesOffering(const Aws::Utils::Xml::XmlNode &xmlNode)
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