7#include <aws/core/utils/DateTime.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/ElastiCache_EXPORTS.h>
12#include <aws/elasticache/model/RecurringCharge.h>
22namespace ElastiCache {
46 template <
typename ReservedCacheNodeIdT = Aws::String>
48 m_reservedCacheNodeIdHasBeenSet =
true;
49 m_reservedCacheNodeId = std::forward<ReservedCacheNodeIdT>(value);
51 template <
typename ReservedCacheNodeIdT = Aws::String>
64 template <
typename ReservedCacheNodesOfferingIdT = Aws::String>
66 m_reservedCacheNodesOfferingIdHasBeenSet =
true;
67 m_reservedCacheNodesOfferingId = std::forward<ReservedCacheNodesOfferingIdT>(value);
69 template <
typename ReservedCacheNodesOfferingIdT = Aws::String>
153 template <
typename CacheNodeTypeT = Aws::String>
155 m_cacheNodeTypeHasBeenSet =
true;
156 m_cacheNodeType = std::forward<CacheNodeTypeT>(value);
158 template <
typename CacheNodeTypeT = Aws::String>
171 template <
typename StartTimeT = Aws::Utils::DateTime>
173 m_startTimeHasBeenSet =
true;
174 m_startTime = std::forward<StartTimeT>(value);
176 template <
typename StartTimeT = Aws::Utils::DateTime>
190 m_durationHasBeenSet =
true;
206 m_fixedPriceHasBeenSet =
true;
207 m_fixedPrice = value;
222 m_usagePriceHasBeenSet =
true;
223 m_usagePrice = value;
238 m_cacheNodeCountHasBeenSet =
true;
239 m_cacheNodeCount = value;
253 template <
typename ProductDescriptionT = Aws::String>
255 m_productDescriptionHasBeenSet =
true;
256 m_productDescription = std::forward<ProductDescriptionT>(value);
258 template <
typename ProductDescriptionT = Aws::String>
271 template <
typename OfferingTypeT = Aws::String>
273 m_offeringTypeHasBeenSet =
true;
274 m_offeringType = std::forward<OfferingTypeT>(value);
276 template <
typename OfferingTypeT = Aws::String>
289 template <
typename StateT = Aws::String>
291 m_stateHasBeenSet =
true;
292 m_state = std::forward<StateT>(value);
294 template <
typename StateT = Aws::String>
296 SetState(std::forward<StateT>(value));
307 template <
typename RecurringChargesT = Aws::Vector<RecurringCharge>>
309 m_recurringChargesHasBeenSet =
true;
310 m_recurringCharges = std::forward<RecurringChargesT>(value);
312 template <
typename RecurringChargesT = Aws::Vector<RecurringCharge>>
317 template <
typename RecurringChargesT = RecurringCharge>
319 m_recurringChargesHasBeenSet =
true;
320 m_recurringCharges.emplace_back(std::forward<RecurringChargesT>(value));
333 template <
typename ReservationARNT = Aws::String>
335 m_reservationARNHasBeenSet =
true;
336 m_reservationARN = std::forward<ReservationARNT>(value);
338 template <
typename ReservationARNT = Aws::String>
355 double m_fixedPrice{0.0};
357 double m_usagePrice{0.0};
359 int m_cacheNodeCount{0};
370 bool m_reservedCacheNodeIdHasBeenSet =
false;
371 bool m_reservedCacheNodesOfferingIdHasBeenSet =
false;
372 bool m_cacheNodeTypeHasBeenSet =
false;
373 bool m_startTimeHasBeenSet =
false;
374 bool m_durationHasBeenSet =
false;
375 bool m_fixedPriceHasBeenSet =
false;
376 bool m_usagePriceHasBeenSet =
false;
377 bool m_cacheNodeCountHasBeenSet =
false;
378 bool m_productDescriptionHasBeenSet =
false;
379 bool m_offeringTypeHasBeenSet =
false;
380 bool m_stateHasBeenSet =
false;
381 bool m_recurringChargesHasBeenSet =
false;
382 bool m_reservationARNHasBeenSet =
false;
bool FixedPriceHasBeenSet() const
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool StateHasBeenSet() const
void SetDuration(int value)
void SetCacheNodeType(CacheNodeTypeT &&value)
ReservedCacheNode & WithCacheNodeCount(int value)
ReservedCacheNode & WithReservedCacheNodeId(ReservedCacheNodeIdT &&value)
bool RecurringChargesHasBeenSet() const
void SetCacheNodeCount(int value)
bool ReservedCacheNodeIdHasBeenSet() const
ReservedCacheNode & WithReservationARN(ReservationARNT &&value)
ReservedCacheNode & WithProductDescription(ProductDescriptionT &&value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ReservedCacheNode & WithCacheNodeType(CacheNodeTypeT &&value)
bool OfferingTypeHasBeenSet() const
void SetReservedCacheNodeId(ReservedCacheNodeIdT &&value)
void SetReservedCacheNodesOfferingId(ReservedCacheNodesOfferingIdT &&value)
const Aws::String & GetReservationARN() const
bool StartTimeHasBeenSet() const
void SetRecurringCharges(RecurringChargesT &&value)
ReservedCacheNode & WithReservedCacheNodesOfferingId(ReservedCacheNodesOfferingIdT &&value)
void SetUsagePrice(double value)
const Aws::String & GetReservedCacheNodeId() const
ReservedCacheNode & AddRecurringCharges(RecurringChargesT &&value)
void SetOfferingType(OfferingTypeT &&value)
const Aws::String & GetProductDescription() const
void SetProductDescription(ProductDescriptionT &&value)
AWS_ELASTICACHE_API ReservedCacheNode & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ReservedCacheNode & WithDuration(int value)
const Aws::String & GetState() const
const Aws::Utils::DateTime & GetStartTime() const
ReservedCacheNode & WithOfferingType(OfferingTypeT &&value)
double GetUsagePrice() const
void SetStartTime(StartTimeT &&value)
void SetReservationARN(ReservationARNT &&value)
double GetFixedPrice() const
bool DurationHasBeenSet() const
void SetState(StateT &&value)
int GetCacheNodeCount() const
bool ReservationARNHasBeenSet() const
void SetFixedPrice(double value)
bool CacheNodeCountHasBeenSet() const
const Aws::String & GetCacheNodeType() const
bool ProductDescriptionHasBeenSet() const
bool ReservedCacheNodesOfferingIdHasBeenSet() const
ReservedCacheNode & WithRecurringCharges(RecurringChargesT &&value)
const Aws::Vector< RecurringCharge > & GetRecurringCharges() const
ReservedCacheNode & WithStartTime(StartTimeT &&value)
ReservedCacheNode & WithFixedPrice(double value)
const Aws::String & GetOfferingType() const
AWS_ELASTICACHE_API ReservedCacheNode()=default
ReservedCacheNode & WithState(StateT &&value)
AWS_ELASTICACHE_API ReservedCacheNode(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetReservedCacheNodesOfferingId() const
ReservedCacheNode & WithUsagePrice(double value)
bool CacheNodeTypeHasBeenSet() const
bool UsagePriceHasBeenSet() const
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