AWS SDK for C++

AWS SDK for C++ Version 1.11.785

Loading...
Searching...
No Matches
CreateConnectorRequest.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/ConnectorEgressConfig.h>
11#include <aws/awstransfer/model/ConnectorsIpAddressType.h>
12#include <aws/awstransfer/model/SftpConnectorConfig.h>
13#include <aws/awstransfer/model/Tag.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Transfer {
21namespace Model {
22
26 public:
27 AWS_TRANSFER_API CreateConnectorRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateConnector"; }
34
35 AWS_TRANSFER_API Aws::String SerializePayload() const override;
36
38
40
46 inline const Aws::String& GetUrl() const { return m_url; }
47 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
48 template <typename UrlT = Aws::String>
49 void SetUrl(UrlT&& value) {
50 m_urlHasBeenSet = true;
51 m_url = std::forward<UrlT>(value);
52 }
53 template <typename UrlT = Aws::String>
55 SetUrl(std::forward<UrlT>(value));
56 return *this;
57 }
59
61
64 inline const As2ConnectorConfig& GetAs2Config() const { return m_as2Config; }
65 inline bool As2ConfigHasBeenSet() const { return m_as2ConfigHasBeenSet; }
66 template <typename As2ConfigT = As2ConnectorConfig>
67 void SetAs2Config(As2ConfigT&& value) {
68 m_as2ConfigHasBeenSet = true;
69 m_as2Config = std::forward<As2ConfigT>(value);
70 }
71 template <typename As2ConfigT = As2ConnectorConfig>
73 SetAs2Config(std::forward<As2ConfigT>(value));
74 return *this;
75 }
77
79
105 inline const Aws::String& GetAccessRole() const { return m_accessRole; }
106 inline bool AccessRoleHasBeenSet() const { return m_accessRoleHasBeenSet; }
107 template <typename AccessRoleT = Aws::String>
108 void SetAccessRole(AccessRoleT&& value) {
109 m_accessRoleHasBeenSet = true;
110 m_accessRole = std::forward<AccessRoleT>(value);
111 }
112 template <typename AccessRoleT = Aws::String>
114 SetAccessRole(std::forward<AccessRoleT>(value));
115 return *this;
116 }
118
120
125 inline const Aws::String& GetLoggingRole() const { return m_loggingRole; }
126 inline bool LoggingRoleHasBeenSet() const { return m_loggingRoleHasBeenSet; }
127 template <typename LoggingRoleT = Aws::String>
128 void SetLoggingRole(LoggingRoleT&& value) {
129 m_loggingRoleHasBeenSet = true;
130 m_loggingRole = std::forward<LoggingRoleT>(value);
131 }
132 template <typename LoggingRoleT = Aws::String>
134 SetLoggingRole(std::forward<LoggingRoleT>(value));
135 return *this;
136 }
138
140
144 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
145 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
146 template <typename TagsT = Aws::Vector<Tag>>
147 void SetTags(TagsT&& value) {
148 m_tagsHasBeenSet = true;
149 m_tags = std::forward<TagsT>(value);
150 }
151 template <typename TagsT = Aws::Vector<Tag>>
153 SetTags(std::forward<TagsT>(value));
154 return *this;
155 }
156 template <typename TagsT = Tag>
158 m_tagsHasBeenSet = true;
159 m_tags.emplace_back(std::forward<TagsT>(value));
160 return *this;
161 }
163
165
168 inline const SftpConnectorConfig& GetSftpConfig() const { return m_sftpConfig; }
169 inline bool SftpConfigHasBeenSet() const { return m_sftpConfigHasBeenSet; }
170 template <typename SftpConfigT = SftpConnectorConfig>
171 void SetSftpConfig(SftpConfigT&& value) {
172 m_sftpConfigHasBeenSet = true;
173 m_sftpConfig = std::forward<SftpConfigT>(value);
174 }
175 template <typename SftpConfigT = SftpConnectorConfig>
177 SetSftpConfig(std::forward<SftpConfigT>(value));
178 return *this;
179 }
181
183
186 inline const Aws::String& GetSecurityPolicyName() const { return m_securityPolicyName; }
187 inline bool SecurityPolicyNameHasBeenSet() const { return m_securityPolicyNameHasBeenSet; }
188 template <typename SecurityPolicyNameT = Aws::String>
189 void SetSecurityPolicyName(SecurityPolicyNameT&& value) {
190 m_securityPolicyNameHasBeenSet = true;
191 m_securityPolicyName = std::forward<SecurityPolicyNameT>(value);
192 }
193 template <typename SecurityPolicyNameT = Aws::String>
194 CreateConnectorRequest& WithSecurityPolicyName(SecurityPolicyNameT&& value) {
195 SetSecurityPolicyName(std::forward<SecurityPolicyNameT>(value));
196 return *this;
197 }
199
201
207 inline const ConnectorEgressConfig& GetEgressConfig() const { return m_egressConfig; }
208 inline bool EgressConfigHasBeenSet() const { return m_egressConfigHasBeenSet; }
209 template <typename EgressConfigT = ConnectorEgressConfig>
210 void SetEgressConfig(EgressConfigT&& value) {
211 m_egressConfigHasBeenSet = true;
212 m_egressConfig = std::forward<EgressConfigT>(value);
213 }
214 template <typename EgressConfigT = ConnectorEgressConfig>
215 CreateConnectorRequest& WithEgressConfig(EgressConfigT&& value) {
216 SetEgressConfig(std::forward<EgressConfigT>(value));
217 return *this;
218 }
220
222
228 inline ConnectorsIpAddressType GetIpAddressType() const { return m_ipAddressType; }
229 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
231 m_ipAddressTypeHasBeenSet = true;
232 m_ipAddressType = value;
233 }
235 SetIpAddressType(value);
236 return *this;
237 }
239 private:
240 Aws::String m_url;
241
242 As2ConnectorConfig m_as2Config;
243
244 Aws::String m_accessRole;
245
246 Aws::String m_loggingRole;
247
248 Aws::Vector<Tag> m_tags;
249
250 SftpConnectorConfig m_sftpConfig;
251
252 Aws::String m_securityPolicyName;
253
254 ConnectorEgressConfig m_egressConfig;
255
257 bool m_urlHasBeenSet = false;
258 bool m_as2ConfigHasBeenSet = false;
259 bool m_accessRoleHasBeenSet = false;
260 bool m_loggingRoleHasBeenSet = false;
261 bool m_tagsHasBeenSet = false;
262 bool m_sftpConfigHasBeenSet = false;
263 bool m_securityPolicyNameHasBeenSet = false;
264 bool m_egressConfigHasBeenSet = false;
265 bool m_ipAddressTypeHasBeenSet = false;
266};
267
268} // namespace Model
269} // namespace Transfer
270} // namespace Aws
CreateConnectorRequest & WithLoggingRole(LoggingRoleT &&value)
CreateConnectorRequest & WithSecurityPolicyName(SecurityPolicyNameT &&value)
AWS_TRANSFER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_TRANSFER_API CreateConnectorRequest()=default
const As2ConnectorConfig & GetAs2Config() const
AWS_TRANSFER_API Aws::String SerializePayload() const override
void SetIpAddressType(ConnectorsIpAddressType value)
CreateConnectorRequest & WithAccessRole(AccessRoleT &&value)
CreateConnectorRequest & AddTags(TagsT &&value)
const SftpConnectorConfig & GetSftpConfig() const
virtual const char * GetServiceRequestName() const override
CreateConnectorRequest & WithTags(TagsT &&value)
CreateConnectorRequest & WithIpAddressType(ConnectorsIpAddressType value)
CreateConnectorRequest & WithUrl(UrlT &&value)
void SetSecurityPolicyName(SecurityPolicyNameT &&value)
CreateConnectorRequest & WithEgressConfig(EgressConfigT &&value)
CreateConnectorRequest & WithSftpConfig(SftpConfigT &&value)
const ConnectorEgressConfig & GetEgressConfig() const
CreateConnectorRequest & WithAs2Config(As2ConfigT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector