AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeSnapshotsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/elasticache/ElastiCacheRequest.h>
9#include <aws/elasticache/ElastiCache_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace ElastiCache {
15namespace Model {
16
24 public:
25 AWS_ELASTICACHE_API DescribeSnapshotsRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "DescribeSnapshots"; }
32
33 AWS_ELASTICACHE_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
37
38 public:
40
45 inline const Aws::String& GetReplicationGroupId() const { return m_replicationGroupId; }
46 inline bool ReplicationGroupIdHasBeenSet() const { return m_replicationGroupIdHasBeenSet; }
47 template <typename ReplicationGroupIdT = Aws::String>
48 void SetReplicationGroupId(ReplicationGroupIdT&& value) {
49 m_replicationGroupIdHasBeenSet = true;
50 m_replicationGroupId = std::forward<ReplicationGroupIdT>(value);
51 }
52 template <typename ReplicationGroupIdT = Aws::String>
53 DescribeSnapshotsRequest& WithReplicationGroupId(ReplicationGroupIdT&& value) {
54 SetReplicationGroupId(std::forward<ReplicationGroupIdT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::String& GetCacheClusterId() const { return m_cacheClusterId; }
65 inline bool CacheClusterIdHasBeenSet() const { return m_cacheClusterIdHasBeenSet; }
66 template <typename CacheClusterIdT = Aws::String>
67 void SetCacheClusterId(CacheClusterIdT&& value) {
68 m_cacheClusterIdHasBeenSet = true;
69 m_cacheClusterId = std::forward<CacheClusterIdT>(value);
70 }
71 template <typename CacheClusterIdT = Aws::String>
72 DescribeSnapshotsRequest& WithCacheClusterId(CacheClusterIdT&& value) {
73 SetCacheClusterId(std::forward<CacheClusterIdT>(value));
74 return *this;
75 }
77
79
83 inline const Aws::String& GetSnapshotName() const { return m_snapshotName; }
84 inline bool SnapshotNameHasBeenSet() const { return m_snapshotNameHasBeenSet; }
85 template <typename SnapshotNameT = Aws::String>
86 void SetSnapshotName(SnapshotNameT&& value) {
87 m_snapshotNameHasBeenSet = true;
88 m_snapshotName = std::forward<SnapshotNameT>(value);
89 }
90 template <typename SnapshotNameT = Aws::String>
92 SetSnapshotName(std::forward<SnapshotNameT>(value));
93 return *this;
94 }
96
98
104 inline const Aws::String& GetSnapshotSource() const { return m_snapshotSource; }
105 inline bool SnapshotSourceHasBeenSet() const { return m_snapshotSourceHasBeenSet; }
106 template <typename SnapshotSourceT = Aws::String>
107 void SetSnapshotSource(SnapshotSourceT&& value) {
108 m_snapshotSourceHasBeenSet = true;
109 m_snapshotSource = std::forward<SnapshotSourceT>(value);
110 }
111 template <typename SnapshotSourceT = Aws::String>
113 SetSnapshotSource(std::forward<SnapshotSourceT>(value));
114 return *this;
115 }
117
119
125 inline const Aws::String& GetMarker() const { return m_marker; }
126 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
127 template <typename MarkerT = Aws::String>
128 void SetMarker(MarkerT&& value) {
129 m_markerHasBeenSet = true;
130 m_marker = std::forward<MarkerT>(value);
131 }
132 template <typename MarkerT = Aws::String>
134 SetMarker(std::forward<MarkerT>(value));
135 return *this;
136 }
138
140
146 inline int GetMaxRecords() const { return m_maxRecords; }
147 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
148 inline void SetMaxRecords(int value) {
149 m_maxRecordsHasBeenSet = true;
150 m_maxRecords = value;
151 }
153 SetMaxRecords(value);
154 return *this;
155 }
157
159
163 inline bool GetShowNodeGroupConfig() const { return m_showNodeGroupConfig; }
164 inline bool ShowNodeGroupConfigHasBeenSet() const { return m_showNodeGroupConfigHasBeenSet; }
165 inline void SetShowNodeGroupConfig(bool value) {
166 m_showNodeGroupConfigHasBeenSet = true;
167 m_showNodeGroupConfig = value;
168 }
171 return *this;
172 }
174 private:
175 Aws::String m_replicationGroupId;
176
177 Aws::String m_cacheClusterId;
178
179 Aws::String m_snapshotName;
180
181 Aws::String m_snapshotSource;
182
183 Aws::String m_marker;
184
185 int m_maxRecords{0};
186
187 bool m_showNodeGroupConfig{false};
188 bool m_replicationGroupIdHasBeenSet = false;
189 bool m_cacheClusterIdHasBeenSet = false;
190 bool m_snapshotNameHasBeenSet = false;
191 bool m_snapshotSourceHasBeenSet = false;
192 bool m_markerHasBeenSet = false;
193 bool m_maxRecordsHasBeenSet = false;
194 bool m_showNodeGroupConfigHasBeenSet = false;
195};
196
197} // namespace Model
198} // namespace ElastiCache
199} // namespace Aws
DescribeSnapshotsRequest & WithReplicationGroupId(ReplicationGroupIdT &&value)
DescribeSnapshotsRequest & WithCacheClusterId(CacheClusterIdT &&value)
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
virtual const char * GetServiceRequestName() const override
DescribeSnapshotsRequest & WithShowNodeGroupConfig(bool value)
AWS_ELASTICACHE_API DescribeSnapshotsRequest()=default
AWS_ELASTICACHE_API Aws::String SerializePayload() const override
DescribeSnapshotsRequest & WithSnapshotSource(SnapshotSourceT &&value)
DescribeSnapshotsRequest & WithSnapshotName(SnapshotNameT &&value)
DescribeSnapshotsRequest & WithMarker(MarkerT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String