AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeDBSnapshotsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/rds/RDSRequest.h>
10#include <aws/rds/RDS_EXPORTS.h>
11#include <aws/rds/model/Filter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace RDS {
17namespace Model {
18
25 public:
26 AWS_RDS_API DescribeDBSnapshotsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "DescribeDBSnapshots"; }
33
34 AWS_RDS_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
38
39 public:
41
46 inline const Aws::String& GetDBInstanceIdentifier() const { return m_dBInstanceIdentifier; }
47 inline bool DBInstanceIdentifierHasBeenSet() const { return m_dBInstanceIdentifierHasBeenSet; }
48 template <typename DBInstanceIdentifierT = Aws::String>
49 void SetDBInstanceIdentifier(DBInstanceIdentifierT&& value) {
50 m_dBInstanceIdentifierHasBeenSet = true;
51 m_dBInstanceIdentifier = std::forward<DBInstanceIdentifierT>(value);
52 }
53 template <typename DBInstanceIdentifierT = Aws::String>
54 DescribeDBSnapshotsRequest& WithDBInstanceIdentifier(DBInstanceIdentifierT&& value) {
55 SetDBInstanceIdentifier(std::forward<DBInstanceIdentifierT>(value));
56 return *this;
57 }
59
61
68 inline const Aws::String& GetDBSnapshotIdentifier() const { return m_dBSnapshotIdentifier; }
69 inline bool DBSnapshotIdentifierHasBeenSet() const { return m_dBSnapshotIdentifierHasBeenSet; }
70 template <typename DBSnapshotIdentifierT = Aws::String>
71 void SetDBSnapshotIdentifier(DBSnapshotIdentifierT&& value) {
72 m_dBSnapshotIdentifierHasBeenSet = true;
73 m_dBSnapshotIdentifier = std::forward<DBSnapshotIdentifierT>(value);
74 }
75 template <typename DBSnapshotIdentifierT = Aws::String>
76 DescribeDBSnapshotsRequest& WithDBSnapshotIdentifier(DBSnapshotIdentifierT&& value) {
77 SetDBSnapshotIdentifier(std::forward<DBSnapshotIdentifierT>(value));
78 return *this;
79 }
81
83
110 inline const Aws::String& GetSnapshotType() const { return m_snapshotType; }
111 inline bool SnapshotTypeHasBeenSet() const { return m_snapshotTypeHasBeenSet; }
112 template <typename SnapshotTypeT = Aws::String>
113 void SetSnapshotType(SnapshotTypeT&& value) {
114 m_snapshotTypeHasBeenSet = true;
115 m_snapshotType = std::forward<SnapshotTypeT>(value);
116 }
117 template <typename SnapshotTypeT = Aws::String>
119 SetSnapshotType(std::forward<SnapshotTypeT>(value));
120 return *this;
121 }
123
125
135 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
136 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
137 template <typename FiltersT = Aws::Vector<Filter>>
138 void SetFilters(FiltersT&& value) {
139 m_filtersHasBeenSet = true;
140 m_filters = std::forward<FiltersT>(value);
141 }
142 template <typename FiltersT = Aws::Vector<Filter>>
144 SetFilters(std::forward<FiltersT>(value));
145 return *this;
146 }
147 template <typename FiltersT = Filter>
149 m_filtersHasBeenSet = true;
150 m_filters.emplace_back(std::forward<FiltersT>(value));
151 return *this;
152 }
154
156
163 inline int GetMaxRecords() const { return m_maxRecords; }
164 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
165 inline void SetMaxRecords(int value) {
166 m_maxRecordsHasBeenSet = true;
167 m_maxRecords = value;
168 }
170 SetMaxRecords(value);
171 return *this;
172 }
174
176
182 inline const Aws::String& GetMarker() const { return m_marker; }
183 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
184 template <typename MarkerT = Aws::String>
185 void SetMarker(MarkerT&& value) {
186 m_markerHasBeenSet = true;
187 m_marker = std::forward<MarkerT>(value);
188 }
189 template <typename MarkerT = Aws::String>
191 SetMarker(std::forward<MarkerT>(value));
192 return *this;
193 }
195
197
206 inline bool GetIncludeShared() const { return m_includeShared; }
207 inline bool IncludeSharedHasBeenSet() const { return m_includeSharedHasBeenSet; }
208 inline void SetIncludeShared(bool value) {
209 m_includeSharedHasBeenSet = true;
210 m_includeShared = value;
211 }
213 SetIncludeShared(value);
214 return *this;
215 }
217
219
226 inline bool GetIncludePublic() const { return m_includePublic; }
227 inline bool IncludePublicHasBeenSet() const { return m_includePublicHasBeenSet; }
228 inline void SetIncludePublic(bool value) {
229 m_includePublicHasBeenSet = true;
230 m_includePublic = value;
231 }
233 SetIncludePublic(value);
234 return *this;
235 }
237
239
242 inline const Aws::String& GetDbiResourceId() const { return m_dbiResourceId; }
243 inline bool DbiResourceIdHasBeenSet() const { return m_dbiResourceIdHasBeenSet; }
244 template <typename DbiResourceIdT = Aws::String>
245 void SetDbiResourceId(DbiResourceIdT&& value) {
246 m_dbiResourceIdHasBeenSet = true;
247 m_dbiResourceId = std::forward<DbiResourceIdT>(value);
248 }
249 template <typename DbiResourceIdT = Aws::String>
251 SetDbiResourceId(std::forward<DbiResourceIdT>(value));
252 return *this;
253 }
255 private:
256 Aws::String m_dBInstanceIdentifier;
257
258 Aws::String m_dBSnapshotIdentifier;
259
260 Aws::String m_snapshotType;
261
262 Aws::Vector<Filter> m_filters;
263
264 int m_maxRecords{0};
265
266 Aws::String m_marker;
267
268 bool m_includeShared{false};
269
270 bool m_includePublic{false};
271
272 Aws::String m_dbiResourceId;
273 bool m_dBInstanceIdentifierHasBeenSet = false;
274 bool m_dBSnapshotIdentifierHasBeenSet = false;
275 bool m_snapshotTypeHasBeenSet = false;
276 bool m_filtersHasBeenSet = false;
277 bool m_maxRecordsHasBeenSet = false;
278 bool m_markerHasBeenSet = false;
279 bool m_includeSharedHasBeenSet = false;
280 bool m_includePublicHasBeenSet = false;
281 bool m_dbiResourceIdHasBeenSet = false;
282};
283
284} // namespace Model
285} // namespace RDS
286} // namespace Aws
DescribeDBSnapshotsRequest & WithIncludeShared(bool value)
DescribeDBSnapshotsRequest & WithSnapshotType(SnapshotTypeT &&value)
virtual const char * GetServiceRequestName() const override
DescribeDBSnapshotsRequest & WithDBInstanceIdentifier(DBInstanceIdentifierT &&value)
AWS_RDS_API DescribeDBSnapshotsRequest()=default
DescribeDBSnapshotsRequest & WithMaxRecords(int value)
DescribeDBSnapshotsRequest & WithMarker(MarkerT &&value)
DescribeDBSnapshotsRequest & WithDBSnapshotIdentifier(DBSnapshotIdentifierT &&value)
DescribeDBSnapshotsRequest & AddFilters(FiltersT &&value)
void SetDBInstanceIdentifier(DBInstanceIdentifierT &&value)
DescribeDBSnapshotsRequest & WithFilters(FiltersT &&value)
AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeDBSnapshotsRequest & WithDbiResourceId(DbiResourceIdT &&value)
void SetDBSnapshotIdentifier(DBSnapshotIdentifierT &&value)
DescribeDBSnapshotsRequest & WithIncludePublic(bool value)
const Aws::Vector< Filter > & GetFilters() const
AWS_RDS_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector