AWS SDK for C++  1.8.95
AWS SDK for C++
DescribeSnapshotsRequest.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 "DescribeSnapshots"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  protected:
39  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40 
41  public:
42 
48  inline const Aws::String& GetReplicationGroupId() const{ return m_replicationGroupId; }
49 
55  inline bool ReplicationGroupIdHasBeenSet() const { return m_replicationGroupIdHasBeenSet; }
56 
62  inline void SetReplicationGroupId(const Aws::String& value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId = value; }
63 
69  inline void SetReplicationGroupId(Aws::String&& value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId = std::move(value); }
70 
76  inline void SetReplicationGroupId(const char* value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId.assign(value); }
77 
83  inline DescribeSnapshotsRequest& WithReplicationGroupId(const Aws::String& value) { SetReplicationGroupId(value); return *this;}
84 
90  inline DescribeSnapshotsRequest& WithReplicationGroupId(Aws::String&& value) { SetReplicationGroupId(std::move(value)); return *this;}
91 
97  inline DescribeSnapshotsRequest& WithReplicationGroupId(const char* value) { SetReplicationGroupId(value); return *this;}
98 
99 
104  inline const Aws::String& GetCacheClusterId() const{ return m_cacheClusterId; }
105 
110  inline bool CacheClusterIdHasBeenSet() const { return m_cacheClusterIdHasBeenSet; }
111 
116  inline void SetCacheClusterId(const Aws::String& value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId = value; }
117 
122  inline void SetCacheClusterId(Aws::String&& value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId = std::move(value); }
123 
128  inline void SetCacheClusterId(const char* value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId.assign(value); }
129 
134  inline DescribeSnapshotsRequest& WithCacheClusterId(const Aws::String& value) { SetCacheClusterId(value); return *this;}
135 
140  inline DescribeSnapshotsRequest& WithCacheClusterId(Aws::String&& value) { SetCacheClusterId(std::move(value)); return *this;}
141 
146  inline DescribeSnapshotsRequest& WithCacheClusterId(const char* value) { SetCacheClusterId(value); return *this;}
147 
148 
153  inline const Aws::String& GetSnapshotName() const{ return m_snapshotName; }
154 
159  inline bool SnapshotNameHasBeenSet() const { return m_snapshotNameHasBeenSet; }
160 
165  inline void SetSnapshotName(const Aws::String& value) { m_snapshotNameHasBeenSet = true; m_snapshotName = value; }
166 
171  inline void SetSnapshotName(Aws::String&& value) { m_snapshotNameHasBeenSet = true; m_snapshotName = std::move(value); }
172 
177  inline void SetSnapshotName(const char* value) { m_snapshotNameHasBeenSet = true; m_snapshotName.assign(value); }
178 
183  inline DescribeSnapshotsRequest& WithSnapshotName(const Aws::String& value) { SetSnapshotName(value); return *this;}
184 
189  inline DescribeSnapshotsRequest& WithSnapshotName(Aws::String&& value) { SetSnapshotName(std::move(value)); return *this;}
190 
195  inline DescribeSnapshotsRequest& WithSnapshotName(const char* value) { SetSnapshotName(value); return *this;}
196 
197 
204  inline const Aws::String& GetSnapshotSource() const{ return m_snapshotSource; }
205 
212  inline bool SnapshotSourceHasBeenSet() const { return m_snapshotSourceHasBeenSet; }
213 
220  inline void SetSnapshotSource(const Aws::String& value) { m_snapshotSourceHasBeenSet = true; m_snapshotSource = value; }
221 
228  inline void SetSnapshotSource(Aws::String&& value) { m_snapshotSourceHasBeenSet = true; m_snapshotSource = std::move(value); }
229 
236  inline void SetSnapshotSource(const char* value) { m_snapshotSourceHasBeenSet = true; m_snapshotSource.assign(value); }
237 
244  inline DescribeSnapshotsRequest& WithSnapshotSource(const Aws::String& value) { SetSnapshotSource(value); return *this;}
245 
252  inline DescribeSnapshotsRequest& WithSnapshotSource(Aws::String&& value) { SetSnapshotSource(std::move(value)); return *this;}
253 
260  inline DescribeSnapshotsRequest& WithSnapshotSource(const char* value) { SetSnapshotSource(value); return *this;}
261 
262 
269  inline const Aws::String& GetMarker() const{ return m_marker; }
270 
277  inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
278 
285  inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
286 
293  inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
294 
301  inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
302 
309  inline DescribeSnapshotsRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
310 
317  inline DescribeSnapshotsRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
318 
325  inline DescribeSnapshotsRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
326 
327 
334  inline int GetMaxRecords() const{ return m_maxRecords; }
335 
342  inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
343 
350  inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
351 
358  inline DescribeSnapshotsRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
359 
360 
365  inline bool GetShowNodeGroupConfig() const{ return m_showNodeGroupConfig; }
366 
371  inline bool ShowNodeGroupConfigHasBeenSet() const { return m_showNodeGroupConfigHasBeenSet; }
372 
377  inline void SetShowNodeGroupConfig(bool value) { m_showNodeGroupConfigHasBeenSet = true; m_showNodeGroupConfig = value; }
378 
383  inline DescribeSnapshotsRequest& WithShowNodeGroupConfig(bool value) { SetShowNodeGroupConfig(value); return *this;}
384 
385  private:
386 
387  Aws::String m_replicationGroupId;
388  bool m_replicationGroupIdHasBeenSet;
389 
390  Aws::String m_cacheClusterId;
391  bool m_cacheClusterIdHasBeenSet;
392 
393  Aws::String m_snapshotName;
394  bool m_snapshotNameHasBeenSet;
395 
396  Aws::String m_snapshotSource;
397  bool m_snapshotSourceHasBeenSet;
398 
399  Aws::String m_marker;
400  bool m_markerHasBeenSet;
401 
402  int m_maxRecords;
403  bool m_maxRecordsHasBeenSet;
404 
405  bool m_showNodeGroupConfig;
406  bool m_showNodeGroupConfigHasBeenSet;
407  };
408 
409 } // namespace Model
410 } // namespace ElastiCache
411 } // namespace Aws
DescribeSnapshotsRequest & WithCacheClusterId(Aws::String &&value)
DescribeSnapshotsRequest & WithSnapshotSource(Aws::String &&value)
DescribeSnapshotsRequest & WithMarker(Aws::String &&value)
DescribeSnapshotsRequest & WithSnapshotName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
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)
DescribeSnapshotsRequest & WithReplicationGroupId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_ELASTICACHE_API
DescribeSnapshotsRequest & WithReplicationGroupId(Aws::String &&value)
DescribeSnapshotsRequest & WithMarker(const char *value)
DescribeSnapshotsRequest & WithReplicationGroupId(const char *value)
DescribeSnapshotsRequest & WithCacheClusterId(const Aws::String &value)
DescribeSnapshotsRequest & WithCacheClusterId(const char *value)
DescribeSnapshotsRequest & WithShowNodeGroupConfig(bool value)