AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Connection.h
1
6#pragma once
7#include <aws/networkmanager/NetworkManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/networkmanager/model/ConnectionState.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/networkmanager/model/Tag.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 NetworkManager
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_NETWORKMANAGER_API Connection() = default;
39 AWS_NETWORKMANAGER_API Connection(Aws::Utils::Json::JsonView jsonValue);
40 AWS_NETWORKMANAGER_API Connection& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_NETWORKMANAGER_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 Connection& WithConnectionId(ConnectionIdT&& value) { SetConnectionId(std::forward<ConnectionIdT>(value)); return *this;}
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) { m_connectionArnHasBeenSet = true; m_connectionArn = std::forward<ConnectionArnT>(value); }
64 template<typename ConnectionArnT = Aws::String>
65 Connection& WithConnectionArn(ConnectionArnT&& value) { SetConnectionArn(std::forward<ConnectionArnT>(value)); return *this;}
67
69
72 inline const Aws::String& GetGlobalNetworkId() const { return m_globalNetworkId; }
73 inline bool GlobalNetworkIdHasBeenSet() const { return m_globalNetworkIdHasBeenSet; }
74 template<typename GlobalNetworkIdT = Aws::String>
75 void SetGlobalNetworkId(GlobalNetworkIdT&& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = std::forward<GlobalNetworkIdT>(value); }
76 template<typename GlobalNetworkIdT = Aws::String>
77 Connection& WithGlobalNetworkId(GlobalNetworkIdT&& value) { SetGlobalNetworkId(std::forward<GlobalNetworkIdT>(value)); return *this;}
79
81
84 inline const Aws::String& GetDeviceId() const { return m_deviceId; }
85 inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
86 template<typename DeviceIdT = Aws::String>
87 void SetDeviceId(DeviceIdT&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::forward<DeviceIdT>(value); }
88 template<typename DeviceIdT = Aws::String>
89 Connection& WithDeviceId(DeviceIdT&& value) { SetDeviceId(std::forward<DeviceIdT>(value)); return *this;}
91
93
96 inline const Aws::String& GetConnectedDeviceId() const { return m_connectedDeviceId; }
97 inline bool ConnectedDeviceIdHasBeenSet() const { return m_connectedDeviceIdHasBeenSet; }
98 template<typename ConnectedDeviceIdT = Aws::String>
99 void SetConnectedDeviceId(ConnectedDeviceIdT&& value) { m_connectedDeviceIdHasBeenSet = true; m_connectedDeviceId = std::forward<ConnectedDeviceIdT>(value); }
100 template<typename ConnectedDeviceIdT = Aws::String>
101 Connection& WithConnectedDeviceId(ConnectedDeviceIdT&& value) { SetConnectedDeviceId(std::forward<ConnectedDeviceIdT>(value)); return *this;}
103
105
108 inline const Aws::String& GetLinkId() const { return m_linkId; }
109 inline bool LinkIdHasBeenSet() const { return m_linkIdHasBeenSet; }
110 template<typename LinkIdT = Aws::String>
111 void SetLinkId(LinkIdT&& value) { m_linkIdHasBeenSet = true; m_linkId = std::forward<LinkIdT>(value); }
112 template<typename LinkIdT = Aws::String>
113 Connection& WithLinkId(LinkIdT&& value) { SetLinkId(std::forward<LinkIdT>(value)); return *this;}
115
117
120 inline const Aws::String& GetConnectedLinkId() const { return m_connectedLinkId; }
121 inline bool ConnectedLinkIdHasBeenSet() const { return m_connectedLinkIdHasBeenSet; }
122 template<typename ConnectedLinkIdT = Aws::String>
123 void SetConnectedLinkId(ConnectedLinkIdT&& value) { m_connectedLinkIdHasBeenSet = true; m_connectedLinkId = std::forward<ConnectedLinkIdT>(value); }
124 template<typename ConnectedLinkIdT = Aws::String>
125 Connection& WithConnectedLinkId(ConnectedLinkIdT&& value) { SetConnectedLinkId(std::forward<ConnectedLinkIdT>(value)); return *this;}
127
129
132 inline const Aws::String& GetDescription() const { return m_description; }
133 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
134 template<typename DescriptionT = Aws::String>
135 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
136 template<typename DescriptionT = Aws::String>
137 Connection& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
139
141
144 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
145 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
146 template<typename CreatedAtT = Aws::Utils::DateTime>
147 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
148 template<typename CreatedAtT = Aws::Utils::DateTime>
149 Connection& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
151
153
156 inline ConnectionState GetState() const { return m_state; }
157 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
158 inline void SetState(ConnectionState value) { m_stateHasBeenSet = true; m_state = value; }
159 inline Connection& WithState(ConnectionState value) { SetState(value); return *this;}
161
163
166 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
167 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
168 template<typename TagsT = Aws::Vector<Tag>>
169 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
170 template<typename TagsT = Aws::Vector<Tag>>
171 Connection& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
172 template<typename TagsT = Tag>
173 Connection& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
175 private:
176
177 Aws::String m_connectionId;
178 bool m_connectionIdHasBeenSet = false;
179
180 Aws::String m_connectionArn;
181 bool m_connectionArnHasBeenSet = false;
182
183 Aws::String m_globalNetworkId;
184 bool m_globalNetworkIdHasBeenSet = false;
185
186 Aws::String m_deviceId;
187 bool m_deviceIdHasBeenSet = false;
188
189 Aws::String m_connectedDeviceId;
190 bool m_connectedDeviceIdHasBeenSet = false;
191
192 Aws::String m_linkId;
193 bool m_linkIdHasBeenSet = false;
194
195 Aws::String m_connectedLinkId;
196 bool m_connectedLinkIdHasBeenSet = false;
197
198 Aws::String m_description;
199 bool m_descriptionHasBeenSet = false;
200
201 Aws::Utils::DateTime m_createdAt{};
202 bool m_createdAtHasBeenSet = false;
203
205 bool m_stateHasBeenSet = false;
206
207 Aws::Vector<Tag> m_tags;
208 bool m_tagsHasBeenSet = false;
209 };
210
211} // namespace Model
212} // namespace NetworkManager
213} // namespace Aws
Connection & WithDescription(DescriptionT &&value)
Definition Connection.h:137
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Connection.h:144
void SetDescription(DescriptionT &&value)
Definition Connection.h:135
Connection & AddTags(TagsT &&value)
Definition Connection.h:173
Connection & WithState(ConnectionState value)
Definition Connection.h:159
Connection & WithConnectedLinkId(ConnectedLinkIdT &&value)
Definition Connection.h:125
void SetConnectionArn(ConnectionArnT &&value)
Definition Connection.h:63
const Aws::String & GetLinkId() const
Definition Connection.h:108
void SetDeviceId(DeviceIdT &&value)
Definition Connection.h:87
void SetConnectedLinkId(ConnectedLinkIdT &&value)
Definition Connection.h:123
Connection & WithGlobalNetworkId(GlobalNetworkIdT &&value)
Definition Connection.h:77
void SetGlobalNetworkId(GlobalNetworkIdT &&value)
Definition Connection.h:75
Connection & WithConnectionArn(ConnectionArnT &&value)
Definition Connection.h:65
const Aws::String & GetDeviceId() const
Definition Connection.h:84
AWS_NETWORKMANAGER_API Connection(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetConnectedLinkId() const
Definition Connection.h:120
Connection & WithCreatedAt(CreatedAtT &&value)
Definition Connection.h:149
void SetConnectionId(ConnectionIdT &&value)
Definition Connection.h:51
void SetCreatedAt(CreatedAtT &&value)
Definition Connection.h:147
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
Connection & WithTags(TagsT &&value)
Definition Connection.h:171
const Aws::String & GetConnectionId() const
Definition Connection.h:48
AWS_NETWORKMANAGER_API Connection()=default
Connection & WithConnectedDeviceId(ConnectedDeviceIdT &&value)
Definition Connection.h:101
Connection & WithLinkId(LinkIdT &&value)
Definition Connection.h:113
const Aws::String & GetConnectionArn() const
Definition Connection.h:60
Connection & WithConnectionId(ConnectionIdT &&value)
Definition Connection.h:53
const Aws::Vector< Tag > & GetTags() const
Definition Connection.h:166
const Aws::String & GetDescription() const
Definition Connection.h:132
Connection & WithDeviceId(DeviceIdT &&value)
Definition Connection.h:89
AWS_NETWORKMANAGER_API Connection & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetConnectedDeviceId() const
Definition Connection.h:96
void SetConnectedDeviceId(ConnectedDeviceIdT &&value)
Definition Connection.h:99
ConnectionState GetState() const
Definition Connection.h:156
const Aws::String & GetGlobalNetworkId() const
Definition Connection.h:72
void SetState(ConnectionState value)
Definition Connection.h:158
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue