AWS SDK for C++  0.12.9
AWS SDK for C++
DescribeCacheEngineVersionsRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 namespace ElastiCache
23 {
24 namespace Model
25 {
26 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
40  inline const Aws::String& GetEngine() const{ return m_engine; }
41 
46  inline void SetEngine(const Aws::String& value) { m_engineHasBeenSet = true; m_engine = value; }
47 
52  inline void SetEngine(Aws::String&& value) { m_engineHasBeenSet = true; m_engine = value; }
53 
58  inline void SetEngine(const char* value) { m_engineHasBeenSet = true; m_engine.assign(value); }
59 
64  inline DescribeCacheEngineVersionsRequest& WithEngine(const Aws::String& value) { SetEngine(value); return *this;}
65 
70  inline DescribeCacheEngineVersionsRequest& WithEngine(Aws::String&& value) { SetEngine(value); return *this;}
71 
76  inline DescribeCacheEngineVersionsRequest& WithEngine(const char* value) { SetEngine(value); return *this;}
77 
81  inline const Aws::String& GetEngineVersion() const{ return m_engineVersion; }
82 
86  inline void SetEngineVersion(const Aws::String& value) { m_engineVersionHasBeenSet = true; m_engineVersion = value; }
87 
91  inline void SetEngineVersion(Aws::String&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = value; }
92 
96  inline void SetEngineVersion(const char* value) { m_engineVersionHasBeenSet = true; m_engineVersion.assign(value); }
97 
101  inline DescribeCacheEngineVersionsRequest& WithEngineVersion(const Aws::String& value) { SetEngineVersion(value); return *this;}
102 
106  inline DescribeCacheEngineVersionsRequest& WithEngineVersion(Aws::String&& value) { SetEngineVersion(value); return *this;}
107 
111  inline DescribeCacheEngineVersionsRequest& WithEngineVersion(const char* value) { SetEngineVersion(value); return *this;}
112 
119  inline const Aws::String& GetCacheParameterGroupFamily() const{ return m_cacheParameterGroupFamily; }
120 
127  inline void SetCacheParameterGroupFamily(const Aws::String& value) { m_cacheParameterGroupFamilyHasBeenSet = true; m_cacheParameterGroupFamily = value; }
128 
135  inline void SetCacheParameterGroupFamily(Aws::String&& value) { m_cacheParameterGroupFamilyHasBeenSet = true; m_cacheParameterGroupFamily = value; }
136 
143  inline void SetCacheParameterGroupFamily(const char* value) { m_cacheParameterGroupFamilyHasBeenSet = true; m_cacheParameterGroupFamily.assign(value); }
144 
151  inline DescribeCacheEngineVersionsRequest& WithCacheParameterGroupFamily(const Aws::String& value) { SetCacheParameterGroupFamily(value); return *this;}
152 
159  inline DescribeCacheEngineVersionsRequest& WithCacheParameterGroupFamily(Aws::String&& value) { SetCacheParameterGroupFamily(value); return *this;}
160 
167  inline DescribeCacheEngineVersionsRequest& WithCacheParameterGroupFamily(const char* value) { SetCacheParameterGroupFamily(value); return *this;}
168 
175  inline long GetMaxRecords() const{ return m_maxRecords; }
176 
183  inline void SetMaxRecords(long value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
184 
191  inline DescribeCacheEngineVersionsRequest& WithMaxRecords(long value) { SetMaxRecords(value); return *this;}
192 
199  inline const Aws::String& GetMarker() const{ return m_marker; }
200 
207  inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
208 
215  inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = value; }
216 
223  inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
224 
231  inline DescribeCacheEngineVersionsRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
232 
239  inline DescribeCacheEngineVersionsRequest& WithMarker(Aws::String&& value) { SetMarker(value); return *this;}
240 
247  inline DescribeCacheEngineVersionsRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
248 
253  inline bool GetDefaultOnly() const{ return m_defaultOnly; }
254 
259  inline void SetDefaultOnly(bool value) { m_defaultOnlyHasBeenSet = true; m_defaultOnly = value; }
260 
265  inline DescribeCacheEngineVersionsRequest& WithDefaultOnly(bool value) { SetDefaultOnly(value); return *this;}
266 
267  private:
268  Aws::String m_engine;
269  bool m_engineHasBeenSet;
270  Aws::String m_engineVersion;
271  bool m_engineVersionHasBeenSet;
272  Aws::String m_cacheParameterGroupFamily;
273  bool m_cacheParameterGroupFamilyHasBeenSet;
274  long m_maxRecords;
275  bool m_maxRecordsHasBeenSet;
276  Aws::String m_marker;
277  bool m_markerHasBeenSet;
278  bool m_defaultOnly;
279  bool m_defaultOnlyHasBeenSet;
280  };
281 
282 } // namespace Model
283 } // namespace ElastiCache
284 } // 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)
JSON (JavaScript Object Notation).
DescribeCacheEngineVersionsRequest & WithCacheParameterGroupFamily(const Aws::String &value)