AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
UpdateConnectionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/networkmanager/NetworkManagerRequest.h>
9#include <aws/networkmanager/NetworkManager_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace NetworkManager {
15namespace Model {
16
20 public:
21 AWS_NETWORKMANAGER_API UpdateConnectionRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "UpdateConnection"; }
28
29 AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override;
30
32
35 inline const Aws::String& GetGlobalNetworkId() const { return m_globalNetworkId; }
36 inline bool GlobalNetworkIdHasBeenSet() const { return m_globalNetworkIdHasBeenSet; }
37 template <typename GlobalNetworkIdT = Aws::String>
38 void SetGlobalNetworkId(GlobalNetworkIdT&& value) {
39 m_globalNetworkIdHasBeenSet = true;
40 m_globalNetworkId = std::forward<GlobalNetworkIdT>(value);
41 }
42 template <typename GlobalNetworkIdT = Aws::String>
43 UpdateConnectionRequest& WithGlobalNetworkId(GlobalNetworkIdT&& value) {
44 SetGlobalNetworkId(std::forward<GlobalNetworkIdT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
54 inline bool ConnectionIdHasBeenSet() const { return m_connectionIdHasBeenSet; }
55 template <typename ConnectionIdT = Aws::String>
56 void SetConnectionId(ConnectionIdT&& value) {
57 m_connectionIdHasBeenSet = true;
58 m_connectionId = std::forward<ConnectionIdT>(value);
59 }
60 template <typename ConnectionIdT = Aws::String>
61 UpdateConnectionRequest& WithConnectionId(ConnectionIdT&& value) {
62 SetConnectionId(std::forward<ConnectionIdT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetLinkId() const { return m_linkId; }
72 inline bool LinkIdHasBeenSet() const { return m_linkIdHasBeenSet; }
73 template <typename LinkIdT = Aws::String>
74 void SetLinkId(LinkIdT&& value) {
75 m_linkIdHasBeenSet = true;
76 m_linkId = std::forward<LinkIdT>(value);
77 }
78 template <typename LinkIdT = Aws::String>
80 SetLinkId(std::forward<LinkIdT>(value));
81 return *this;
82 }
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) {
93 m_connectedLinkIdHasBeenSet = true;
94 m_connectedLinkId = std::forward<ConnectedLinkIdT>(value);
95 }
96 template <typename ConnectedLinkIdT = Aws::String>
97 UpdateConnectionRequest& WithConnectedLinkId(ConnectedLinkIdT&& value) {
98 SetConnectedLinkId(std::forward<ConnectedLinkIdT>(value));
99 return *this;
100 }
102
104
108 inline const Aws::String& GetDescription() const { return m_description; }
109 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
110 template <typename DescriptionT = Aws::String>
111 void SetDescription(DescriptionT&& value) {
112 m_descriptionHasBeenSet = true;
113 m_description = std::forward<DescriptionT>(value);
114 }
115 template <typename DescriptionT = Aws::String>
117 SetDescription(std::forward<DescriptionT>(value));
118 return *this;
119 }
121 private:
122 Aws::String m_globalNetworkId;
123
124 Aws::String m_connectionId;
125
126 Aws::String m_linkId;
127
128 Aws::String m_connectedLinkId;
129
130 Aws::String m_description;
131 bool m_globalNetworkIdHasBeenSet = false;
132 bool m_connectionIdHasBeenSet = false;
133 bool m_linkIdHasBeenSet = false;
134 bool m_connectedLinkIdHasBeenSet = false;
135 bool m_descriptionHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace NetworkManager
140} // namespace Aws
UpdateConnectionRequest & WithDescription(DescriptionT &&value)
UpdateConnectionRequest & WithConnectionId(ConnectionIdT &&value)
UpdateConnectionRequest & WithConnectedLinkId(ConnectedLinkIdT &&value)
virtual const char * GetServiceRequestName() const override
AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override
UpdateConnectionRequest & WithGlobalNetworkId(GlobalNetworkIdT &&value)
AWS_NETWORKMANAGER_API UpdateConnectionRequest()=default
UpdateConnectionRequest & WithLinkId(LinkIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String