AWS SDK for C++  1.9.40
AWS SDK for C++
CreateConnectionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace NetworkManager
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "CreateConnection"; }
33 
34  Aws::String SerializePayload() const override;
35 
36 
40  inline const Aws::String& GetGlobalNetworkId() const{ return m_globalNetworkId; }
41 
45  inline bool GlobalNetworkIdHasBeenSet() const { return m_globalNetworkIdHasBeenSet; }
46 
50  inline void SetGlobalNetworkId(const Aws::String& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = value; }
51 
55  inline void SetGlobalNetworkId(Aws::String&& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = std::move(value); }
56 
60  inline void SetGlobalNetworkId(const char* value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId.assign(value); }
61 
65  inline CreateConnectionRequest& WithGlobalNetworkId(const Aws::String& value) { SetGlobalNetworkId(value); return *this;}
66 
70  inline CreateConnectionRequest& WithGlobalNetworkId(Aws::String&& value) { SetGlobalNetworkId(std::move(value)); return *this;}
71 
75  inline CreateConnectionRequest& WithGlobalNetworkId(const char* value) { SetGlobalNetworkId(value); return *this;}
76 
77 
81  inline const Aws::String& GetDeviceId() const{ return m_deviceId; }
82 
86  inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
87 
91  inline void SetDeviceId(const Aws::String& value) { m_deviceIdHasBeenSet = true; m_deviceId = value; }
92 
96  inline void SetDeviceId(Aws::String&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::move(value); }
97 
101  inline void SetDeviceId(const char* value) { m_deviceIdHasBeenSet = true; m_deviceId.assign(value); }
102 
106  inline CreateConnectionRequest& WithDeviceId(const Aws::String& value) { SetDeviceId(value); return *this;}
107 
111  inline CreateConnectionRequest& WithDeviceId(Aws::String&& value) { SetDeviceId(std::move(value)); return *this;}
112 
116  inline CreateConnectionRequest& WithDeviceId(const char* value) { SetDeviceId(value); return *this;}
117 
118 
122  inline const Aws::String& GetConnectedDeviceId() const{ return m_connectedDeviceId; }
123 
127  inline bool ConnectedDeviceIdHasBeenSet() const { return m_connectedDeviceIdHasBeenSet; }
128 
132  inline void SetConnectedDeviceId(const Aws::String& value) { m_connectedDeviceIdHasBeenSet = true; m_connectedDeviceId = value; }
133 
137  inline void SetConnectedDeviceId(Aws::String&& value) { m_connectedDeviceIdHasBeenSet = true; m_connectedDeviceId = std::move(value); }
138 
142  inline void SetConnectedDeviceId(const char* value) { m_connectedDeviceIdHasBeenSet = true; m_connectedDeviceId.assign(value); }
143 
147  inline CreateConnectionRequest& WithConnectedDeviceId(const Aws::String& value) { SetConnectedDeviceId(value); return *this;}
148 
152  inline CreateConnectionRequest& WithConnectedDeviceId(Aws::String&& value) { SetConnectedDeviceId(std::move(value)); return *this;}
153 
157  inline CreateConnectionRequest& WithConnectedDeviceId(const char* value) { SetConnectedDeviceId(value); return *this;}
158 
159 
163  inline const Aws::String& GetLinkId() const{ return m_linkId; }
164 
168  inline bool LinkIdHasBeenSet() const { return m_linkIdHasBeenSet; }
169 
173  inline void SetLinkId(const Aws::String& value) { m_linkIdHasBeenSet = true; m_linkId = value; }
174 
178  inline void SetLinkId(Aws::String&& value) { m_linkIdHasBeenSet = true; m_linkId = std::move(value); }
179 
183  inline void SetLinkId(const char* value) { m_linkIdHasBeenSet = true; m_linkId.assign(value); }
184 
188  inline CreateConnectionRequest& WithLinkId(const Aws::String& value) { SetLinkId(value); return *this;}
189 
193  inline CreateConnectionRequest& WithLinkId(Aws::String&& value) { SetLinkId(std::move(value)); return *this;}
194 
198  inline CreateConnectionRequest& WithLinkId(const char* value) { SetLinkId(value); return *this;}
199 
200 
204  inline const Aws::String& GetConnectedLinkId() const{ return m_connectedLinkId; }
205 
209  inline bool ConnectedLinkIdHasBeenSet() const { return m_connectedLinkIdHasBeenSet; }
210 
214  inline void SetConnectedLinkId(const Aws::String& value) { m_connectedLinkIdHasBeenSet = true; m_connectedLinkId = value; }
215 
219  inline void SetConnectedLinkId(Aws::String&& value) { m_connectedLinkIdHasBeenSet = true; m_connectedLinkId = std::move(value); }
220 
224  inline void SetConnectedLinkId(const char* value) { m_connectedLinkIdHasBeenSet = true; m_connectedLinkId.assign(value); }
225 
229  inline CreateConnectionRequest& WithConnectedLinkId(const Aws::String& value) { SetConnectedLinkId(value); return *this;}
230 
234  inline CreateConnectionRequest& WithConnectedLinkId(Aws::String&& value) { SetConnectedLinkId(std::move(value)); return *this;}
235 
239  inline CreateConnectionRequest& WithConnectedLinkId(const char* value) { SetConnectedLinkId(value); return *this;}
240 
241 
246  inline const Aws::String& GetDescription() const{ return m_description; }
247 
252  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
253 
258  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
259 
264  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
265 
270  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
271 
276  inline CreateConnectionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
277 
282  inline CreateConnectionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
283 
288  inline CreateConnectionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
289 
290 
294  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
295 
299  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
300 
304  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
305 
309  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
310 
314  inline CreateConnectionRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
315 
319  inline CreateConnectionRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
320 
324  inline CreateConnectionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
325 
329  inline CreateConnectionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
330 
331  private:
332 
333  Aws::String m_globalNetworkId;
334  bool m_globalNetworkIdHasBeenSet;
335 
336  Aws::String m_deviceId;
337  bool m_deviceIdHasBeenSet;
338 
339  Aws::String m_connectedDeviceId;
340  bool m_connectedDeviceIdHasBeenSet;
341 
342  Aws::String m_linkId;
343  bool m_linkIdHasBeenSet;
344 
345  Aws::String m_connectedLinkId;
346  bool m_connectedLinkIdHasBeenSet;
347 
348  Aws::String m_description;
349  bool m_descriptionHasBeenSet;
350 
351  Aws::Vector<Tag> m_tags;
352  bool m_tagsHasBeenSet;
353  };
354 
355 } // namespace Model
356 } // namespace NetworkManager
357 } // namespace Aws
Aws::NetworkManager::Model::CreateConnectionRequest::WithDeviceId
CreateConnectionRequest & WithDeviceId(Aws::String &&value)
Definition: CreateConnectionRequest.h:111
Aws::NetworkManager::Model::CreateConnectionRequest::WithDescription
CreateConnectionRequest & WithDescription(const Aws::String &value)
Definition: CreateConnectionRequest.h:276
Aws::NetworkManager::Model::CreateConnectionRequest::SetConnectedDeviceId
void SetConnectedDeviceId(const Aws::String &value)
Definition: CreateConnectionRequest.h:132
Aws::NetworkManager::Model::CreateConnectionRequest::GlobalNetworkIdHasBeenSet
bool GlobalNetworkIdHasBeenSet() const
Definition: CreateConnectionRequest.h:45
Aws::NetworkManager::Model::CreateConnectionRequest::SetDeviceId
void SetDeviceId(Aws::String &&value)
Definition: CreateConnectionRequest.h:96
Aws::NetworkManager::Model::CreateConnectionRequest::WithGlobalNetworkId
CreateConnectionRequest & WithGlobalNetworkId(Aws::String &&value)
Definition: CreateConnectionRequest.h:70
Aws::NetworkManager::Model::CreateConnectionRequest::SetLinkId
void SetLinkId(Aws::String &&value)
Definition: CreateConnectionRequest.h:178
Aws::NetworkManager::Model::CreateConnectionRequest::WithDescription
CreateConnectionRequest & WithDescription(const char *value)
Definition: CreateConnectionRequest.h:288
Aws::NetworkManager::Model::CreateConnectionRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateConnectionRequest.h:258
Aws::NetworkManager::Model::CreateConnectionRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateConnectionRequest.h:252
Aws::NetworkManager::Model::CreateConnectionRequest::CreateConnectionRequest
CreateConnectionRequest()
Aws::NetworkManager::Model::CreateConnectionRequest::WithGlobalNetworkId
CreateConnectionRequest & WithGlobalNetworkId(const char *value)
Definition: CreateConnectionRequest.h:75
Aws::NetworkManager::NetworkManagerRequest
Definition: NetworkManagerRequest.h:17
Aws::NetworkManager::Model::CreateConnectionRequest::WithGlobalNetworkId
CreateConnectionRequest & WithGlobalNetworkId(const Aws::String &value)
Definition: CreateConnectionRequest.h:65
Aws::NetworkManager::Model::CreateConnectionRequest::WithConnectedLinkId
CreateConnectionRequest & WithConnectedLinkId(const char *value)
Definition: CreateConnectionRequest.h:239
Aws::NetworkManager::Model::CreateConnectionRequest::SetLinkId
void SetLinkId(const char *value)
Definition: CreateConnectionRequest.h:183
Aws::NetworkManager::Model::CreateConnectionRequest::WithDeviceId
CreateConnectionRequest & WithDeviceId(const Aws::String &value)
Definition: CreateConnectionRequest.h:106
Aws::NetworkManager::Model::CreateConnectionRequest::DeviceIdHasBeenSet
bool DeviceIdHasBeenSet() const
Definition: CreateConnectionRequest.h:86
Aws::NetworkManager::Model::CreateConnectionRequest::SetConnectedLinkId
void SetConnectedLinkId(const Aws::String &value)
Definition: CreateConnectionRequest.h:214
Aws::NetworkManager::Model::CreateConnectionRequest::WithConnectedDeviceId
CreateConnectionRequest & WithConnectedDeviceId(Aws::String &&value)
Definition: CreateConnectionRequest.h:152
Aws::NetworkManager::Model::CreateConnectionRequest::WithTags
CreateConnectionRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateConnectionRequest.h:314
Aws::NetworkManager::Model::CreateConnectionRequest::WithConnectedLinkId
CreateConnectionRequest & WithConnectedLinkId(Aws::String &&value)
Definition: CreateConnectionRequest.h:234
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
NetworkManager_EXPORTS.h
Aws::NetworkManager::Model::CreateConnectionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::NetworkManager::Model::CreateConnectionRequest::ConnectedLinkIdHasBeenSet
bool ConnectedLinkIdHasBeenSet() const
Definition: CreateConnectionRequest.h:209
Aws::NetworkManager::Model::CreateConnectionRequest::WithConnectedDeviceId
CreateConnectionRequest & WithConnectedDeviceId(const char *value)
Definition: CreateConnectionRequest.h:157
AWSVector.h
Aws::NetworkManager::Model::CreateConnectionRequest::SetGlobalNetworkId
void SetGlobalNetworkId(const char *value)
Definition: CreateConnectionRequest.h:60
Aws::NetworkManager::Model::CreateConnectionRequest::WithConnectedLinkId
CreateConnectionRequest & WithConnectedLinkId(const Aws::String &value)
Definition: CreateConnectionRequest.h:229
AWS_NETWORKMANAGER_API
#define AWS_NETWORKMANAGER_API
Definition: NetworkManager_EXPORTS.h:28
Aws::NetworkManager::Model::CreateConnectionRequest::GetLinkId
const Aws::String & GetLinkId() const
Definition: CreateConnectionRequest.h:163
Aws::NetworkManager::Model::CreateConnectionRequest::SetGlobalNetworkId
void SetGlobalNetworkId(Aws::String &&value)
Definition: CreateConnectionRequest.h:55
Aws::NetworkManager::Model::CreateConnectionRequest::SetConnectedLinkId
void SetConnectedLinkId(const char *value)
Definition: CreateConnectionRequest.h:224
Aws::NetworkManager::Model::CreateConnectionRequest::SetGlobalNetworkId
void SetGlobalNetworkId(const Aws::String &value)
Definition: CreateConnectionRequest.h:50
Aws::NetworkManager::Model::CreateConnectionRequest::SetDeviceId
void SetDeviceId(const Aws::String &value)
Definition: CreateConnectionRequest.h:91
Aws::NetworkManager::Model::Tag
Definition: Tag.h:32
Aws::NetworkManager::Model::CreateConnectionRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateConnectionRequest.h:246
Aws::NetworkManager::Model::CreateConnectionRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateConnectionRequest.h:304
Aws::NetworkManager::Model::CreateConnectionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateConnectionRequest.h:32
Aws::NetworkManager::Model::CreateConnectionRequest::LinkIdHasBeenSet
bool LinkIdHasBeenSet() const
Definition: CreateConnectionRequest.h:168
Aws::NetworkManager::Model::CreateConnectionRequest::WithConnectedDeviceId
CreateConnectionRequest & WithConnectedDeviceId(const Aws::String &value)
Definition: CreateConnectionRequest.h:147
AWSString.h
Aws::NetworkManager::Model::CreateConnectionRequest::WithTags
CreateConnectionRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateConnectionRequest.h:319
Aws::NetworkManager::Model::CreateConnectionRequest::WithLinkId
CreateConnectionRequest & WithLinkId(Aws::String &&value)
Definition: CreateConnectionRequest.h:193
Aws::NetworkManager::Model::CreateConnectionRequest::SetConnectedDeviceId
void SetConnectedDeviceId(Aws::String &&value)
Definition: CreateConnectionRequest.h:137
Aws::NetworkManager::Model::CreateConnectionRequest::WithLinkId
CreateConnectionRequest & WithLinkId(const Aws::String &value)
Definition: CreateConnectionRequest.h:188
Aws::NetworkManager::Model::CreateConnectionRequest::SetLinkId
void SetLinkId(const Aws::String &value)
Definition: CreateConnectionRequest.h:173
Aws::NetworkManager::Model::CreateConnectionRequest::SetConnectedDeviceId
void SetConnectedDeviceId(const char *value)
Definition: CreateConnectionRequest.h:142
Tag.h
Aws::NetworkManager::Model::CreateConnectionRequest::WithDeviceId
CreateConnectionRequest & WithDeviceId(const char *value)
Definition: CreateConnectionRequest.h:116
Aws::NetworkManager::Model::CreateConnectionRequest::AddTags
CreateConnectionRequest & AddTags(const Tag &value)
Definition: CreateConnectionRequest.h:324
Aws::NetworkManager::Model::CreateConnectionRequest::WithDescription
CreateConnectionRequest & WithDescription(Aws::String &&value)
Definition: CreateConnectionRequest.h:282
Aws::NetworkManager::Model::CreateConnectionRequest::WithLinkId
CreateConnectionRequest & WithLinkId(const char *value)
Definition: CreateConnectionRequest.h:198
NetworkManagerRequest.h
Aws::NetworkManager::Model::CreateConnectionRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateConnectionRequest.h:264
Aws::NetworkManager::Model::CreateConnectionRequest::ConnectedDeviceIdHasBeenSet
bool ConnectedDeviceIdHasBeenSet() const
Definition: CreateConnectionRequest.h:127
Aws
Definition: AccessManagementClient.h:15
Aws::NetworkManager::Model::CreateConnectionRequest::SetConnectedLinkId
void SetConnectedLinkId(Aws::String &&value)
Definition: CreateConnectionRequest.h:219
Aws::NetworkManager::Model::CreateConnectionRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateConnectionRequest.h:299
Aws::NetworkManager::Model::CreateConnectionRequest::GetDeviceId
const Aws::String & GetDeviceId() const
Definition: CreateConnectionRequest.h:81
Aws::NetworkManager::Model::CreateConnectionRequest::GetGlobalNetworkId
const Aws::String & GetGlobalNetworkId() const
Definition: CreateConnectionRequest.h:40
Aws::NetworkManager::Model::CreateConnectionRequest::GetConnectedDeviceId
const Aws::String & GetConnectedDeviceId() const
Definition: CreateConnectionRequest.h:122
Aws::NetworkManager::Model::CreateConnectionRequest::AddTags
CreateConnectionRequest & AddTags(Tag &&value)
Definition: CreateConnectionRequest.h:329
Aws::NetworkManager::Model::CreateConnectionRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateConnectionRequest.h:294
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::NetworkManager::Model::CreateConnectionRequest::SetDeviceId
void SetDeviceId(const char *value)
Definition: CreateConnectionRequest.h:101
Aws::NetworkManager::Model::CreateConnectionRequest
Definition: CreateConnectionRequest.h:24
Aws::NetworkManager::Model::CreateConnectionRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateConnectionRequest.h:309
Aws::NetworkManager::Model::CreateConnectionRequest::GetConnectedLinkId
const Aws::String & GetConnectedLinkId() const
Definition: CreateConnectionRequest.h:204
Aws::NetworkManager::Model::CreateConnectionRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateConnectionRequest.h:270