AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetConnectionResult.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/datazone/model/ConnectionCredentials.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/datazone/model/ConnectionPropertiesOutput.h>
12#include <aws/datazone/model/ConnectionType.h>
13#include <aws/datazone/model/PhysicalEndpoint.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace DataZone
29{
30namespace Model
31{
33 {
34 public:
35 AWS_DATAZONE_API GetConnectionResult() = default;
38
39
41
44 inline const ConnectionCredentials& GetConnectionCredentials() const { return m_connectionCredentials; }
45 template<typename ConnectionCredentialsT = ConnectionCredentials>
46 void SetConnectionCredentials(ConnectionCredentialsT&& value) { m_connectionCredentialsHasBeenSet = true; m_connectionCredentials = std::forward<ConnectionCredentialsT>(value); }
47 template<typename ConnectionCredentialsT = ConnectionCredentials>
48 GetConnectionResult& WithConnectionCredentials(ConnectionCredentialsT&& value) { SetConnectionCredentials(std::forward<ConnectionCredentialsT>(value)); return *this;}
50
52
55 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
56 template<typename ConnectionIdT = Aws::String>
57 void SetConnectionId(ConnectionIdT&& value) { m_connectionIdHasBeenSet = true; m_connectionId = std::forward<ConnectionIdT>(value); }
58 template<typename ConnectionIdT = Aws::String>
59 GetConnectionResult& WithConnectionId(ConnectionIdT&& value) { SetConnectionId(std::forward<ConnectionIdT>(value)); return *this;}
61
63
66 inline const Aws::String& GetDescription() const { return m_description; }
67 template<typename DescriptionT = Aws::String>
68 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
69 template<typename DescriptionT = Aws::String>
70 GetConnectionResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
72
74
77 inline const Aws::String& GetDomainId() const { return m_domainId; }
78 template<typename DomainIdT = Aws::String>
79 void SetDomainId(DomainIdT&& value) { m_domainIdHasBeenSet = true; m_domainId = std::forward<DomainIdT>(value); }
80 template<typename DomainIdT = Aws::String>
81 GetConnectionResult& WithDomainId(DomainIdT&& value) { SetDomainId(std::forward<DomainIdT>(value)); return *this;}
83
85
88 inline const Aws::String& GetDomainUnitId() const { return m_domainUnitId; }
89 template<typename DomainUnitIdT = Aws::String>
90 void SetDomainUnitId(DomainUnitIdT&& value) { m_domainUnitIdHasBeenSet = true; m_domainUnitId = std::forward<DomainUnitIdT>(value); }
91 template<typename DomainUnitIdT = Aws::String>
92 GetConnectionResult& WithDomainUnitId(DomainUnitIdT&& value) { SetDomainUnitId(std::forward<DomainUnitIdT>(value)); return *this;}
94
96
99 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
100 template<typename EnvironmentIdT = Aws::String>
101 void SetEnvironmentId(EnvironmentIdT&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::forward<EnvironmentIdT>(value); }
102 template<typename EnvironmentIdT = Aws::String>
103 GetConnectionResult& WithEnvironmentId(EnvironmentIdT&& value) { SetEnvironmentId(std::forward<EnvironmentIdT>(value)); return *this;}
105
107
110 inline const Aws::String& GetEnvironmentUserRole() const { return m_environmentUserRole; }
111 template<typename EnvironmentUserRoleT = Aws::String>
112 void SetEnvironmentUserRole(EnvironmentUserRoleT&& value) { m_environmentUserRoleHasBeenSet = true; m_environmentUserRole = std::forward<EnvironmentUserRoleT>(value); }
113 template<typename EnvironmentUserRoleT = Aws::String>
114 GetConnectionResult& WithEnvironmentUserRole(EnvironmentUserRoleT&& value) { SetEnvironmentUserRole(std::forward<EnvironmentUserRoleT>(value)); return *this;}
116
118
121 inline const Aws::String& GetName() const { return m_name; }
122 template<typename NameT = Aws::String>
123 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
124 template<typename NameT = Aws::String>
125 GetConnectionResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
127
129
132 inline const Aws::Vector<PhysicalEndpoint>& GetPhysicalEndpoints() const { return m_physicalEndpoints; }
133 template<typename PhysicalEndpointsT = Aws::Vector<PhysicalEndpoint>>
134 void SetPhysicalEndpoints(PhysicalEndpointsT&& value) { m_physicalEndpointsHasBeenSet = true; m_physicalEndpoints = std::forward<PhysicalEndpointsT>(value); }
135 template<typename PhysicalEndpointsT = Aws::Vector<PhysicalEndpoint>>
136 GetConnectionResult& WithPhysicalEndpoints(PhysicalEndpointsT&& value) { SetPhysicalEndpoints(std::forward<PhysicalEndpointsT>(value)); return *this;}
137 template<typename PhysicalEndpointsT = PhysicalEndpoint>
138 GetConnectionResult& AddPhysicalEndpoints(PhysicalEndpointsT&& value) { m_physicalEndpointsHasBeenSet = true; m_physicalEndpoints.emplace_back(std::forward<PhysicalEndpointsT>(value)); return *this; }
140
142
145 inline const Aws::String& GetProjectId() const { return m_projectId; }
146 template<typename ProjectIdT = Aws::String>
147 void SetProjectId(ProjectIdT&& value) { m_projectIdHasBeenSet = true; m_projectId = std::forward<ProjectIdT>(value); }
148 template<typename ProjectIdT = Aws::String>
149 GetConnectionResult& WithProjectId(ProjectIdT&& value) { SetProjectId(std::forward<ProjectIdT>(value)); return *this;}
151
153
156 inline const ConnectionPropertiesOutput& GetProps() const { return m_props; }
157 template<typename PropsT = ConnectionPropertiesOutput>
158 void SetProps(PropsT&& value) { m_propsHasBeenSet = true; m_props = std::forward<PropsT>(value); }
159 template<typename PropsT = ConnectionPropertiesOutput>
160 GetConnectionResult& WithProps(PropsT&& value) { SetProps(std::forward<PropsT>(value)); return *this;}
162
164
167 inline ConnectionType GetType() const { return m_type; }
168 inline void SetType(ConnectionType value) { m_typeHasBeenSet = true; m_type = value; }
169 inline GetConnectionResult& WithType(ConnectionType value) { SetType(value); return *this;}
171
173
174 inline const Aws::String& GetRequestId() const { return m_requestId; }
175 template<typename RequestIdT = Aws::String>
176 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
177 template<typename RequestIdT = Aws::String>
178 GetConnectionResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
180 private:
181
182 ConnectionCredentials m_connectionCredentials;
183 bool m_connectionCredentialsHasBeenSet = false;
184
185 Aws::String m_connectionId;
186 bool m_connectionIdHasBeenSet = false;
187
188 Aws::String m_description;
189 bool m_descriptionHasBeenSet = false;
190
191 Aws::String m_domainId;
192 bool m_domainIdHasBeenSet = false;
193
194 Aws::String m_domainUnitId;
195 bool m_domainUnitIdHasBeenSet = false;
196
197 Aws::String m_environmentId;
198 bool m_environmentIdHasBeenSet = false;
199
200 Aws::String m_environmentUserRole;
201 bool m_environmentUserRoleHasBeenSet = false;
202
203 Aws::String m_name;
204 bool m_nameHasBeenSet = false;
205
206 Aws::Vector<PhysicalEndpoint> m_physicalEndpoints;
207 bool m_physicalEndpointsHasBeenSet = false;
208
209 Aws::String m_projectId;
210 bool m_projectIdHasBeenSet = false;
211
213 bool m_propsHasBeenSet = false;
214
216 bool m_typeHasBeenSet = false;
217
218 Aws::String m_requestId;
219 bool m_requestIdHasBeenSet = false;
220 };
221
222} // namespace Model
223} // namespace DataZone
224} // 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 & 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