AWS SDK for C++  0.14.3
AWS SDK for C++
DescribeSnapshotsRequest.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& GetCacheClusterId() const{ return m_cacheClusterId; }
41 
46  inline void SetCacheClusterId(const Aws::String& value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId = value; }
47 
52  inline void SetCacheClusterId(Aws::String&& value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId = value; }
53 
58  inline void SetCacheClusterId(const char* value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId.assign(value); }
59 
64  inline DescribeSnapshotsRequest& WithCacheClusterId(const Aws::String& value) { SetCacheClusterId(value); return *this;}
65 
70  inline DescribeSnapshotsRequest& WithCacheClusterId(Aws::String&& value) { SetCacheClusterId(value); return *this;}
71 
76  inline DescribeSnapshotsRequest& WithCacheClusterId(const char* value) { SetCacheClusterId(value); return *this;}
77 
82  inline const Aws::String& GetSnapshotName() const{ return m_snapshotName; }
83 
88  inline void SetSnapshotName(const Aws::String& value) { m_snapshotNameHasBeenSet = true; m_snapshotName = value; }
89 
94  inline void SetSnapshotName(Aws::String&& value) { m_snapshotNameHasBeenSet = true; m_snapshotName = value; }
95 
100  inline void SetSnapshotName(const char* value) { m_snapshotNameHasBeenSet = true; m_snapshotName.assign(value); }
101 
106  inline DescribeSnapshotsRequest& WithSnapshotName(const Aws::String& value) { SetSnapshotName(value); return *this;}
107 
112  inline DescribeSnapshotsRequest& WithSnapshotName(Aws::String&& value) { SetSnapshotName(value); return *this;}
113 
118  inline DescribeSnapshotsRequest& WithSnapshotName(const char* value) { SetSnapshotName(value); return *this;}
119 
126  inline const Aws::String& GetSnapshotSource() const{ return m_snapshotSource; }
127 
134  inline void SetSnapshotSource(const Aws::String& value) { m_snapshotSourceHasBeenSet = true; m_snapshotSource = value; }
135 
142  inline void SetSnapshotSource(Aws::String&& value) { m_snapshotSourceHasBeenSet = true; m_snapshotSource = value; }
143 
150  inline void SetSnapshotSource(const char* value) { m_snapshotSourceHasBeenSet = true; m_snapshotSource.assign(value); }
151 
158  inline DescribeSnapshotsRequest& WithSnapshotSource(const Aws::String& value) { SetSnapshotSource(value); return *this;}
159 
166  inline DescribeSnapshotsRequest& WithSnapshotSource(Aws::String&& value) { SetSnapshotSource(value); return *this;}
167 
174  inline DescribeSnapshotsRequest& WithSnapshotSource(const char* value) { SetSnapshotSource(value); return *this;}
175 
182  inline const Aws::String& GetMarker() const{ return m_marker; }
183 
190  inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
191 
198  inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = value; }
199 
206  inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
207 
214  inline DescribeSnapshotsRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
215 
222  inline DescribeSnapshotsRequest& WithMarker(Aws::String&& value) { SetMarker(value); return *this;}
223 
230  inline DescribeSnapshotsRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
231 
238  inline int GetMaxRecords() const{ return m_maxRecords; }
239 
246  inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
247 
254  inline DescribeSnapshotsRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
255 
256  private:
257  Aws::String m_cacheClusterId;
258  bool m_cacheClusterIdHasBeenSet;
259  Aws::String m_snapshotName;
260  bool m_snapshotNameHasBeenSet;
261  Aws::String m_snapshotSource;
262  bool m_snapshotSourceHasBeenSet;
263  Aws::String m_marker;
264  bool m_markerHasBeenSet;
265  int m_maxRecords;
266  bool m_maxRecordsHasBeenSet;
267  };
268 
269 } // namespace Model
270 } // namespace ElastiCache
271 } // namespace Aws
DescribeSnapshotsRequest & WithCacheClusterId(Aws::String &&value)
DescribeSnapshotsRequest & WithSnapshotSource(Aws::String &&value)
DescribeSnapshotsRequest & WithMarker(Aws::String &&value)
DescribeSnapshotsRequest & WithSnapshotName(Aws::String &&value)
DescribeSnapshotsRequest & WithSnapshotName(const char *value)
DescribeSnapshotsRequest & WithMarker(const Aws::String &value)
DescribeSnapshotsRequest & WithSnapshotSource(const char *value)
DescribeSnapshotsRequest & WithSnapshotName(const Aws::String &value)
DescribeSnapshotsRequest & WithSnapshotSource(const Aws::String &value)
DescribeSnapshotsRequest & WithMaxRecords(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_ELASTICACHE_API
DescribeSnapshotsRequest & WithMarker(const char *value)
DescribeSnapshotsRequest & WithCacheClusterId(const Aws::String &value)
DescribeSnapshotsRequest & WithCacheClusterId(const char *value)
JSON (JavaScript Object Notation).