AWS SDK for C++

AWS SDK for C++ Version 1.11.714

Loading...
Searching...
No Matches
DescribeSnapshotCopyGrantsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/redshift/RedshiftRequest.h>
10#include <aws/redshift/Redshift_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Redshift {
16namespace Model {
17
25 public:
26 AWS_REDSHIFT_API DescribeSnapshotCopyGrantsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "DescribeSnapshotCopyGrants"; }
33
34 AWS_REDSHIFT_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
38
39 public:
41
44 inline const Aws::String& GetSnapshotCopyGrantName() const { return m_snapshotCopyGrantName; }
45 inline bool SnapshotCopyGrantNameHasBeenSet() const { return m_snapshotCopyGrantNameHasBeenSet; }
46 template <typename SnapshotCopyGrantNameT = Aws::String>
47 void SetSnapshotCopyGrantName(SnapshotCopyGrantNameT&& value) {
48 m_snapshotCopyGrantNameHasBeenSet = true;
49 m_snapshotCopyGrantName = std::forward<SnapshotCopyGrantNameT>(value);
50 }
51 template <typename SnapshotCopyGrantNameT = Aws::String>
53 SetSnapshotCopyGrantName(std::forward<SnapshotCopyGrantNameT>(value));
54 return *this;
55 }
57
59
67 inline int GetMaxRecords() const { return m_maxRecords; }
68 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
69 inline void SetMaxRecords(int value) {
70 m_maxRecordsHasBeenSet = true;
71 m_maxRecords = value;
72 }
74 SetMaxRecords(value);
75 return *this;
76 }
78
80
90 inline const Aws::String& GetMarker() const { return m_marker; }
91 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
92 template <typename MarkerT = Aws::String>
93 void SetMarker(MarkerT&& value) {
94 m_markerHasBeenSet = true;
95 m_marker = std::forward<MarkerT>(value);
96 }
97 template <typename MarkerT = Aws::String>
99 SetMarker(std::forward<MarkerT>(value));
100 return *this;
101 }
103
105
113 inline const Aws::Vector<Aws::String>& GetTagKeys() const { return m_tagKeys; }
114 inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; }
115 template <typename TagKeysT = Aws::Vector<Aws::String>>
116 void SetTagKeys(TagKeysT&& value) {
117 m_tagKeysHasBeenSet = true;
118 m_tagKeys = std::forward<TagKeysT>(value);
119 }
120 template <typename TagKeysT = Aws::Vector<Aws::String>>
122 SetTagKeys(std::forward<TagKeysT>(value));
123 return *this;
124 }
125 template <typename TagKeysT = Aws::String>
127 m_tagKeysHasBeenSet = true;
128 m_tagKeys.emplace_back(std::forward<TagKeysT>(value));
129 return *this;
130 }
132
134
142 inline const Aws::Vector<Aws::String>& GetTagValues() const { return m_tagValues; }
143 inline bool TagValuesHasBeenSet() const { return m_tagValuesHasBeenSet; }
144 template <typename TagValuesT = Aws::Vector<Aws::String>>
145 void SetTagValues(TagValuesT&& value) {
146 m_tagValuesHasBeenSet = true;
147 m_tagValues = std::forward<TagValuesT>(value);
148 }
149 template <typename TagValuesT = Aws::Vector<Aws::String>>
151 SetTagValues(std::forward<TagValuesT>(value));
152 return *this;
153 }
154 template <typename TagValuesT = Aws::String>
156 m_tagValuesHasBeenSet = true;
157 m_tagValues.emplace_back(std::forward<TagValuesT>(value));
158 return *this;
159 }
161 private:
162 Aws::String m_snapshotCopyGrantName;
163
164 int m_maxRecords{0};
165
166 Aws::String m_marker;
167
168 Aws::Vector<Aws::String> m_tagKeys;
169
170 Aws::Vector<Aws::String> m_tagValues;
171 bool m_snapshotCopyGrantNameHasBeenSet = false;
172 bool m_maxRecordsHasBeenSet = false;
173 bool m_markerHasBeenSet = false;
174 bool m_tagKeysHasBeenSet = false;
175 bool m_tagValuesHasBeenSet = false;
176};
177
178} // namespace Model
179} // namespace Redshift
180} // 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