AWS SDK for C++  0.12.9
AWS SDK for C++
ReservedCacheNode.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
22 
23 namespace Aws
24 {
25 namespace Utils
26 {
27 namespace Xml
28 {
29  class XmlNode;
30 } // namespace Xml
31 } // namespace Utils
32 namespace ElastiCache
33 {
34 namespace Model
35 {
36 
42  {
43  public:
46  ReservedCacheNode& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
47 
48  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
49  void OutputToStream(Aws::OStream& oStream, const char* location) const;
50 
54  inline const Aws::String& GetReservedCacheNodeId() const{ return m_reservedCacheNodeId; }
55 
59  inline void SetReservedCacheNodeId(const Aws::String& value) { m_reservedCacheNodeIdHasBeenSet = true; m_reservedCacheNodeId = value; }
60 
64  inline void SetReservedCacheNodeId(Aws::String&& value) { m_reservedCacheNodeIdHasBeenSet = true; m_reservedCacheNodeId = value; }
65 
69  inline void SetReservedCacheNodeId(const char* value) { m_reservedCacheNodeIdHasBeenSet = true; m_reservedCacheNodeId.assign(value); }
70 
74  inline ReservedCacheNode& WithReservedCacheNodeId(const Aws::String& value) { SetReservedCacheNodeId(value); return *this;}
75 
79  inline ReservedCacheNode& WithReservedCacheNodeId(Aws::String&& value) { SetReservedCacheNodeId(value); return *this;}
80 
84  inline ReservedCacheNode& WithReservedCacheNodeId(const char* value) { SetReservedCacheNodeId(value); return *this;}
85 
89  inline const Aws::String& GetReservedCacheNodesOfferingId() const{ return m_reservedCacheNodesOfferingId; }
90 
94  inline void SetReservedCacheNodesOfferingId(const Aws::String& value) { m_reservedCacheNodesOfferingIdHasBeenSet = true; m_reservedCacheNodesOfferingId = value; }
95 
99  inline void SetReservedCacheNodesOfferingId(Aws::String&& value) { m_reservedCacheNodesOfferingIdHasBeenSet = true; m_reservedCacheNodesOfferingId = value; }
100 
104  inline void SetReservedCacheNodesOfferingId(const char* value) { m_reservedCacheNodesOfferingIdHasBeenSet = true; m_reservedCacheNodesOfferingId.assign(value); }
105 
109  inline ReservedCacheNode& WithReservedCacheNodesOfferingId(const Aws::String& value) { SetReservedCacheNodesOfferingId(value); return *this;}
110 
114  inline ReservedCacheNode& WithReservedCacheNodesOfferingId(Aws::String&& value) { SetReservedCacheNodesOfferingId(value); return *this;}
115 
119  inline ReservedCacheNode& WithReservedCacheNodesOfferingId(const char* value) { SetReservedCacheNodesOfferingId(value); return *this;}
120 
149  inline const Aws::String& GetCacheNodeType() const{ return m_cacheNodeType; }
150 
179  inline void SetCacheNodeType(const Aws::String& value) { m_cacheNodeTypeHasBeenSet = true; m_cacheNodeType = value; }
180 
209  inline void SetCacheNodeType(Aws::String&& value) { m_cacheNodeTypeHasBeenSet = true; m_cacheNodeType = value; }
210 
239  inline void SetCacheNodeType(const char* value) { m_cacheNodeTypeHasBeenSet = true; m_cacheNodeType.assign(value); }
240 
269  inline ReservedCacheNode& WithCacheNodeType(const Aws::String& value) { SetCacheNodeType(value); return *this;}
270 
299  inline ReservedCacheNode& WithCacheNodeType(Aws::String&& value) { SetCacheNodeType(value); return *this;}
300 
329  inline ReservedCacheNode& WithCacheNodeType(const char* value) { SetCacheNodeType(value); return *this;}
330 
334  inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
335 
339  inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
340 
344  inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
345 
349  inline ReservedCacheNode& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
350 
354  inline ReservedCacheNode& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(value); return *this;}
355 
359  inline long GetDuration() const{ return m_duration; }
360 
364  inline void SetDuration(long value) { m_durationHasBeenSet = true; m_duration = value; }
365 
369  inline ReservedCacheNode& WithDuration(long value) { SetDuration(value); return *this;}
370 
374  inline double GetFixedPrice() const{ return m_fixedPrice; }
375 
379  inline void SetFixedPrice(double value) { m_fixedPriceHasBeenSet = true; m_fixedPrice = value; }
380 
384  inline ReservedCacheNode& WithFixedPrice(double value) { SetFixedPrice(value); return *this;}
385 
389  inline double GetUsagePrice() const{ return m_usagePrice; }
390 
394  inline void SetUsagePrice(double value) { m_usagePriceHasBeenSet = true; m_usagePrice = value; }
395 
399  inline ReservedCacheNode& WithUsagePrice(double value) { SetUsagePrice(value); return *this;}
400 
404  inline long GetCacheNodeCount() const{ return m_cacheNodeCount; }
405 
409  inline void SetCacheNodeCount(long value) { m_cacheNodeCountHasBeenSet = true; m_cacheNodeCount = value; }
410 
414  inline ReservedCacheNode& WithCacheNodeCount(long value) { SetCacheNodeCount(value); return *this;}
415 
419  inline const Aws::String& GetProductDescription() const{ return m_productDescription; }
420 
424  inline void SetProductDescription(const Aws::String& value) { m_productDescriptionHasBeenSet = true; m_productDescription = value; }
425 
429  inline void SetProductDescription(Aws::String&& value) { m_productDescriptionHasBeenSet = true; m_productDescription = value; }
430 
434  inline void SetProductDescription(const char* value) { m_productDescriptionHasBeenSet = true; m_productDescription.assign(value); }
435 
439  inline ReservedCacheNode& WithProductDescription(const Aws::String& value) { SetProductDescription(value); return *this;}
440 
444  inline ReservedCacheNode& WithProductDescription(Aws::String&& value) { SetProductDescription(value); return *this;}
445 
449  inline ReservedCacheNode& WithProductDescription(const char* value) { SetProductDescription(value); return *this;}
450 
454  inline const Aws::String& GetOfferingType() const{ return m_offeringType; }
455 
459  inline void SetOfferingType(const Aws::String& value) { m_offeringTypeHasBeenSet = true; m_offeringType = value; }
460 
464  inline void SetOfferingType(Aws::String&& value) { m_offeringTypeHasBeenSet = true; m_offeringType = value; }
465 
469  inline void SetOfferingType(const char* value) { m_offeringTypeHasBeenSet = true; m_offeringType.assign(value); }
470 
474  inline ReservedCacheNode& WithOfferingType(const Aws::String& value) { SetOfferingType(value); return *this;}
475 
479  inline ReservedCacheNode& WithOfferingType(Aws::String&& value) { SetOfferingType(value); return *this;}
480 
484  inline ReservedCacheNode& WithOfferingType(const char* value) { SetOfferingType(value); return *this;}
485 
489  inline const Aws::String& GetState() const{ return m_state; }
490 
494  inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; }
495 
499  inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = value; }
500 
504  inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); }
505 
509  inline ReservedCacheNode& WithState(const Aws::String& value) { SetState(value); return *this;}
510 
514  inline ReservedCacheNode& WithState(Aws::String&& value) { SetState(value); return *this;}
515 
519  inline ReservedCacheNode& WithState(const char* value) { SetState(value); return *this;}
520 
524  inline const Aws::Vector<RecurringCharge>& GetRecurringCharges() const{ return m_recurringCharges; }
525 
529  inline void SetRecurringCharges(const Aws::Vector<RecurringCharge>& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges = value; }
530 
534  inline void SetRecurringCharges(Aws::Vector<RecurringCharge>&& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges = value; }
535 
539  inline ReservedCacheNode& WithRecurringCharges(const Aws::Vector<RecurringCharge>& value) { SetRecurringCharges(value); return *this;}
540 
544  inline ReservedCacheNode& WithRecurringCharges(Aws::Vector<RecurringCharge>&& value) { SetRecurringCharges(value); return *this;}
545 
549  inline ReservedCacheNode& AddRecurringCharges(const RecurringCharge& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges.push_back(value); return *this; }
550 
554  inline ReservedCacheNode& AddRecurringCharges(RecurringCharge&& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges.push_back(value); return *this; }
555 
556  private:
557  Aws::String m_reservedCacheNodeId;
558  bool m_reservedCacheNodeIdHasBeenSet;
559  Aws::String m_reservedCacheNodesOfferingId;
560  bool m_reservedCacheNodesOfferingIdHasBeenSet;
561  Aws::String m_cacheNodeType;
562  bool m_cacheNodeTypeHasBeenSet;
563  Aws::Utils::DateTime m_startTime;
564  bool m_startTimeHasBeenSet;
565  long m_duration;
566  bool m_durationHasBeenSet;
567  double m_fixedPrice;
568  bool m_fixedPriceHasBeenSet;
569  double m_usagePrice;
570  bool m_usagePriceHasBeenSet;
571  long m_cacheNodeCount;
572  bool m_cacheNodeCountHasBeenSet;
573  Aws::String m_productDescription;
574  bool m_productDescriptionHasBeenSet;
575  Aws::String m_offeringType;
576  bool m_offeringTypeHasBeenSet;
577  Aws::String m_state;
578  bool m_stateHasBeenSet;
579  Aws::Vector<RecurringCharge> m_recurringCharges;
580  bool m_recurringChargesHasBeenSet;
581  };
582 
583 } // namespace Model
584 } // namespace ElastiCache
585 } // namespace Aws
void SetStartTime(Aws::Utils::DateTime &&value)
void SetOfferingType(const Aws::String &value)
void SetStartTime(const Aws::Utils::DateTime &value)
ReservedCacheNode & WithReservedCacheNodesOfferingId(const char *value)
const Aws::Vector< RecurringCharge > & GetRecurringCharges() const
void SetState(const Aws::String &value)
ReservedCacheNode & WithOfferingType(const Aws::String &value)
ReservedCacheNode & WithCacheNodeCount(long value)
void SetReservedCacheNodeId(const Aws::String &value)
ReservedCacheNode & WithReservedCacheNodeId(const Aws::String &value)
void SetCacheNodeType(const Aws::String &value)
ReservedCacheNode & WithRecurringCharges(const Aws::Vector< RecurringCharge > &value)
const Aws::String & GetOfferingType() const
ReservedCacheNode & AddRecurringCharges(RecurringCharge &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
ReservedCacheNode & WithState(const char *value)
ReservedCacheNode & WithOfferingType(Aws::String &&value)
ReservedCacheNode & WithUsagePrice(double value)
const Aws::String & GetProductDescription() const
const Aws::String & GetReservedCacheNodeId() const
ReservedCacheNode & WithReservedCacheNodeId(const char *value)
ReservedCacheNode & WithState(Aws::String &&value)
void SetReservedCacheNodesOfferingId(const Aws::String &value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
ReservedCacheNode & WithCacheNodeType(const char *value)
ReservedCacheNode & WithStartTime(Aws::Utils::DateTime &&value)
void SetReservedCacheNodeId(Aws::String &&value)
void SetRecurringCharges(const Aws::Vector< RecurringCharge > &value)
void SetRecurringCharges(Aws::Vector< RecurringCharge > &&value)
ReservedCacheNode & WithReservedCacheNodesOfferingId(Aws::String &&value)
ReservedCacheNode & WithDuration(long value)
ReservedCacheNode & WithProductDescription(const Aws::String &value)
ReservedCacheNode & WithState(const Aws::String &value)
ReservedCacheNode & WithCacheNodeType(Aws::String &&value)
void SetProductDescription(const Aws::String &value)
ReservedCacheNode & WithReservedCacheNodesOfferingId(const Aws::String &value)
ReservedCacheNode & WithOfferingType(const char *value)
ReservedCacheNode & WithFixedPrice(double value)
const Aws::String & GetCacheNodeType() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetReservedCacheNodesOfferingId(Aws::String &&value)
ReservedCacheNode & AddRecurringCharges(const RecurringCharge &value)
ReservedCacheNode & WithRecurringCharges(Aws::Vector< RecurringCharge > &&value)
ReservedCacheNode & WithStartTime(const Aws::Utils::DateTime &value)
#define AWS_ELASTICACHE_API
ReservedCacheNode & WithProductDescription(const char *value)
const Aws::Utils::DateTime & GetStartTime() const
ReservedCacheNode & WithReservedCacheNodeId(Aws::String &&value)
ReservedCacheNode & WithProductDescription(Aws::String &&value)
void SetProductDescription(Aws::String &&value)
void SetReservedCacheNodesOfferingId(const char *value)
const Aws::String & GetReservedCacheNodesOfferingId() const
JSON (JavaScript Object Notation).
ReservedCacheNode & WithCacheNodeType(const Aws::String &value)