AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
ListConnectionsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/datazone/DataZoneRequest.h>
9#include <aws/datazone/DataZone_EXPORTS.h>
10#include <aws/datazone/model/ConnectionScope.h>
11#include <aws/datazone/model/ConnectionType.h>
12#include <aws/datazone/model/SortFieldConnection.h>
13#include <aws/datazone/model/SortOrder.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Http {
19class URI;
20} // namespace Http
21namespace DataZone {
22namespace Model {
23
27 public:
28 AWS_DATAZONE_API ListConnectionsRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "ListConnections"; }
35
36 AWS_DATAZONE_API Aws::String SerializePayload() const override;
37
38 AWS_DATAZONE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
41
44 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
45 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
46 template <typename DomainIdentifierT = Aws::String>
47 void SetDomainIdentifier(DomainIdentifierT&& value) {
48 m_domainIdentifierHasBeenSet = true;
49 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
50 }
51 template <typename DomainIdentifierT = Aws::String>
52 ListConnectionsRequest& WithDomainIdentifier(DomainIdentifierT&& value) {
53 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
54 return *this;
55 }
57
59
65 inline int GetMaxResults() const { return m_maxResults; }
66 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
67 inline void SetMaxResults(int value) {
68 m_maxResultsHasBeenSet = true;
69 m_maxResults = value;
70 }
72 SetMaxResults(value);
73 return *this;
74 }
76
78
85 inline const Aws::String& GetNextToken() const { return m_nextToken; }
86 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
87 template <typename NextTokenT = Aws::String>
88 void SetNextToken(NextTokenT&& value) {
89 m_nextTokenHasBeenSet = true;
90 m_nextToken = std::forward<NextTokenT>(value);
91 }
92 template <typename NextTokenT = Aws::String>
94 SetNextToken(std::forward<NextTokenT>(value));
95 return *this;
96 }
98
100
103 inline SortFieldConnection GetSortBy() const { return m_sortBy; }
104 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
105 inline void SetSortBy(SortFieldConnection value) {
106 m_sortByHasBeenSet = true;
107 m_sortBy = value;
108 }
110 SetSortBy(value);
111 return *this;
112 }
114
116
119 inline SortOrder GetSortOrder() const { return m_sortOrder; }
120 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
121 inline void SetSortOrder(SortOrder value) {
122 m_sortOrderHasBeenSet = true;
123 m_sortOrder = value;
124 }
126 SetSortOrder(value);
127 return *this;
128 }
130
132
135 inline const Aws::String& GetName() const { return m_name; }
136 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
137 template <typename NameT = Aws::String>
138 void SetName(NameT&& value) {
139 m_nameHasBeenSet = true;
140 m_name = std::forward<NameT>(value);
141 }
142 template <typename NameT = Aws::String>
144 SetName(std::forward<NameT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::String& GetEnvironmentIdentifier() const { return m_environmentIdentifier; }
154 inline bool EnvironmentIdentifierHasBeenSet() const { return m_environmentIdentifierHasBeenSet; }
155 template <typename EnvironmentIdentifierT = Aws::String>
156 void SetEnvironmentIdentifier(EnvironmentIdentifierT&& value) {
157 m_environmentIdentifierHasBeenSet = true;
158 m_environmentIdentifier = std::forward<EnvironmentIdentifierT>(value);
159 }
160 template <typename EnvironmentIdentifierT = Aws::String>
161 ListConnectionsRequest& WithEnvironmentIdentifier(EnvironmentIdentifierT&& value) {
162 SetEnvironmentIdentifier(std::forward<EnvironmentIdentifierT>(value));
163 return *this;
164 }
166
168
171 inline const Aws::String& GetProjectIdentifier() const { return m_projectIdentifier; }
172 inline bool ProjectIdentifierHasBeenSet() const { return m_projectIdentifierHasBeenSet; }
173 template <typename ProjectIdentifierT = Aws::String>
174 void SetProjectIdentifier(ProjectIdentifierT&& value) {
175 m_projectIdentifierHasBeenSet = true;
176 m_projectIdentifier = std::forward<ProjectIdentifierT>(value);
177 }
178 template <typename ProjectIdentifierT = Aws::String>
179 ListConnectionsRequest& WithProjectIdentifier(ProjectIdentifierT&& value) {
180 SetProjectIdentifier(std::forward<ProjectIdentifierT>(value));
181 return *this;
182 }
184
186
189 inline ConnectionType GetType() const { return m_type; }
190 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
191 inline void SetType(ConnectionType value) {
192 m_typeHasBeenSet = true;
193 m_type = value;
194 }
196 SetType(value);
197 return *this;
198 }
200
202
205 inline ConnectionScope GetScope() const { return m_scope; }
206 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
207 inline void SetScope(ConnectionScope value) {
208 m_scopeHasBeenSet = true;
209 m_scope = value;
210 }
212 SetScope(value);
213 return *this;
214 }
216 private:
217 Aws::String m_domainIdentifier;
218
219 int m_maxResults{0};
220
221 Aws::String m_nextToken;
222
224
225 SortOrder m_sortOrder{SortOrder::NOT_SET};
226
227 Aws::String m_name;
228
229 Aws::String m_environmentIdentifier;
230
231 Aws::String m_projectIdentifier;
232
234
236 bool m_domainIdentifierHasBeenSet = false;
237 bool m_maxResultsHasBeenSet = false;
238 bool m_nextTokenHasBeenSet = false;
239 bool m_sortByHasBeenSet = false;
240 bool m_sortOrderHasBeenSet = false;
241 bool m_nameHasBeenSet = false;
242 bool m_environmentIdentifierHasBeenSet = false;
243 bool m_projectIdentifierHasBeenSet = false;
244 bool m_typeHasBeenSet = false;
245 bool m_scopeHasBeenSet = false;
246};
247
248} // namespace Model
249} // namespace DataZone
250} // namespace Aws
ListConnectionsRequest & WithDomainIdentifier(DomainIdentifierT &&value)
ListConnectionsRequest & WithScope(ConnectionScope value)
ListConnectionsRequest & WithNextToken(NextTokenT &&value)
virtual const char * GetServiceRequestName() const override
ListConnectionsRequest & WithMaxResults(int value)
ListConnectionsRequest & WithSortOrder(SortOrder value)
ListConnectionsRequest & WithName(NameT &&value)
AWS_DATAZONE_API Aws::String SerializePayload() const override
void SetDomainIdentifier(DomainIdentifierT &&value)
void SetProjectIdentifier(ProjectIdentifierT &&value)
ListConnectionsRequest & WithEnvironmentIdentifier(EnvironmentIdentifierT &&value)
void SetEnvironmentIdentifier(EnvironmentIdentifierT &&value)
AWS_DATAZONE_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListConnectionsRequest & WithType(ConnectionType value)
ListConnectionsRequest & WithProjectIdentifier(ProjectIdentifierT &&value)
AWS_DATAZONE_API ListConnectionsRequest()=default
ListConnectionsRequest & WithSortBy(SortFieldConnection value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String