AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
DescribeReservedCacheNodesRequest.h
1
6#pragma once
7#include <aws/elasticache/ElastiCache_EXPORTS.h>
8#include <aws/elasticache/ElastiCacheRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace ElastiCache
15{
16namespace Model
17{
18
26 {
27 public:
28 AWS_ELASTICACHE_API DescribeReservedCacheNodesRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "DescribeReservedCacheNodes"; }
35
36 AWS_ELASTICACHE_API Aws::String SerializePayload() const override;
37
38 protected:
39 AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40
41 public:
42
44
48 inline const Aws::String& GetReservedCacheNodeId() const { return m_reservedCacheNodeId; }
49 inline bool ReservedCacheNodeIdHasBeenSet() const { return m_reservedCacheNodeIdHasBeenSet; }
50 template<typename ReservedCacheNodeIdT = Aws::String>
51 void SetReservedCacheNodeId(ReservedCacheNodeIdT&& value) { m_reservedCacheNodeIdHasBeenSet = true; m_reservedCacheNodeId = std::forward<ReservedCacheNodeIdT>(value); }
52 template<typename ReservedCacheNodeIdT = Aws::String>
53 DescribeReservedCacheNodesRequest& WithReservedCacheNodeId(ReservedCacheNodeIdT&& value) { SetReservedCacheNodeId(std::forward<ReservedCacheNodeIdT>(value)); return *this;}
55
57
61 inline const Aws::String& GetReservedCacheNodesOfferingId() const { return m_reservedCacheNodesOfferingId; }
62 inline bool ReservedCacheNodesOfferingIdHasBeenSet() const { return m_reservedCacheNodesOfferingIdHasBeenSet; }
63 template<typename ReservedCacheNodesOfferingIdT = Aws::String>
64 void SetReservedCacheNodesOfferingId(ReservedCacheNodesOfferingIdT&& value) { m_reservedCacheNodesOfferingIdHasBeenSet = true; m_reservedCacheNodesOfferingId = std::forward<ReservedCacheNodesOfferingIdT>(value); }
65 template<typename ReservedCacheNodesOfferingIdT = Aws::String>
66 DescribeReservedCacheNodesRequest& WithReservedCacheNodesOfferingId(ReservedCacheNodesOfferingIdT&& value) { SetReservedCacheNodesOfferingId(std::forward<ReservedCacheNodesOfferingIdT>(value)); return *this;}
68
70
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 DescribeReservedCacheNodesRequest& WithCacheNodeType(CacheNodeTypeT&& value) { SetCacheNodeType(std::forward<CacheNodeTypeT>(value)); return *this;}
152
154
159 inline const Aws::String& GetDuration() const { return m_duration; }
160 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
161 template<typename DurationT = Aws::String>
162 void SetDuration(DurationT&& value) { m_durationHasBeenSet = true; m_duration = std::forward<DurationT>(value); }
163 template<typename DurationT = Aws::String>
164 DescribeReservedCacheNodesRequest& WithDuration(DurationT&& value) { SetDuration(std::forward<DurationT>(value)); return *this;}
166
168
172 inline const Aws::String& GetProductDescription() const { return m_productDescription; }
173 inline bool ProductDescriptionHasBeenSet() const { return m_productDescriptionHasBeenSet; }
174 template<typename ProductDescriptionT = Aws::String>
175 void SetProductDescription(ProductDescriptionT&& value) { m_productDescriptionHasBeenSet = true; m_productDescription = std::forward<ProductDescriptionT>(value); }
176 template<typename ProductDescriptionT = Aws::String>
177 DescribeReservedCacheNodesRequest& WithProductDescription(ProductDescriptionT&& value) { SetProductDescription(std::forward<ProductDescriptionT>(value)); return *this;}
179
181
187 inline const Aws::String& GetOfferingType() const { return m_offeringType; }
188 inline bool OfferingTypeHasBeenSet() const { return m_offeringTypeHasBeenSet; }
189 template<typename OfferingTypeT = Aws::String>
190 void SetOfferingType(OfferingTypeT&& value) { m_offeringTypeHasBeenSet = true; m_offeringType = std::forward<OfferingTypeT>(value); }
191 template<typename OfferingTypeT = Aws::String>
192 DescribeReservedCacheNodesRequest& WithOfferingType(OfferingTypeT&& value) { SetOfferingType(std::forward<OfferingTypeT>(value)); return *this;}
194
196
202 inline int GetMaxRecords() const { return m_maxRecords; }
203 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
204 inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
205 inline DescribeReservedCacheNodesRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
207
209
215 inline const Aws::String& GetMarker() const { return m_marker; }
216 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
217 template<typename MarkerT = Aws::String>
218 void SetMarker(MarkerT&& value) { m_markerHasBeenSet = true; m_marker = std::forward<MarkerT>(value); }
219 template<typename MarkerT = Aws::String>
220 DescribeReservedCacheNodesRequest& WithMarker(MarkerT&& value) { SetMarker(std::forward<MarkerT>(value)); return *this;}
222 private:
223
224 Aws::String m_reservedCacheNodeId;
225 bool m_reservedCacheNodeIdHasBeenSet = false;
226
227 Aws::String m_reservedCacheNodesOfferingId;
228 bool m_reservedCacheNodesOfferingIdHasBeenSet = false;
229
230 Aws::String m_cacheNodeType;
231 bool m_cacheNodeTypeHasBeenSet = false;
232
233 Aws::String m_duration;
234 bool m_durationHasBeenSet = false;
235
236 Aws::String m_productDescription;
237 bool m_productDescriptionHasBeenSet = false;
238
239 Aws::String m_offeringType;
240 bool m_offeringTypeHasBeenSet = false;
241
242 int m_maxRecords{0};
243 bool m_maxRecordsHasBeenSet = false;
244
245 Aws::String m_marker;
246 bool m_markerHasBeenSet = false;
247 };
248
249} // namespace Model
250} // namespace ElastiCache
251} // 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