AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeSnapshotCopyGrantsRequest.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/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Redshift
16{
17namespace Model
18{
19
27 {
28 public:
29 AWS_REDSHIFT_API DescribeSnapshotCopyGrantsRequest() = 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 "DescribeSnapshotCopyGrants"; }
36
37 AWS_REDSHIFT_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
45
48 inline const Aws::String& GetSnapshotCopyGrantName() const { return m_snapshotCopyGrantName; }
49 inline bool SnapshotCopyGrantNameHasBeenSet() const { return m_snapshotCopyGrantNameHasBeenSet; }
50 template<typename SnapshotCopyGrantNameT = Aws::String>
51 void SetSnapshotCopyGrantName(SnapshotCopyGrantNameT&& value) { m_snapshotCopyGrantNameHasBeenSet = true; m_snapshotCopyGrantName = std::forward<SnapshotCopyGrantNameT>(value); }
52 template<typename SnapshotCopyGrantNameT = Aws::String>
53 DescribeSnapshotCopyGrantsRequest& WithSnapshotCopyGrantName(SnapshotCopyGrantNameT&& value) { SetSnapshotCopyGrantName(std::forward<SnapshotCopyGrantNameT>(value)); return *this;}
55
57
65 inline int GetMaxRecords() const { return m_maxRecords; }
66 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
67 inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
68 inline DescribeSnapshotCopyGrantsRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
70
72
82 inline const Aws::String& GetMarker() const { return m_marker; }
83 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
84 template<typename MarkerT = Aws::String>
85 void SetMarker(MarkerT&& value) { m_markerHasBeenSet = true; m_marker = std::forward<MarkerT>(value); }
86 template<typename MarkerT = Aws::String>
87 DescribeSnapshotCopyGrantsRequest& WithMarker(MarkerT&& value) { SetMarker(std::forward<MarkerT>(value)); return *this;}
89
91
99 inline const Aws::Vector<Aws::String>& GetTagKeys() const { return m_tagKeys; }
100 inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; }
101 template<typename TagKeysT = Aws::Vector<Aws::String>>
102 void SetTagKeys(TagKeysT&& value) { m_tagKeysHasBeenSet = true; m_tagKeys = std::forward<TagKeysT>(value); }
103 template<typename TagKeysT = Aws::Vector<Aws::String>>
104 DescribeSnapshotCopyGrantsRequest& WithTagKeys(TagKeysT&& value) { SetTagKeys(std::forward<TagKeysT>(value)); return *this;}
105 template<typename TagKeysT = Aws::String>
106 DescribeSnapshotCopyGrantsRequest& AddTagKeys(TagKeysT&& value) { m_tagKeysHasBeenSet = true; m_tagKeys.emplace_back(std::forward<TagKeysT>(value)); return *this; }
108
110
118 inline const Aws::Vector<Aws::String>& GetTagValues() const { return m_tagValues; }
119 inline bool TagValuesHasBeenSet() const { return m_tagValuesHasBeenSet; }
120 template<typename TagValuesT = Aws::Vector<Aws::String>>
121 void SetTagValues(TagValuesT&& value) { m_tagValuesHasBeenSet = true; m_tagValues = std::forward<TagValuesT>(value); }
122 template<typename TagValuesT = Aws::Vector<Aws::String>>
123 DescribeSnapshotCopyGrantsRequest& WithTagValues(TagValuesT&& value) { SetTagValues(std::forward<TagValuesT>(value)); return *this;}
124 template<typename TagValuesT = Aws::String>
125 DescribeSnapshotCopyGrantsRequest& AddTagValues(TagValuesT&& value) { m_tagValuesHasBeenSet = true; m_tagValues.emplace_back(std::forward<TagValuesT>(value)); return *this; }
127 private:
128
129 Aws::String m_snapshotCopyGrantName;
130 bool m_snapshotCopyGrantNameHasBeenSet = false;
131
132 int m_maxRecords{0};
133 bool m_maxRecordsHasBeenSet = false;
134
135 Aws::String m_marker;
136 bool m_markerHasBeenSet = false;
137
138 Aws::Vector<Aws::String> m_tagKeys;
139 bool m_tagKeysHasBeenSet = false;
140
141 Aws::Vector<Aws::String> m_tagValues;
142 bool m_tagValuesHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace Redshift
147} // namespace Aws
DescribeSnapshotCopyGrantsRequest & WithSnapshotCopyGrantName(SnapshotCopyGrantNameT &&value)
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeSnapshotCopyGrantsRequest & AddTagKeys(TagKeysT &&value)
DescribeSnapshotCopyGrantsRequest & AddTagValues(TagValuesT &&value)
DescribeSnapshotCopyGrantsRequest & WithTagValues(TagValuesT &&value)
AWS_REDSHIFT_API DescribeSnapshotCopyGrantsRequest()=default
DescribeSnapshotCopyGrantsRequest & WithTagKeys(TagKeysT &&value)
AWS_REDSHIFT_API Aws::String SerializePayload() const override
DescribeSnapshotCopyGrantsRequest & WithMarker(MarkerT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector