AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ReservedCacheNodeIdT = Aws::String>
53 void SetReservedCacheNodeId(ReservedCacheNodeIdT&& value) { m_reservedCacheNodeIdHasBeenSet = true; m_reservedCacheNodeId = std::forward<ReservedCacheNodeIdT>(value); }
54 template<typename ReservedCacheNodeIdT = Aws::String>
55 ReservedCacheNode& WithReservedCacheNodeId(ReservedCacheNodeIdT&& value) { SetReservedCacheNodeId(std::forward<ReservedCacheNodeIdT>(value)); return *this;}
57
59
62 inline const Aws::String& GetReservedCacheNodesOfferingId() const { return m_reservedCacheNodesOfferingId; }
63 inline bool ReservedCacheNodesOfferingIdHasBeenSet() const { return m_reservedCacheNodesOfferingIdHasBeenSet; }
64 template<typename ReservedCacheNodesOfferingIdT = Aws::String>
65 void SetReservedCacheNodesOfferingId(ReservedCacheNodesOfferingIdT&& value) { m_reservedCacheNodesOfferingIdHasBeenSet = true; m_reservedCacheNodesOfferingId = std::forward<ReservedCacheNodesOfferingIdT>(value); }
66 template<typename ReservedCacheNodesOfferingIdT = Aws::String>
67 ReservedCacheNode& WithReservedCacheNodesOfferingId(ReservedCacheNodesOfferingIdT&& value) { SetReservedCacheNodesOfferingId(std::forward<ReservedCacheNodesOfferingIdT>(value)); return *this;}
69
71
145 inline const Aws::String& GetCacheNodeType() const { return m_cacheNodeType; }
146 inline bool CacheNodeTypeHasBeenSet() const { return m_cacheNodeTypeHasBeenSet; }
147 template<typename CacheNodeTypeT = Aws::String>
148 void SetCacheNodeType(CacheNodeTypeT&& value) { m_cacheNodeTypeHasBeenSet = true; m_cacheNodeType = std::forward<CacheNodeTypeT>(value); }
149 template<typename CacheNodeTypeT = Aws::String>
150 ReservedCacheNode& WithCacheNodeType(CacheNodeTypeT&& value) { SetCacheNodeType(std::forward<CacheNodeTypeT>(value)); return *this;}
152
154
157 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
158 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
159 template<typename StartTimeT = Aws::Utils::DateTime>
160 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
161 template<typename StartTimeT = Aws::Utils::DateTime>
162 ReservedCacheNode& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
164
166
169 inline int GetDuration() const { return m_duration; }
170 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
171 inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
172 inline ReservedCacheNode& WithDuration(int value) { SetDuration(value); return *this;}
174
176
179 inline double GetFixedPrice() const { return m_fixedPrice; }
180 inline bool FixedPriceHasBeenSet() const { return m_fixedPriceHasBeenSet; }
181 inline void SetFixedPrice(double value) { m_fixedPriceHasBeenSet = true; m_fixedPrice = value; }
182 inline ReservedCacheNode& WithFixedPrice(double value) { SetFixedPrice(value); return *this;}
184
186
189 inline double GetUsagePrice() const { return m_usagePrice; }
190 inline bool UsagePriceHasBeenSet() const { return m_usagePriceHasBeenSet; }
191 inline void SetUsagePrice(double value) { m_usagePriceHasBeenSet = true; m_usagePrice = value; }
192 inline ReservedCacheNode& WithUsagePrice(double value) { SetUsagePrice(value); return *this;}
194
196
199 inline int GetCacheNodeCount() const { return m_cacheNodeCount; }
200 inline bool CacheNodeCountHasBeenSet() const { return m_cacheNodeCountHasBeenSet; }
201 inline void SetCacheNodeCount(int value) { m_cacheNodeCountHasBeenSet = true; m_cacheNodeCount = value; }
202 inline ReservedCacheNode& WithCacheNodeCount(int value) { SetCacheNodeCount(value); return *this;}
204
206
209 inline const Aws::String& GetProductDescription() const { return m_productDescription; }
210 inline bool ProductDescriptionHasBeenSet() const { return m_productDescriptionHasBeenSet; }
211 template<typename ProductDescriptionT = Aws::String>
212 void SetProductDescription(ProductDescriptionT&& value) { m_productDescriptionHasBeenSet = true; m_productDescription = std::forward<ProductDescriptionT>(value); }
213 template<typename ProductDescriptionT = Aws::String>
214 ReservedCacheNode& WithProductDescription(ProductDescriptionT&& value) { SetProductDescription(std::forward<ProductDescriptionT>(value)); return *this;}
216
218
221 inline const Aws::String& GetOfferingType() const { return m_offeringType; }
222 inline bool OfferingTypeHasBeenSet() const { return m_offeringTypeHasBeenSet; }
223 template<typename OfferingTypeT = Aws::String>
224 void SetOfferingType(OfferingTypeT&& value) { m_offeringTypeHasBeenSet = true; m_offeringType = std::forward<OfferingTypeT>(value); }
225 template<typename OfferingTypeT = Aws::String>
226 ReservedCacheNode& WithOfferingType(OfferingTypeT&& value) { SetOfferingType(std::forward<OfferingTypeT>(value)); return *this;}
228
230
233 inline const Aws::String& GetState() const { return m_state; }
234 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
235 template<typename StateT = Aws::String>
236 void SetState(StateT&& value) { m_stateHasBeenSet = true; m_state = std::forward<StateT>(value); }
237 template<typename StateT = Aws::String>
238 ReservedCacheNode& WithState(StateT&& value) { SetState(std::forward<StateT>(value)); return *this;}
240
242
245 inline const Aws::Vector<RecurringCharge>& GetRecurringCharges() const { return m_recurringCharges; }
246 inline bool RecurringChargesHasBeenSet() const { return m_recurringChargesHasBeenSet; }
247 template<typename RecurringChargesT = Aws::Vector<RecurringCharge>>
248 void SetRecurringCharges(RecurringChargesT&& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges = std::forward<RecurringChargesT>(value); }
249 template<typename RecurringChargesT = Aws::Vector<RecurringCharge>>
250 ReservedCacheNode& WithRecurringCharges(RecurringChargesT&& value) { SetRecurringCharges(std::forward<RecurringChargesT>(value)); return *this;}
251 template<typename RecurringChargesT = RecurringCharge>
252 ReservedCacheNode& AddRecurringCharges(RecurringChargesT&& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges.emplace_back(std::forward<RecurringChargesT>(value)); return *this; }
254
256
261 inline const Aws::String& GetReservationARN() const { return m_reservationARN; }
262 inline bool ReservationARNHasBeenSet() const { return m_reservationARNHasBeenSet; }
263 template<typename ReservationARNT = Aws::String>
264 void SetReservationARN(ReservationARNT&& value) { m_reservationARNHasBeenSet = true; m_reservationARN = std::forward<ReservationARNT>(value); }
265 template<typename ReservationARNT = Aws::String>
266 ReservedCacheNode& WithReservationARN(ReservationARNT&& value) { SetReservationARN(std::forward<ReservationARNT>(value)); return *this;}
268 private:
269
270 Aws::String m_reservedCacheNodeId;
271 bool m_reservedCacheNodeIdHasBeenSet = false;
272
273 Aws::String m_reservedCacheNodesOfferingId;
274 bool m_reservedCacheNodesOfferingIdHasBeenSet = false;
275
276 Aws::String m_cacheNodeType;
277 bool m_cacheNodeTypeHasBeenSet = false;
278
279 Aws::Utils::DateTime m_startTime{};
280 bool m_startTimeHasBeenSet = false;
281
282 int m_duration{0};
283 bool m_durationHasBeenSet = false;
284
285 double m_fixedPrice{0.0};
286 bool m_fixedPriceHasBeenSet = false;
287
288 double m_usagePrice{0.0};
289 bool m_usagePriceHasBeenSet = false;
290
291 int m_cacheNodeCount{0};
292 bool m_cacheNodeCountHasBeenSet = false;
293
294 Aws::String m_productDescription;
295 bool m_productDescriptionHasBeenSet = false;
296
297 Aws::String m_offeringType;
298 bool m_offeringTypeHasBeenSet = false;
299
300 Aws::String m_state;
301 bool m_stateHasBeenSet = false;
302
303 Aws::Vector<RecurringCharge> m_recurringCharges;
304 bool m_recurringChargesHasBeenSet = false;
305
306 Aws::String m_reservationARN;
307 bool m_reservationARNHasBeenSet = false;
308 };
309
310} // namespace Model
311} // namespace ElastiCache
312} // namespace Aws
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetCacheNodeType(CacheNodeTypeT &&value)
ReservedCacheNode & WithCacheNodeCount(int value)
ReservedCacheNode & WithReservedCacheNodeId(ReservedCacheNodeIdT &&value)
ReservedCacheNode & WithReservationARN(ReservationARNT &&value)
ReservedCacheNode & WithProductDescription(ProductDescriptionT &&value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ReservedCacheNode & WithCacheNodeType(CacheNodeTypeT &&value)
void SetReservedCacheNodeId(ReservedCacheNodeIdT &&value)
void SetReservedCacheNodesOfferingId(ReservedCacheNodesOfferingIdT &&value)
const Aws::String & GetReservationARN() const
void SetRecurringCharges(RecurringChargesT &&value)
ReservedCacheNode & WithReservedCacheNodesOfferingId(ReservedCacheNodesOfferingIdT &&value)
const Aws::String & GetReservedCacheNodeId() const
ReservedCacheNode & AddRecurringCharges(RecurringChargesT &&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::Utils::DateTime & GetStartTime() const
ReservedCacheNode & WithOfferingType(OfferingTypeT &&value)
void SetReservationARN(ReservationARNT &&value)
ReservedCacheNode & WithRecurringCharges(RecurringChargesT &&value)
const Aws::Vector< RecurringCharge > & GetRecurringCharges() const
ReservedCacheNode & WithStartTime(StartTimeT &&value)
ReservedCacheNode & WithFixedPrice(double value)
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)
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