AWS SDK for C++

AWS SDK for C++ Version 1.11.748

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/SftpConnectorConfig.h>
11#include <aws/awstransfer/model/UpdateConnectorEgressConfig.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Transfer {
18namespace Model {
19
23 public:
24 AWS_TRANSFER_API UpdateConnectorRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateConnector"; }
31
32 AWS_TRANSFER_API Aws::String SerializePayload() const override;
33
35
37
40 inline const Aws::String& GetConnectorId() const { return m_connectorId; }
41 inline bool ConnectorIdHasBeenSet() const { return m_connectorIdHasBeenSet; }
42 template <typename ConnectorIdT = Aws::String>
43 void SetConnectorId(ConnectorIdT&& value) {
44 m_connectorIdHasBeenSet = true;
45 m_connectorId = std::forward<ConnectorIdT>(value);
46 }
47 template <typename ConnectorIdT = Aws::String>
48 UpdateConnectorRequest& WithConnectorId(ConnectorIdT&& value) {
49 SetConnectorId(std::forward<ConnectorIdT>(value));
50 return *this;
51 }
53
55
61 inline const Aws::String& GetUrl() const { return m_url; }
62 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
63 template <typename UrlT = Aws::String>
64 void SetUrl(UrlT&& value) {
65 m_urlHasBeenSet = true;
66 m_url = std::forward<UrlT>(value);
67 }
68 template <typename UrlT = Aws::String>
70 SetUrl(std::forward<UrlT>(value));
71 return *this;
72 }
74
76
79 inline const As2ConnectorConfig& GetAs2Config() const { return m_as2Config; }
80 inline bool As2ConfigHasBeenSet() const { return m_as2ConfigHasBeenSet; }
81 template <typename As2ConfigT = As2ConnectorConfig>
82 void SetAs2Config(As2ConfigT&& value) {
83 m_as2ConfigHasBeenSet = true;
84 m_as2Config = std::forward<As2ConfigT>(value);
85 }
86 template <typename As2ConfigT = As2ConnectorConfig>
88 SetAs2Config(std::forward<As2ConfigT>(value));
89 return *this;
90 }
92
94
120 inline const Aws::String& GetAccessRole() const { return m_accessRole; }
121 inline bool AccessRoleHasBeenSet() const { return m_accessRoleHasBeenSet; }
122 template <typename AccessRoleT = Aws::String>
123 void SetAccessRole(AccessRoleT&& value) {
124 m_accessRoleHasBeenSet = true;
125 m_accessRole = std::forward<AccessRoleT>(value);
126 }
127 template <typename AccessRoleT = Aws::String>
129 SetAccessRole(std::forward<AccessRoleT>(value));
130 return *this;
131 }
133
135
140 inline const Aws::String& GetLoggingRole() const { return m_loggingRole; }
141 inline bool LoggingRoleHasBeenSet() const { return m_loggingRoleHasBeenSet; }
142 template <typename LoggingRoleT = Aws::String>
143 void SetLoggingRole(LoggingRoleT&& value) {
144 m_loggingRoleHasBeenSet = true;
145 m_loggingRole = std::forward<LoggingRoleT>(value);
146 }
147 template <typename LoggingRoleT = Aws::String>
149 SetLoggingRole(std::forward<LoggingRoleT>(value));
150 return *this;
151 }
153
155
158 inline const SftpConnectorConfig& GetSftpConfig() const { return m_sftpConfig; }
159 inline bool SftpConfigHasBeenSet() const { return m_sftpConfigHasBeenSet; }
160 template <typename SftpConfigT = SftpConnectorConfig>
161 void SetSftpConfig(SftpConfigT&& value) {
162 m_sftpConfigHasBeenSet = true;
163 m_sftpConfig = std::forward<SftpConfigT>(value);
164 }
165 template <typename SftpConfigT = SftpConnectorConfig>
167 SetSftpConfig(std::forward<SftpConfigT>(value));
168 return *this;
169 }
171
173
176 inline const Aws::String& GetSecurityPolicyName() const { return m_securityPolicyName; }
177 inline bool SecurityPolicyNameHasBeenSet() const { return m_securityPolicyNameHasBeenSet; }
178 template <typename SecurityPolicyNameT = Aws::String>
179 void SetSecurityPolicyName(SecurityPolicyNameT&& value) {
180 m_securityPolicyNameHasBeenSet = true;
181 m_securityPolicyName = std::forward<SecurityPolicyNameT>(value);
182 }
183 template <typename SecurityPolicyNameT = Aws::String>
184 UpdateConnectorRequest& WithSecurityPolicyName(SecurityPolicyNameT&& value) {
185 SetSecurityPolicyName(std::forward<SecurityPolicyNameT>(value));
186 return *this;
187 }
189
191
196 inline const UpdateConnectorEgressConfig& GetEgressConfig() const { return m_egressConfig; }
197 inline bool EgressConfigHasBeenSet() const { return m_egressConfigHasBeenSet; }
198 template <typename EgressConfigT = UpdateConnectorEgressConfig>
199 void SetEgressConfig(EgressConfigT&& value) {
200 m_egressConfigHasBeenSet = true;
201 m_egressConfig = std::forward<EgressConfigT>(value);
202 }
203 template <typename EgressConfigT = UpdateConnectorEgressConfig>
204 UpdateConnectorRequest& WithEgressConfig(EgressConfigT&& value) {
205 SetEgressConfig(std::forward<EgressConfigT>(value));
206 return *this;
207 }
209 private:
210 Aws::String m_connectorId;
211
212 Aws::String m_url;
213
214 As2ConnectorConfig m_as2Config;
215
216 Aws::String m_accessRole;
217
218 Aws::String m_loggingRole;
219
220 SftpConnectorConfig m_sftpConfig;
221
222 Aws::String m_securityPolicyName;
223
224 UpdateConnectorEgressConfig m_egressConfig;
225 bool m_connectorIdHasBeenSet = false;
226 bool m_urlHasBeenSet = false;
227 bool m_as2ConfigHasBeenSet = false;
228 bool m_accessRoleHasBeenSet = false;
229 bool m_loggingRoleHasBeenSet = false;
230 bool m_sftpConfigHasBeenSet = false;
231 bool m_securityPolicyNameHasBeenSet = false;
232 bool m_egressConfigHasBeenSet = false;
233};
234
235} // namespace Model
236} // namespace Transfer
237} // namespace Aws
UpdateConnectorRequest & WithUrl(UrlT &&value)
const As2ConnectorConfig & GetAs2Config() const
UpdateConnectorRequest & WithAccessRole(AccessRoleT &&value)
void SetSecurityPolicyName(SecurityPolicyNameT &&value)
UpdateConnectorRequest & WithLoggingRole(LoggingRoleT &&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)
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