AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateConnectorRequest.h
1
6#pragma once
7#include <aws/awstransfer/Transfer_EXPORTS.h>
8#include <aws/awstransfer/TransferRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/awstransfer/model/As2ConnectorConfig.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/awstransfer/model/SftpConnectorConfig.h>
13#include <aws/awstransfer/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Transfer
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_TRANSFER_API CreateConnectorRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateConnector"; }
35
36 AWS_TRANSFER_API Aws::String SerializePayload() const override;
37
39
40
42
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) { m_urlHasBeenSet = true; m_url = std::forward<UrlT>(value); }
49 template<typename UrlT = Aws::String>
50 CreateConnectorRequest& WithUrl(UrlT&& value) { SetUrl(std::forward<UrlT>(value)); return *this;}
52
54
57 inline const As2ConnectorConfig& GetAs2Config() const { return m_as2Config; }
58 inline bool As2ConfigHasBeenSet() const { return m_as2ConfigHasBeenSet; }
59 template<typename As2ConfigT = As2ConnectorConfig>
60 void SetAs2Config(As2ConfigT&& value) { m_as2ConfigHasBeenSet = true; m_as2Config = std::forward<As2ConfigT>(value); }
61 template<typename As2ConfigT = As2ConnectorConfig>
62 CreateConnectorRequest& WithAs2Config(As2ConfigT&& value) { SetAs2Config(std::forward<As2ConfigT>(value)); return *this;}
64
66
92 inline const Aws::String& GetAccessRole() const { return m_accessRole; }
93 inline bool AccessRoleHasBeenSet() const { return m_accessRoleHasBeenSet; }
94 template<typename AccessRoleT = Aws::String>
95 void SetAccessRole(AccessRoleT&& value) { m_accessRoleHasBeenSet = true; m_accessRole = std::forward<AccessRoleT>(value); }
96 template<typename AccessRoleT = Aws::String>
97 CreateConnectorRequest& WithAccessRole(AccessRoleT&& value) { SetAccessRole(std::forward<AccessRoleT>(value)); return *this;}
99
101
106 inline const Aws::String& GetLoggingRole() const { return m_loggingRole; }
107 inline bool LoggingRoleHasBeenSet() const { return m_loggingRoleHasBeenSet; }
108 template<typename LoggingRoleT = Aws::String>
109 void SetLoggingRole(LoggingRoleT&& value) { m_loggingRoleHasBeenSet = true; m_loggingRole = std::forward<LoggingRoleT>(value); }
110 template<typename LoggingRoleT = Aws::String>
111 CreateConnectorRequest& WithLoggingRole(LoggingRoleT&& value) { SetLoggingRole(std::forward<LoggingRoleT>(value)); return *this;}
113
115
119 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
120 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
121 template<typename TagsT = Aws::Vector<Tag>>
122 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
123 template<typename TagsT = Aws::Vector<Tag>>
124 CreateConnectorRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
125 template<typename TagsT = Tag>
126 CreateConnectorRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
128
130
133 inline const SftpConnectorConfig& GetSftpConfig() const { return m_sftpConfig; }
134 inline bool SftpConfigHasBeenSet() const { return m_sftpConfigHasBeenSet; }
135 template<typename SftpConfigT = SftpConnectorConfig>
136 void SetSftpConfig(SftpConfigT&& value) { m_sftpConfigHasBeenSet = true; m_sftpConfig = std::forward<SftpConfigT>(value); }
137 template<typename SftpConfigT = SftpConnectorConfig>
138 CreateConnectorRequest& WithSftpConfig(SftpConfigT&& value) { SetSftpConfig(std::forward<SftpConfigT>(value)); return *this;}
140
142
145 inline const Aws::String& GetSecurityPolicyName() const { return m_securityPolicyName; }
146 inline bool SecurityPolicyNameHasBeenSet() const { return m_securityPolicyNameHasBeenSet; }
147 template<typename SecurityPolicyNameT = Aws::String>
148 void SetSecurityPolicyName(SecurityPolicyNameT&& value) { m_securityPolicyNameHasBeenSet = true; m_securityPolicyName = std::forward<SecurityPolicyNameT>(value); }
149 template<typename SecurityPolicyNameT = Aws::String>
150 CreateConnectorRequest& WithSecurityPolicyName(SecurityPolicyNameT&& value) { SetSecurityPolicyName(std::forward<SecurityPolicyNameT>(value)); return *this;}
152 private:
153
154 Aws::String m_url;
155 bool m_urlHasBeenSet = false;
156
157 As2ConnectorConfig m_as2Config;
158 bool m_as2ConfigHasBeenSet = false;
159
160 Aws::String m_accessRole;
161 bool m_accessRoleHasBeenSet = false;
162
163 Aws::String m_loggingRole;
164 bool m_loggingRoleHasBeenSet = false;
165
166 Aws::Vector<Tag> m_tags;
167 bool m_tagsHasBeenSet = false;
168
169 SftpConnectorConfig m_sftpConfig;
170 bool m_sftpConfigHasBeenSet = false;
171
172 Aws::String m_securityPolicyName;
173 bool m_securityPolicyNameHasBeenSet = false;
174 };
175
176} // namespace Model
177} // namespace Transfer
178} // 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 & WithSftpConfig(SftpConfigT &&value)
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