AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
CreateConnectionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/networkmanager/NetworkManagerRequest.h>
10#include <aws/networkmanager/NetworkManager_EXPORTS.h>
11#include <aws/networkmanager/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace NetworkManager {
17namespace Model {
18
22 public:
23 AWS_NETWORKMANAGER_API CreateConnectionRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateConnection"; }
30
31 AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetGlobalNetworkId() const { return m_globalNetworkId; }
38 inline bool GlobalNetworkIdHasBeenSet() const { return m_globalNetworkIdHasBeenSet; }
39 template <typename GlobalNetworkIdT = Aws::String>
40 void SetGlobalNetworkId(GlobalNetworkIdT&& value) {
41 m_globalNetworkIdHasBeenSet = true;
42 m_globalNetworkId = std::forward<GlobalNetworkIdT>(value);
43 }
44 template <typename GlobalNetworkIdT = Aws::String>
45 CreateConnectionRequest& WithGlobalNetworkId(GlobalNetworkIdT&& value) {
46 SetGlobalNetworkId(std::forward<GlobalNetworkIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetDeviceId() const { return m_deviceId; }
56 inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
57 template <typename DeviceIdT = Aws::String>
58 void SetDeviceId(DeviceIdT&& value) {
59 m_deviceIdHasBeenSet = true;
60 m_deviceId = std::forward<DeviceIdT>(value);
61 }
62 template <typename DeviceIdT = Aws::String>
64 SetDeviceId(std::forward<DeviceIdT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetConnectedDeviceId() const { return m_connectedDeviceId; }
74 inline bool ConnectedDeviceIdHasBeenSet() const { return m_connectedDeviceIdHasBeenSet; }
75 template <typename ConnectedDeviceIdT = Aws::String>
76 void SetConnectedDeviceId(ConnectedDeviceIdT&& value) {
77 m_connectedDeviceIdHasBeenSet = true;
78 m_connectedDeviceId = std::forward<ConnectedDeviceIdT>(value);
79 }
80 template <typename ConnectedDeviceIdT = Aws::String>
81 CreateConnectionRequest& WithConnectedDeviceId(ConnectedDeviceIdT&& value) {
82 SetConnectedDeviceId(std::forward<ConnectedDeviceIdT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetLinkId() const { return m_linkId; }
92 inline bool LinkIdHasBeenSet() const { return m_linkIdHasBeenSet; }
93 template <typename LinkIdT = Aws::String>
94 void SetLinkId(LinkIdT&& value) {
95 m_linkIdHasBeenSet = true;
96 m_linkId = std::forward<LinkIdT>(value);
97 }
98 template <typename LinkIdT = Aws::String>
100 SetLinkId(std::forward<LinkIdT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::String& GetConnectedLinkId() const { return m_connectedLinkId; }
110 inline bool ConnectedLinkIdHasBeenSet() const { return m_connectedLinkIdHasBeenSet; }
111 template <typename ConnectedLinkIdT = Aws::String>
112 void SetConnectedLinkId(ConnectedLinkIdT&& value) {
113 m_connectedLinkIdHasBeenSet = true;
114 m_connectedLinkId = std::forward<ConnectedLinkIdT>(value);
115 }
116 template <typename ConnectedLinkIdT = Aws::String>
117 CreateConnectionRequest& WithConnectedLinkId(ConnectedLinkIdT&& value) {
118 SetConnectedLinkId(std::forward<ConnectedLinkIdT>(value));
119 return *this;
120 }
122
124
128 inline const Aws::String& GetDescription() const { return m_description; }
129 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
130 template <typename DescriptionT = Aws::String>
131 void SetDescription(DescriptionT&& value) {
132 m_descriptionHasBeenSet = true;
133 m_description = std::forward<DescriptionT>(value);
134 }
135 template <typename DescriptionT = Aws::String>
137 SetDescription(std::forward<DescriptionT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
147 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
148 template <typename TagsT = Aws::Vector<Tag>>
149 void SetTags(TagsT&& value) {
150 m_tagsHasBeenSet = true;
151 m_tags = std::forward<TagsT>(value);
152 }
153 template <typename TagsT = Aws::Vector<Tag>>
155 SetTags(std::forward<TagsT>(value));
156 return *this;
157 }
158 template <typename TagsT = Tag>
160 m_tagsHasBeenSet = true;
161 m_tags.emplace_back(std::forward<TagsT>(value));
162 return *this;
163 }
165 private:
166 Aws::String m_globalNetworkId;
167
168 Aws::String m_deviceId;
169
170 Aws::String m_connectedDeviceId;
171
172 Aws::String m_linkId;
173
174 Aws::String m_connectedLinkId;
175
176 Aws::String m_description;
177
178 Aws::Vector<Tag> m_tags;
179 bool m_globalNetworkIdHasBeenSet = false;
180 bool m_deviceIdHasBeenSet = false;
181 bool m_connectedDeviceIdHasBeenSet = false;
182 bool m_linkIdHasBeenSet = false;
183 bool m_connectedLinkIdHasBeenSet = false;
184 bool m_descriptionHasBeenSet = false;
185 bool m_tagsHasBeenSet = false;
186};
187
188} // namespace Model
189} // namespace NetworkManager
190} // namespace Aws
AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override
AWS_NETWORKMANAGER_API CreateConnectionRequest()=default
CreateConnectionRequest & WithGlobalNetworkId(GlobalNetworkIdT &&value)
CreateConnectionRequest & WithDeviceId(DeviceIdT &&value)
virtual const char * GetServiceRequestName() const override
CreateConnectionRequest & WithConnectedLinkId(ConnectedLinkIdT &&value)
CreateConnectionRequest & WithDescription(DescriptionT &&value)
CreateConnectionRequest & WithTags(TagsT &&value)
CreateConnectionRequest & WithConnectedDeviceId(ConnectedDeviceIdT &&value)
CreateConnectionRequest & WithLinkId(LinkIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector