AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeDBSnapshotsRequest.h
1
6#pragma once
7#include <aws/rds/RDS_EXPORTS.h>
8#include <aws/rds/RDSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/rds/model/Filter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace RDS
17{
18namespace Model
19{
20
27 {
28 public:
29 AWS_RDS_API DescribeDBSnapshotsRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "DescribeDBSnapshots"; }
36
37 AWS_RDS_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
45
50 inline const Aws::String& GetDBInstanceIdentifier() const { return m_dBInstanceIdentifier; }
51 inline bool DBInstanceIdentifierHasBeenSet() const { return m_dBInstanceIdentifierHasBeenSet; }
52 template<typename DBInstanceIdentifierT = Aws::String>
53 void SetDBInstanceIdentifier(DBInstanceIdentifierT&& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = std::forward<DBInstanceIdentifierT>(value); }
54 template<typename DBInstanceIdentifierT = Aws::String>
55 DescribeDBSnapshotsRequest& WithDBInstanceIdentifier(DBInstanceIdentifierT&& value) { SetDBInstanceIdentifier(std::forward<DBInstanceIdentifierT>(value)); return *this;}
57
59
66 inline const Aws::String& GetDBSnapshotIdentifier() const { return m_dBSnapshotIdentifier; }
67 inline bool DBSnapshotIdentifierHasBeenSet() const { return m_dBSnapshotIdentifierHasBeenSet; }
68 template<typename DBSnapshotIdentifierT = Aws::String>
69 void SetDBSnapshotIdentifier(DBSnapshotIdentifierT&& value) { m_dBSnapshotIdentifierHasBeenSet = true; m_dBSnapshotIdentifier = std::forward<DBSnapshotIdentifierT>(value); }
70 template<typename DBSnapshotIdentifierT = Aws::String>
71 DescribeDBSnapshotsRequest& WithDBSnapshotIdentifier(DBSnapshotIdentifierT&& value) { SetDBSnapshotIdentifier(std::forward<DBSnapshotIdentifierT>(value)); return *this;}
73
75
102 inline const Aws::String& GetSnapshotType() const { return m_snapshotType; }
103 inline bool SnapshotTypeHasBeenSet() const { return m_snapshotTypeHasBeenSet; }
104 template<typename SnapshotTypeT = Aws::String>
105 void SetSnapshotType(SnapshotTypeT&& value) { m_snapshotTypeHasBeenSet = true; m_snapshotType = std::forward<SnapshotTypeT>(value); }
106 template<typename SnapshotTypeT = Aws::String>
107 DescribeDBSnapshotsRequest& WithSnapshotType(SnapshotTypeT&& value) { SetSnapshotType(std::forward<SnapshotTypeT>(value)); return *this;}
109
111
121 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
122 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
123 template<typename FiltersT = Aws::Vector<Filter>>
124 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
125 template<typename FiltersT = Aws::Vector<Filter>>
126 DescribeDBSnapshotsRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
127 template<typename FiltersT = Filter>
128 DescribeDBSnapshotsRequest& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
130
132
139 inline int GetMaxRecords() const { return m_maxRecords; }
140 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
141 inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
142 inline DescribeDBSnapshotsRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
144
146
152 inline const Aws::String& GetMarker() const { return m_marker; }
153 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
154 template<typename MarkerT = Aws::String>
155 void SetMarker(MarkerT&& value) { m_markerHasBeenSet = true; m_marker = std::forward<MarkerT>(value); }
156 template<typename MarkerT = Aws::String>
157 DescribeDBSnapshotsRequest& WithMarker(MarkerT&& value) { SetMarker(std::forward<MarkerT>(value)); return *this;}
159
161
170 inline bool GetIncludeShared() const { return m_includeShared; }
171 inline bool IncludeSharedHasBeenSet() const { return m_includeSharedHasBeenSet; }
172 inline void SetIncludeShared(bool value) { m_includeSharedHasBeenSet = true; m_includeShared = value; }
173 inline DescribeDBSnapshotsRequest& WithIncludeShared(bool value) { SetIncludeShared(value); return *this;}
175
177
184 inline bool GetIncludePublic() const { return m_includePublic; }
185 inline bool IncludePublicHasBeenSet() const { return m_includePublicHasBeenSet; }
186 inline void SetIncludePublic(bool value) { m_includePublicHasBeenSet = true; m_includePublic = value; }
187 inline DescribeDBSnapshotsRequest& WithIncludePublic(bool value) { SetIncludePublic(value); return *this;}
189
191
194 inline const Aws::String& GetDbiResourceId() const { return m_dbiResourceId; }
195 inline bool DbiResourceIdHasBeenSet() const { return m_dbiResourceIdHasBeenSet; }
196 template<typename DbiResourceIdT = Aws::String>
197 void SetDbiResourceId(DbiResourceIdT&& value) { m_dbiResourceIdHasBeenSet = true; m_dbiResourceId = std::forward<DbiResourceIdT>(value); }
198 template<typename DbiResourceIdT = Aws::String>
199 DescribeDBSnapshotsRequest& WithDbiResourceId(DbiResourceIdT&& value) { SetDbiResourceId(std::forward<DbiResourceIdT>(value)); return *this;}
201 private:
202
203 Aws::String m_dBInstanceIdentifier;
204 bool m_dBInstanceIdentifierHasBeenSet = false;
205
206 Aws::String m_dBSnapshotIdentifier;
207 bool m_dBSnapshotIdentifierHasBeenSet = false;
208
209 Aws::String m_snapshotType;
210 bool m_snapshotTypeHasBeenSet = false;
211
212 Aws::Vector<Filter> m_filters;
213 bool m_filtersHasBeenSet = false;
214
215 int m_maxRecords{0};
216 bool m_maxRecordsHasBeenSet = false;
217
218 Aws::String m_marker;
219 bool m_markerHasBeenSet = false;
220
221 bool m_includeShared{false};
222 bool m_includeSharedHasBeenSet = false;
223
224 bool m_includePublic{false};
225 bool m_includePublicHasBeenSet = false;
226
227 Aws::String m_dbiResourceId;
228 bool m_dbiResourceIdHasBeenSet = false;
229 };
230
231} // namespace Model
232} // namespace RDS
233} // 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