AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
48 inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); }
49 inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
50 inline CreateConnectorRequest& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
51 inline CreateConnectorRequest& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;}
52 inline CreateConnectorRequest& WithUrl(const char* value) { SetUrl(value); return *this;}
54
56
59 inline const As2ConnectorConfig& GetAs2Config() const{ return m_as2Config; }
60 inline bool As2ConfigHasBeenSet() const { return m_as2ConfigHasBeenSet; }
61 inline void SetAs2Config(const As2ConnectorConfig& value) { m_as2ConfigHasBeenSet = true; m_as2Config = value; }
62 inline void SetAs2Config(As2ConnectorConfig&& value) { m_as2ConfigHasBeenSet = true; m_as2Config = std::move(value); }
63 inline CreateConnectorRequest& WithAs2Config(const As2ConnectorConfig& value) { SetAs2Config(value); return *this;}
64 inline CreateConnectorRequest& WithAs2Config(As2ConnectorConfig&& value) { SetAs2Config(std::move(value)); return *this;}
66
68
94 inline const Aws::String& GetAccessRole() const{ return m_accessRole; }
95 inline bool AccessRoleHasBeenSet() const { return m_accessRoleHasBeenSet; }
96 inline void SetAccessRole(const Aws::String& value) { m_accessRoleHasBeenSet = true; m_accessRole = value; }
97 inline void SetAccessRole(Aws::String&& value) { m_accessRoleHasBeenSet = true; m_accessRole = std::move(value); }
98 inline void SetAccessRole(const char* value) { m_accessRoleHasBeenSet = true; m_accessRole.assign(value); }
99 inline CreateConnectorRequest& WithAccessRole(const Aws::String& value) { SetAccessRole(value); return *this;}
100 inline CreateConnectorRequest& WithAccessRole(Aws::String&& value) { SetAccessRole(std::move(value)); return *this;}
101 inline CreateConnectorRequest& WithAccessRole(const char* value) { SetAccessRole(value); return *this;}
103
105
110 inline const Aws::String& GetLoggingRole() const{ return m_loggingRole; }
111 inline bool LoggingRoleHasBeenSet() const { return m_loggingRoleHasBeenSet; }
112 inline void SetLoggingRole(const Aws::String& value) { m_loggingRoleHasBeenSet = true; m_loggingRole = value; }
113 inline void SetLoggingRole(Aws::String&& value) { m_loggingRoleHasBeenSet = true; m_loggingRole = std::move(value); }
114 inline void SetLoggingRole(const char* value) { m_loggingRoleHasBeenSet = true; m_loggingRole.assign(value); }
115 inline CreateConnectorRequest& WithLoggingRole(const Aws::String& value) { SetLoggingRole(value); return *this;}
116 inline CreateConnectorRequest& WithLoggingRole(Aws::String&& value) { SetLoggingRole(std::move(value)); return *this;}
117 inline CreateConnectorRequest& WithLoggingRole(const char* value) { SetLoggingRole(value); return *this;}
119
121
125 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
126 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
127 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
128 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
129 inline CreateConnectorRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
130 inline CreateConnectorRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
131 inline CreateConnectorRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
132 inline CreateConnectorRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
134
136
139 inline const SftpConnectorConfig& GetSftpConfig() const{ return m_sftpConfig; }
140 inline bool SftpConfigHasBeenSet() const { return m_sftpConfigHasBeenSet; }
141 inline void SetSftpConfig(const SftpConnectorConfig& value) { m_sftpConfigHasBeenSet = true; m_sftpConfig = value; }
142 inline void SetSftpConfig(SftpConnectorConfig&& value) { m_sftpConfigHasBeenSet = true; m_sftpConfig = std::move(value); }
143 inline CreateConnectorRequest& WithSftpConfig(const SftpConnectorConfig& value) { SetSftpConfig(value); return *this;}
144 inline CreateConnectorRequest& WithSftpConfig(SftpConnectorConfig&& value) { SetSftpConfig(std::move(value)); return *this;}
146
148
151 inline const Aws::String& GetSecurityPolicyName() const{ return m_securityPolicyName; }
152 inline bool SecurityPolicyNameHasBeenSet() const { return m_securityPolicyNameHasBeenSet; }
153 inline void SetSecurityPolicyName(const Aws::String& value) { m_securityPolicyNameHasBeenSet = true; m_securityPolicyName = value; }
154 inline void SetSecurityPolicyName(Aws::String&& value) { m_securityPolicyNameHasBeenSet = true; m_securityPolicyName = std::move(value); }
155 inline void SetSecurityPolicyName(const char* value) { m_securityPolicyNameHasBeenSet = true; m_securityPolicyName.assign(value); }
157 inline CreateConnectorRequest& WithSecurityPolicyName(Aws::String&& value) { SetSecurityPolicyName(std::move(value)); return *this;}
158 inline CreateConnectorRequest& WithSecurityPolicyName(const char* value) { SetSecurityPolicyName(value); return *this;}
160 private:
161
162 Aws::String m_url;
163 bool m_urlHasBeenSet = false;
164
165 As2ConnectorConfig m_as2Config;
166 bool m_as2ConfigHasBeenSet = false;
167
168 Aws::String m_accessRole;
169 bool m_accessRoleHasBeenSet = false;
170
171 Aws::String m_loggingRole;
172 bool m_loggingRoleHasBeenSet = false;
173
174 Aws::Vector<Tag> m_tags;
175 bool m_tagsHasBeenSet = false;
176
177 SftpConnectorConfig m_sftpConfig;
178 bool m_sftpConfigHasBeenSet = false;
179
180 Aws::String m_securityPolicyName;
181 bool m_securityPolicyNameHasBeenSet = false;
182 };
183
184} // namespace Model
185} // namespace Transfer
186} // namespace Aws
CreateConnectorRequest & WithSftpConfig(SftpConnectorConfig &&value)
CreateConnectorRequest & WithUrl(Aws::String &&value)
AWS_TRANSFER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetTags(const Aws::Vector< Tag > &value)
const As2ConnectorConfig & GetAs2Config() const
CreateConnectorRequest & WithTags(Aws::Vector< Tag > &&value)
AWS_TRANSFER_API Aws::String SerializePayload() const override
CreateConnectorRequest & WithSftpConfig(const SftpConnectorConfig &value)
CreateConnectorRequest & WithAccessRole(const Aws::String &value)
CreateConnectorRequest & WithSecurityPolicyName(const char *value)
void SetSftpConfig(const SftpConnectorConfig &value)
CreateConnectorRequest & WithUrl(const Aws::String &value)
CreateConnectorRequest & WithAs2Config(As2ConnectorConfig &&value)
const SftpConnectorConfig & GetSftpConfig() const
CreateConnectorRequest & WithAccessRole(Aws::String &&value)
CreateConnectorRequest & WithSecurityPolicyName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateConnectorRequest & AddTags(Tag &&value)
CreateConnectorRequest & WithLoggingRole(const char *value)
CreateConnectorRequest & WithLoggingRole(const Aws::String &value)
CreateConnectorRequest & WithSecurityPolicyName(Aws::String &&value)
CreateConnectorRequest & AddTags(const Tag &value)
CreateConnectorRequest & WithUrl(const char *value)
void SetSftpConfig(SftpConnectorConfig &&value)
CreateConnectorRequest & WithAccessRole(const char *value)
void SetAs2Config(const As2ConnectorConfig &value)
CreateConnectorRequest & WithAs2Config(const As2ConnectorConfig &value)
CreateConnectorRequest & WithTags(const Aws::Vector< Tag > &value)
CreateConnectorRequest & WithLoggingRole(Aws::String &&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