AWS SDK for C++  1.8.71
AWS SDK for C++
DescribeClusterSnapshotsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Redshift
18 {
19 namespace 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::String SerializePayload() const override;
39 
40  protected:
41  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42 
43  public:
44 
48  inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; }
49 
53  inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
54 
58  inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
59 
63  inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::move(value); }
64 
68  inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); }
69 
73  inline DescribeClusterSnapshotsRequest& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;}
74 
78  inline DescribeClusterSnapshotsRequest& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;}
79 
83  inline DescribeClusterSnapshotsRequest& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
84 
85 
90  inline const Aws::String& GetSnapshotIdentifier() const{ return m_snapshotIdentifier; }
91 
96  inline bool SnapshotIdentifierHasBeenSet() const { return m_snapshotIdentifierHasBeenSet; }
97 
102  inline void SetSnapshotIdentifier(const Aws::String& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = value; }
103 
108  inline void SetSnapshotIdentifier(Aws::String&& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = std::move(value); }
109 
114  inline void SetSnapshotIdentifier(const char* value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier.assign(value); }
115 
120  inline DescribeClusterSnapshotsRequest& WithSnapshotIdentifier(const Aws::String& value) { SetSnapshotIdentifier(value); return *this;}
121 
126  inline DescribeClusterSnapshotsRequest& WithSnapshotIdentifier(Aws::String&& value) { SetSnapshotIdentifier(std::move(value)); return *this;}
127 
132  inline DescribeClusterSnapshotsRequest& WithSnapshotIdentifier(const char* value) { SetSnapshotIdentifier(value); return *this;}
133 
134 
140  inline const Aws::String& GetSnapshotType() const{ return m_snapshotType; }
141 
147  inline bool SnapshotTypeHasBeenSet() const { return m_snapshotTypeHasBeenSet; }
148 
154  inline void SetSnapshotType(const Aws::String& value) { m_snapshotTypeHasBeenSet = true; m_snapshotType = value; }
155 
161  inline void SetSnapshotType(Aws::String&& value) { m_snapshotTypeHasBeenSet = true; m_snapshotType = std::move(value); }
162 
168  inline void SetSnapshotType(const char* value) { m_snapshotTypeHasBeenSet = true; m_snapshotType.assign(value); }
169 
175  inline DescribeClusterSnapshotsRequest& WithSnapshotType(const Aws::String& value) { SetSnapshotType(value); return *this;}
176 
182  inline DescribeClusterSnapshotsRequest& WithSnapshotType(Aws::String&& value) { SetSnapshotType(std::move(value)); return *this;}
183 
189  inline DescribeClusterSnapshotsRequest& WithSnapshotType(const char* value) { SetSnapshotType(value); return *this;}
190 
191 
198  inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
199 
206  inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
207 
214  inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
215 
222  inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
223 
230  inline DescribeClusterSnapshotsRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
231 
238  inline DescribeClusterSnapshotsRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
239 
240 
247  inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
248 
255  inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
256 
263  inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
264 
271  inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
272 
279  inline DescribeClusterSnapshotsRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
280 
287  inline DescribeClusterSnapshotsRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
288 
289 
298  inline int GetMaxRecords() const{ return m_maxRecords; }
299 
308  inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
309 
318  inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
319 
328  inline DescribeClusterSnapshotsRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
329 
330 
339  inline const Aws::String& GetMarker() const{ return m_marker; }
340 
349  inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
350 
359  inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
360 
369  inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
370 
379  inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
380 
389  inline DescribeClusterSnapshotsRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
390 
399  inline DescribeClusterSnapshotsRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
400 
409  inline DescribeClusterSnapshotsRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
410 
411 
418  inline const Aws::String& GetOwnerAccount() const{ return m_ownerAccount; }
419 
426  inline bool OwnerAccountHasBeenSet() const { return m_ownerAccountHasBeenSet; }
427 
434  inline void SetOwnerAccount(const Aws::String& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = value; }
435 
442  inline void SetOwnerAccount(Aws::String&& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = std::move(value); }
443 
450  inline void SetOwnerAccount(const char* value) { m_ownerAccountHasBeenSet = true; m_ownerAccount.assign(value); }
451 
458  inline DescribeClusterSnapshotsRequest& WithOwnerAccount(const Aws::String& value) { SetOwnerAccount(value); return *this;}
459 
466  inline DescribeClusterSnapshotsRequest& WithOwnerAccount(Aws::String&& value) { SetOwnerAccount(std::move(value)); return *this;}
467 
474  inline DescribeClusterSnapshotsRequest& WithOwnerAccount(const char* value) { SetOwnerAccount(value); return *this;}
475 
476 
485  inline const Aws::Vector<Aws::String>& GetTagKeys() const{ return m_tagKeys; }
486 
495  inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; }
496 
505  inline void SetTagKeys(const Aws::Vector<Aws::String>& value) { m_tagKeysHasBeenSet = true; m_tagKeys = value; }
506 
515  inline void SetTagKeys(Aws::Vector<Aws::String>&& value) { m_tagKeysHasBeenSet = true; m_tagKeys = std::move(value); }
516 
525  inline DescribeClusterSnapshotsRequest& WithTagKeys(const Aws::Vector<Aws::String>& value) { SetTagKeys(value); return *this;}
526 
535  inline DescribeClusterSnapshotsRequest& WithTagKeys(Aws::Vector<Aws::String>&& value) { SetTagKeys(std::move(value)); return *this;}
536 
545  inline DescribeClusterSnapshotsRequest& AddTagKeys(const Aws::String& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
546 
555  inline DescribeClusterSnapshotsRequest& AddTagKeys(Aws::String&& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(std::move(value)); return *this; }
556 
565  inline DescribeClusterSnapshotsRequest& AddTagKeys(const char* value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
566 
567 
576  inline const Aws::Vector<Aws::String>& GetTagValues() const{ return m_tagValues; }
577 
586  inline bool TagValuesHasBeenSet() const { return m_tagValuesHasBeenSet; }
587 
596  inline void SetTagValues(const Aws::Vector<Aws::String>& value) { m_tagValuesHasBeenSet = true; m_tagValues = value; }
597 
606  inline void SetTagValues(Aws::Vector<Aws::String>&& value) { m_tagValuesHasBeenSet = true; m_tagValues = std::move(value); }
607 
616  inline DescribeClusterSnapshotsRequest& WithTagValues(const Aws::Vector<Aws::String>& value) { SetTagValues(value); return *this;}
617 
626  inline DescribeClusterSnapshotsRequest& WithTagValues(Aws::Vector<Aws::String>&& value) { SetTagValues(std::move(value)); return *this;}
627 
636  inline DescribeClusterSnapshotsRequest& AddTagValues(const Aws::String& value) { m_tagValuesHasBeenSet = true; m_tagValues.push_back(value); return *this; }
637 
646  inline DescribeClusterSnapshotsRequest& AddTagValues(Aws::String&& value) { m_tagValuesHasBeenSet = true; m_tagValues.push_back(std::move(value)); return *this; }
647 
656  inline DescribeClusterSnapshotsRequest& AddTagValues(const char* value) { m_tagValuesHasBeenSet = true; m_tagValues.push_back(value); return *this; }
657 
658 
675  inline bool GetClusterExists() const{ return m_clusterExists; }
676 
693  inline bool ClusterExistsHasBeenSet() const { return m_clusterExistsHasBeenSet; }
694 
711  inline void SetClusterExists(bool value) { m_clusterExistsHasBeenSet = true; m_clusterExists = value; }
712 
729  inline DescribeClusterSnapshotsRequest& WithClusterExists(bool value) { SetClusterExists(value); return *this;}
730 
731 
735  inline const Aws::Vector<SnapshotSortingEntity>& GetSortingEntities() const{ return m_sortingEntities; }
736 
740  inline bool SortingEntitiesHasBeenSet() const { return m_sortingEntitiesHasBeenSet; }
741 
745  inline void SetSortingEntities(const Aws::Vector<SnapshotSortingEntity>& value) { m_sortingEntitiesHasBeenSet = true; m_sortingEntities = value; }
746 
750  inline void SetSortingEntities(Aws::Vector<SnapshotSortingEntity>&& value) { m_sortingEntitiesHasBeenSet = true; m_sortingEntities = std::move(value); }
751 
755  inline DescribeClusterSnapshotsRequest& WithSortingEntities(const Aws::Vector<SnapshotSortingEntity>& value) { SetSortingEntities(value); return *this;}
756 
760  inline DescribeClusterSnapshotsRequest& WithSortingEntities(Aws::Vector<SnapshotSortingEntity>&& value) { SetSortingEntities(std::move(value)); return *this;}
761 
765  inline DescribeClusterSnapshotsRequest& AddSortingEntities(const SnapshotSortingEntity& value) { m_sortingEntitiesHasBeenSet = true; m_sortingEntities.push_back(value); return *this; }
766 
770  inline DescribeClusterSnapshotsRequest& AddSortingEntities(SnapshotSortingEntity&& value) { m_sortingEntitiesHasBeenSet = true; m_sortingEntities.push_back(std::move(value)); return *this; }
771 
772  private:
773 
774  Aws::String m_clusterIdentifier;
775  bool m_clusterIdentifierHasBeenSet;
776 
777  Aws::String m_snapshotIdentifier;
778  bool m_snapshotIdentifierHasBeenSet;
779 
780  Aws::String m_snapshotType;
781  bool m_snapshotTypeHasBeenSet;
782 
783  Aws::Utils::DateTime m_startTime;
784  bool m_startTimeHasBeenSet;
785 
786  Aws::Utils::DateTime m_endTime;
787  bool m_endTimeHasBeenSet;
788 
789  int m_maxRecords;
790  bool m_maxRecordsHasBeenSet;
791 
792  Aws::String m_marker;
793  bool m_markerHasBeenSet;
794 
795  Aws::String m_ownerAccount;
796  bool m_ownerAccountHasBeenSet;
797 
798  Aws::Vector<Aws::String> m_tagKeys;
799  bool m_tagKeysHasBeenSet;
800 
801  Aws::Vector<Aws::String> m_tagValues;
802  bool m_tagValuesHasBeenSet;
803 
804  bool m_clusterExists;
805  bool m_clusterExistsHasBeenSet;
806 
807  Aws::Vector<SnapshotSortingEntity> m_sortingEntities;
808  bool m_sortingEntitiesHasBeenSet;
809  };
810 
811 } // namespace Model
812 } // namespace Redshift
813 } // namespace Aws
DescribeClusterSnapshotsRequest & WithStartTime(const Aws::Utils::DateTime &value)
void SetSortingEntities(const Aws::Vector< SnapshotSortingEntity > &value)
DescribeClusterSnapshotsRequest & WithMaxRecords(int value)
void SetSortingEntities(Aws::Vector< SnapshotSortingEntity > &&value)
DescribeClusterSnapshotsRequest & AddSortingEntities(const SnapshotSortingEntity &value)
DescribeClusterSnapshotsRequest & WithSortingEntities(Aws::Vector< SnapshotSortingEntity > &&value)
DescribeClusterSnapshotsRequest & AddTagKeys(Aws::String &&value)
DescribeClusterSnapshotsRequest & WithSortingEntities(const Aws::Vector< SnapshotSortingEntity > &value)
DescribeClusterSnapshotsRequest & AddTagKeys(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
DescribeClusterSnapshotsRequest & WithSnapshotIdentifier(const char *value)
DescribeClusterSnapshotsRequest & WithSnapshotIdentifier(const Aws::String &value)
DescribeClusterSnapshotsRequest & WithOwnerAccount(Aws::String &&value)
DescribeClusterSnapshotsRequest & WithEndTime(Aws::Utils::DateTime &&value)
DescribeClusterSnapshotsRequest & WithTagKeys(Aws::Vector< Aws::String > &&value)
DescribeClusterSnapshotsRequest & WithEndTime(const Aws::Utils::DateTime &value)
DescribeClusterSnapshotsRequest & WithClusterIdentifier(const char *value)
DescribeClusterSnapshotsRequest & AddSortingEntities(SnapshotSortingEntity &&value)
DescribeClusterSnapshotsRequest & AddTagValues(const Aws::String &value)
const Aws::Vector< SnapshotSortingEntity > & GetSortingEntities() const
#define AWS_REDSHIFT_API
DescribeClusterSnapshotsRequest & WithClusterIdentifier(const Aws::String &value)
void SetTagKeys(const Aws::Vector< Aws::String > &value)
DescribeClusterSnapshotsRequest & WithSnapshotType(Aws::String &&value)
DescribeClusterSnapshotsRequest & WithTagValues(const Aws::Vector< Aws::String > &value)
DescribeClusterSnapshotsRequest & AddTagKeys(const char *value)
DescribeClusterSnapshotsRequest & WithSnapshotType(const char *value)
DescribeClusterSnapshotsRequest & WithSnapshotIdentifier(Aws::String &&value)
DescribeClusterSnapshotsRequest & WithClusterExists(bool value)
DescribeClusterSnapshotsRequest & WithMarker(const char *value)
DescribeClusterSnapshotsRequest & AddTagValues(const char *value)
DescribeClusterSnapshotsRequest & WithClusterIdentifier(Aws::String &&value)
DescribeClusterSnapshotsRequest & WithTagKeys(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeClusterSnapshotsRequest & WithSnapshotType(const Aws::String &value)
DescribeClusterSnapshotsRequest & WithTagValues(Aws::Vector< Aws::String > &&value)
DescribeClusterSnapshotsRequest & WithMarker(Aws::String &&value)
DescribeClusterSnapshotsRequest & WithOwnerAccount(const Aws::String &value)
DescribeClusterSnapshotsRequest & WithStartTime(Aws::Utils::DateTime &&value)
DescribeClusterSnapshotsRequest & WithOwnerAccount(const char *value)
DescribeClusterSnapshotsRequest & AddTagValues(Aws::String &&value)
void SetTagValues(const Aws::Vector< Aws::String > &value)
DescribeClusterSnapshotsRequest & WithMarker(const Aws::String &value)