AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeClusterSnapshotsRequest.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/redshift/RedshiftRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/redshift/model/SnapshotSortingEntity.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Redshift
18{
19namespace Model
20{
21
28 {
29 public:
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "DescribeClusterSnapshots"; }
37
38 AWS_REDSHIFT_API Aws::String SerializePayload() const override;
39
40 protected:
41 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42
43 public:
44
46
49 inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; }
50 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
51 inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
52 inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::move(value); }
53 inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); }
56 inline DescribeClusterSnapshotsRequest& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
58
60
64 inline const Aws::String& GetSnapshotIdentifier() const{ return m_snapshotIdentifier; }
65 inline bool SnapshotIdentifierHasBeenSet() const { return m_snapshotIdentifierHasBeenSet; }
66 inline void SetSnapshotIdentifier(const Aws::String& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = value; }
67 inline void SetSnapshotIdentifier(Aws::String&& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = std::move(value); }
68 inline void SetSnapshotIdentifier(const char* value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier.assign(value); }
71 inline DescribeClusterSnapshotsRequest& WithSnapshotIdentifier(const char* value) { SetSnapshotIdentifier(value); return *this;}
73
75
79 inline const Aws::String& GetSnapshotArn() const{ return m_snapshotArn; }
80 inline bool SnapshotArnHasBeenSet() const { return m_snapshotArnHasBeenSet; }
81 inline void SetSnapshotArn(const Aws::String& value) { m_snapshotArnHasBeenSet = true; m_snapshotArn = value; }
82 inline void SetSnapshotArn(Aws::String&& value) { m_snapshotArnHasBeenSet = true; m_snapshotArn = std::move(value); }
83 inline void SetSnapshotArn(const char* value) { m_snapshotArnHasBeenSet = true; m_snapshotArn.assign(value); }
84 inline DescribeClusterSnapshotsRequest& WithSnapshotArn(const Aws::String& value) { SetSnapshotArn(value); return *this;}
85 inline DescribeClusterSnapshotsRequest& WithSnapshotArn(Aws::String&& value) { SetSnapshotArn(std::move(value)); return *this;}
86 inline DescribeClusterSnapshotsRequest& WithSnapshotArn(const char* value) { SetSnapshotArn(value); return *this;}
88
90
95 inline const Aws::String& GetSnapshotType() const{ return m_snapshotType; }
96 inline bool SnapshotTypeHasBeenSet() const { return m_snapshotTypeHasBeenSet; }
97 inline void SetSnapshotType(const Aws::String& value) { m_snapshotTypeHasBeenSet = true; m_snapshotType = value; }
98 inline void SetSnapshotType(Aws::String&& value) { m_snapshotTypeHasBeenSet = true; m_snapshotType = std::move(value); }
99 inline void SetSnapshotType(const char* value) { m_snapshotTypeHasBeenSet = true; m_snapshotType.assign(value); }
101 inline DescribeClusterSnapshotsRequest& WithSnapshotType(Aws::String&& value) { SetSnapshotType(std::move(value)); return *this;}
102 inline DescribeClusterSnapshotsRequest& WithSnapshotType(const char* value) { SetSnapshotType(value); return *this;}
104
106
112 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
113 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
114 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
115 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
117 inline DescribeClusterSnapshotsRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
119
121
127 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
128 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
129 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
130 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
131 inline DescribeClusterSnapshotsRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
132 inline DescribeClusterSnapshotsRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
134
136
144 inline int GetMaxRecords() const{ return m_maxRecords; }
145 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
146 inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
147 inline DescribeClusterSnapshotsRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
149
151
159 inline const Aws::String& GetMarker() const{ return m_marker; }
160 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
161 inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
162 inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
163 inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
164 inline DescribeClusterSnapshotsRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
165 inline DescribeClusterSnapshotsRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
166 inline DescribeClusterSnapshotsRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
168
170
176 inline const Aws::String& GetOwnerAccount() const{ return m_ownerAccount; }
177 inline bool OwnerAccountHasBeenSet() const { return m_ownerAccountHasBeenSet; }
178 inline void SetOwnerAccount(const Aws::String& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = value; }
179 inline void SetOwnerAccount(Aws::String&& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = std::move(value); }
180 inline void SetOwnerAccount(const char* value) { m_ownerAccountHasBeenSet = true; m_ownerAccount.assign(value); }
182 inline DescribeClusterSnapshotsRequest& WithOwnerAccount(Aws::String&& value) { SetOwnerAccount(std::move(value)); return *this;}
183 inline DescribeClusterSnapshotsRequest& WithOwnerAccount(const char* value) { SetOwnerAccount(value); return *this;}
185
187
195 inline const Aws::Vector<Aws::String>& GetTagKeys() const{ return m_tagKeys; }
196 inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; }
197 inline void SetTagKeys(const Aws::Vector<Aws::String>& value) { m_tagKeysHasBeenSet = true; m_tagKeys = value; }
198 inline void SetTagKeys(Aws::Vector<Aws::String>&& value) { m_tagKeysHasBeenSet = true; m_tagKeys = std::move(value); }
200 inline DescribeClusterSnapshotsRequest& WithTagKeys(Aws::Vector<Aws::String>&& value) { SetTagKeys(std::move(value)); return *this;}
201 inline DescribeClusterSnapshotsRequest& AddTagKeys(const Aws::String& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
202 inline DescribeClusterSnapshotsRequest& AddTagKeys(Aws::String&& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(std::move(value)); return *this; }
203 inline DescribeClusterSnapshotsRequest& AddTagKeys(const char* value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
205
207
215 inline const Aws::Vector<Aws::String>& GetTagValues() const{ return m_tagValues; }
216 inline bool TagValuesHasBeenSet() const { return m_tagValuesHasBeenSet; }
217 inline void SetTagValues(const Aws::Vector<Aws::String>& value) { m_tagValuesHasBeenSet = true; m_tagValues = value; }
218 inline void SetTagValues(Aws::Vector<Aws::String>&& value) { m_tagValuesHasBeenSet = true; m_tagValues = std::move(value); }
220 inline DescribeClusterSnapshotsRequest& WithTagValues(Aws::Vector<Aws::String>&& value) { SetTagValues(std::move(value)); return *this;}
221 inline DescribeClusterSnapshotsRequest& AddTagValues(const Aws::String& value) { m_tagValuesHasBeenSet = true; m_tagValues.push_back(value); return *this; }
222 inline DescribeClusterSnapshotsRequest& AddTagValues(Aws::String&& value) { m_tagValuesHasBeenSet = true; m_tagValues.push_back(std::move(value)); return *this; }
223 inline DescribeClusterSnapshotsRequest& AddTagValues(const char* value) { m_tagValuesHasBeenSet = true; m_tagValues.push_back(value); return *this; }
225
227
243 inline bool GetClusterExists() const{ return m_clusterExists; }
244 inline bool ClusterExistsHasBeenSet() const { return m_clusterExistsHasBeenSet; }
245 inline void SetClusterExists(bool value) { m_clusterExistsHasBeenSet = true; m_clusterExists = value; }
246 inline DescribeClusterSnapshotsRequest& WithClusterExists(bool value) { SetClusterExists(value); return *this;}
248
250
253 inline const Aws::Vector<SnapshotSortingEntity>& GetSortingEntities() const{ return m_sortingEntities; }
254 inline bool SortingEntitiesHasBeenSet() const { return m_sortingEntitiesHasBeenSet; }
255 inline void SetSortingEntities(const Aws::Vector<SnapshotSortingEntity>& value) { m_sortingEntitiesHasBeenSet = true; m_sortingEntities = value; }
256 inline void SetSortingEntities(Aws::Vector<SnapshotSortingEntity>&& value) { m_sortingEntitiesHasBeenSet = true; m_sortingEntities = std::move(value); }
259 inline DescribeClusterSnapshotsRequest& AddSortingEntities(const SnapshotSortingEntity& value) { m_sortingEntitiesHasBeenSet = true; m_sortingEntities.push_back(value); return *this; }
260 inline DescribeClusterSnapshotsRequest& AddSortingEntities(SnapshotSortingEntity&& value) { m_sortingEntitiesHasBeenSet = true; m_sortingEntities.push_back(std::move(value)); return *this; }
262 private:
263
264 Aws::String m_clusterIdentifier;
265 bool m_clusterIdentifierHasBeenSet = false;
266
267 Aws::String m_snapshotIdentifier;
268 bool m_snapshotIdentifierHasBeenSet = false;
269
270 Aws::String m_snapshotArn;
271 bool m_snapshotArnHasBeenSet = false;
272
273 Aws::String m_snapshotType;
274 bool m_snapshotTypeHasBeenSet = false;
275
276 Aws::Utils::DateTime m_startTime;
277 bool m_startTimeHasBeenSet = false;
278
279 Aws::Utils::DateTime m_endTime;
280 bool m_endTimeHasBeenSet = false;
281
282 int m_maxRecords;
283 bool m_maxRecordsHasBeenSet = false;
284
285 Aws::String m_marker;
286 bool m_markerHasBeenSet = false;
287
288 Aws::String m_ownerAccount;
289 bool m_ownerAccountHasBeenSet = false;
290
291 Aws::Vector<Aws::String> m_tagKeys;
292 bool m_tagKeysHasBeenSet = false;
293
294 Aws::Vector<Aws::String> m_tagValues;
295 bool m_tagValuesHasBeenSet = false;
296
297 bool m_clusterExists;
298 bool m_clusterExistsHasBeenSet = false;
299
300 Aws::Vector<SnapshotSortingEntity> m_sortingEntities;
301 bool m_sortingEntitiesHasBeenSet = false;
302 };
303
304} // namespace Model
305} // namespace Redshift
306} // namespace Aws
void SetSortingEntities(Aws::Vector< SnapshotSortingEntity > &&value)
void SetSortingEntities(const Aws::Vector< SnapshotSortingEntity > &value)
DescribeClusterSnapshotsRequest & WithMarker(const char *value)
DescribeClusterSnapshotsRequest & WithTagValues(const Aws::Vector< Aws::String > &value)
DescribeClusterSnapshotsRequest & WithTagKeys(Aws::Vector< Aws::String > &&value)
DescribeClusterSnapshotsRequest & AddTagValues(Aws::String &&value)
DescribeClusterSnapshotsRequest & WithOwnerAccount(Aws::String &&value)
DescribeClusterSnapshotsRequest & AddTagValues(const Aws::String &value)
const Aws::Vector< SnapshotSortingEntity > & GetSortingEntities() const
DescribeClusterSnapshotsRequest & WithClusterExists(bool value)
DescribeClusterSnapshotsRequest & AddTagKeys(const char *value)
DescribeClusterSnapshotsRequest & WithSnapshotArn(const char *value)
DescribeClusterSnapshotsRequest & AddSortingEntities(const SnapshotSortingEntity &value)
DescribeClusterSnapshotsRequest & WithEndTime(Aws::Utils::DateTime &&value)
DescribeClusterSnapshotsRequest & WithEndTime(const Aws::Utils::DateTime &value)
DescribeClusterSnapshotsRequest & WithClusterIdentifier(const Aws::String &value)
DescribeClusterSnapshotsRequest & AddTagKeys(Aws::String &&value)
DescribeClusterSnapshotsRequest & WithSnapshotIdentifier(const Aws::String &value)
AWS_REDSHIFT_API Aws::String SerializePayload() const override
DescribeClusterSnapshotsRequest & WithSnapshotIdentifier(Aws::String &&value)
DescribeClusterSnapshotsRequest & WithSnapshotIdentifier(const char *value)
DescribeClusterSnapshotsRequest & WithSnapshotArn(Aws::String &&value)
DescribeClusterSnapshotsRequest & WithMarker(const Aws::String &value)
DescribeClusterSnapshotsRequest & AddTagValues(const char *value)
DescribeClusterSnapshotsRequest & WithTagValues(Aws::Vector< Aws::String > &&value)
DescribeClusterSnapshotsRequest & WithTagKeys(const Aws::Vector< Aws::String > &value)
DescribeClusterSnapshotsRequest & WithClusterIdentifier(const char *value)
DescribeClusterSnapshotsRequest & WithOwnerAccount(const Aws::String &value)
DescribeClusterSnapshotsRequest & WithStartTime(Aws::Utils::DateTime &&value)
DescribeClusterSnapshotsRequest & WithMarker(Aws::String &&value)
DescribeClusterSnapshotsRequest & WithClusterIdentifier(Aws::String &&value)
DescribeClusterSnapshotsRequest & WithSnapshotArn(const Aws::String &value)
DescribeClusterSnapshotsRequest & WithSnapshotType(Aws::String &&value)
DescribeClusterSnapshotsRequest & WithSnapshotType(const char *value)
DescribeClusterSnapshotsRequest & WithSortingEntities(Aws::Vector< SnapshotSortingEntity > &&value)
DescribeClusterSnapshotsRequest & AddSortingEntities(SnapshotSortingEntity &&value)
DescribeClusterSnapshotsRequest & WithSnapshotType(const Aws::String &value)
DescribeClusterSnapshotsRequest & WithSortingEntities(const Aws::Vector< SnapshotSortingEntity > &value)
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeClusterSnapshotsRequest & WithOwnerAccount(const char *value)
DescribeClusterSnapshotsRequest & AddTagKeys(const Aws::String &value)
DescribeClusterSnapshotsRequest & WithStartTime(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector