AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
Connection.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/networkmanager/NetworkManager_EXPORTS.h>
11#include <aws/networkmanager/model/ConnectionState.h>
12#include <aws/networkmanager/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace NetworkManager {
24namespace Model {
25
32 public:
33 AWS_NETWORKMANAGER_API Connection() = default;
34 AWS_NETWORKMANAGER_API Connection(Aws::Utils::Json::JsonView jsonValue);
35 AWS_NETWORKMANAGER_API Connection& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
43 inline bool ConnectionIdHasBeenSet() const { return m_connectionIdHasBeenSet; }
44 template <typename ConnectionIdT = Aws::String>
45 void SetConnectionId(ConnectionIdT&& value) {
46 m_connectionIdHasBeenSet = true;
47 m_connectionId = std::forward<ConnectionIdT>(value);
48 }
49 template <typename ConnectionIdT = Aws::String>
50 Connection& WithConnectionId(ConnectionIdT&& value) {
51 SetConnectionId(std::forward<ConnectionIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetConnectionArn() const { return m_connectionArn; }
61 inline bool ConnectionArnHasBeenSet() const { return m_connectionArnHasBeenSet; }
62 template <typename ConnectionArnT = Aws::String>
63 void SetConnectionArn(ConnectionArnT&& value) {
64 m_connectionArnHasBeenSet = true;
65 m_connectionArn = std::forward<ConnectionArnT>(value);
66 }
67 template <typename ConnectionArnT = Aws::String>
68 Connection& WithConnectionArn(ConnectionArnT&& value) {
69 SetConnectionArn(std::forward<ConnectionArnT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetGlobalNetworkId() const { return m_globalNetworkId; }
79 inline bool GlobalNetworkIdHasBeenSet() const { return m_globalNetworkIdHasBeenSet; }
80 template <typename GlobalNetworkIdT = Aws::String>
81 void SetGlobalNetworkId(GlobalNetworkIdT&& value) {
82 m_globalNetworkIdHasBeenSet = true;
83 m_globalNetworkId = std::forward<GlobalNetworkIdT>(value);
84 }
85 template <typename GlobalNetworkIdT = Aws::String>
86 Connection& WithGlobalNetworkId(GlobalNetworkIdT&& value) {
87 SetGlobalNetworkId(std::forward<GlobalNetworkIdT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetDeviceId() const { return m_deviceId; }
97 inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
98 template <typename DeviceIdT = Aws::String>
99 void SetDeviceId(DeviceIdT&& value) {
100 m_deviceIdHasBeenSet = true;
101 m_deviceId = std::forward<DeviceIdT>(value);
102 }
103 template <typename DeviceIdT = Aws::String>
104 Connection& WithDeviceId(DeviceIdT&& value) {
105 SetDeviceId(std::forward<DeviceIdT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetConnectedDeviceId() const { return m_connectedDeviceId; }
115 inline bool ConnectedDeviceIdHasBeenSet() const { return m_connectedDeviceIdHasBeenSet; }
116 template <typename ConnectedDeviceIdT = Aws::String>
117 void SetConnectedDeviceId(ConnectedDeviceIdT&& value) {
118 m_connectedDeviceIdHasBeenSet = true;
119 m_connectedDeviceId = std::forward<ConnectedDeviceIdT>(value);
120 }
121 template <typename ConnectedDeviceIdT = Aws::String>
122 Connection& WithConnectedDeviceId(ConnectedDeviceIdT&& value) {
123 SetConnectedDeviceId(std::forward<ConnectedDeviceIdT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::String& GetLinkId() const { return m_linkId; }
133 inline bool LinkIdHasBeenSet() const { return m_linkIdHasBeenSet; }
134 template <typename LinkIdT = Aws::String>
135 void SetLinkId(LinkIdT&& value) {
136 m_linkIdHasBeenSet = true;
137 m_linkId = std::forward<LinkIdT>(value);
138 }
139 template <typename LinkIdT = Aws::String>
140 Connection& WithLinkId(LinkIdT&& value) {
141 SetLinkId(std::forward<LinkIdT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::String& GetConnectedLinkId() const { return m_connectedLinkId; }
151 inline bool ConnectedLinkIdHasBeenSet() const { return m_connectedLinkIdHasBeenSet; }
152 template <typename ConnectedLinkIdT = Aws::String>
153 void SetConnectedLinkId(ConnectedLinkIdT&& value) {
154 m_connectedLinkIdHasBeenSet = true;
155 m_connectedLinkId = std::forward<ConnectedLinkIdT>(value);
156 }
157 template <typename ConnectedLinkIdT = Aws::String>
158 Connection& WithConnectedLinkId(ConnectedLinkIdT&& value) {
159 SetConnectedLinkId(std::forward<ConnectedLinkIdT>(value));
160 return *this;
161 }
163
165
168 inline const Aws::String& GetDescription() const { return m_description; }
169 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
170 template <typename DescriptionT = Aws::String>
171 void SetDescription(DescriptionT&& value) {
172 m_descriptionHasBeenSet = true;
173 m_description = std::forward<DescriptionT>(value);
174 }
175 template <typename DescriptionT = Aws::String>
176 Connection& WithDescription(DescriptionT&& value) {
177 SetDescription(std::forward<DescriptionT>(value));
178 return *this;
179 }
181
183
186 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
187 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
188 template <typename CreatedAtT = Aws::Utils::DateTime>
189 void SetCreatedAt(CreatedAtT&& value) {
190 m_createdAtHasBeenSet = true;
191 m_createdAt = std::forward<CreatedAtT>(value);
192 }
193 template <typename CreatedAtT = Aws::Utils::DateTime>
194 Connection& WithCreatedAt(CreatedAtT&& value) {
195 SetCreatedAt(std::forward<CreatedAtT>(value));
196 return *this;
197 }
199
201
204 inline ConnectionState GetState() const { return m_state; }
205 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
206 inline void SetState(ConnectionState value) {
207 m_stateHasBeenSet = true;
208 m_state = value;
209 }
211 SetState(value);
212 return *this;
213 }
215
217
220 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
221 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
222 template <typename TagsT = Aws::Vector<Tag>>
223 void SetTags(TagsT&& value) {
224 m_tagsHasBeenSet = true;
225 m_tags = std::forward<TagsT>(value);
226 }
227 template <typename TagsT = Aws::Vector<Tag>>
228 Connection& WithTags(TagsT&& value) {
229 SetTags(std::forward<TagsT>(value));
230 return *this;
231 }
232 template <typename TagsT = Tag>
233 Connection& AddTags(TagsT&& value) {
234 m_tagsHasBeenSet = true;
235 m_tags.emplace_back(std::forward<TagsT>(value));
236 return *this;
237 }
239 private:
240 Aws::String m_connectionId;
241
242 Aws::String m_connectionArn;
243
244 Aws::String m_globalNetworkId;
245
246 Aws::String m_deviceId;
247
248 Aws::String m_connectedDeviceId;
249
250 Aws::String m_linkId;
251
252 Aws::String m_connectedLinkId;
253
254 Aws::String m_description;
255
256 Aws::Utils::DateTime m_createdAt{};
257
259
260 Aws::Vector<Tag> m_tags;
261 bool m_connectionIdHasBeenSet = false;
262 bool m_connectionArnHasBeenSet = false;
263 bool m_globalNetworkIdHasBeenSet = false;
264 bool m_deviceIdHasBeenSet = false;
265 bool m_connectedDeviceIdHasBeenSet = false;
266 bool m_linkIdHasBeenSet = false;
267 bool m_connectedLinkIdHasBeenSet = false;
268 bool m_descriptionHasBeenSet = false;
269 bool m_createdAtHasBeenSet = false;
270 bool m_stateHasBeenSet = false;
271 bool m_tagsHasBeenSet = false;
272};
273
274} // namespace Model
275} // namespace NetworkManager
276} // namespace Aws
Connection & WithDescription(DescriptionT &&value)
Definition Connection.h:176
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Connection.h:186
void SetDescription(DescriptionT &&value)
Definition Connection.h:171
Connection & AddTags(TagsT &&value)
Definition Connection.h:233
Connection & WithState(ConnectionState value)
Definition Connection.h:210
Connection & WithConnectedLinkId(ConnectedLinkIdT &&value)
Definition Connection.h:158
void SetConnectionArn(ConnectionArnT &&value)
Definition Connection.h:63
const Aws::String & GetLinkId() const
Definition Connection.h:132
void SetDeviceId(DeviceIdT &&value)
Definition Connection.h:99
void SetConnectedLinkId(ConnectedLinkIdT &&value)
Definition Connection.h:153
Connection & WithGlobalNetworkId(GlobalNetworkIdT &&value)
Definition Connection.h:86
void SetGlobalNetworkId(GlobalNetworkIdT &&value)
Definition Connection.h:81
Connection & WithConnectionArn(ConnectionArnT &&value)
Definition Connection.h:68
const Aws::String & GetDeviceId() const
Definition Connection.h:96
AWS_NETWORKMANAGER_API Connection(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetConnectedLinkId() const
Definition Connection.h:150
Connection & WithCreatedAt(CreatedAtT &&value)
Definition Connection.h:194
void SetConnectionId(ConnectionIdT &&value)
Definition Connection.h:45
void SetCreatedAt(CreatedAtT &&value)
Definition Connection.h:189
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
Connection & WithTags(TagsT &&value)
Definition Connection.h:228
const Aws::String & GetConnectionId() const
Definition Connection.h:42
AWS_NETWORKMANAGER_API Connection()=default
Connection & WithConnectedDeviceId(ConnectedDeviceIdT &&value)
Definition Connection.h:122
Connection & WithLinkId(LinkIdT &&value)
Definition Connection.h:140
const Aws::String & GetConnectionArn() const
Definition Connection.h:60
Connection & WithConnectionId(ConnectionIdT &&value)
Definition Connection.h:50
const Aws::Vector< Tag > & GetTags() const
Definition Connection.h:220
const Aws::String & GetDescription() const
Definition Connection.h:168
Connection & WithDeviceId(DeviceIdT &&value)
Definition Connection.h:104
AWS_NETWORKMANAGER_API Connection & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetConnectedDeviceId() const
Definition Connection.h:114
void SetConnectedDeviceId(ConnectedDeviceIdT &&value)
Definition Connection.h:117
ConnectionState GetState() const
Definition Connection.h:204
const Aws::String & GetGlobalNetworkId() const
Definition Connection.h:78
void SetState(ConnectionState value)
Definition Connection.h:206
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue