AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeReservedCacheNodesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/elasticache/ElastiCacheRequest.h>
9#include <aws/elasticache/ElastiCache_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace ElastiCache {
15namespace Model {
16
24 public:
25 AWS_ELASTICACHE_API DescribeReservedCacheNodesRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "DescribeReservedCacheNodes"; }
32
33 AWS_ELASTICACHE_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
37
38 public:
40
44 inline const Aws::String& GetReservedCacheNodeId() const { return m_reservedCacheNodeId; }
45 inline bool ReservedCacheNodeIdHasBeenSet() const { return m_reservedCacheNodeIdHasBeenSet; }
46 template <typename ReservedCacheNodeIdT = Aws::String>
47 void SetReservedCacheNodeId(ReservedCacheNodeIdT&& value) {
48 m_reservedCacheNodeIdHasBeenSet = true;
49 m_reservedCacheNodeId = std::forward<ReservedCacheNodeIdT>(value);
50 }
51 template <typename ReservedCacheNodeIdT = Aws::String>
53 SetReservedCacheNodeId(std::forward<ReservedCacheNodeIdT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetReservedCacheNodesOfferingId() const { return m_reservedCacheNodesOfferingId; }
64 inline bool ReservedCacheNodesOfferingIdHasBeenSet() const { return m_reservedCacheNodesOfferingIdHasBeenSet; }
65 template <typename ReservedCacheNodesOfferingIdT = Aws::String>
66 void SetReservedCacheNodesOfferingId(ReservedCacheNodesOfferingIdT&& value) {
67 m_reservedCacheNodesOfferingIdHasBeenSet = true;
68 m_reservedCacheNodesOfferingId = std::forward<ReservedCacheNodesOfferingIdT>(value);
69 }
70 template <typename ReservedCacheNodesOfferingIdT = Aws::String>
72 SetReservedCacheNodesOfferingId(std::forward<ReservedCacheNodesOfferingIdT>(value));
73 return *this;
74 }
76
78
153 inline const Aws::String& GetCacheNodeType() const { return m_cacheNodeType; }
154 inline bool CacheNodeTypeHasBeenSet() const { return m_cacheNodeTypeHasBeenSet; }
155 template <typename CacheNodeTypeT = Aws::String>
156 void SetCacheNodeType(CacheNodeTypeT&& value) {
157 m_cacheNodeTypeHasBeenSet = true;
158 m_cacheNodeType = std::forward<CacheNodeTypeT>(value);
159 }
160 template <typename CacheNodeTypeT = Aws::String>
162 SetCacheNodeType(std::forward<CacheNodeTypeT>(value));
163 return *this;
164 }
166
168
173 inline const Aws::String& GetDuration() const { return m_duration; }
174 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
175 template <typename DurationT = Aws::String>
176 void SetDuration(DurationT&& value) {
177 m_durationHasBeenSet = true;
178 m_duration = std::forward<DurationT>(value);
179 }
180 template <typename DurationT = Aws::String>
182 SetDuration(std::forward<DurationT>(value));
183 return *this;
184 }
186
188
192 inline const Aws::String& GetProductDescription() const { return m_productDescription; }
193 inline bool ProductDescriptionHasBeenSet() const { return m_productDescriptionHasBeenSet; }
194 template <typename ProductDescriptionT = Aws::String>
195 void SetProductDescription(ProductDescriptionT&& value) {
196 m_productDescriptionHasBeenSet = true;
197 m_productDescription = std::forward<ProductDescriptionT>(value);
198 }
199 template <typename ProductDescriptionT = Aws::String>
201 SetProductDescription(std::forward<ProductDescriptionT>(value));
202 return *this;
203 }
205
207
213 inline const Aws::String& GetOfferingType() const { return m_offeringType; }
214 inline bool OfferingTypeHasBeenSet() const { return m_offeringTypeHasBeenSet; }
215 template <typename OfferingTypeT = Aws::String>
216 void SetOfferingType(OfferingTypeT&& value) {
217 m_offeringTypeHasBeenSet = true;
218 m_offeringType = std::forward<OfferingTypeT>(value);
219 }
220 template <typename OfferingTypeT = Aws::String>
222 SetOfferingType(std::forward<OfferingTypeT>(value));
223 return *this;
224 }
226
228
234 inline int GetMaxRecords() const { return m_maxRecords; }
235 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
236 inline void SetMaxRecords(int value) {
237 m_maxRecordsHasBeenSet = true;
238 m_maxRecords = value;
239 }
241 SetMaxRecords(value);
242 return *this;
243 }
245
247
253 inline const Aws::String& GetMarker() const { return m_marker; }
254 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
255 template <typename MarkerT = Aws::String>
256 void SetMarker(MarkerT&& value) {
257 m_markerHasBeenSet = true;
258 m_marker = std::forward<MarkerT>(value);
259 }
260 template <typename MarkerT = Aws::String>
262 SetMarker(std::forward<MarkerT>(value));
263 return *this;
264 }
266 private:
267 Aws::String m_reservedCacheNodeId;
268
269 Aws::String m_reservedCacheNodesOfferingId;
270
271 Aws::String m_cacheNodeType;
272
273 Aws::String m_duration;
274
275 Aws::String m_productDescription;
276
277 Aws::String m_offeringType;
278
279 int m_maxRecords{0};
280
281 Aws::String m_marker;
282 bool m_reservedCacheNodeIdHasBeenSet = false;
283 bool m_reservedCacheNodesOfferingIdHasBeenSet = false;
284 bool m_cacheNodeTypeHasBeenSet = false;
285 bool m_durationHasBeenSet = false;
286 bool m_productDescriptionHasBeenSet = false;
287 bool m_offeringTypeHasBeenSet = false;
288 bool m_maxRecordsHasBeenSet = false;
289 bool m_markerHasBeenSet = false;
290};
291
292} // namespace Model
293} // namespace ElastiCache
294} // namespace Aws
AWS_ELASTICACHE_API Aws::String SerializePayload() const override
DescribeReservedCacheNodesRequest & WithProductDescription(ProductDescriptionT &&value)
DescribeReservedCacheNodesRequest & WithReservedCacheNodeId(ReservedCacheNodeIdT &&value)
DescribeReservedCacheNodesRequest & WithMarker(MarkerT &&value)
DescribeReservedCacheNodesRequest & WithOfferingType(OfferingTypeT &&value)
void SetReservedCacheNodesOfferingId(ReservedCacheNodesOfferingIdT &&value)
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeReservedCacheNodesRequest & WithDuration(DurationT &&value)
DescribeReservedCacheNodesRequest & WithReservedCacheNodesOfferingId(ReservedCacheNodesOfferingIdT &&value)
AWS_ELASTICACHE_API DescribeReservedCacheNodesRequest()=default
DescribeReservedCacheNodesRequest & WithCacheNodeType(CacheNodeTypeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String