AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename GlobalNetworkIdT = Aws::String>
44 void SetGlobalNetworkId(GlobalNetworkIdT&& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = std::forward<GlobalNetworkIdT>(value); }
45 template<typename GlobalNetworkIdT = Aws::String>
46 CreateConnectionRequest& WithGlobalNetworkId(GlobalNetworkIdT&& value) { SetGlobalNetworkId(std::forward<GlobalNetworkIdT>(value)); return *this;}
48
50
53 inline const Aws::String& GetDeviceId() const { return m_deviceId; }
54 inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
55 template<typename DeviceIdT = Aws::String>
56 void SetDeviceId(DeviceIdT&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::forward<DeviceIdT>(value); }
57 template<typename DeviceIdT = Aws::String>
58 CreateConnectionRequest& WithDeviceId(DeviceIdT&& value) { SetDeviceId(std::forward<DeviceIdT>(value)); return *this;}
60
62
65 inline const Aws::String& GetConnectedDeviceId() const { return m_connectedDeviceId; }
66 inline bool ConnectedDeviceIdHasBeenSet() const { return m_connectedDeviceIdHasBeenSet; }
67 template<typename ConnectedDeviceIdT = Aws::String>
68 void SetConnectedDeviceId(ConnectedDeviceIdT&& value) { m_connectedDeviceIdHasBeenSet = true; m_connectedDeviceId = std::forward<ConnectedDeviceIdT>(value); }
69 template<typename ConnectedDeviceIdT = Aws::String>
70 CreateConnectionRequest& WithConnectedDeviceId(ConnectedDeviceIdT&& value) { SetConnectedDeviceId(std::forward<ConnectedDeviceIdT>(value)); return *this;}
72
74
77 inline const Aws::String& GetLinkId() const { return m_linkId; }
78 inline bool LinkIdHasBeenSet() const { return m_linkIdHasBeenSet; }
79 template<typename LinkIdT = Aws::String>
80 void SetLinkId(LinkIdT&& value) { m_linkIdHasBeenSet = true; m_linkId = std::forward<LinkIdT>(value); }
81 template<typename LinkIdT = Aws::String>
82 CreateConnectionRequest& WithLinkId(LinkIdT&& value) { SetLinkId(std::forward<LinkIdT>(value)); return *this;}
84
86
89 inline const Aws::String& GetConnectedLinkId() const { return m_connectedLinkId; }
90 inline bool ConnectedLinkIdHasBeenSet() const { return m_connectedLinkIdHasBeenSet; }
91 template<typename ConnectedLinkIdT = Aws::String>
92 void SetConnectedLinkId(ConnectedLinkIdT&& value) { m_connectedLinkIdHasBeenSet = true; m_connectedLinkId = std::forward<ConnectedLinkIdT>(value); }
93 template<typename ConnectedLinkIdT = Aws::String>
94 CreateConnectionRequest& WithConnectedLinkId(ConnectedLinkIdT&& value) { SetConnectedLinkId(std::forward<ConnectedLinkIdT>(value)); return *this;}
96
98
102 inline const Aws::String& GetDescription() const { return m_description; }
103 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
104 template<typename DescriptionT = Aws::String>
105 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
106 template<typename DescriptionT = Aws::String>
107 CreateConnectionRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
109
111
114 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
115 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
116 template<typename TagsT = Aws::Vector<Tag>>
117 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
118 template<typename TagsT = Aws::Vector<Tag>>
119 CreateConnectionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
120 template<typename TagsT = Tag>
121 CreateConnectionRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
123 private:
124
125 Aws::String m_globalNetworkId;
126 bool m_globalNetworkIdHasBeenSet = false;
127
128 Aws::String m_deviceId;
129 bool m_deviceIdHasBeenSet = false;
130
131 Aws::String m_connectedDeviceId;
132 bool m_connectedDeviceIdHasBeenSet = false;
133
134 Aws::String m_linkId;
135 bool m_linkIdHasBeenSet = false;
136
137 Aws::String m_connectedLinkId;
138 bool m_connectedLinkIdHasBeenSet = false;
139
140 Aws::String m_description;
141 bool m_descriptionHasBeenSet = false;
142
143 Aws::Vector<Tag> m_tags;
144 bool m_tagsHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace NetworkManager
149} // 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