AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReservedCacheNode.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/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/elasticache/model/RecurringCharge.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace ElastiCache
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_ELASTICACHE_API ReservedCacheNode();
39 AWS_ELASTICACHE_API ReservedCacheNode(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_ELASTICACHE_API ReservedCacheNode& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::String& GetReservedCacheNodeId() const{ return m_reservedCacheNodeId; }
51 inline bool ReservedCacheNodeIdHasBeenSet() const { return m_reservedCacheNodeIdHasBeenSet; }
52 inline void SetReservedCacheNodeId(const Aws::String& value) { m_reservedCacheNodeIdHasBeenSet = true; m_reservedCacheNodeId = value; }
53 inline void SetReservedCacheNodeId(Aws::String&& value) { m_reservedCacheNodeIdHasBeenSet = true; m_reservedCacheNodeId = std::move(value); }
54 inline void SetReservedCacheNodeId(const char* value) { m_reservedCacheNodeIdHasBeenSet = true; m_reservedCacheNodeId.assign(value); }
55 inline ReservedCacheNode& WithReservedCacheNodeId(const Aws::String& value) { SetReservedCacheNodeId(value); return *this;}
56 inline ReservedCacheNode& WithReservedCacheNodeId(Aws::String&& value) { SetReservedCacheNodeId(std::move(value)); return *this;}
57 inline ReservedCacheNode& WithReservedCacheNodeId(const char* value) { SetReservedCacheNodeId(value); return *this;}
59
61
64 inline const Aws::String& GetReservedCacheNodesOfferingId() const{ return m_reservedCacheNodesOfferingId; }
65 inline bool ReservedCacheNodesOfferingIdHasBeenSet() const { return m_reservedCacheNodesOfferingIdHasBeenSet; }
66 inline void SetReservedCacheNodesOfferingId(const Aws::String& value) { m_reservedCacheNodesOfferingIdHasBeenSet = true; m_reservedCacheNodesOfferingId = value; }
67 inline void SetReservedCacheNodesOfferingId(Aws::String&& value) { m_reservedCacheNodesOfferingIdHasBeenSet = true; m_reservedCacheNodesOfferingId = std::move(value); }
68 inline void SetReservedCacheNodesOfferingId(const char* value) { m_reservedCacheNodesOfferingIdHasBeenSet = true; m_reservedCacheNodesOfferingId.assign(value); }
73
75
149 inline const Aws::String& GetCacheNodeType() const{ return m_cacheNodeType; }
150 inline bool CacheNodeTypeHasBeenSet() const { return m_cacheNodeTypeHasBeenSet; }
151 inline void SetCacheNodeType(const Aws::String& value) { m_cacheNodeTypeHasBeenSet = true; m_cacheNodeType = value; }
152 inline void SetCacheNodeType(Aws::String&& value) { m_cacheNodeTypeHasBeenSet = true; m_cacheNodeType = std::move(value); }
153 inline void SetCacheNodeType(const char* value) { m_cacheNodeTypeHasBeenSet = true; m_cacheNodeType.assign(value); }
154 inline ReservedCacheNode& WithCacheNodeType(const Aws::String& value) { SetCacheNodeType(value); return *this;}
155 inline ReservedCacheNode& WithCacheNodeType(Aws::String&& value) { SetCacheNodeType(std::move(value)); return *this;}
156 inline ReservedCacheNode& WithCacheNodeType(const char* value) { SetCacheNodeType(value); return *this;}
158
160
163 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
164 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
165 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
166 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
167 inline ReservedCacheNode& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
168 inline ReservedCacheNode& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
170
172
175 inline int GetDuration() const{ return m_duration; }
176 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
177 inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
178 inline ReservedCacheNode& WithDuration(int value) { SetDuration(value); return *this;}
180
182
185 inline double GetFixedPrice() const{ return m_fixedPrice; }
186 inline bool FixedPriceHasBeenSet() const { return m_fixedPriceHasBeenSet; }
187 inline void SetFixedPrice(double value) { m_fixedPriceHasBeenSet = true; m_fixedPrice = value; }
188 inline ReservedCacheNode& WithFixedPrice(double value) { SetFixedPrice(value); return *this;}
190
192
195 inline double GetUsagePrice() const{ return m_usagePrice; }
196 inline bool UsagePriceHasBeenSet() const { return m_usagePriceHasBeenSet; }
197 inline void SetUsagePrice(double value) { m_usagePriceHasBeenSet = true; m_usagePrice = value; }
198 inline ReservedCacheNode& WithUsagePrice(double value) { SetUsagePrice(value); return *this;}
200
202
205 inline int GetCacheNodeCount() const{ return m_cacheNodeCount; }
206 inline bool CacheNodeCountHasBeenSet() const { return m_cacheNodeCountHasBeenSet; }
207 inline void SetCacheNodeCount(int value) { m_cacheNodeCountHasBeenSet = true; m_cacheNodeCount = value; }
208 inline ReservedCacheNode& WithCacheNodeCount(int value) { SetCacheNodeCount(value); return *this;}
210
212
215 inline const Aws::String& GetProductDescription() const{ return m_productDescription; }
216 inline bool ProductDescriptionHasBeenSet() const { return m_productDescriptionHasBeenSet; }
217 inline void SetProductDescription(const Aws::String& value) { m_productDescriptionHasBeenSet = true; m_productDescription = value; }
218 inline void SetProductDescription(Aws::String&& value) { m_productDescriptionHasBeenSet = true; m_productDescription = std::move(value); }
219 inline void SetProductDescription(const char* value) { m_productDescriptionHasBeenSet = true; m_productDescription.assign(value); }
220 inline ReservedCacheNode& WithProductDescription(const Aws::String& value) { SetProductDescription(value); return *this;}
221 inline ReservedCacheNode& WithProductDescription(Aws::String&& value) { SetProductDescription(std::move(value)); return *this;}
222 inline ReservedCacheNode& WithProductDescription(const char* value) { SetProductDescription(value); return *this;}
224
226
229 inline const Aws::String& GetOfferingType() const{ return m_offeringType; }
230 inline bool OfferingTypeHasBeenSet() const { return m_offeringTypeHasBeenSet; }
231 inline void SetOfferingType(const Aws::String& value) { m_offeringTypeHasBeenSet = true; m_offeringType = value; }
232 inline void SetOfferingType(Aws::String&& value) { m_offeringTypeHasBeenSet = true; m_offeringType = std::move(value); }
233 inline void SetOfferingType(const char* value) { m_offeringTypeHasBeenSet = true; m_offeringType.assign(value); }
234 inline ReservedCacheNode& WithOfferingType(const Aws::String& value) { SetOfferingType(value); return *this;}
235 inline ReservedCacheNode& WithOfferingType(Aws::String&& value) { SetOfferingType(std::move(value)); return *this;}
236 inline ReservedCacheNode& WithOfferingType(const char* value) { SetOfferingType(value); return *this;}
238
240
243 inline const Aws::String& GetState() const{ return m_state; }
244 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
245 inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; }
246 inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
247 inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); }
248 inline ReservedCacheNode& WithState(const Aws::String& value) { SetState(value); return *this;}
249 inline ReservedCacheNode& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;}
250 inline ReservedCacheNode& WithState(const char* value) { SetState(value); return *this;}
252
254
257 inline const Aws::Vector<RecurringCharge>& GetRecurringCharges() const{ return m_recurringCharges; }
258 inline bool RecurringChargesHasBeenSet() const { return m_recurringChargesHasBeenSet; }
259 inline void SetRecurringCharges(const Aws::Vector<RecurringCharge>& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges = value; }
260 inline void SetRecurringCharges(Aws::Vector<RecurringCharge>&& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges = std::move(value); }
263 inline ReservedCacheNode& AddRecurringCharges(const RecurringCharge& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges.push_back(value); return *this; }
264 inline ReservedCacheNode& AddRecurringCharges(RecurringCharge&& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges.push_back(std::move(value)); return *this; }
266
268
273 inline const Aws::String& GetReservationARN() const{ return m_reservationARN; }
274 inline bool ReservationARNHasBeenSet() const { return m_reservationARNHasBeenSet; }
275 inline void SetReservationARN(const Aws::String& value) { m_reservationARNHasBeenSet = true; m_reservationARN = value; }
276 inline void SetReservationARN(Aws::String&& value) { m_reservationARNHasBeenSet = true; m_reservationARN = std::move(value); }
277 inline void SetReservationARN(const char* value) { m_reservationARNHasBeenSet = true; m_reservationARN.assign(value); }
278 inline ReservedCacheNode& WithReservationARN(const Aws::String& value) { SetReservationARN(value); return *this;}
279 inline ReservedCacheNode& WithReservationARN(Aws::String&& value) { SetReservationARN(std::move(value)); return *this;}
280 inline ReservedCacheNode& WithReservationARN(const char* value) { SetReservationARN(value); return *this;}
282 private:
283
284 Aws::String m_reservedCacheNodeId;
285 bool m_reservedCacheNodeIdHasBeenSet = false;
286
287 Aws::String m_reservedCacheNodesOfferingId;
288 bool m_reservedCacheNodesOfferingIdHasBeenSet = false;
289
290 Aws::String m_cacheNodeType;
291 bool m_cacheNodeTypeHasBeenSet = false;
292
293 Aws::Utils::DateTime m_startTime;
294 bool m_startTimeHasBeenSet = false;
295
296 int m_duration;
297 bool m_durationHasBeenSet = false;
298
299 double m_fixedPrice;
300 bool m_fixedPriceHasBeenSet = false;
301
302 double m_usagePrice;
303 bool m_usagePriceHasBeenSet = false;
304
305 int m_cacheNodeCount;
306 bool m_cacheNodeCountHasBeenSet = false;
307
308 Aws::String m_productDescription;
309 bool m_productDescriptionHasBeenSet = false;
310
311 Aws::String m_offeringType;
312 bool m_offeringTypeHasBeenSet = false;
313
314 Aws::String m_state;
315 bool m_stateHasBeenSet = false;
316
317 Aws::Vector<RecurringCharge> m_recurringCharges;
318 bool m_recurringChargesHasBeenSet = false;
319
320 Aws::String m_reservationARN;
321 bool m_reservationARNHasBeenSet = false;
322 };
323
324} // namespace Model
325} // namespace ElastiCache
326} // namespace Aws
ReservedCacheNode & WithReservedCacheNodesOfferingId(Aws::String &&value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ReservedCacheNode & WithCacheNodeType(const char *value)
void SetProductDescription(const Aws::String &value)
ReservedCacheNode & WithProductDescription(const char *value)
ReservedCacheNode & WithReservationARN(const Aws::String &value)
ReservedCacheNode & WithState(Aws::String &&value)
ReservedCacheNode & WithCacheNodeCount(int value)
void SetReservationARN(const Aws::String &value)
ReservedCacheNode & AddRecurringCharges(RecurringCharge &&value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ReservedCacheNode & WithOfferingType(Aws::String &&value)
ReservedCacheNode & WithReservationARN(const char *value)
ReservedCacheNode & WithReservedCacheNodesOfferingId(const Aws::String &value)
ReservedCacheNode & WithReservedCacheNodesOfferingId(const char *value)
ReservedCacheNode & WithRecurringCharges(const Aws::Vector< RecurringCharge > &value)
void SetReservedCacheNodesOfferingId(const Aws::String &value)
const Aws::String & GetReservationARN() const
ReservedCacheNode & WithReservationARN(Aws::String &&value)
void SetState(const Aws::String &value)
const Aws::String & GetReservedCacheNodeId() const
ReservedCacheNode & WithReservedCacheNodeId(const Aws::String &value)
const Aws::String & GetProductDescription() const
AWS_ELASTICACHE_API ReservedCacheNode & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ReservedCacheNode & WithDuration(int value)
void SetStartTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetStartTime() const
void SetCacheNodeType(const Aws::String &value)
ReservedCacheNode & WithProductDescription(Aws::String &&value)
ReservedCacheNode & WithCacheNodeType(Aws::String &&value)
ReservedCacheNode & WithStartTime(Aws::Utils::DateTime &&value)
void SetReservedCacheNodeId(const Aws::String &value)
ReservedCacheNode & WithStartTime(const Aws::Utils::DateTime &value)
void SetRecurringCharges(Aws::Vector< RecurringCharge > &&value)
ReservedCacheNode & WithState(const char *value)
ReservedCacheNode & WithReservedCacheNodeId(Aws::String &&value)
void SetRecurringCharges(const Aws::Vector< RecurringCharge > &value)
void SetOfferingType(const Aws::String &value)
void SetReservedCacheNodeId(Aws::String &&value)
ReservedCacheNode & WithOfferingType(const char *value)
ReservedCacheNode & WithReservedCacheNodeId(const char *value)
ReservedCacheNode & WithCacheNodeType(const Aws::String &value)
const Aws::Vector< RecurringCharge > & GetRecurringCharges() const
ReservedCacheNode & WithProductDescription(const Aws::String &value)
ReservedCacheNode & WithFixedPrice(double value)
ReservedCacheNode & WithRecurringCharges(Aws::Vector< RecurringCharge > &&value)
void SetReservedCacheNodesOfferingId(Aws::String &&value)
void SetReservedCacheNodesOfferingId(const char *value)
AWS_ELASTICACHE_API ReservedCacheNode(const Aws::Utils::Xml::XmlNode &xmlNode)
ReservedCacheNode & WithState(const Aws::String &value)
const Aws::String & GetReservedCacheNodesOfferingId() const
void SetStartTime(const Aws::Utils::DateTime &value)
ReservedCacheNode & WithUsagePrice(double value)
ReservedCacheNode & AddRecurringCharges(const RecurringCharge &value)
ReservedCacheNode & WithOfferingType(const Aws::String &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