AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
GetConnectionResult.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/datazone/DataZone_EXPORTS.h>
10#include <aws/datazone/model/ConnectionCredentials.h>
11#include <aws/datazone/model/ConnectionPropertiesOutput.h>
12#include <aws/datazone/model/ConnectionScope.h>
13#include <aws/datazone/model/ConnectionType.h>
14#include <aws/datazone/model/PhysicalEndpoint.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace DataZone {
28namespace Model {
30 public:
31 AWS_DATAZONE_API GetConnectionResult() = default;
34
36
39 inline const ConnectionCredentials& GetConnectionCredentials() const { return m_connectionCredentials; }
40 template <typename ConnectionCredentialsT = ConnectionCredentials>
41 void SetConnectionCredentials(ConnectionCredentialsT&& value) {
42 m_connectionCredentialsHasBeenSet = true;
43 m_connectionCredentials = std::forward<ConnectionCredentialsT>(value);
44 }
45 template <typename ConnectionCredentialsT = ConnectionCredentials>
46 GetConnectionResult& WithConnectionCredentials(ConnectionCredentialsT&& value) {
47 SetConnectionCredentials(std::forward<ConnectionCredentialsT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
57 template <typename ConnectionIdT = Aws::String>
58 void SetConnectionId(ConnectionIdT&& value) {
59 m_connectionIdHasBeenSet = true;
60 m_connectionId = std::forward<ConnectionIdT>(value);
61 }
62 template <typename ConnectionIdT = Aws::String>
63 GetConnectionResult& WithConnectionId(ConnectionIdT&& value) {
64 SetConnectionId(std::forward<ConnectionIdT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetDescription() const { return m_description; }
74 template <typename DescriptionT = Aws::String>
75 void SetDescription(DescriptionT&& value) {
76 m_descriptionHasBeenSet = true;
77 m_description = std::forward<DescriptionT>(value);
78 }
79 template <typename DescriptionT = Aws::String>
80 GetConnectionResult& WithDescription(DescriptionT&& value) {
81 SetDescription(std::forward<DescriptionT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetDomainId() const { return m_domainId; }
91 template <typename DomainIdT = Aws::String>
92 void SetDomainId(DomainIdT&& value) {
93 m_domainIdHasBeenSet = true;
94 m_domainId = std::forward<DomainIdT>(value);
95 }
96 template <typename DomainIdT = Aws::String>
97 GetConnectionResult& WithDomainId(DomainIdT&& value) {
98 SetDomainId(std::forward<DomainIdT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::String& GetDomainUnitId() const { return m_domainUnitId; }
108 template <typename DomainUnitIdT = Aws::String>
109 void SetDomainUnitId(DomainUnitIdT&& value) {
110 m_domainUnitIdHasBeenSet = true;
111 m_domainUnitId = std::forward<DomainUnitIdT>(value);
112 }
113 template <typename DomainUnitIdT = Aws::String>
114 GetConnectionResult& WithDomainUnitId(DomainUnitIdT&& value) {
115 SetDomainUnitId(std::forward<DomainUnitIdT>(value));
116 return *this;
117 }
119
121
124 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
125 template <typename EnvironmentIdT = Aws::String>
126 void SetEnvironmentId(EnvironmentIdT&& value) {
127 m_environmentIdHasBeenSet = true;
128 m_environmentId = std::forward<EnvironmentIdT>(value);
129 }
130 template <typename EnvironmentIdT = Aws::String>
131 GetConnectionResult& WithEnvironmentId(EnvironmentIdT&& value) {
132 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
133 return *this;
134 }
136
138
141 inline const Aws::String& GetEnvironmentUserRole() const { return m_environmentUserRole; }
142 template <typename EnvironmentUserRoleT = Aws::String>
143 void SetEnvironmentUserRole(EnvironmentUserRoleT&& value) {
144 m_environmentUserRoleHasBeenSet = true;
145 m_environmentUserRole = std::forward<EnvironmentUserRoleT>(value);
146 }
147 template <typename EnvironmentUserRoleT = Aws::String>
148 GetConnectionResult& WithEnvironmentUserRole(EnvironmentUserRoleT&& value) {
149 SetEnvironmentUserRole(std::forward<EnvironmentUserRoleT>(value));
150 return *this;
151 }
153
155
158 inline const Aws::String& GetName() const { return m_name; }
159 template <typename NameT = Aws::String>
160 void SetName(NameT&& value) {
161 m_nameHasBeenSet = true;
162 m_name = std::forward<NameT>(value);
163 }
164 template <typename NameT = Aws::String>
166 SetName(std::forward<NameT>(value));
167 return *this;
168 }
170
172
175 inline const Aws::Vector<PhysicalEndpoint>& GetPhysicalEndpoints() const { return m_physicalEndpoints; }
176 template <typename PhysicalEndpointsT = Aws::Vector<PhysicalEndpoint>>
177 void SetPhysicalEndpoints(PhysicalEndpointsT&& value) {
178 m_physicalEndpointsHasBeenSet = true;
179 m_physicalEndpoints = std::forward<PhysicalEndpointsT>(value);
180 }
181 template <typename PhysicalEndpointsT = Aws::Vector<PhysicalEndpoint>>
182 GetConnectionResult& WithPhysicalEndpoints(PhysicalEndpointsT&& value) {
183 SetPhysicalEndpoints(std::forward<PhysicalEndpointsT>(value));
184 return *this;
185 }
186 template <typename PhysicalEndpointsT = PhysicalEndpoint>
187 GetConnectionResult& AddPhysicalEndpoints(PhysicalEndpointsT&& value) {
188 m_physicalEndpointsHasBeenSet = true;
189 m_physicalEndpoints.emplace_back(std::forward<PhysicalEndpointsT>(value));
190 return *this;
191 }
193
195
198 inline const Aws::String& GetProjectId() const { return m_projectId; }
199 template <typename ProjectIdT = Aws::String>
200 void SetProjectId(ProjectIdT&& value) {
201 m_projectIdHasBeenSet = true;
202 m_projectId = std::forward<ProjectIdT>(value);
203 }
204 template <typename ProjectIdT = Aws::String>
205 GetConnectionResult& WithProjectId(ProjectIdT&& value) {
206 SetProjectId(std::forward<ProjectIdT>(value));
207 return *this;
208 }
210
212
215 inline const ConnectionPropertiesOutput& GetProps() const { return m_props; }
216 template <typename PropsT = ConnectionPropertiesOutput>
217 void SetProps(PropsT&& value) {
218 m_propsHasBeenSet = true;
219 m_props = std::forward<PropsT>(value);
220 }
221 template <typename PropsT = ConnectionPropertiesOutput>
223 SetProps(std::forward<PropsT>(value));
224 return *this;
225 }
227
229
232 inline ConnectionType GetType() const { return m_type; }
233 inline void SetType(ConnectionType value) {
234 m_typeHasBeenSet = true;
235 m_type = value;
236 }
238 SetType(value);
239 return *this;
240 }
242
244
247 inline ConnectionScope GetScope() const { return m_scope; }
248 inline void SetScope(ConnectionScope value) {
249 m_scopeHasBeenSet = true;
250 m_scope = value;
251 }
253 SetScope(value);
254 return *this;
255 }
257
259
260 inline const Aws::String& GetRequestId() const { return m_requestId; }
261 template <typename RequestIdT = Aws::String>
262 void SetRequestId(RequestIdT&& value) {
263 m_requestIdHasBeenSet = true;
264 m_requestId = std::forward<RequestIdT>(value);
265 }
266 template <typename RequestIdT = Aws::String>
267 GetConnectionResult& WithRequestId(RequestIdT&& value) {
268 SetRequestId(std::forward<RequestIdT>(value));
269 return *this;
270 }
272 private:
273 ConnectionCredentials m_connectionCredentials;
274
275 Aws::String m_connectionId;
276
277 Aws::String m_description;
278
279 Aws::String m_domainId;
280
281 Aws::String m_domainUnitId;
282
283 Aws::String m_environmentId;
284
285 Aws::String m_environmentUserRole;
286
287 Aws::String m_name;
288
289 Aws::Vector<PhysicalEndpoint> m_physicalEndpoints;
290
291 Aws::String m_projectId;
292
294
296
298
299 Aws::String m_requestId;
300 bool m_connectionCredentialsHasBeenSet = false;
301 bool m_connectionIdHasBeenSet = false;
302 bool m_descriptionHasBeenSet = false;
303 bool m_domainIdHasBeenSet = false;
304 bool m_domainUnitIdHasBeenSet = false;
305 bool m_environmentIdHasBeenSet = false;
306 bool m_environmentUserRoleHasBeenSet = false;
307 bool m_nameHasBeenSet = false;
308 bool m_physicalEndpointsHasBeenSet = false;
309 bool m_projectIdHasBeenSet = false;
310 bool m_propsHasBeenSet = false;
311 bool m_typeHasBeenSet = false;
312 bool m_scopeHasBeenSet = false;
313 bool m_requestIdHasBeenSet = false;
314};
315
316} // namespace Model
317} // namespace DataZone
318} // 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 & 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
const ConnectionCredentials & GetConnectionCredentials() const
GetConnectionResult & WithScope(ConnectionScope value)
GetConnectionResult & WithProjectId(ProjectIdT &&value)
GetConnectionResult & AddPhysicalEndpoints(PhysicalEndpointsT &&value)
GetConnectionResult & WithEnvironmentUserRole(EnvironmentUserRoleT &&value)
GetConnectionResult & WithPhysicalEndpoints(PhysicalEndpointsT &&value)
GetConnectionResult & WithConnectionCredentials(ConnectionCredentialsT &&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