AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateConnectionResult.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/ConnectionPropertiesOutput.h>
11#include <aws/datazone/model/ConnectionScope.h>
12#include <aws/datazone/model/ConnectionType.h>
13#include <aws/datazone/model/PhysicalEndpoint.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace DataZone {
27namespace Model {
29 public:
30 AWS_DATAZONE_API CreateConnectionResult() = default;
33
35
38 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
39 template <typename ConnectionIdT = Aws::String>
40 void SetConnectionId(ConnectionIdT&& value) {
41 m_connectionIdHasBeenSet = true;
42 m_connectionId = std::forward<ConnectionIdT>(value);
43 }
44 template <typename ConnectionIdT = Aws::String>
45 CreateConnectionResult& WithConnectionId(ConnectionIdT&& value) {
46 SetConnectionId(std::forward<ConnectionIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetDescription() const { return m_description; }
56 template <typename DescriptionT = Aws::String>
57 void SetDescription(DescriptionT&& value) {
58 m_descriptionHasBeenSet = true;
59 m_description = std::forward<DescriptionT>(value);
60 }
61 template <typename DescriptionT = Aws::String>
62 CreateConnectionResult& WithDescription(DescriptionT&& value) {
63 SetDescription(std::forward<DescriptionT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetDomainId() const { return m_domainId; }
73 template <typename DomainIdT = Aws::String>
74 void SetDomainId(DomainIdT&& value) {
75 m_domainIdHasBeenSet = true;
76 m_domainId = std::forward<DomainIdT>(value);
77 }
78 template <typename DomainIdT = Aws::String>
80 SetDomainId(std::forward<DomainIdT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::String& GetDomainUnitId() const { return m_domainUnitId; }
90 template <typename DomainUnitIdT = Aws::String>
91 void SetDomainUnitId(DomainUnitIdT&& value) {
92 m_domainUnitIdHasBeenSet = true;
93 m_domainUnitId = std::forward<DomainUnitIdT>(value);
94 }
95 template <typename DomainUnitIdT = Aws::String>
96 CreateConnectionResult& WithDomainUnitId(DomainUnitIdT&& value) {
97 SetDomainUnitId(std::forward<DomainUnitIdT>(value));
98 return *this;
99 }
101
103
106 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
107 template <typename EnvironmentIdT = Aws::String>
108 void SetEnvironmentId(EnvironmentIdT&& value) {
109 m_environmentIdHasBeenSet = true;
110 m_environmentId = std::forward<EnvironmentIdT>(value);
111 }
112 template <typename EnvironmentIdT = Aws::String>
113 CreateConnectionResult& WithEnvironmentId(EnvironmentIdT&& value) {
114 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
115 return *this;
116 }
118
120
123 inline const Aws::String& GetName() const { return m_name; }
124 template <typename NameT = Aws::String>
125 void SetName(NameT&& value) {
126 m_nameHasBeenSet = true;
127 m_name = std::forward<NameT>(value);
128 }
129 template <typename NameT = Aws::String>
131 SetName(std::forward<NameT>(value));
132 return *this;
133 }
135
137
140 inline const Aws::Vector<PhysicalEndpoint>& GetPhysicalEndpoints() const { return m_physicalEndpoints; }
141 template <typename PhysicalEndpointsT = Aws::Vector<PhysicalEndpoint>>
142 void SetPhysicalEndpoints(PhysicalEndpointsT&& value) {
143 m_physicalEndpointsHasBeenSet = true;
144 m_physicalEndpoints = std::forward<PhysicalEndpointsT>(value);
145 }
146 template <typename PhysicalEndpointsT = Aws::Vector<PhysicalEndpoint>>
147 CreateConnectionResult& WithPhysicalEndpoints(PhysicalEndpointsT&& value) {
148 SetPhysicalEndpoints(std::forward<PhysicalEndpointsT>(value));
149 return *this;
150 }
151 template <typename PhysicalEndpointsT = PhysicalEndpoint>
152 CreateConnectionResult& AddPhysicalEndpoints(PhysicalEndpointsT&& value) {
153 m_physicalEndpointsHasBeenSet = true;
154 m_physicalEndpoints.emplace_back(std::forward<PhysicalEndpointsT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::String& GetProjectId() const { return m_projectId; }
164 template <typename ProjectIdT = Aws::String>
165 void SetProjectId(ProjectIdT&& value) {
166 m_projectIdHasBeenSet = true;
167 m_projectId = std::forward<ProjectIdT>(value);
168 }
169 template <typename ProjectIdT = Aws::String>
171 SetProjectId(std::forward<ProjectIdT>(value));
172 return *this;
173 }
175
177
180 inline const ConnectionPropertiesOutput& GetProps() const { return m_props; }
181 template <typename PropsT = ConnectionPropertiesOutput>
182 void SetProps(PropsT&& value) {
183 m_propsHasBeenSet = true;
184 m_props = std::forward<PropsT>(value);
185 }
186 template <typename PropsT = ConnectionPropertiesOutput>
188 SetProps(std::forward<PropsT>(value));
189 return *this;
190 }
192
194
197 inline ConnectionType GetType() const { return m_type; }
198 inline void SetType(ConnectionType value) {
199 m_typeHasBeenSet = true;
200 m_type = value;
201 }
203 SetType(value);
204 return *this;
205 }
207
209
212 inline ConnectionScope GetScope() const { return m_scope; }
213 inline void SetScope(ConnectionScope value) {
214 m_scopeHasBeenSet = true;
215 m_scope = value;
216 }
218 SetScope(value);
219 return *this;
220 }
222
224
225 inline const Aws::String& GetRequestId() const { return m_requestId; }
226 template <typename RequestIdT = Aws::String>
227 void SetRequestId(RequestIdT&& value) {
228 m_requestIdHasBeenSet = true;
229 m_requestId = std::forward<RequestIdT>(value);
230 }
231 template <typename RequestIdT = Aws::String>
233 SetRequestId(std::forward<RequestIdT>(value));
234 return *this;
235 }
237 private:
238 Aws::String m_connectionId;
239
240 Aws::String m_description;
241
242 Aws::String m_domainId;
243
244 Aws::String m_domainUnitId;
245
246 Aws::String m_environmentId;
247
248 Aws::String m_name;
249
250 Aws::Vector<PhysicalEndpoint> m_physicalEndpoints;
251
252 Aws::String m_projectId;
253
255
257
259
260 Aws::String m_requestId;
261 bool m_connectionIdHasBeenSet = false;
262 bool m_descriptionHasBeenSet = false;
263 bool m_domainIdHasBeenSet = false;
264 bool m_domainUnitIdHasBeenSet = false;
265 bool m_environmentIdHasBeenSet = false;
266 bool m_nameHasBeenSet = false;
267 bool m_physicalEndpointsHasBeenSet = false;
268 bool m_projectIdHasBeenSet = false;
269 bool m_propsHasBeenSet = false;
270 bool m_typeHasBeenSet = false;
271 bool m_scopeHasBeenSet = false;
272 bool m_requestIdHasBeenSet = false;
273};
274
275} // namespace Model
276} // namespace DataZone
277} // 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)
CreateConnectionResult & WithProjectId(ProjectIdT &&value)
CreateConnectionResult & WithScope(ConnectionScope value)
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 & 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