AWS SDK for C++

AWS SDK for C++ Version 1.11.785

Loading...
Searching...
No Matches
UpdateConnectorRequest.h
1
6#pragma once
7#include <aws/awstransfer/TransferRequest.h>
8#include <aws/awstransfer/Transfer_EXPORTS.h>
9#include <aws/awstransfer/model/As2ConnectorConfig.h>
10#include <aws/awstransfer/model/ConnectorsIpAddressType.h>
11#include <aws/awstransfer/model/SftpConnectorConfig.h>
12#include <aws/awstransfer/model/UpdateConnectorEgressConfig.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Transfer {
19namespace Model {
20
24 public:
25 AWS_TRANSFER_API UpdateConnectorRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateConnector"; }
32
33 AWS_TRANSFER_API Aws::String SerializePayload() const override;
34
36
38
41 inline const Aws::String& GetConnectorId() const { return m_connectorId; }
42 inline bool ConnectorIdHasBeenSet() const { return m_connectorIdHasBeenSet; }
43 template <typename ConnectorIdT = Aws::String>
44 void SetConnectorId(ConnectorIdT&& value) {
45 m_connectorIdHasBeenSet = true;
46 m_connectorId = std::forward<ConnectorIdT>(value);
47 }
48 template <typename ConnectorIdT = Aws::String>
49 UpdateConnectorRequest& WithConnectorId(ConnectorIdT&& value) {
50 SetConnectorId(std::forward<ConnectorIdT>(value));
51 return *this;
52 }
54
56
62 inline const Aws::String& GetUrl() const { return m_url; }
63 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
64 template <typename UrlT = Aws::String>
65 void SetUrl(UrlT&& value) {
66 m_urlHasBeenSet = true;
67 m_url = std::forward<UrlT>(value);
68 }
69 template <typename UrlT = Aws::String>
71 SetUrl(std::forward<UrlT>(value));
72 return *this;
73 }
75
77
80 inline const As2ConnectorConfig& GetAs2Config() const { return m_as2Config; }
81 inline bool As2ConfigHasBeenSet() const { return m_as2ConfigHasBeenSet; }
82 template <typename As2ConfigT = As2ConnectorConfig>
83 void SetAs2Config(As2ConfigT&& value) {
84 m_as2ConfigHasBeenSet = true;
85 m_as2Config = std::forward<As2ConfigT>(value);
86 }
87 template <typename As2ConfigT = As2ConnectorConfig>
89 SetAs2Config(std::forward<As2ConfigT>(value));
90 return *this;
91 }
93
95
121 inline const Aws::String& GetAccessRole() const { return m_accessRole; }
122 inline bool AccessRoleHasBeenSet() const { return m_accessRoleHasBeenSet; }
123 template <typename AccessRoleT = Aws::String>
124 void SetAccessRole(AccessRoleT&& value) {
125 m_accessRoleHasBeenSet = true;
126 m_accessRole = std::forward<AccessRoleT>(value);
127 }
128 template <typename AccessRoleT = Aws::String>
130 SetAccessRole(std::forward<AccessRoleT>(value));
131 return *this;
132 }
134
136
141 inline const Aws::String& GetLoggingRole() const { return m_loggingRole; }
142 inline bool LoggingRoleHasBeenSet() const { return m_loggingRoleHasBeenSet; }
143 template <typename LoggingRoleT = Aws::String>
144 void SetLoggingRole(LoggingRoleT&& value) {
145 m_loggingRoleHasBeenSet = true;
146 m_loggingRole = std::forward<LoggingRoleT>(value);
147 }
148 template <typename LoggingRoleT = Aws::String>
150 SetLoggingRole(std::forward<LoggingRoleT>(value));
151 return *this;
152 }
154
156
159 inline const SftpConnectorConfig& GetSftpConfig() const { return m_sftpConfig; }
160 inline bool SftpConfigHasBeenSet() const { return m_sftpConfigHasBeenSet; }
161 template <typename SftpConfigT = SftpConnectorConfig>
162 void SetSftpConfig(SftpConfigT&& value) {
163 m_sftpConfigHasBeenSet = true;
164 m_sftpConfig = std::forward<SftpConfigT>(value);
165 }
166 template <typename SftpConfigT = SftpConnectorConfig>
168 SetSftpConfig(std::forward<SftpConfigT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::String& GetSecurityPolicyName() const { return m_securityPolicyName; }
178 inline bool SecurityPolicyNameHasBeenSet() const { return m_securityPolicyNameHasBeenSet; }
179 template <typename SecurityPolicyNameT = Aws::String>
180 void SetSecurityPolicyName(SecurityPolicyNameT&& value) {
181 m_securityPolicyNameHasBeenSet = true;
182 m_securityPolicyName = std::forward<SecurityPolicyNameT>(value);
183 }
184 template <typename SecurityPolicyNameT = Aws::String>
185 UpdateConnectorRequest& WithSecurityPolicyName(SecurityPolicyNameT&& value) {
186 SetSecurityPolicyName(std::forward<SecurityPolicyNameT>(value));
187 return *this;
188 }
190
192
197 inline const UpdateConnectorEgressConfig& GetEgressConfig() const { return m_egressConfig; }
198 inline bool EgressConfigHasBeenSet() const { return m_egressConfigHasBeenSet; }
199 template <typename EgressConfigT = UpdateConnectorEgressConfig>
200 void SetEgressConfig(EgressConfigT&& value) {
201 m_egressConfigHasBeenSet = true;
202 m_egressConfig = std::forward<EgressConfigT>(value);
203 }
204 template <typename EgressConfigT = UpdateConnectorEgressConfig>
205 UpdateConnectorRequest& WithEgressConfig(EgressConfigT&& value) {
206 SetEgressConfig(std::forward<EgressConfigT>(value));
207 return *this;
208 }
210
212
218 inline ConnectorsIpAddressType GetIpAddressType() const { return m_ipAddressType; }
219 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
221 m_ipAddressTypeHasBeenSet = true;
222 m_ipAddressType = value;
223 }
225 SetIpAddressType(value);
226 return *this;
227 }
229 private:
230 Aws::String m_connectorId;
231
232 Aws::String m_url;
233
234 As2ConnectorConfig m_as2Config;
235
236 Aws::String m_accessRole;
237
238 Aws::String m_loggingRole;
239
240 SftpConnectorConfig m_sftpConfig;
241
242 Aws::String m_securityPolicyName;
243
244 UpdateConnectorEgressConfig m_egressConfig;
245
247 bool m_connectorIdHasBeenSet = false;
248 bool m_urlHasBeenSet = false;
249 bool m_as2ConfigHasBeenSet = false;
250 bool m_accessRoleHasBeenSet = false;
251 bool m_loggingRoleHasBeenSet = false;
252 bool m_sftpConfigHasBeenSet = false;
253 bool m_securityPolicyNameHasBeenSet = false;
254 bool m_egressConfigHasBeenSet = false;
255 bool m_ipAddressTypeHasBeenSet = false;
256};
257
258} // namespace Model
259} // namespace Transfer
260} // namespace Aws
UpdateConnectorRequest & WithUrl(UrlT &&value)
const As2ConnectorConfig & GetAs2Config() const
UpdateConnectorRequest & WithAccessRole(AccessRoleT &&value)
void SetSecurityPolicyName(SecurityPolicyNameT &&value)
UpdateConnectorRequest & WithLoggingRole(LoggingRoleT &&value)
UpdateConnectorRequest & WithIpAddressType(ConnectorsIpAddressType value)
UpdateConnectorRequest & WithEgressConfig(EgressConfigT &&value)
AWS_TRANSFER_API Aws::String SerializePayload() const override
AWS_TRANSFER_API UpdateConnectorRequest()=default
UpdateConnectorRequest & WithConnectorId(ConnectorIdT &&value)
AWS_TRANSFER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
UpdateConnectorRequest & WithSftpConfig(SftpConfigT &&value)
UpdateConnectorRequest & WithAs2Config(As2ConfigT &&value)
void SetIpAddressType(ConnectorsIpAddressType value)
const UpdateConnectorEgressConfig & GetEgressConfig() const
const SftpConnectorConfig & GetSftpConfig() const
UpdateConnectorRequest & WithSecurityPolicyName(SecurityPolicyNameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String