AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
ConnectionSummary.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/Configuration.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 {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace DataZone {
26namespace Model {
27
34 public:
35 AWS_DATAZONE_API ConnectionSummary() = default;
36 AWS_DATAZONE_API ConnectionSummary(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::Vector<Configuration>& GetConfigurations() const { return m_configurations; }
45 inline bool ConfigurationsHasBeenSet() const { return m_configurationsHasBeenSet; }
46 template <typename ConfigurationsT = Aws::Vector<Configuration>>
47 void SetConfigurations(ConfigurationsT&& value) {
48 m_configurationsHasBeenSet = true;
49 m_configurations = std::forward<ConfigurationsT>(value);
50 }
51 template <typename ConfigurationsT = Aws::Vector<Configuration>>
52 ConnectionSummary& WithConfigurations(ConfigurationsT&& value) {
53 SetConfigurations(std::forward<ConfigurationsT>(value));
54 return *this;
55 }
56 template <typename ConfigurationsT = Configuration>
57 ConnectionSummary& AddConfigurations(ConfigurationsT&& value) {
58 m_configurationsHasBeenSet = true;
59 m_configurations.emplace_back(std::forward<ConfigurationsT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
69 inline bool ConnectionIdHasBeenSet() const { return m_connectionIdHasBeenSet; }
70 template <typename ConnectionIdT = Aws::String>
71 void SetConnectionId(ConnectionIdT&& value) {
72 m_connectionIdHasBeenSet = true;
73 m_connectionId = std::forward<ConnectionIdT>(value);
74 }
75 template <typename ConnectionIdT = Aws::String>
76 ConnectionSummary& WithConnectionId(ConnectionIdT&& value) {
77 SetConnectionId(std::forward<ConnectionIdT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::String& GetDomainId() const { return m_domainId; }
87 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
88 template <typename DomainIdT = Aws::String>
89 void SetDomainId(DomainIdT&& value) {
90 m_domainIdHasBeenSet = true;
91 m_domainId = std::forward<DomainIdT>(value);
92 }
93 template <typename DomainIdT = Aws::String>
94 ConnectionSummary& WithDomainId(DomainIdT&& value) {
95 SetDomainId(std::forward<DomainIdT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::String& GetDomainUnitId() const { return m_domainUnitId; }
105 inline bool DomainUnitIdHasBeenSet() const { return m_domainUnitIdHasBeenSet; }
106 template <typename DomainUnitIdT = Aws::String>
107 void SetDomainUnitId(DomainUnitIdT&& value) {
108 m_domainUnitIdHasBeenSet = true;
109 m_domainUnitId = std::forward<DomainUnitIdT>(value);
110 }
111 template <typename DomainUnitIdT = Aws::String>
112 ConnectionSummary& WithDomainUnitId(DomainUnitIdT&& value) {
113 SetDomainUnitId(std::forward<DomainUnitIdT>(value));
114 return *this;
115 }
117
119
122 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
123 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
124 template <typename EnvironmentIdT = Aws::String>
125 void SetEnvironmentId(EnvironmentIdT&& value) {
126 m_environmentIdHasBeenSet = true;
127 m_environmentId = std::forward<EnvironmentIdT>(value);
128 }
129 template <typename EnvironmentIdT = Aws::String>
130 ConnectionSummary& WithEnvironmentId(EnvironmentIdT&& value) {
131 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
132 return *this;
133 }
135
137
140 inline const Aws::String& GetName() const { return m_name; }
141 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
142 template <typename NameT = Aws::String>
143 void SetName(NameT&& value) {
144 m_nameHasBeenSet = true;
145 m_name = std::forward<NameT>(value);
146 }
147 template <typename NameT = Aws::String>
148 ConnectionSummary& WithName(NameT&& value) {
149 SetName(std::forward<NameT>(value));
150 return *this;
151 }
153
155
158 inline const Aws::Vector<PhysicalEndpoint>& GetPhysicalEndpoints() const { return m_physicalEndpoints; }
159 inline bool PhysicalEndpointsHasBeenSet() const { return m_physicalEndpointsHasBeenSet; }
160 template <typename PhysicalEndpointsT = Aws::Vector<PhysicalEndpoint>>
161 void SetPhysicalEndpoints(PhysicalEndpointsT&& value) {
162 m_physicalEndpointsHasBeenSet = true;
163 m_physicalEndpoints = std::forward<PhysicalEndpointsT>(value);
164 }
165 template <typename PhysicalEndpointsT = Aws::Vector<PhysicalEndpoint>>
166 ConnectionSummary& WithPhysicalEndpoints(PhysicalEndpointsT&& value) {
167 SetPhysicalEndpoints(std::forward<PhysicalEndpointsT>(value));
168 return *this;
169 }
170 template <typename PhysicalEndpointsT = PhysicalEndpoint>
171 ConnectionSummary& AddPhysicalEndpoints(PhysicalEndpointsT&& value) {
172 m_physicalEndpointsHasBeenSet = true;
173 m_physicalEndpoints.emplace_back(std::forward<PhysicalEndpointsT>(value));
174 return *this;
175 }
177
179
182 inline const Aws::String& GetProjectId() const { return m_projectId; }
183 inline bool ProjectIdHasBeenSet() const { return m_projectIdHasBeenSet; }
184 template <typename ProjectIdT = Aws::String>
185 void SetProjectId(ProjectIdT&& value) {
186 m_projectIdHasBeenSet = true;
187 m_projectId = std::forward<ProjectIdT>(value);
188 }
189 template <typename ProjectIdT = Aws::String>
190 ConnectionSummary& WithProjectId(ProjectIdT&& value) {
191 SetProjectId(std::forward<ProjectIdT>(value));
192 return *this;
193 }
195
197
200 inline const ConnectionPropertiesOutput& GetProps() const { return m_props; }
201 inline bool PropsHasBeenSet() const { return m_propsHasBeenSet; }
202 template <typename PropsT = ConnectionPropertiesOutput>
203 void SetProps(PropsT&& value) {
204 m_propsHasBeenSet = true;
205 m_props = std::forward<PropsT>(value);
206 }
207 template <typename PropsT = ConnectionPropertiesOutput>
208 ConnectionSummary& WithProps(PropsT&& value) {
209 SetProps(std::forward<PropsT>(value));
210 return *this;
211 }
213
215
218 inline ConnectionType GetType() const { return m_type; }
219 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
220 inline void SetType(ConnectionType value) {
221 m_typeHasBeenSet = true;
222 m_type = value;
223 }
225 SetType(value);
226 return *this;
227 }
229
231
234 inline ConnectionScope GetScope() const { return m_scope; }
235 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
236 inline void SetScope(ConnectionScope value) {
237 m_scopeHasBeenSet = true;
238 m_scope = value;
239 }
241 SetScope(value);
242 return *this;
243 }
245 private:
246 Aws::Vector<Configuration> m_configurations;
247
248 Aws::String m_connectionId;
249
250 Aws::String m_domainId;
251
252 Aws::String m_domainUnitId;
253
254 Aws::String m_environmentId;
255
256 Aws::String m_name;
257
258 Aws::Vector<PhysicalEndpoint> m_physicalEndpoints;
259
260 Aws::String m_projectId;
261
263
265
267 bool m_configurationsHasBeenSet = false;
268 bool m_connectionIdHasBeenSet = false;
269 bool m_domainIdHasBeenSet = false;
270 bool m_domainUnitIdHasBeenSet = false;
271 bool m_environmentIdHasBeenSet = false;
272 bool m_nameHasBeenSet = false;
273 bool m_physicalEndpointsHasBeenSet = false;
274 bool m_projectIdHasBeenSet = false;
275 bool m_propsHasBeenSet = false;
276 bool m_typeHasBeenSet = false;
277 bool m_scopeHasBeenSet = false;
278};
279
280} // namespace Model
281} // namespace DataZone
282} // namespace Aws
void SetDomainUnitId(DomainUnitIdT &&value)
const Aws::String & GetDomainUnitId() const
const ConnectionPropertiesOutput & GetProps() const
ConnectionSummary & WithDomainId(DomainIdT &&value)
ConnectionSummary & WithConfigurations(ConfigurationsT &&value)
ConnectionSummary & WithConnectionId(ConnectionIdT &&value)
ConnectionSummary & WithType(ConnectionType value)
const Aws::Vector< Configuration > & GetConfigurations() const
AWS_DATAZONE_API ConnectionSummary(Aws::Utils::Json::JsonView jsonValue)
void SetConfigurations(ConfigurationsT &&value)
const Aws::String & GetEnvironmentId() const
void SetEnvironmentId(EnvironmentIdT &&value)
ConnectionSummary & WithPhysicalEndpoints(PhysicalEndpointsT &&value)
const Aws::String & GetConnectionId() const
void SetPhysicalEndpoints(PhysicalEndpointsT &&value)
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DATAZONE_API ConnectionSummary()=default
ConnectionSummary & AddPhysicalEndpoints(PhysicalEndpointsT &&value)
ConnectionSummary & WithScope(ConnectionScope value)
const Aws::String & GetDomainId() const
const Aws::Vector< PhysicalEndpoint > & GetPhysicalEndpoints() const
ConnectionSummary & WithProjectId(ProjectIdT &&value)
ConnectionSummary & WithEnvironmentId(EnvironmentIdT &&value)
AWS_DATAZONE_API ConnectionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetConnectionId(ConnectionIdT &&value)
const Aws::String & GetProjectId() const
ConnectionSummary & AddConfigurations(ConfigurationsT &&value)
ConnectionSummary & WithDomainUnitId(DomainUnitIdT &&value)
ConnectionSummary & WithName(NameT &&value)
ConnectionSummary & WithProps(PropsT &&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