AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateConnectorRequest.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/awstransfer/model/SftpConnectorConfig.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Transfer
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_TRANSFER_API UpdateConnectorRequest() = 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 "UpdateConnector"; }
33
34 AWS_TRANSFER_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetConnectorId() const { return m_connectorId; }
44 inline bool ConnectorIdHasBeenSet() const { return m_connectorIdHasBeenSet; }
45 template<typename ConnectorIdT = Aws::String>
46 void SetConnectorId(ConnectorIdT&& value) { m_connectorIdHasBeenSet = true; m_connectorId = std::forward<ConnectorIdT>(value); }
47 template<typename ConnectorIdT = Aws::String>
48 UpdateConnectorRequest& WithConnectorId(ConnectorIdT&& value) { SetConnectorId(std::forward<ConnectorIdT>(value)); return *this;}
50
52
55 inline const Aws::String& GetUrl() const { return m_url; }
56 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
57 template<typename UrlT = Aws::String>
58 void SetUrl(UrlT&& value) { m_urlHasBeenSet = true; m_url = std::forward<UrlT>(value); }
59 template<typename UrlT = Aws::String>
60 UpdateConnectorRequest& WithUrl(UrlT&& value) { SetUrl(std::forward<UrlT>(value)); return *this;}
62
64
67 inline const As2ConnectorConfig& GetAs2Config() const { return m_as2Config; }
68 inline bool As2ConfigHasBeenSet() const { return m_as2ConfigHasBeenSet; }
69 template<typename As2ConfigT = As2ConnectorConfig>
70 void SetAs2Config(As2ConfigT&& value) { m_as2ConfigHasBeenSet = true; m_as2Config = std::forward<As2ConfigT>(value); }
71 template<typename As2ConfigT = As2ConnectorConfig>
72 UpdateConnectorRequest& WithAs2Config(As2ConfigT&& value) { SetAs2Config(std::forward<As2ConfigT>(value)); return *this;}
74
76
102 inline const Aws::String& GetAccessRole() const { return m_accessRole; }
103 inline bool AccessRoleHasBeenSet() const { return m_accessRoleHasBeenSet; }
104 template<typename AccessRoleT = Aws::String>
105 void SetAccessRole(AccessRoleT&& value) { m_accessRoleHasBeenSet = true; m_accessRole = std::forward<AccessRoleT>(value); }
106 template<typename AccessRoleT = Aws::String>
107 UpdateConnectorRequest& WithAccessRole(AccessRoleT&& value) { SetAccessRole(std::forward<AccessRoleT>(value)); return *this;}
109
111
116 inline const Aws::String& GetLoggingRole() const { return m_loggingRole; }
117 inline bool LoggingRoleHasBeenSet() const { return m_loggingRoleHasBeenSet; }
118 template<typename LoggingRoleT = Aws::String>
119 void SetLoggingRole(LoggingRoleT&& value) { m_loggingRoleHasBeenSet = true; m_loggingRole = std::forward<LoggingRoleT>(value); }
120 template<typename LoggingRoleT = Aws::String>
121 UpdateConnectorRequest& WithLoggingRole(LoggingRoleT&& value) { SetLoggingRole(std::forward<LoggingRoleT>(value)); return *this;}
123
125
128 inline const SftpConnectorConfig& GetSftpConfig() const { return m_sftpConfig; }
129 inline bool SftpConfigHasBeenSet() const { return m_sftpConfigHasBeenSet; }
130 template<typename SftpConfigT = SftpConnectorConfig>
131 void SetSftpConfig(SftpConfigT&& value) { m_sftpConfigHasBeenSet = true; m_sftpConfig = std::forward<SftpConfigT>(value); }
132 template<typename SftpConfigT = SftpConnectorConfig>
133 UpdateConnectorRequest& WithSftpConfig(SftpConfigT&& value) { SetSftpConfig(std::forward<SftpConfigT>(value)); return *this;}
135
137
140 inline const Aws::String& GetSecurityPolicyName() const { return m_securityPolicyName; }
141 inline bool SecurityPolicyNameHasBeenSet() const { return m_securityPolicyNameHasBeenSet; }
142 template<typename SecurityPolicyNameT = Aws::String>
143 void SetSecurityPolicyName(SecurityPolicyNameT&& value) { m_securityPolicyNameHasBeenSet = true; m_securityPolicyName = std::forward<SecurityPolicyNameT>(value); }
144 template<typename SecurityPolicyNameT = Aws::String>
145 UpdateConnectorRequest& WithSecurityPolicyName(SecurityPolicyNameT&& value) { SetSecurityPolicyName(std::forward<SecurityPolicyNameT>(value)); return *this;}
147 private:
148
149 Aws::String m_connectorId;
150 bool m_connectorIdHasBeenSet = false;
151
152 Aws::String m_url;
153 bool m_urlHasBeenSet = false;
154
155 As2ConnectorConfig m_as2Config;
156 bool m_as2ConfigHasBeenSet = false;
157
158 Aws::String m_accessRole;
159 bool m_accessRoleHasBeenSet = false;
160
161 Aws::String m_loggingRole;
162 bool m_loggingRoleHasBeenSet = false;
163
164 SftpConnectorConfig m_sftpConfig;
165 bool m_sftpConfigHasBeenSet = false;
166
167 Aws::String m_securityPolicyName;
168 bool m_securityPolicyNameHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace Transfer
173} // namespace Aws
UpdateConnectorRequest & WithUrl(UrlT &&value)
const As2ConnectorConfig & GetAs2Config() const
UpdateConnectorRequest & WithAccessRole(AccessRoleT &&value)
void SetSecurityPolicyName(SecurityPolicyNameT &&value)
UpdateConnectorRequest & WithLoggingRole(LoggingRoleT &&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 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