AWS SDK for C++  1.8.71
AWS SDK for C++
DescribeCacheEngineVersionsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace ElastiCache
15 {
16 namespace Model
17 {
18 
26  {
27  public:
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 "DescribeCacheEngineVersions"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  protected:
39  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40 
41  public:
42 
47  inline const Aws::String& GetEngine() const{ return m_engine; }
48 
53  inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
54 
59  inline void SetEngine(const Aws::String& value) { m_engineHasBeenSet = true; m_engine = value; }
60 
65  inline void SetEngine(Aws::String&& value) { m_engineHasBeenSet = true; m_engine = std::move(value); }
66 
71  inline void SetEngine(const char* value) { m_engineHasBeenSet = true; m_engine.assign(value); }
72 
77  inline DescribeCacheEngineVersionsRequest& WithEngine(const Aws::String& value) { SetEngine(value); return *this;}
78 
83  inline DescribeCacheEngineVersionsRequest& WithEngine(Aws::String&& value) { SetEngine(std::move(value)); return *this;}
84 
89  inline DescribeCacheEngineVersionsRequest& WithEngine(const char* value) { SetEngine(value); return *this;}
90 
91 
95  inline const Aws::String& GetEngineVersion() const{ return m_engineVersion; }
96 
100  inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
101 
105  inline void SetEngineVersion(const Aws::String& value) { m_engineVersionHasBeenSet = true; m_engineVersion = value; }
106 
110  inline void SetEngineVersion(Aws::String&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::move(value); }
111 
115  inline void SetEngineVersion(const char* value) { m_engineVersionHasBeenSet = true; m_engineVersion.assign(value); }
116 
120  inline DescribeCacheEngineVersionsRequest& WithEngineVersion(const Aws::String& value) { SetEngineVersion(value); return *this;}
121 
125  inline DescribeCacheEngineVersionsRequest& WithEngineVersion(Aws::String&& value) { SetEngineVersion(std::move(value)); return *this;}
126 
130  inline DescribeCacheEngineVersionsRequest& WithEngineVersion(const char* value) { SetEngineVersion(value); return *this;}
131 
132 
142  inline const Aws::String& GetCacheParameterGroupFamily() const{ return m_cacheParameterGroupFamily; }
143 
153  inline bool CacheParameterGroupFamilyHasBeenSet() const { return m_cacheParameterGroupFamilyHasBeenSet; }
154 
164  inline void SetCacheParameterGroupFamily(const Aws::String& value) { m_cacheParameterGroupFamilyHasBeenSet = true; m_cacheParameterGroupFamily = value; }
165 
175  inline void SetCacheParameterGroupFamily(Aws::String&& value) { m_cacheParameterGroupFamilyHasBeenSet = true; m_cacheParameterGroupFamily = std::move(value); }
176 
186  inline void SetCacheParameterGroupFamily(const char* value) { m_cacheParameterGroupFamilyHasBeenSet = true; m_cacheParameterGroupFamily.assign(value); }
187 
197  inline DescribeCacheEngineVersionsRequest& WithCacheParameterGroupFamily(const Aws::String& value) { SetCacheParameterGroupFamily(value); return *this;}
198 
208  inline DescribeCacheEngineVersionsRequest& WithCacheParameterGroupFamily(Aws::String&& value) { SetCacheParameterGroupFamily(std::move(value)); return *this;}
209 
219  inline DescribeCacheEngineVersionsRequest& WithCacheParameterGroupFamily(const char* value) { SetCacheParameterGroupFamily(value); return *this;}
220 
221 
228  inline int GetMaxRecords() const{ return m_maxRecords; }
229 
236  inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
237 
244  inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
245 
252  inline DescribeCacheEngineVersionsRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
253 
254 
261  inline const Aws::String& GetMarker() const{ return m_marker; }
262 
269  inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
270 
277  inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
278 
285  inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
286 
293  inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
294 
301  inline DescribeCacheEngineVersionsRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
302 
309  inline DescribeCacheEngineVersionsRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
310 
317  inline DescribeCacheEngineVersionsRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
318 
319 
324  inline bool GetDefaultOnly() const{ return m_defaultOnly; }
325 
330  inline bool DefaultOnlyHasBeenSet() const { return m_defaultOnlyHasBeenSet; }
331 
336  inline void SetDefaultOnly(bool value) { m_defaultOnlyHasBeenSet = true; m_defaultOnly = value; }
337 
342  inline DescribeCacheEngineVersionsRequest& WithDefaultOnly(bool value) { SetDefaultOnly(value); return *this;}
343 
344  private:
345 
346  Aws::String m_engine;
347  bool m_engineHasBeenSet;
348 
349  Aws::String m_engineVersion;
350  bool m_engineVersionHasBeenSet;
351 
352  Aws::String m_cacheParameterGroupFamily;
353  bool m_cacheParameterGroupFamilyHasBeenSet;
354 
355  int m_maxRecords;
356  bool m_maxRecordsHasBeenSet;
357 
358  Aws::String m_marker;
359  bool m_markerHasBeenSet;
360 
361  bool m_defaultOnly;
362  bool m_defaultOnlyHasBeenSet;
363  };
364 
365 } // namespace Model
366 } // namespace ElastiCache
367 } // namespace Aws
DescribeCacheEngineVersionsRequest & WithMarker(Aws::String &&value)
DescribeCacheEngineVersionsRequest & WithEngineVersion(const Aws::String &value)
DescribeCacheEngineVersionsRequest & WithEngine(const char *value)
DescribeCacheEngineVersionsRequest & WithMarker(const Aws::String &value)
DescribeCacheEngineVersionsRequest & WithCacheParameterGroupFamily(Aws::String &&value)
DescribeCacheEngineVersionsRequest & WithMarker(const char *value)
DescribeCacheEngineVersionsRequest & WithEngineVersion(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeCacheEngineVersionsRequest & WithEngine(Aws::String &&value)
#define AWS_ELASTICACHE_API
DescribeCacheEngineVersionsRequest & WithEngineVersion(Aws::String &&value)
DescribeCacheEngineVersionsRequest & WithEngine(const Aws::String &value)
DescribeCacheEngineVersionsRequest & WithCacheParameterGroupFamily(const char *value)
DescribeCacheEngineVersionsRequest & WithCacheParameterGroupFamily(const Aws::String &value)