AWS SDK for C++

AWS SDK for C++ Version 1.11.748

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/SftpConnectorConfig.h>
12#include <aws/awstransfer/model/Tag.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Transfer {
20namespace Model {
21
25 public:
26 AWS_TRANSFER_API CreateConnectorRequest() = 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 "CreateConnector"; }
33
34 AWS_TRANSFER_API Aws::String SerializePayload() const override;
35
37
39
45 inline const Aws::String& GetUrl() const { return m_url; }
46 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
47 template <typename UrlT = Aws::String>
48 void SetUrl(UrlT&& value) {
49 m_urlHasBeenSet = true;
50 m_url = std::forward<UrlT>(value);
51 }
52 template <typename UrlT = Aws::String>
54 SetUrl(std::forward<UrlT>(value));
55 return *this;
56 }
58
60
63 inline const As2ConnectorConfig& GetAs2Config() const { return m_as2Config; }
64 inline bool As2ConfigHasBeenSet() const { return m_as2ConfigHasBeenSet; }
65 template <typename As2ConfigT = As2ConnectorConfig>
66 void SetAs2Config(As2ConfigT&& value) {
67 m_as2ConfigHasBeenSet = true;
68 m_as2Config = std::forward<As2ConfigT>(value);
69 }
70 template <typename As2ConfigT = As2ConnectorConfig>
72 SetAs2Config(std::forward<As2ConfigT>(value));
73 return *this;
74 }
76
78
104 inline const Aws::String& GetAccessRole() const { return m_accessRole; }
105 inline bool AccessRoleHasBeenSet() const { return m_accessRoleHasBeenSet; }
106 template <typename AccessRoleT = Aws::String>
107 void SetAccessRole(AccessRoleT&& value) {
108 m_accessRoleHasBeenSet = true;
109 m_accessRole = std::forward<AccessRoleT>(value);
110 }
111 template <typename AccessRoleT = Aws::String>
113 SetAccessRole(std::forward<AccessRoleT>(value));
114 return *this;
115 }
117
119
124 inline const Aws::String& GetLoggingRole() const { return m_loggingRole; }
125 inline bool LoggingRoleHasBeenSet() const { return m_loggingRoleHasBeenSet; }
126 template <typename LoggingRoleT = Aws::String>
127 void SetLoggingRole(LoggingRoleT&& value) {
128 m_loggingRoleHasBeenSet = true;
129 m_loggingRole = std::forward<LoggingRoleT>(value);
130 }
131 template <typename LoggingRoleT = Aws::String>
133 SetLoggingRole(std::forward<LoggingRoleT>(value));
134 return *this;
135 }
137
139
143 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
144 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
145 template <typename TagsT = Aws::Vector<Tag>>
146 void SetTags(TagsT&& value) {
147 m_tagsHasBeenSet = true;
148 m_tags = std::forward<TagsT>(value);
149 }
150 template <typename TagsT = Aws::Vector<Tag>>
152 SetTags(std::forward<TagsT>(value));
153 return *this;
154 }
155 template <typename TagsT = Tag>
157 m_tagsHasBeenSet = true;
158 m_tags.emplace_back(std::forward<TagsT>(value));
159 return *this;
160 }
162
164
167 inline const SftpConnectorConfig& GetSftpConfig() const { return m_sftpConfig; }
168 inline bool SftpConfigHasBeenSet() const { return m_sftpConfigHasBeenSet; }
169 template <typename SftpConfigT = SftpConnectorConfig>
170 void SetSftpConfig(SftpConfigT&& value) {
171 m_sftpConfigHasBeenSet = true;
172 m_sftpConfig = std::forward<SftpConfigT>(value);
173 }
174 template <typename SftpConfigT = SftpConnectorConfig>
176 SetSftpConfig(std::forward<SftpConfigT>(value));
177 return *this;
178 }
180
182
185 inline const Aws::String& GetSecurityPolicyName() const { return m_securityPolicyName; }
186 inline bool SecurityPolicyNameHasBeenSet() const { return m_securityPolicyNameHasBeenSet; }
187 template <typename SecurityPolicyNameT = Aws::String>
188 void SetSecurityPolicyName(SecurityPolicyNameT&& value) {
189 m_securityPolicyNameHasBeenSet = true;
190 m_securityPolicyName = std::forward<SecurityPolicyNameT>(value);
191 }
192 template <typename SecurityPolicyNameT = Aws::String>
193 CreateConnectorRequest& WithSecurityPolicyName(SecurityPolicyNameT&& value) {
194 SetSecurityPolicyName(std::forward<SecurityPolicyNameT>(value));
195 return *this;
196 }
198
200
206 inline const ConnectorEgressConfig& GetEgressConfig() const { return m_egressConfig; }
207 inline bool EgressConfigHasBeenSet() const { return m_egressConfigHasBeenSet; }
208 template <typename EgressConfigT = ConnectorEgressConfig>
209 void SetEgressConfig(EgressConfigT&& value) {
210 m_egressConfigHasBeenSet = true;
211 m_egressConfig = std::forward<EgressConfigT>(value);
212 }
213 template <typename EgressConfigT = ConnectorEgressConfig>
214 CreateConnectorRequest& WithEgressConfig(EgressConfigT&& value) {
215 SetEgressConfig(std::forward<EgressConfigT>(value));
216 return *this;
217 }
219 private:
220 Aws::String m_url;
221
222 As2ConnectorConfig m_as2Config;
223
224 Aws::String m_accessRole;
225
226 Aws::String m_loggingRole;
227
228 Aws::Vector<Tag> m_tags;
229
230 SftpConnectorConfig m_sftpConfig;
231
232 Aws::String m_securityPolicyName;
233
234 ConnectorEgressConfig m_egressConfig;
235 bool m_urlHasBeenSet = false;
236 bool m_as2ConfigHasBeenSet = false;
237 bool m_accessRoleHasBeenSet = false;
238 bool m_loggingRoleHasBeenSet = false;
239 bool m_tagsHasBeenSet = false;
240 bool m_sftpConfigHasBeenSet = false;
241 bool m_securityPolicyNameHasBeenSet = false;
242 bool m_egressConfigHasBeenSet = false;
243};
244
245} // namespace Model
246} // namespace Transfer
247} // 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
CreateConnectorRequest & WithAccessRole(AccessRoleT &&value)
CreateConnectorRequest & AddTags(TagsT &&value)
const SftpConnectorConfig & GetSftpConfig() const
virtual const char * GetServiceRequestName() const override
CreateConnectorRequest & WithTags(TagsT &&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