AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
DescribeClusterSnapshotsRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/redshift/RedshiftRequest.h>
11#include <aws/redshift/Redshift_EXPORTS.h>
12#include <aws/redshift/model/SnapshotSortingEntity.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Redshift {
18namespace Model {
19
26 public:
27 AWS_REDSHIFT_API DescribeClusterSnapshotsRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "DescribeClusterSnapshots"; }
34
35 AWS_REDSHIFT_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
39
40 public:
42
45 inline const Aws::String& GetClusterIdentifier() const { return m_clusterIdentifier; }
46 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
47 template <typename ClusterIdentifierT = Aws::String>
48 void SetClusterIdentifier(ClusterIdentifierT&& value) {
49 m_clusterIdentifierHasBeenSet = true;
50 m_clusterIdentifier = std::forward<ClusterIdentifierT>(value);
51 }
52 template <typename ClusterIdentifierT = Aws::String>
54 SetClusterIdentifier(std::forward<ClusterIdentifierT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::String& GetSnapshotIdentifier() const { return m_snapshotIdentifier; }
65 inline bool SnapshotIdentifierHasBeenSet() const { return m_snapshotIdentifierHasBeenSet; }
66 template <typename SnapshotIdentifierT = Aws::String>
67 void SetSnapshotIdentifier(SnapshotIdentifierT&& value) {
68 m_snapshotIdentifierHasBeenSet = true;
69 m_snapshotIdentifier = std::forward<SnapshotIdentifierT>(value);
70 }
71 template <typename SnapshotIdentifierT = Aws::String>
73 SetSnapshotIdentifier(std::forward<SnapshotIdentifierT>(value));
74 return *this;
75 }
77
79
83 inline const Aws::String& GetSnapshotArn() const { return m_snapshotArn; }
84 inline bool SnapshotArnHasBeenSet() const { return m_snapshotArnHasBeenSet; }
85 template <typename SnapshotArnT = Aws::String>
86 void SetSnapshotArn(SnapshotArnT&& value) {
87 m_snapshotArnHasBeenSet = true;
88 m_snapshotArn = std::forward<SnapshotArnT>(value);
89 }
90 template <typename SnapshotArnT = Aws::String>
92 SetSnapshotArn(std::forward<SnapshotArnT>(value));
93 return *this;
94 }
96
98
103 inline const Aws::String& GetSnapshotType() const { return m_snapshotType; }
104 inline bool SnapshotTypeHasBeenSet() const { return m_snapshotTypeHasBeenSet; }
105 template <typename SnapshotTypeT = Aws::String>
106 void SetSnapshotType(SnapshotTypeT&& value) {
107 m_snapshotTypeHasBeenSet = true;
108 m_snapshotType = std::forward<SnapshotTypeT>(value);
109 }
110 template <typename SnapshotTypeT = Aws::String>
112 SetSnapshotType(std::forward<SnapshotTypeT>(value));
113 return *this;
114 }
116
118
124 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
125 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
126 template <typename StartTimeT = Aws::Utils::DateTime>
127 void SetStartTime(StartTimeT&& value) {
128 m_startTimeHasBeenSet = true;
129 m_startTime = std::forward<StartTimeT>(value);
130 }
131 template <typename StartTimeT = Aws::Utils::DateTime>
133 SetStartTime(std::forward<StartTimeT>(value));
134 return *this;
135 }
137
139
145 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
146 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
147 template <typename EndTimeT = Aws::Utils::DateTime>
148 void SetEndTime(EndTimeT&& value) {
149 m_endTimeHasBeenSet = true;
150 m_endTime = std::forward<EndTimeT>(value);
151 }
152 template <typename EndTimeT = Aws::Utils::DateTime>
154 SetEndTime(std::forward<EndTimeT>(value));
155 return *this;
156 }
158
160
168 inline int GetMaxRecords() const { return m_maxRecords; }
169 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
170 inline void SetMaxRecords(int value) {
171 m_maxRecordsHasBeenSet = true;
172 m_maxRecords = value;
173 }
175 SetMaxRecords(value);
176 return *this;
177 }
179
181
189 inline const Aws::String& GetMarker() const { return m_marker; }
190 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
191 template <typename MarkerT = Aws::String>
192 void SetMarker(MarkerT&& value) {
193 m_markerHasBeenSet = true;
194 m_marker = std::forward<MarkerT>(value);
195 }
196 template <typename MarkerT = Aws::String>
198 SetMarker(std::forward<MarkerT>(value));
199 return *this;
200 }
202
204
210 inline const Aws::String& GetOwnerAccount() const { return m_ownerAccount; }
211 inline bool OwnerAccountHasBeenSet() const { return m_ownerAccountHasBeenSet; }
212 template <typename OwnerAccountT = Aws::String>
213 void SetOwnerAccount(OwnerAccountT&& value) {
214 m_ownerAccountHasBeenSet = true;
215 m_ownerAccount = std::forward<OwnerAccountT>(value);
216 }
217 template <typename OwnerAccountT = Aws::String>
219 SetOwnerAccount(std::forward<OwnerAccountT>(value));
220 return *this;
221 }
223
225
233 inline const Aws::Vector<Aws::String>& GetTagKeys() const { return m_tagKeys; }
234 inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; }
235 template <typename TagKeysT = Aws::Vector<Aws::String>>
236 void SetTagKeys(TagKeysT&& value) {
237 m_tagKeysHasBeenSet = true;
238 m_tagKeys = std::forward<TagKeysT>(value);
239 }
240 template <typename TagKeysT = Aws::Vector<Aws::String>>
242 SetTagKeys(std::forward<TagKeysT>(value));
243 return *this;
244 }
245 template <typename TagKeysT = Aws::String>
247 m_tagKeysHasBeenSet = true;
248 m_tagKeys.emplace_back(std::forward<TagKeysT>(value));
249 return *this;
250 }
252
254
262 inline const Aws::Vector<Aws::String>& GetTagValues() const { return m_tagValues; }
263 inline bool TagValuesHasBeenSet() const { return m_tagValuesHasBeenSet; }
264 template <typename TagValuesT = Aws::Vector<Aws::String>>
265 void SetTagValues(TagValuesT&& value) {
266 m_tagValuesHasBeenSet = true;
267 m_tagValues = std::forward<TagValuesT>(value);
268 }
269 template <typename TagValuesT = Aws::Vector<Aws::String>>
271 SetTagValues(std::forward<TagValuesT>(value));
272 return *this;
273 }
274 template <typename TagValuesT = Aws::String>
276 m_tagValuesHasBeenSet = true;
277 m_tagValues.emplace_back(std::forward<TagValuesT>(value));
278 return *this;
279 }
281
283
299 inline bool GetClusterExists() const { return m_clusterExists; }
300 inline bool ClusterExistsHasBeenSet() const { return m_clusterExistsHasBeenSet; }
301 inline void SetClusterExists(bool value) {
302 m_clusterExistsHasBeenSet = true;
303 m_clusterExists = value;
304 }
306 SetClusterExists(value);
307 return *this;
308 }
310
312
315 inline const Aws::Vector<SnapshotSortingEntity>& GetSortingEntities() const { return m_sortingEntities; }
316 inline bool SortingEntitiesHasBeenSet() const { return m_sortingEntitiesHasBeenSet; }
317 template <typename SortingEntitiesT = Aws::Vector<SnapshotSortingEntity>>
318 void SetSortingEntities(SortingEntitiesT&& value) {
319 m_sortingEntitiesHasBeenSet = true;
320 m_sortingEntities = std::forward<SortingEntitiesT>(value);
321 }
322 template <typename SortingEntitiesT = Aws::Vector<SnapshotSortingEntity>>
324 SetSortingEntities(std::forward<SortingEntitiesT>(value));
325 return *this;
326 }
327 template <typename SortingEntitiesT = SnapshotSortingEntity>
329 m_sortingEntitiesHasBeenSet = true;
330 m_sortingEntities.emplace_back(std::forward<SortingEntitiesT>(value));
331 return *this;
332 }
334 private:
335 Aws::String m_clusterIdentifier;
336
337 Aws::String m_snapshotIdentifier;
338
339 Aws::String m_snapshotArn;
340
341 Aws::String m_snapshotType;
342
343 Aws::Utils::DateTime m_startTime{};
344
345 Aws::Utils::DateTime m_endTime{};
346
347 int m_maxRecords{0};
348
349 Aws::String m_marker;
350
351 Aws::String m_ownerAccount;
352
353 Aws::Vector<Aws::String> m_tagKeys;
354
355 Aws::Vector<Aws::String> m_tagValues;
356
357 bool m_clusterExists{false};
358
359 Aws::Vector<SnapshotSortingEntity> m_sortingEntities;
360 bool m_clusterIdentifierHasBeenSet = false;
361 bool m_snapshotIdentifierHasBeenSet = false;
362 bool m_snapshotArnHasBeenSet = false;
363 bool m_snapshotTypeHasBeenSet = false;
364 bool m_startTimeHasBeenSet = false;
365 bool m_endTimeHasBeenSet = false;
366 bool m_maxRecordsHasBeenSet = false;
367 bool m_markerHasBeenSet = false;
368 bool m_ownerAccountHasBeenSet = false;
369 bool m_tagKeysHasBeenSet = false;
370 bool m_tagValuesHasBeenSet = false;
371 bool m_clusterExistsHasBeenSet = false;
372 bool m_sortingEntitiesHasBeenSet = false;
373};
374
375} // namespace Model
376} // namespace Redshift
377} // namespace Aws
DescribeClusterSnapshotsRequest & AddSortingEntities(SortingEntitiesT &&value)
DescribeClusterSnapshotsRequest & WithClusterIdentifier(ClusterIdentifierT &&value)
DescribeClusterSnapshotsRequest & WithTagKeys(TagKeysT &&value)
const Aws::Vector< SnapshotSortingEntity > & GetSortingEntities() const
DescribeClusterSnapshotsRequest & WithClusterExists(bool value)
DescribeClusterSnapshotsRequest & WithSnapshotArn(SnapshotArnT &&value)
DescribeClusterSnapshotsRequest & AddTagKeys(TagKeysT &&value)
DescribeClusterSnapshotsRequest & WithSnapshotIdentifier(SnapshotIdentifierT &&value)
AWS_REDSHIFT_API Aws::String SerializePayload() const override
DescribeClusterSnapshotsRequest & WithSortingEntities(SortingEntitiesT &&value)
DescribeClusterSnapshotsRequest & WithOwnerAccount(OwnerAccountT &&value)
DescribeClusterSnapshotsRequest & WithTagValues(TagValuesT &&value)
DescribeClusterSnapshotsRequest & AddTagValues(TagValuesT &&value)
DescribeClusterSnapshotsRequest & WithEndTime(EndTimeT &&value)
DescribeClusterSnapshotsRequest & WithMarker(MarkerT &&value)
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeClusterSnapshotsRequest & WithStartTime(StartTimeT &&value)
DescribeClusterSnapshotsRequest & WithSnapshotType(SnapshotTypeT &&value)
AWS_REDSHIFT_API DescribeClusterSnapshotsRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector