AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
GetConnectionResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/datazone/DataZone_EXPORTS.h>
11#include <aws/datazone/model/Configuration.h>
12#include <aws/datazone/model/ConnectionCredentials.h>
13#include <aws/datazone/model/ConnectionPropertiesOutput.h>
14#include <aws/datazone/model/ConnectionScope.h>
15#include <aws/datazone/model/ConnectionType.h>
16#include <aws/datazone/model/PhysicalEndpoint.h>
17
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Json {
26class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace DataZone {
30namespace Model {
32 public:
33 AWS_DATAZONE_API GetConnectionResult() = default;
36
38
41 inline const ConnectionCredentials& GetConnectionCredentials() const { return m_connectionCredentials; }
42 template <typename ConnectionCredentialsT = ConnectionCredentials>
43 void SetConnectionCredentials(ConnectionCredentialsT&& value) {
44 m_connectionCredentialsHasBeenSet = true;
45 m_connectionCredentials = std::forward<ConnectionCredentialsT>(value);
46 }
47 template <typename ConnectionCredentialsT = ConnectionCredentials>
48 GetConnectionResult& WithConnectionCredentials(ConnectionCredentialsT&& value) {
49 SetConnectionCredentials(std::forward<ConnectionCredentialsT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<Configuration>& GetConfigurations() const { return m_configurations; }
59 template <typename ConfigurationsT = Aws::Vector<Configuration>>
60 void SetConfigurations(ConfigurationsT&& value) {
61 m_configurationsHasBeenSet = true;
62 m_configurations = std::forward<ConfigurationsT>(value);
63 }
64 template <typename ConfigurationsT = Aws::Vector<Configuration>>
65 GetConnectionResult& WithConfigurations(ConfigurationsT&& value) {
66 SetConfigurations(std::forward<ConfigurationsT>(value));
67 return *this;
68 }
69 template <typename ConfigurationsT = Configuration>
70 GetConnectionResult& AddConfigurations(ConfigurationsT&& value) {
71 m_configurationsHasBeenSet = true;
72 m_configurations.emplace_back(std::forward<ConfigurationsT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
82 template <typename ConnectionIdT = Aws::String>
83 void SetConnectionId(ConnectionIdT&& value) {
84 m_connectionIdHasBeenSet = true;
85 m_connectionId = std::forward<ConnectionIdT>(value);
86 }
87 template <typename ConnectionIdT = Aws::String>
88 GetConnectionResult& WithConnectionId(ConnectionIdT&& value) {
89 SetConnectionId(std::forward<ConnectionIdT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetDescription() const { return m_description; }
99 template <typename DescriptionT = Aws::String>
100 void SetDescription(DescriptionT&& value) {
101 m_descriptionHasBeenSet = true;
102 m_description = std::forward<DescriptionT>(value);
103 }
104 template <typename DescriptionT = Aws::String>
105 GetConnectionResult& WithDescription(DescriptionT&& value) {
106 SetDescription(std::forward<DescriptionT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetDomainId() const { return m_domainId; }
116 template <typename DomainIdT = Aws::String>
117 void SetDomainId(DomainIdT&& value) {
118 m_domainIdHasBeenSet = true;
119 m_domainId = std::forward<DomainIdT>(value);
120 }
121 template <typename DomainIdT = Aws::String>
122 GetConnectionResult& WithDomainId(DomainIdT&& value) {
123 SetDomainId(std::forward<DomainIdT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::String& GetDomainUnitId() const { return m_domainUnitId; }
133 template <typename DomainUnitIdT = Aws::String>
134 void SetDomainUnitId(DomainUnitIdT&& value) {
135 m_domainUnitIdHasBeenSet = true;
136 m_domainUnitId = std::forward<DomainUnitIdT>(value);
137 }
138 template <typename DomainUnitIdT = Aws::String>
139 GetConnectionResult& WithDomainUnitId(DomainUnitIdT&& value) {
140 SetDomainUnitId(std::forward<DomainUnitIdT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
150 template <typename EnvironmentIdT = Aws::String>
151 void SetEnvironmentId(EnvironmentIdT&& value) {
152 m_environmentIdHasBeenSet = true;
153 m_environmentId = std::forward<EnvironmentIdT>(value);
154 }
155 template <typename EnvironmentIdT = Aws::String>
156 GetConnectionResult& WithEnvironmentId(EnvironmentIdT&& value) {
157 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::String& GetEnvironmentUserRole() const { return m_environmentUserRole; }
167 template <typename EnvironmentUserRoleT = Aws::String>
168 void SetEnvironmentUserRole(EnvironmentUserRoleT&& value) {
169 m_environmentUserRoleHasBeenSet = true;
170 m_environmentUserRole = std::forward<EnvironmentUserRoleT>(value);
171 }
172 template <typename EnvironmentUserRoleT = Aws::String>
173 GetConnectionResult& WithEnvironmentUserRole(EnvironmentUserRoleT&& value) {
174 SetEnvironmentUserRole(std::forward<EnvironmentUserRoleT>(value));
175 return *this;
176 }
178
180
183 inline const Aws::String& GetName() const { return m_name; }
184 template <typename NameT = Aws::String>
185 void SetName(NameT&& value) {
186 m_nameHasBeenSet = true;
187 m_name = std::forward<NameT>(value);
188 }
189 template <typename NameT = Aws::String>
191 SetName(std::forward<NameT>(value));
192 return *this;
193 }
195
197
200 inline const Aws::Vector<PhysicalEndpoint>& GetPhysicalEndpoints() const { return m_physicalEndpoints; }
201 template <typename PhysicalEndpointsT = Aws::Vector<PhysicalEndpoint>>
202 void SetPhysicalEndpoints(PhysicalEndpointsT&& value) {
203 m_physicalEndpointsHasBeenSet = true;
204 m_physicalEndpoints = std::forward<PhysicalEndpointsT>(value);
205 }
206 template <typename PhysicalEndpointsT = Aws::Vector<PhysicalEndpoint>>
207 GetConnectionResult& WithPhysicalEndpoints(PhysicalEndpointsT&& value) {
208 SetPhysicalEndpoints(std::forward<PhysicalEndpointsT>(value));
209 return *this;
210 }
211 template <typename PhysicalEndpointsT = PhysicalEndpoint>
212 GetConnectionResult& AddPhysicalEndpoints(PhysicalEndpointsT&& value) {
213 m_physicalEndpointsHasBeenSet = true;
214 m_physicalEndpoints.emplace_back(std::forward<PhysicalEndpointsT>(value));
215 return *this;
216 }
218
220
223 inline const Aws::String& GetProjectId() const { return m_projectId; }
224 template <typename ProjectIdT = Aws::String>
225 void SetProjectId(ProjectIdT&& value) {
226 m_projectIdHasBeenSet = true;
227 m_projectId = std::forward<ProjectIdT>(value);
228 }
229 template <typename ProjectIdT = Aws::String>
230 GetConnectionResult& WithProjectId(ProjectIdT&& value) {
231 SetProjectId(std::forward<ProjectIdT>(value));
232 return *this;
233 }
235
237
240 inline const ConnectionPropertiesOutput& GetProps() const { return m_props; }
241 template <typename PropsT = ConnectionPropertiesOutput>
242 void SetProps(PropsT&& value) {
243 m_propsHasBeenSet = true;
244 m_props = std::forward<PropsT>(value);
245 }
246 template <typename PropsT = ConnectionPropertiesOutput>
248 SetProps(std::forward<PropsT>(value));
249 return *this;
250 }
252
254
257 inline ConnectionType GetType() const { return m_type; }
258 inline void SetType(ConnectionType value) {
259 m_typeHasBeenSet = true;
260 m_type = value;
261 }
263 SetType(value);
264 return *this;
265 }
267
269
272 inline ConnectionScope GetScope() const { return m_scope; }
273 inline void SetScope(ConnectionScope value) {
274 m_scopeHasBeenSet = true;
275 m_scope = value;
276 }
278 SetScope(value);
279 return *this;
280 }
282
284
285 inline const Aws::String& GetRequestId() const { return m_requestId; }
286 template <typename RequestIdT = Aws::String>
287 void SetRequestId(RequestIdT&& value) {
288 m_requestIdHasBeenSet = true;
289 m_requestId = std::forward<RequestIdT>(value);
290 }
291 template <typename RequestIdT = Aws::String>
292 GetConnectionResult& WithRequestId(RequestIdT&& value) {
293 SetRequestId(std::forward<RequestIdT>(value));
294 return *this;
295 }
297 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
298
299 private:
300 ConnectionCredentials m_connectionCredentials;
301
302 Aws::Vector<Configuration> m_configurations;
303
304 Aws::String m_connectionId;
305
306 Aws::String m_description;
307
308 Aws::String m_domainId;
309
310 Aws::String m_domainUnitId;
311
312 Aws::String m_environmentId;
313
314 Aws::String m_environmentUserRole;
315
316 Aws::String m_name;
317
318 Aws::Vector<PhysicalEndpoint> m_physicalEndpoints;
319
320 Aws::String m_projectId;
321
323
325
327
328 Aws::String m_requestId;
329 Aws::Http::HttpResponseCode m_HttpResponseCode;
330 bool m_connectionCredentialsHasBeenSet = false;
331 bool m_configurationsHasBeenSet = false;
332 bool m_connectionIdHasBeenSet = false;
333 bool m_descriptionHasBeenSet = false;
334 bool m_domainIdHasBeenSet = false;
335 bool m_domainUnitIdHasBeenSet = false;
336 bool m_environmentIdHasBeenSet = false;
337 bool m_environmentUserRoleHasBeenSet = false;
338 bool m_nameHasBeenSet = false;
339 bool m_physicalEndpointsHasBeenSet = false;
340 bool m_projectIdHasBeenSet = false;
341 bool m_propsHasBeenSet = false;
342 bool m_typeHasBeenSet = false;
343 bool m_scopeHasBeenSet = false;
344 bool m_requestIdHasBeenSet = false;
345};
346
347} // namespace Model
348} // namespace DataZone
349} // namespace Aws
AWS_DATAZONE_API GetConnectionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetConnectionResult & WithProps(PropsT &&value)
void SetPhysicalEndpoints(PhysicalEndpointsT &&value)
GetConnectionResult & WithType(ConnectionType value)
GetConnectionResult & WithDomainId(DomainIdT &&value)
AWS_DATAZONE_API GetConnectionResult()=default
GetConnectionResult & WithConnectionId(ConnectionIdT &&value)
const ConnectionPropertiesOutput & GetProps() const
void SetEnvironmentId(EnvironmentIdT &&value)
void SetConnectionCredentials(ConnectionCredentialsT &&value)
GetConnectionResult & WithRequestId(RequestIdT &&value)
GetConnectionResult & WithName(NameT &&value)
GetConnectionResult & WithDescription(DescriptionT &&value)
GetConnectionResult & WithDomainUnitId(DomainUnitIdT &&value)
GetConnectionResult & AddConfigurations(ConfigurationsT &&value)
GetConnectionResult & WithEnvironmentId(EnvironmentIdT &&value)
const Aws::Vector< PhysicalEndpoint > & GetPhysicalEndpoints() const
AWS_DATAZONE_API GetConnectionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetEnvironmentUserRole(EnvironmentUserRoleT &&value)
const Aws::String & GetEnvironmentUserRole() const
void SetConfigurations(ConfigurationsT &&value)
const ConnectionCredentials & GetConnectionCredentials() const
GetConnectionResult & WithScope(ConnectionScope value)
GetConnectionResult & WithProjectId(ProjectIdT &&value)
GetConnectionResult & AddPhysicalEndpoints(PhysicalEndpointsT &&value)
const Aws::Vector< Configuration > & GetConfigurations() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetConnectionResult & WithEnvironmentUserRole(EnvironmentUserRoleT &&value)
GetConnectionResult & WithPhysicalEndpoints(PhysicalEndpointsT &&value)
GetConnectionResult & WithConnectionCredentials(ConnectionCredentialsT &&value)
GetConnectionResult & WithConfigurations(ConfigurationsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue