AWS SDK for C++

AWS SDK for C++ Version 1.11.744

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/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 {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace DataZone {
25namespace Model {
26
33 public:
34 AWS_DATAZONE_API ConnectionSummary() = default;
35 AWS_DATAZONE_API ConnectionSummary(Aws::Utils::Json::JsonView jsonValue);
37 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
44 inline bool ConnectionIdHasBeenSet() const { return m_connectionIdHasBeenSet; }
45 template <typename ConnectionIdT = Aws::String>
46 void SetConnectionId(ConnectionIdT&& value) {
47 m_connectionIdHasBeenSet = true;
48 m_connectionId = std::forward<ConnectionIdT>(value);
49 }
50 template <typename ConnectionIdT = Aws::String>
51 ConnectionSummary& WithConnectionId(ConnectionIdT&& value) {
52 SetConnectionId(std::forward<ConnectionIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetDomainId() const { return m_domainId; }
62 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
63 template <typename DomainIdT = Aws::String>
64 void SetDomainId(DomainIdT&& value) {
65 m_domainIdHasBeenSet = true;
66 m_domainId = std::forward<DomainIdT>(value);
67 }
68 template <typename DomainIdT = Aws::String>
69 ConnectionSummary& WithDomainId(DomainIdT&& value) {
70 SetDomainId(std::forward<DomainIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetDomainUnitId() const { return m_domainUnitId; }
80 inline bool DomainUnitIdHasBeenSet() const { return m_domainUnitIdHasBeenSet; }
81 template <typename DomainUnitIdT = Aws::String>
82 void SetDomainUnitId(DomainUnitIdT&& value) {
83 m_domainUnitIdHasBeenSet = true;
84 m_domainUnitId = std::forward<DomainUnitIdT>(value);
85 }
86 template <typename DomainUnitIdT = Aws::String>
87 ConnectionSummary& WithDomainUnitId(DomainUnitIdT&& value) {
88 SetDomainUnitId(std::forward<DomainUnitIdT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
98 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
99 template <typename EnvironmentIdT = Aws::String>
100 void SetEnvironmentId(EnvironmentIdT&& value) {
101 m_environmentIdHasBeenSet = true;
102 m_environmentId = std::forward<EnvironmentIdT>(value);
103 }
104 template <typename EnvironmentIdT = Aws::String>
105 ConnectionSummary& WithEnvironmentId(EnvironmentIdT&& value) {
106 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetName() const { return m_name; }
116 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
117 template <typename NameT = Aws::String>
118 void SetName(NameT&& value) {
119 m_nameHasBeenSet = true;
120 m_name = std::forward<NameT>(value);
121 }
122 template <typename NameT = Aws::String>
123 ConnectionSummary& WithName(NameT&& value) {
124 SetName(std::forward<NameT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::Vector<PhysicalEndpoint>& GetPhysicalEndpoints() const { return m_physicalEndpoints; }
134 inline bool PhysicalEndpointsHasBeenSet() const { return m_physicalEndpointsHasBeenSet; }
135 template <typename PhysicalEndpointsT = Aws::Vector<PhysicalEndpoint>>
136 void SetPhysicalEndpoints(PhysicalEndpointsT&& value) {
137 m_physicalEndpointsHasBeenSet = true;
138 m_physicalEndpoints = std::forward<PhysicalEndpointsT>(value);
139 }
140 template <typename PhysicalEndpointsT = Aws::Vector<PhysicalEndpoint>>
141 ConnectionSummary& WithPhysicalEndpoints(PhysicalEndpointsT&& value) {
142 SetPhysicalEndpoints(std::forward<PhysicalEndpointsT>(value));
143 return *this;
144 }
145 template <typename PhysicalEndpointsT = PhysicalEndpoint>
146 ConnectionSummary& AddPhysicalEndpoints(PhysicalEndpointsT&& value) {
147 m_physicalEndpointsHasBeenSet = true;
148 m_physicalEndpoints.emplace_back(std::forward<PhysicalEndpointsT>(value));
149 return *this;
150 }
152
154
157 inline const Aws::String& GetProjectId() const { return m_projectId; }
158 inline bool ProjectIdHasBeenSet() const { return m_projectIdHasBeenSet; }
159 template <typename ProjectIdT = Aws::String>
160 void SetProjectId(ProjectIdT&& value) {
161 m_projectIdHasBeenSet = true;
162 m_projectId = std::forward<ProjectIdT>(value);
163 }
164 template <typename ProjectIdT = Aws::String>
165 ConnectionSummary& WithProjectId(ProjectIdT&& value) {
166 SetProjectId(std::forward<ProjectIdT>(value));
167 return *this;
168 }
170
172
175 inline const ConnectionPropertiesOutput& GetProps() const { return m_props; }
176 inline bool PropsHasBeenSet() const { return m_propsHasBeenSet; }
177 template <typename PropsT = ConnectionPropertiesOutput>
178 void SetProps(PropsT&& value) {
179 m_propsHasBeenSet = true;
180 m_props = std::forward<PropsT>(value);
181 }
182 template <typename PropsT = ConnectionPropertiesOutput>
183 ConnectionSummary& WithProps(PropsT&& value) {
184 SetProps(std::forward<PropsT>(value));
185 return *this;
186 }
188
190
193 inline ConnectionType GetType() const { return m_type; }
194 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
195 inline void SetType(ConnectionType value) {
196 m_typeHasBeenSet = true;
197 m_type = value;
198 }
200 SetType(value);
201 return *this;
202 }
204
206
209 inline ConnectionScope GetScope() const { return m_scope; }
210 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
211 inline void SetScope(ConnectionScope value) {
212 m_scopeHasBeenSet = true;
213 m_scope = value;
214 }
216 SetScope(value);
217 return *this;
218 }
220 private:
221 Aws::String m_connectionId;
222
223 Aws::String m_domainId;
224
225 Aws::String m_domainUnitId;
226
227 Aws::String m_environmentId;
228
229 Aws::String m_name;
230
231 Aws::Vector<PhysicalEndpoint> m_physicalEndpoints;
232
233 Aws::String m_projectId;
234
236
238
240 bool m_connectionIdHasBeenSet = false;
241 bool m_domainIdHasBeenSet = false;
242 bool m_domainUnitIdHasBeenSet = false;
243 bool m_environmentIdHasBeenSet = false;
244 bool m_nameHasBeenSet = false;
245 bool m_physicalEndpointsHasBeenSet = false;
246 bool m_projectIdHasBeenSet = false;
247 bool m_propsHasBeenSet = false;
248 bool m_typeHasBeenSet = false;
249 bool m_scopeHasBeenSet = false;
250};
251
252} // namespace Model
253} // namespace DataZone
254} // namespace Aws
void SetDomainUnitId(DomainUnitIdT &&value)
const Aws::String & GetDomainUnitId() const
const ConnectionPropertiesOutput & GetProps() const
ConnectionSummary & WithDomainId(DomainIdT &&value)
ConnectionSummary & WithConnectionId(ConnectionIdT &&value)
ConnectionSummary & WithType(ConnectionType value)
AWS_DATAZONE_API ConnectionSummary(Aws::Utils::Json::JsonView jsonValue)
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 & 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