AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
CreateConnectionResult.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/ConnectionPropertiesOutput.h>
13#include <aws/datazone/model/ConnectionScope.h>
14#include <aws/datazone/model/ConnectionType.h>
15#include <aws/datazone/model/PhysicalEndpoint.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace DataZone {
29namespace Model {
31 public:
32 AWS_DATAZONE_API CreateConnectionResult() = default;
35
37
40 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
41 template <typename ConnectionIdT = Aws::String>
42 void SetConnectionId(ConnectionIdT&& value) {
43 m_connectionIdHasBeenSet = true;
44 m_connectionId = std::forward<ConnectionIdT>(value);
45 }
46 template <typename ConnectionIdT = Aws::String>
47 CreateConnectionResult& WithConnectionId(ConnectionIdT&& value) {
48 SetConnectionId(std::forward<ConnectionIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Vector<Configuration>& GetConfigurations() const { return m_configurations; }
58 template <typename ConfigurationsT = Aws::Vector<Configuration>>
59 void SetConfigurations(ConfigurationsT&& value) {
60 m_configurationsHasBeenSet = true;
61 m_configurations = std::forward<ConfigurationsT>(value);
62 }
63 template <typename ConfigurationsT = Aws::Vector<Configuration>>
64 CreateConnectionResult& WithConfigurations(ConfigurationsT&& value) {
65 SetConfigurations(std::forward<ConfigurationsT>(value));
66 return *this;
67 }
68 template <typename ConfigurationsT = Configuration>
69 CreateConnectionResult& AddConfigurations(ConfigurationsT&& value) {
70 m_configurationsHasBeenSet = true;
71 m_configurations.emplace_back(std::forward<ConfigurationsT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetDescription() const { return m_description; }
81 template <typename DescriptionT = Aws::String>
82 void SetDescription(DescriptionT&& value) {
83 m_descriptionHasBeenSet = true;
84 m_description = std::forward<DescriptionT>(value);
85 }
86 template <typename DescriptionT = Aws::String>
87 CreateConnectionResult& WithDescription(DescriptionT&& value) {
88 SetDescription(std::forward<DescriptionT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetDomainId() const { return m_domainId; }
98 template <typename DomainIdT = Aws::String>
99 void SetDomainId(DomainIdT&& value) {
100 m_domainIdHasBeenSet = true;
101 m_domainId = std::forward<DomainIdT>(value);
102 }
103 template <typename DomainIdT = Aws::String>
105 SetDomainId(std::forward<DomainIdT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetDomainUnitId() const { return m_domainUnitId; }
115 template <typename DomainUnitIdT = Aws::String>
116 void SetDomainUnitId(DomainUnitIdT&& value) {
117 m_domainUnitIdHasBeenSet = true;
118 m_domainUnitId = std::forward<DomainUnitIdT>(value);
119 }
120 template <typename DomainUnitIdT = Aws::String>
121 CreateConnectionResult& WithDomainUnitId(DomainUnitIdT&& value) {
122 SetDomainUnitId(std::forward<DomainUnitIdT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
132 template <typename EnvironmentIdT = Aws::String>
133 void SetEnvironmentId(EnvironmentIdT&& value) {
134 m_environmentIdHasBeenSet = true;
135 m_environmentId = std::forward<EnvironmentIdT>(value);
136 }
137 template <typename EnvironmentIdT = Aws::String>
138 CreateConnectionResult& WithEnvironmentId(EnvironmentIdT&& value) {
139 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::String& GetName() const { return m_name; }
149 template <typename NameT = Aws::String>
150 void SetName(NameT&& value) {
151 m_nameHasBeenSet = true;
152 m_name = std::forward<NameT>(value);
153 }
154 template <typename NameT = Aws::String>
156 SetName(std::forward<NameT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::Vector<PhysicalEndpoint>& GetPhysicalEndpoints() const { return m_physicalEndpoints; }
166 template <typename PhysicalEndpointsT = Aws::Vector<PhysicalEndpoint>>
167 void SetPhysicalEndpoints(PhysicalEndpointsT&& value) {
168 m_physicalEndpointsHasBeenSet = true;
169 m_physicalEndpoints = std::forward<PhysicalEndpointsT>(value);
170 }
171 template <typename PhysicalEndpointsT = Aws::Vector<PhysicalEndpoint>>
172 CreateConnectionResult& WithPhysicalEndpoints(PhysicalEndpointsT&& value) {
173 SetPhysicalEndpoints(std::forward<PhysicalEndpointsT>(value));
174 return *this;
175 }
176 template <typename PhysicalEndpointsT = PhysicalEndpoint>
177 CreateConnectionResult& AddPhysicalEndpoints(PhysicalEndpointsT&& value) {
178 m_physicalEndpointsHasBeenSet = true;
179 m_physicalEndpoints.emplace_back(std::forward<PhysicalEndpointsT>(value));
180 return *this;
181 }
183
185
188 inline const Aws::String& GetProjectId() const { return m_projectId; }
189 template <typename ProjectIdT = Aws::String>
190 void SetProjectId(ProjectIdT&& value) {
191 m_projectIdHasBeenSet = true;
192 m_projectId = std::forward<ProjectIdT>(value);
193 }
194 template <typename ProjectIdT = Aws::String>
196 SetProjectId(std::forward<ProjectIdT>(value));
197 return *this;
198 }
200
202
205 inline const ConnectionPropertiesOutput& GetProps() const { return m_props; }
206 template <typename PropsT = ConnectionPropertiesOutput>
207 void SetProps(PropsT&& value) {
208 m_propsHasBeenSet = true;
209 m_props = std::forward<PropsT>(value);
210 }
211 template <typename PropsT = ConnectionPropertiesOutput>
213 SetProps(std::forward<PropsT>(value));
214 return *this;
215 }
217
219
222 inline ConnectionType GetType() const { return m_type; }
223 inline void SetType(ConnectionType value) {
224 m_typeHasBeenSet = true;
225 m_type = value;
226 }
228 SetType(value);
229 return *this;
230 }
232
234
237 inline ConnectionScope GetScope() const { return m_scope; }
238 inline void SetScope(ConnectionScope value) {
239 m_scopeHasBeenSet = true;
240 m_scope = value;
241 }
243 SetScope(value);
244 return *this;
245 }
247
249
250 inline const Aws::String& GetRequestId() const { return m_requestId; }
251 template <typename RequestIdT = Aws::String>
252 void SetRequestId(RequestIdT&& value) {
253 m_requestIdHasBeenSet = true;
254 m_requestId = std::forward<RequestIdT>(value);
255 }
256 template <typename RequestIdT = Aws::String>
258 SetRequestId(std::forward<RequestIdT>(value));
259 return *this;
260 }
262 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
263
264 private:
265 Aws::String m_connectionId;
266
267 Aws::Vector<Configuration> m_configurations;
268
269 Aws::String m_description;
270
271 Aws::String m_domainId;
272
273 Aws::String m_domainUnitId;
274
275 Aws::String m_environmentId;
276
277 Aws::String m_name;
278
279 Aws::Vector<PhysicalEndpoint> m_physicalEndpoints;
280
281 Aws::String m_projectId;
282
284
286
288
289 Aws::String m_requestId;
290 Aws::Http::HttpResponseCode m_HttpResponseCode;
291 bool m_connectionIdHasBeenSet = false;
292 bool m_configurationsHasBeenSet = false;
293 bool m_descriptionHasBeenSet = false;
294 bool m_domainIdHasBeenSet = false;
295 bool m_domainUnitIdHasBeenSet = false;
296 bool m_environmentIdHasBeenSet = false;
297 bool m_nameHasBeenSet = false;
298 bool m_physicalEndpointsHasBeenSet = false;
299 bool m_projectIdHasBeenSet = false;
300 bool m_propsHasBeenSet = false;
301 bool m_typeHasBeenSet = false;
302 bool m_scopeHasBeenSet = false;
303 bool m_requestIdHasBeenSet = false;
304};
305
306} // namespace Model
307} // namespace DataZone
308} // namespace Aws
CreateConnectionResult & WithConnectionId(ConnectionIdT &&value)
AWS_DATAZONE_API CreateConnectionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateConnectionResult & WithEnvironmentId(EnvironmentIdT &&value)
CreateConnectionResult & AddPhysicalEndpoints(PhysicalEndpointsT &&value)
CreateConnectionResult & WithName(NameT &&value)
CreateConnectionResult & WithDescription(DescriptionT &&value)
const Aws::Vector< Configuration > & GetConfigurations() const
CreateConnectionResult & WithProjectId(ProjectIdT &&value)
CreateConnectionResult & WithScope(ConnectionScope value)
CreateConnectionResult & WithConfigurations(ConfigurationsT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Vector< PhysicalEndpoint > & GetPhysicalEndpoints() const
AWS_DATAZONE_API CreateConnectionResult()=default
const ConnectionPropertiesOutput & GetProps() const
AWS_DATAZONE_API CreateConnectionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetPhysicalEndpoints(PhysicalEndpointsT &&value)
CreateConnectionResult & WithDomainUnitId(DomainUnitIdT &&value)
CreateConnectionResult & WithType(ConnectionType value)
CreateConnectionResult & WithRequestId(RequestIdT &&value)
CreateConnectionResult & WithPhysicalEndpoints(PhysicalEndpointsT &&value)
CreateConnectionResult & AddConfigurations(ConfigurationsT &&value)
CreateConnectionResult & WithProps(PropsT &&value)
CreateConnectionResult & WithDomainId(DomainIdT &&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