AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
30 AWS_REDSHIFT_API DescribeClusterSnapshotsRequest() = default;
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 template<typename ClusterIdentifierT = Aws::String>
52 void SetClusterIdentifier(ClusterIdentifierT&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::forward<ClusterIdentifierT>(value); }
53 template<typename ClusterIdentifierT = Aws::String>
54 DescribeClusterSnapshotsRequest& WithClusterIdentifier(ClusterIdentifierT&& value) { SetClusterIdentifier(std::forward<ClusterIdentifierT>(value)); return *this;}
56
58
62 inline const Aws::String& GetSnapshotIdentifier() const { return m_snapshotIdentifier; }
63 inline bool SnapshotIdentifierHasBeenSet() const { return m_snapshotIdentifierHasBeenSet; }
64 template<typename SnapshotIdentifierT = Aws::String>
65 void SetSnapshotIdentifier(SnapshotIdentifierT&& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = std::forward<SnapshotIdentifierT>(value); }
66 template<typename SnapshotIdentifierT = Aws::String>
67 DescribeClusterSnapshotsRequest& WithSnapshotIdentifier(SnapshotIdentifierT&& value) { SetSnapshotIdentifier(std::forward<SnapshotIdentifierT>(value)); return *this;}
69
71
75 inline const Aws::String& GetSnapshotArn() const { return m_snapshotArn; }
76 inline bool SnapshotArnHasBeenSet() const { return m_snapshotArnHasBeenSet; }
77 template<typename SnapshotArnT = Aws::String>
78 void SetSnapshotArn(SnapshotArnT&& value) { m_snapshotArnHasBeenSet = true; m_snapshotArn = std::forward<SnapshotArnT>(value); }
79 template<typename SnapshotArnT = Aws::String>
80 DescribeClusterSnapshotsRequest& WithSnapshotArn(SnapshotArnT&& value) { SetSnapshotArn(std::forward<SnapshotArnT>(value)); return *this;}
82
84
89 inline const Aws::String& GetSnapshotType() const { return m_snapshotType; }
90 inline bool SnapshotTypeHasBeenSet() const { return m_snapshotTypeHasBeenSet; }
91 template<typename SnapshotTypeT = Aws::String>
92 void SetSnapshotType(SnapshotTypeT&& value) { m_snapshotTypeHasBeenSet = true; m_snapshotType = std::forward<SnapshotTypeT>(value); }
93 template<typename SnapshotTypeT = Aws::String>
94 DescribeClusterSnapshotsRequest& WithSnapshotType(SnapshotTypeT&& value) { SetSnapshotType(std::forward<SnapshotTypeT>(value)); return *this;}
96
98
104 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
105 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
106 template<typename StartTimeT = Aws::Utils::DateTime>
107 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
108 template<typename StartTimeT = Aws::Utils::DateTime>
109 DescribeClusterSnapshotsRequest& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
111
113
119 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
120 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
121 template<typename EndTimeT = Aws::Utils::DateTime>
122 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
123 template<typename EndTimeT = Aws::Utils::DateTime>
124 DescribeClusterSnapshotsRequest& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
126
128
136 inline int GetMaxRecords() const { return m_maxRecords; }
137 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
138 inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
139 inline DescribeClusterSnapshotsRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
141
143
151 inline const Aws::String& GetMarker() const { return m_marker; }
152 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
153 template<typename MarkerT = Aws::String>
154 void SetMarker(MarkerT&& value) { m_markerHasBeenSet = true; m_marker = std::forward<MarkerT>(value); }
155 template<typename MarkerT = Aws::String>
156 DescribeClusterSnapshotsRequest& WithMarker(MarkerT&& value) { SetMarker(std::forward<MarkerT>(value)); return *this;}
158
160
166 inline const Aws::String& GetOwnerAccount() const { return m_ownerAccount; }
167 inline bool OwnerAccountHasBeenSet() const { return m_ownerAccountHasBeenSet; }
168 template<typename OwnerAccountT = Aws::String>
169 void SetOwnerAccount(OwnerAccountT&& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = std::forward<OwnerAccountT>(value); }
170 template<typename OwnerAccountT = Aws::String>
171 DescribeClusterSnapshotsRequest& WithOwnerAccount(OwnerAccountT&& value) { SetOwnerAccount(std::forward<OwnerAccountT>(value)); return *this;}
173
175
183 inline const Aws::Vector<Aws::String>& GetTagKeys() const { return m_tagKeys; }
184 inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; }
185 template<typename TagKeysT = Aws::Vector<Aws::String>>
186 void SetTagKeys(TagKeysT&& value) { m_tagKeysHasBeenSet = true; m_tagKeys = std::forward<TagKeysT>(value); }
187 template<typename TagKeysT = Aws::Vector<Aws::String>>
188 DescribeClusterSnapshotsRequest& WithTagKeys(TagKeysT&& value) { SetTagKeys(std::forward<TagKeysT>(value)); return *this;}
189 template<typename TagKeysT = Aws::String>
190 DescribeClusterSnapshotsRequest& AddTagKeys(TagKeysT&& value) { m_tagKeysHasBeenSet = true; m_tagKeys.emplace_back(std::forward<TagKeysT>(value)); return *this; }
192
194
202 inline const Aws::Vector<Aws::String>& GetTagValues() const { return m_tagValues; }
203 inline bool TagValuesHasBeenSet() const { return m_tagValuesHasBeenSet; }
204 template<typename TagValuesT = Aws::Vector<Aws::String>>
205 void SetTagValues(TagValuesT&& value) { m_tagValuesHasBeenSet = true; m_tagValues = std::forward<TagValuesT>(value); }
206 template<typename TagValuesT = Aws::Vector<Aws::String>>
207 DescribeClusterSnapshotsRequest& WithTagValues(TagValuesT&& value) { SetTagValues(std::forward<TagValuesT>(value)); return *this;}
208 template<typename TagValuesT = Aws::String>
209 DescribeClusterSnapshotsRequest& AddTagValues(TagValuesT&& value) { m_tagValuesHasBeenSet = true; m_tagValues.emplace_back(std::forward<TagValuesT>(value)); return *this; }
211
213
229 inline bool GetClusterExists() const { return m_clusterExists; }
230 inline bool ClusterExistsHasBeenSet() const { return m_clusterExistsHasBeenSet; }
231 inline void SetClusterExists(bool value) { m_clusterExistsHasBeenSet = true; m_clusterExists = value; }
232 inline DescribeClusterSnapshotsRequest& WithClusterExists(bool value) { SetClusterExists(value); return *this;}
234
236
239 inline const Aws::Vector<SnapshotSortingEntity>& GetSortingEntities() const { return m_sortingEntities; }
240 inline bool SortingEntitiesHasBeenSet() const { return m_sortingEntitiesHasBeenSet; }
241 template<typename SortingEntitiesT = Aws::Vector<SnapshotSortingEntity>>
242 void SetSortingEntities(SortingEntitiesT&& value) { m_sortingEntitiesHasBeenSet = true; m_sortingEntities = std::forward<SortingEntitiesT>(value); }
243 template<typename SortingEntitiesT = Aws::Vector<SnapshotSortingEntity>>
244 DescribeClusterSnapshotsRequest& WithSortingEntities(SortingEntitiesT&& value) { SetSortingEntities(std::forward<SortingEntitiesT>(value)); return *this;}
245 template<typename SortingEntitiesT = SnapshotSortingEntity>
246 DescribeClusterSnapshotsRequest& AddSortingEntities(SortingEntitiesT&& value) { m_sortingEntitiesHasBeenSet = true; m_sortingEntities.emplace_back(std::forward<SortingEntitiesT>(value)); return *this; }
248 private:
249
250 Aws::String m_clusterIdentifier;
251 bool m_clusterIdentifierHasBeenSet = false;
252
253 Aws::String m_snapshotIdentifier;
254 bool m_snapshotIdentifierHasBeenSet = false;
255
256 Aws::String m_snapshotArn;
257 bool m_snapshotArnHasBeenSet = false;
258
259 Aws::String m_snapshotType;
260 bool m_snapshotTypeHasBeenSet = false;
261
262 Aws::Utils::DateTime m_startTime{};
263 bool m_startTimeHasBeenSet = false;
264
265 Aws::Utils::DateTime m_endTime{};
266 bool m_endTimeHasBeenSet = false;
267
268 int m_maxRecords{0};
269 bool m_maxRecordsHasBeenSet = false;
270
271 Aws::String m_marker;
272 bool m_markerHasBeenSet = false;
273
274 Aws::String m_ownerAccount;
275 bool m_ownerAccountHasBeenSet = false;
276
277 Aws::Vector<Aws::String> m_tagKeys;
278 bool m_tagKeysHasBeenSet = false;
279
280 Aws::Vector<Aws::String> m_tagValues;
281 bool m_tagValuesHasBeenSet = false;
282
283 bool m_clusterExists{false};
284 bool m_clusterExistsHasBeenSet = false;
285
286 Aws::Vector<SnapshotSortingEntity> m_sortingEntities;
287 bool m_sortingEntitiesHasBeenSet = false;
288 };
289
290} // namespace Model
291} // namespace Redshift
292} // 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