AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ConnectionSummary.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/datazone/model/ConnectionPropertiesOutput.h>
11#include <aws/datazone/model/ConnectionType.h>
12#include <aws/datazone/model/PhysicalEndpoint.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace DataZone
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_DATAZONE_API ConnectionSummary() = default;
39 AWS_DATAZONE_API ConnectionSummary(Aws::Utils::Json::JsonView jsonValue);
41 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
49 inline bool ConnectionIdHasBeenSet() const { return m_connectionIdHasBeenSet; }
50 template<typename ConnectionIdT = Aws::String>
51 void SetConnectionId(ConnectionIdT&& value) { m_connectionIdHasBeenSet = true; m_connectionId = std::forward<ConnectionIdT>(value); }
52 template<typename ConnectionIdT = Aws::String>
53 ConnectionSummary& WithConnectionId(ConnectionIdT&& value) { SetConnectionId(std::forward<ConnectionIdT>(value)); return *this;}
55
57
60 inline const Aws::String& GetDomainId() const { return m_domainId; }
61 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
62 template<typename DomainIdT = Aws::String>
63 void SetDomainId(DomainIdT&& value) { m_domainIdHasBeenSet = true; m_domainId = std::forward<DomainIdT>(value); }
64 template<typename DomainIdT = Aws::String>
65 ConnectionSummary& WithDomainId(DomainIdT&& value) { SetDomainId(std::forward<DomainIdT>(value)); return *this;}
67
69
72 inline const Aws::String& GetDomainUnitId() const { return m_domainUnitId; }
73 inline bool DomainUnitIdHasBeenSet() const { return m_domainUnitIdHasBeenSet; }
74 template<typename DomainUnitIdT = Aws::String>
75 void SetDomainUnitId(DomainUnitIdT&& value) { m_domainUnitIdHasBeenSet = true; m_domainUnitId = std::forward<DomainUnitIdT>(value); }
76 template<typename DomainUnitIdT = Aws::String>
77 ConnectionSummary& WithDomainUnitId(DomainUnitIdT&& value) { SetDomainUnitId(std::forward<DomainUnitIdT>(value)); return *this;}
79
81
84 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
85 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
86 template<typename EnvironmentIdT = Aws::String>
87 void SetEnvironmentId(EnvironmentIdT&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::forward<EnvironmentIdT>(value); }
88 template<typename EnvironmentIdT = Aws::String>
89 ConnectionSummary& WithEnvironmentId(EnvironmentIdT&& value) { SetEnvironmentId(std::forward<EnvironmentIdT>(value)); return *this;}
91
93
96 inline const Aws::String& GetName() const { return m_name; }
97 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
98 template<typename NameT = Aws::String>
99 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
100 template<typename NameT = Aws::String>
101 ConnectionSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
103
105
108 inline const Aws::Vector<PhysicalEndpoint>& GetPhysicalEndpoints() const { return m_physicalEndpoints; }
109 inline bool PhysicalEndpointsHasBeenSet() const { return m_physicalEndpointsHasBeenSet; }
110 template<typename PhysicalEndpointsT = Aws::Vector<PhysicalEndpoint>>
111 void SetPhysicalEndpoints(PhysicalEndpointsT&& value) { m_physicalEndpointsHasBeenSet = true; m_physicalEndpoints = std::forward<PhysicalEndpointsT>(value); }
112 template<typename PhysicalEndpointsT = Aws::Vector<PhysicalEndpoint>>
113 ConnectionSummary& WithPhysicalEndpoints(PhysicalEndpointsT&& value) { SetPhysicalEndpoints(std::forward<PhysicalEndpointsT>(value)); return *this;}
114 template<typename PhysicalEndpointsT = PhysicalEndpoint>
115 ConnectionSummary& AddPhysicalEndpoints(PhysicalEndpointsT&& value) { m_physicalEndpointsHasBeenSet = true; m_physicalEndpoints.emplace_back(std::forward<PhysicalEndpointsT>(value)); return *this; }
117
119
122 inline const Aws::String& GetProjectId() const { return m_projectId; }
123 inline bool ProjectIdHasBeenSet() const { return m_projectIdHasBeenSet; }
124 template<typename ProjectIdT = Aws::String>
125 void SetProjectId(ProjectIdT&& value) { m_projectIdHasBeenSet = true; m_projectId = std::forward<ProjectIdT>(value); }
126 template<typename ProjectIdT = Aws::String>
127 ConnectionSummary& WithProjectId(ProjectIdT&& value) { SetProjectId(std::forward<ProjectIdT>(value)); return *this;}
129
131
134 inline const ConnectionPropertiesOutput& GetProps() const { return m_props; }
135 inline bool PropsHasBeenSet() const { return m_propsHasBeenSet; }
136 template<typename PropsT = ConnectionPropertiesOutput>
137 void SetProps(PropsT&& value) { m_propsHasBeenSet = true; m_props = std::forward<PropsT>(value); }
138 template<typename PropsT = ConnectionPropertiesOutput>
139 ConnectionSummary& WithProps(PropsT&& value) { SetProps(std::forward<PropsT>(value)); return *this;}
141
143
146 inline ConnectionType GetType() const { return m_type; }
147 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
148 inline void SetType(ConnectionType value) { m_typeHasBeenSet = true; m_type = value; }
149 inline ConnectionSummary& WithType(ConnectionType value) { SetType(value); return *this;}
151 private:
152
153 Aws::String m_connectionId;
154 bool m_connectionIdHasBeenSet = false;
155
156 Aws::String m_domainId;
157 bool m_domainIdHasBeenSet = false;
158
159 Aws::String m_domainUnitId;
160 bool m_domainUnitIdHasBeenSet = false;
161
162 Aws::String m_environmentId;
163 bool m_environmentIdHasBeenSet = false;
164
165 Aws::String m_name;
166 bool m_nameHasBeenSet = false;
167
168 Aws::Vector<PhysicalEndpoint> m_physicalEndpoints;
169 bool m_physicalEndpointsHasBeenSet = false;
170
171 Aws::String m_projectId;
172 bool m_projectIdHasBeenSet = false;
173
175 bool m_propsHasBeenSet = false;
176
178 bool m_typeHasBeenSet = false;
179 };
180
181} // namespace Model
182} // namespace DataZone
183} // 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)
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