AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateConnectionRequest.h
1
6#pragma once
7#include <aws/networkmanager/NetworkManager_EXPORTS.h>
8#include <aws/networkmanager/NetworkManagerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/networkmanager/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace NetworkManager
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_NETWORKMANAGER_API CreateConnectionRequest();
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_NETWORKMANAGER_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetGlobalNetworkId() const{ return m_globalNetworkId; }
42 inline bool GlobalNetworkIdHasBeenSet() const { return m_globalNetworkIdHasBeenSet; }
43 inline void SetGlobalNetworkId(const Aws::String& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = value; }
44 inline void SetGlobalNetworkId(Aws::String&& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = std::move(value); }
45 inline void SetGlobalNetworkId(const char* value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId.assign(value); }
46 inline CreateConnectionRequest& WithGlobalNetworkId(const Aws::String& value) { SetGlobalNetworkId(value); return *this;}
47 inline CreateConnectionRequest& WithGlobalNetworkId(Aws::String&& value) { SetGlobalNetworkId(std::move(value)); return *this;}
48 inline CreateConnectionRequest& WithGlobalNetworkId(const char* value) { SetGlobalNetworkId(value); return *this;}
50
52
55 inline const Aws::String& GetDeviceId() const{ return m_deviceId; }
56 inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
57 inline void SetDeviceId(const Aws::String& value) { m_deviceIdHasBeenSet = true; m_deviceId = value; }
58 inline void SetDeviceId(Aws::String&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::move(value); }
59 inline void SetDeviceId(const char* value) { m_deviceIdHasBeenSet = true; m_deviceId.assign(value); }
60 inline CreateConnectionRequest& WithDeviceId(const Aws::String& value) { SetDeviceId(value); return *this;}
61 inline CreateConnectionRequest& WithDeviceId(Aws::String&& value) { SetDeviceId(std::move(value)); return *this;}
62 inline CreateConnectionRequest& WithDeviceId(const char* value) { SetDeviceId(value); return *this;}
64
66
69 inline const Aws::String& GetConnectedDeviceId() const{ return m_connectedDeviceId; }
70 inline bool ConnectedDeviceIdHasBeenSet() const { return m_connectedDeviceIdHasBeenSet; }
71 inline void SetConnectedDeviceId(const Aws::String& value) { m_connectedDeviceIdHasBeenSet = true; m_connectedDeviceId = value; }
72 inline void SetConnectedDeviceId(Aws::String&& value) { m_connectedDeviceIdHasBeenSet = true; m_connectedDeviceId = std::move(value); }
73 inline void SetConnectedDeviceId(const char* value) { m_connectedDeviceIdHasBeenSet = true; m_connectedDeviceId.assign(value); }
75 inline CreateConnectionRequest& WithConnectedDeviceId(Aws::String&& value) { SetConnectedDeviceId(std::move(value)); return *this;}
76 inline CreateConnectionRequest& WithConnectedDeviceId(const char* value) { SetConnectedDeviceId(value); return *this;}
78
80
83 inline const Aws::String& GetLinkId() const{ return m_linkId; }
84 inline bool LinkIdHasBeenSet() const { return m_linkIdHasBeenSet; }
85 inline void SetLinkId(const Aws::String& value) { m_linkIdHasBeenSet = true; m_linkId = value; }
86 inline void SetLinkId(Aws::String&& value) { m_linkIdHasBeenSet = true; m_linkId = std::move(value); }
87 inline void SetLinkId(const char* value) { m_linkIdHasBeenSet = true; m_linkId.assign(value); }
88 inline CreateConnectionRequest& WithLinkId(const Aws::String& value) { SetLinkId(value); return *this;}
89 inline CreateConnectionRequest& WithLinkId(Aws::String&& value) { SetLinkId(std::move(value)); return *this;}
90 inline CreateConnectionRequest& WithLinkId(const char* value) { SetLinkId(value); return *this;}
92
94
97 inline const Aws::String& GetConnectedLinkId() const{ return m_connectedLinkId; }
98 inline bool ConnectedLinkIdHasBeenSet() const { return m_connectedLinkIdHasBeenSet; }
99 inline void SetConnectedLinkId(const Aws::String& value) { m_connectedLinkIdHasBeenSet = true; m_connectedLinkId = value; }
100 inline void SetConnectedLinkId(Aws::String&& value) { m_connectedLinkIdHasBeenSet = true; m_connectedLinkId = std::move(value); }
101 inline void SetConnectedLinkId(const char* value) { m_connectedLinkIdHasBeenSet = true; m_connectedLinkId.assign(value); }
102 inline CreateConnectionRequest& WithConnectedLinkId(const Aws::String& value) { SetConnectedLinkId(value); return *this;}
103 inline CreateConnectionRequest& WithConnectedLinkId(Aws::String&& value) { SetConnectedLinkId(std::move(value)); return *this;}
104 inline CreateConnectionRequest& WithConnectedLinkId(const char* value) { SetConnectedLinkId(value); return *this;}
106
108
112 inline const Aws::String& GetDescription() const{ return m_description; }
113 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
114 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
115 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
116 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
117 inline CreateConnectionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
118 inline CreateConnectionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
119 inline CreateConnectionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
121
123
126 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
127 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
128 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
129 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
130 inline CreateConnectionRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
131 inline CreateConnectionRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
132 inline CreateConnectionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
133 inline CreateConnectionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
135 private:
136
137 Aws::String m_globalNetworkId;
138 bool m_globalNetworkIdHasBeenSet = false;
139
140 Aws::String m_deviceId;
141 bool m_deviceIdHasBeenSet = false;
142
143 Aws::String m_connectedDeviceId;
144 bool m_connectedDeviceIdHasBeenSet = false;
145
146 Aws::String m_linkId;
147 bool m_linkIdHasBeenSet = false;
148
149 Aws::String m_connectedLinkId;
150 bool m_connectedLinkIdHasBeenSet = false;
151
152 Aws::String m_description;
153 bool m_descriptionHasBeenSet = false;
154
155 Aws::Vector<Tag> m_tags;
156 bool m_tagsHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace NetworkManager
161} // namespace Aws
AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override
CreateConnectionRequest & WithTags(const Aws::Vector< Tag > &value)
CreateConnectionRequest & WithDeviceId(const char *value)
CreateConnectionRequest & WithDeviceId(Aws::String &&value)
CreateConnectionRequest & WithGlobalNetworkId(const char *value)
CreateConnectionRequest & WithGlobalNetworkId(const Aws::String &value)
CreateConnectionRequest & WithDescription(Aws::String &&value)
CreateConnectionRequest & WithLinkId(const Aws::String &value)
CreateConnectionRequest & WithConnectedLinkId(const char *value)
CreateConnectionRequest & WithDescription(const Aws::String &value)
CreateConnectionRequest & WithConnectedLinkId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateConnectionRequest & WithConnectedDeviceId(const char *value)
CreateConnectionRequest & WithDescription(const char *value)
CreateConnectionRequest & WithGlobalNetworkId(Aws::String &&value)
CreateConnectionRequest & WithLinkId(const char *value)
CreateConnectionRequest & WithConnectedLinkId(const Aws::String &value)
CreateConnectionRequest & WithDeviceId(const Aws::String &value)
CreateConnectionRequest & WithConnectedDeviceId(const Aws::String &value)
CreateConnectionRequest & WithConnectedDeviceId(Aws::String &&value)
CreateConnectionRequest & WithTags(Aws::Vector< Tag > &&value)
CreateConnectionRequest & WithLinkId(Aws::String &&value)
CreateConnectionRequest & AddTags(const Tag &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector