AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetConnectionId(const Aws::String& value) { m_connectionIdHasBeenSet = true; m_connectionId = value; }
51 inline void SetConnectionId(Aws::String&& value) { m_connectionIdHasBeenSet = true; m_connectionId = std::move(value); }
52 inline void SetConnectionId(const char* value) { m_connectionIdHasBeenSet = true; m_connectionId.assign(value); }
53 inline Connection& WithConnectionId(const Aws::String& value) { SetConnectionId(value); return *this;}
54 inline Connection& WithConnectionId(Aws::String&& value) { SetConnectionId(std::move(value)); return *this;}
55 inline Connection& WithConnectionId(const char* value) { SetConnectionId(value); return *this;}
57
59
62 inline const Aws::String& GetConnectionArn() const{ return m_connectionArn; }
63 inline bool ConnectionArnHasBeenSet() const { return m_connectionArnHasBeenSet; }
64 inline void SetConnectionArn(const Aws::String& value) { m_connectionArnHasBeenSet = true; m_connectionArn = value; }
65 inline void SetConnectionArn(Aws::String&& value) { m_connectionArnHasBeenSet = true; m_connectionArn = std::move(value); }
66 inline void SetConnectionArn(const char* value) { m_connectionArnHasBeenSet = true; m_connectionArn.assign(value); }
67 inline Connection& WithConnectionArn(const Aws::String& value) { SetConnectionArn(value); return *this;}
68 inline Connection& WithConnectionArn(Aws::String&& value) { SetConnectionArn(std::move(value)); return *this;}
69 inline Connection& WithConnectionArn(const char* value) { SetConnectionArn(value); return *this;}
71
73
76 inline const Aws::String& GetGlobalNetworkId() const{ return m_globalNetworkId; }
77 inline bool GlobalNetworkIdHasBeenSet() const { return m_globalNetworkIdHasBeenSet; }
78 inline void SetGlobalNetworkId(const Aws::String& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = value; }
79 inline void SetGlobalNetworkId(Aws::String&& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = std::move(value); }
80 inline void SetGlobalNetworkId(const char* value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId.assign(value); }
81 inline Connection& WithGlobalNetworkId(const Aws::String& value) { SetGlobalNetworkId(value); return *this;}
82 inline Connection& WithGlobalNetworkId(Aws::String&& value) { SetGlobalNetworkId(std::move(value)); return *this;}
83 inline Connection& WithGlobalNetworkId(const char* value) { SetGlobalNetworkId(value); return *this;}
85
87
90 inline const Aws::String& GetDeviceId() const{ return m_deviceId; }
91 inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
92 inline void SetDeviceId(const Aws::String& value) { m_deviceIdHasBeenSet = true; m_deviceId = value; }
93 inline void SetDeviceId(Aws::String&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::move(value); }
94 inline void SetDeviceId(const char* value) { m_deviceIdHasBeenSet = true; m_deviceId.assign(value); }
95 inline Connection& WithDeviceId(const Aws::String& value) { SetDeviceId(value); return *this;}
96 inline Connection& WithDeviceId(Aws::String&& value) { SetDeviceId(std::move(value)); return *this;}
97 inline Connection& WithDeviceId(const char* value) { SetDeviceId(value); return *this;}
99
101
104 inline const Aws::String& GetConnectedDeviceId() const{ return m_connectedDeviceId; }
105 inline bool ConnectedDeviceIdHasBeenSet() const { return m_connectedDeviceIdHasBeenSet; }
106 inline void SetConnectedDeviceId(const Aws::String& value) { m_connectedDeviceIdHasBeenSet = true; m_connectedDeviceId = value; }
107 inline void SetConnectedDeviceId(Aws::String&& value) { m_connectedDeviceIdHasBeenSet = true; m_connectedDeviceId = std::move(value); }
108 inline void SetConnectedDeviceId(const char* value) { m_connectedDeviceIdHasBeenSet = true; m_connectedDeviceId.assign(value); }
109 inline Connection& WithConnectedDeviceId(const Aws::String& value) { SetConnectedDeviceId(value); return *this;}
110 inline Connection& WithConnectedDeviceId(Aws::String&& value) { SetConnectedDeviceId(std::move(value)); return *this;}
111 inline Connection& WithConnectedDeviceId(const char* value) { SetConnectedDeviceId(value); return *this;}
113
115
118 inline const Aws::String& GetLinkId() const{ return m_linkId; }
119 inline bool LinkIdHasBeenSet() const { return m_linkIdHasBeenSet; }
120 inline void SetLinkId(const Aws::String& value) { m_linkIdHasBeenSet = true; m_linkId = value; }
121 inline void SetLinkId(Aws::String&& value) { m_linkIdHasBeenSet = true; m_linkId = std::move(value); }
122 inline void SetLinkId(const char* value) { m_linkIdHasBeenSet = true; m_linkId.assign(value); }
123 inline Connection& WithLinkId(const Aws::String& value) { SetLinkId(value); return *this;}
124 inline Connection& WithLinkId(Aws::String&& value) { SetLinkId(std::move(value)); return *this;}
125 inline Connection& WithLinkId(const char* value) { SetLinkId(value); return *this;}
127
129
132 inline const Aws::String& GetConnectedLinkId() const{ return m_connectedLinkId; }
133 inline bool ConnectedLinkIdHasBeenSet() const { return m_connectedLinkIdHasBeenSet; }
134 inline void SetConnectedLinkId(const Aws::String& value) { m_connectedLinkIdHasBeenSet = true; m_connectedLinkId = value; }
135 inline void SetConnectedLinkId(Aws::String&& value) { m_connectedLinkIdHasBeenSet = true; m_connectedLinkId = std::move(value); }
136 inline void SetConnectedLinkId(const char* value) { m_connectedLinkIdHasBeenSet = true; m_connectedLinkId.assign(value); }
137 inline Connection& WithConnectedLinkId(const Aws::String& value) { SetConnectedLinkId(value); return *this;}
138 inline Connection& WithConnectedLinkId(Aws::String&& value) { SetConnectedLinkId(std::move(value)); return *this;}
139 inline Connection& WithConnectedLinkId(const char* value) { SetConnectedLinkId(value); return *this;}
141
143
146 inline const Aws::String& GetDescription() const{ return m_description; }
147 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
148 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
149 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
150 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
151 inline Connection& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
152 inline Connection& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
153 inline Connection& WithDescription(const char* value) { SetDescription(value); return *this;}
155
157
160 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
161 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
162 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
163 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
164 inline Connection& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
165 inline Connection& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
167
169
172 inline const ConnectionState& GetState() const{ return m_state; }
173 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
174 inline void SetState(const ConnectionState& value) { m_stateHasBeenSet = true; m_state = value; }
175 inline void SetState(ConnectionState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
176 inline Connection& WithState(const ConnectionState& value) { SetState(value); return *this;}
177 inline Connection& WithState(ConnectionState&& value) { SetState(std::move(value)); return *this;}
179
181
184 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
185 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
186 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
187 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
188 inline Connection& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
189 inline Connection& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
190 inline Connection& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
191 inline Connection& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
193 private:
194
195 Aws::String m_connectionId;
196 bool m_connectionIdHasBeenSet = false;
197
198 Aws::String m_connectionArn;
199 bool m_connectionArnHasBeenSet = false;
200
201 Aws::String m_globalNetworkId;
202 bool m_globalNetworkIdHasBeenSet = false;
203
204 Aws::String m_deviceId;
205 bool m_deviceIdHasBeenSet = false;
206
207 Aws::String m_connectedDeviceId;
208 bool m_connectedDeviceIdHasBeenSet = false;
209
210 Aws::String m_linkId;
211 bool m_linkIdHasBeenSet = false;
212
213 Aws::String m_connectedLinkId;
214 bool m_connectedLinkIdHasBeenSet = false;
215
216 Aws::String m_description;
217 bool m_descriptionHasBeenSet = false;
218
219 Aws::Utils::DateTime m_createdAt;
220 bool m_createdAtHasBeenSet = false;
221
222 ConnectionState m_state;
223 bool m_stateHasBeenSet = false;
224
225 Aws::Vector<Tag> m_tags;
226 bool m_tagsHasBeenSet = false;
227 };
228
229} // namespace Model
230} // namespace NetworkManager
231} // namespace Aws
Connection & WithConnectionId(const Aws::String &value)
Definition Connection.h:53
Connection & WithDeviceId(Aws::String &&value)
Definition Connection.h:96
Connection & AddTags(Tag &&value)
Definition Connection.h:191
Connection & WithDeviceId(const Aws::String &value)
Definition Connection.h:95
Connection & WithGlobalNetworkId(const Aws::String &value)
Definition Connection.h:81
void SetConnectedLinkId(const Aws::String &value)
Definition Connection.h:134
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Connection.h:160
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition Connection.h:162
void SetConnectedDeviceId(const Aws::String &value)
Definition Connection.h:106
Connection & WithLinkId(const Aws::String &value)
Definition Connection.h:123
void SetConnectionId(const char *value)
Definition Connection.h:52
Connection & WithConnectedDeviceId(Aws::String &&value)
Definition Connection.h:110
void SetGlobalNetworkId(const char *value)
Definition Connection.h:80
const Aws::String & GetLinkId() const
Definition Connection.h:118
Connection & WithDeviceId(const char *value)
Definition Connection.h:97
void SetDeviceId(const char *value)
Definition Connection.h:94
void SetState(const ConnectionState &value)
Definition Connection.h:174
Connection & WithDescription(const Aws::String &value)
Definition Connection.h:151
Connection & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition Connection.h:164
void SetConnectedLinkId(Aws::String &&value)
Definition Connection.h:135
Connection & WithLinkId(const char *value)
Definition Connection.h:125
void SetLinkId(Aws::String &&value)
Definition Connection.h:121
Connection & WithConnectionArn(const char *value)
Definition Connection.h:69
Connection & WithConnectedLinkId(const Aws::String &value)
Definition Connection.h:137
const ConnectionState & GetState() const
Definition Connection.h:172
Connection & WithDescription(Aws::String &&value)
Definition Connection.h:152
void SetConnectionArn(const char *value)
Definition Connection.h:66
Connection & WithTags(const Aws::Vector< Tag > &value)
Definition Connection.h:188
const Aws::String & GetDeviceId() const
Definition Connection.h:90
AWS_NETWORKMANAGER_API Connection(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetConnectedLinkId() const
Definition Connection.h:132
void SetGlobalNetworkId(Aws::String &&value)
Definition Connection.h:79
Connection & WithConnectionId(const char *value)
Definition Connection.h:55
void SetConnectionArn(Aws::String &&value)
Definition Connection.h:65
Connection & WithTags(Aws::Vector< Tag > &&value)
Definition Connection.h:189
void SetConnectedDeviceId(Aws::String &&value)
Definition Connection.h:107
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
Connection & WithConnectionArn(Aws::String &&value)
Definition Connection.h:68
Connection & WithDescription(const char *value)
Definition Connection.h:153
Connection & WithLinkId(Aws::String &&value)
Definition Connection.h:124
void SetTags(const Aws::Vector< Tag > &value)
Definition Connection.h:186
Connection & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition Connection.h:165
const Aws::String & GetConnectionId() const
Definition Connection.h:48
void SetDescription(Aws::String &&value)
Definition Connection.h:149
Connection & WithConnectionId(Aws::String &&value)
Definition Connection.h:54
Connection & WithGlobalNetworkId(Aws::String &&value)
Definition Connection.h:82
void SetLinkId(const char *value)
Definition Connection.h:122
void SetConnectionId(Aws::String &&value)
Definition Connection.h:51
Connection & WithConnectedDeviceId(const Aws::String &value)
Definition Connection.h:109
void SetConnectedDeviceId(const char *value)
Definition Connection.h:108
void SetLinkId(const Aws::String &value)
Definition Connection.h:120
const Aws::String & GetConnectionArn() const
Definition Connection.h:62
Connection & WithConnectionArn(const Aws::String &value)
Definition Connection.h:67
void SetDeviceId(Aws::String &&value)
Definition Connection.h:93
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition Connection.h:163
void SetConnectionArn(const Aws::String &value)
Definition Connection.h:64
void SetDescription(const char *value)
Definition Connection.h:150
Connection & WithConnectedLinkId(const char *value)
Definition Connection.h:139
void SetConnectedLinkId(const char *value)
Definition Connection.h:136
const Aws::Vector< Tag > & GetTags() const
Definition Connection.h:184
void SetState(ConnectionState &&value)
Definition Connection.h:175
void SetDeviceId(const Aws::String &value)
Definition Connection.h:92
Connection & WithState(const ConnectionState &value)
Definition Connection.h:176
void SetGlobalNetworkId(const Aws::String &value)
Definition Connection.h:78
Connection & WithConnectedDeviceId(const char *value)
Definition Connection.h:111
const Aws::String & GetDescription() const
Definition Connection.h:146
Connection & WithConnectedLinkId(Aws::String &&value)
Definition Connection.h:138
Connection & AddTags(const Tag &value)
Definition Connection.h:190
AWS_NETWORKMANAGER_API Connection()
void SetTags(Aws::Vector< Tag > &&value)
Definition Connection.h:187
Connection & WithState(ConnectionState &&value)
Definition Connection.h:177
AWS_NETWORKMANAGER_API Connection & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetConnectedDeviceId() const
Definition Connection.h:104
void SetConnectionId(const Aws::String &value)
Definition Connection.h:50
const Aws::String & GetGlobalNetworkId() const
Definition Connection.h:76
Connection & WithGlobalNetworkId(const char *value)
Definition Connection.h:83
void SetDescription(const Aws::String &value)
Definition Connection.h:148
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue