AWS SDK for C++

AWS SDK for C++ Version 1.11.907

Loading...
Searching...
No Matches
ProtocolDetails.h
1
6#pragma once
7#include <aws/awstransfer/Transfer_EXPORTS.h>
8#include <aws/awstransfer/model/As2Transport.h>
9#include <aws/awstransfer/model/ProxyConfig.h>
10#include <aws/awstransfer/model/SetStatOption.h>
11#include <aws/awstransfer/model/SftpPortWithOptions.h>
12#include <aws/awstransfer/model/TlsSessionResumptionMode.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 Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Transfer {
26namespace Model {
27
35 public:
36 AWS_TRANSFER_API ProtocolDetails() = default;
37 AWS_TRANSFER_API ProtocolDetails(Aws::Utils::Json::JsonView jsonValue);
39 AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
80 inline const Aws::String& GetPassiveIp() const { return m_passiveIp; }
81 inline bool PassiveIpHasBeenSet() const { return m_passiveIpHasBeenSet; }
82 template <typename PassiveIpT = Aws::String>
83 void SetPassiveIp(PassiveIpT&& value) {
84 m_passiveIpHasBeenSet = true;
85 m_passiveIp = std::forward<PassiveIpT>(value);
86 }
87 template <typename PassiveIpT = Aws::String>
88 ProtocolDetails& WithPassiveIp(PassiveIpT&& value) {
89 SetPassiveIp(std::forward<PassiveIpT>(value));
90 return *this;
91 }
93
95
119 inline TlsSessionResumptionMode GetTlsSessionResumptionMode() const { return m_tlsSessionResumptionMode; }
120 inline bool TlsSessionResumptionModeHasBeenSet() const { return m_tlsSessionResumptionModeHasBeenSet; }
122 m_tlsSessionResumptionModeHasBeenSet = true;
123 m_tlsSessionResumptionMode = value;
124 }
127 return *this;
128 }
130
132
151 inline SetStatOption GetSetStatOption() const { return m_setStatOption; }
152 inline bool SetStatOptionHasBeenSet() const { return m_setStatOptionHasBeenSet; }
153 inline void SetSetStatOption(SetStatOption value) {
154 m_setStatOptionHasBeenSet = true;
155 m_setStatOption = value;
156 }
158 SetSetStatOption(value);
159 return *this;
160 }
162
164
185 inline const Aws::Vector<SftpPortWithOptions>& GetSftpPorts() const { return m_sftpPorts; }
186 inline bool SftpPortsHasBeenSet() const { return m_sftpPortsHasBeenSet; }
187 template <typename SftpPortsT = Aws::Vector<SftpPortWithOptions>>
188 void SetSftpPorts(SftpPortsT&& value) {
189 m_sftpPortsHasBeenSet = true;
190 m_sftpPorts = std::forward<SftpPortsT>(value);
191 }
192 template <typename SftpPortsT = Aws::Vector<SftpPortWithOptions>>
193 ProtocolDetails& WithSftpPorts(SftpPortsT&& value) {
194 SetSftpPorts(std::forward<SftpPortsT>(value));
195 return *this;
196 }
197 template <typename SftpPortsT = SftpPortWithOptions>
198 ProtocolDetails& AddSftpPorts(SftpPortsT&& value) {
199 m_sftpPortsHasBeenSet = true;
200 m_sftpPorts.emplace_back(std::forward<SftpPortsT>(value));
201 return *this;
202 }
204
206
210 inline const Aws::Vector<As2Transport>& GetAs2Transports() const { return m_as2Transports; }
211 inline bool As2TransportsHasBeenSet() const { return m_as2TransportsHasBeenSet; }
212 template <typename As2TransportsT = Aws::Vector<As2Transport>>
213 void SetAs2Transports(As2TransportsT&& value) {
214 m_as2TransportsHasBeenSet = true;
215 m_as2Transports = std::forward<As2TransportsT>(value);
216 }
217 template <typename As2TransportsT = Aws::Vector<As2Transport>>
218 ProtocolDetails& WithAs2Transports(As2TransportsT&& value) {
219 SetAs2Transports(std::forward<As2TransportsT>(value));
220 return *this;
221 }
223 m_as2TransportsHasBeenSet = true;
224 m_as2Transports.push_back(value);
225 return *this;
226 }
228
230
236 inline const ProxyConfig& GetProxyConfig() const { return m_proxyConfig; }
237 inline bool ProxyConfigHasBeenSet() const { return m_proxyConfigHasBeenSet; }
238 template <typename ProxyConfigT = ProxyConfig>
239 void SetProxyConfig(ProxyConfigT&& value) {
240 m_proxyConfigHasBeenSet = true;
241 m_proxyConfig = std::forward<ProxyConfigT>(value);
242 }
243 template <typename ProxyConfigT = ProxyConfig>
244 ProtocolDetails& WithProxyConfig(ProxyConfigT&& value) {
245 SetProxyConfig(std::forward<ProxyConfigT>(value));
246 return *this;
247 }
249 private:
250 Aws::String m_passiveIp;
251
253
254 SetStatOption m_setStatOption{SetStatOption::NOT_SET};
255
257
258 Aws::Vector<As2Transport> m_as2Transports;
259
260 ProxyConfig m_proxyConfig;
261 bool m_passiveIpHasBeenSet = false;
262 bool m_tlsSessionResumptionModeHasBeenSet = false;
263 bool m_setStatOptionHasBeenSet = false;
264 bool m_sftpPortsHasBeenSet = false;
265 bool m_as2TransportsHasBeenSet = false;
266 bool m_proxyConfigHasBeenSet = false;
267};
268
269} // namespace Model
270} // namespace Transfer
271} // namespace Aws
void SetTlsSessionResumptionMode(TlsSessionResumptionMode value)
const ProxyConfig & GetProxyConfig() const
ProtocolDetails & WithSetStatOption(SetStatOption value)
void SetProxyConfig(ProxyConfigT &&value)
const Aws::Vector< As2Transport > & GetAs2Transports() const
AWS_TRANSFER_API ProtocolDetails(Aws::Utils::Json::JsonView jsonValue)
void SetAs2Transports(As2TransportsT &&value)
AWS_TRANSFER_API ProtocolDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_TRANSFER_API ProtocolDetails()=default
void SetSftpPorts(SftpPortsT &&value)
ProtocolDetails & AddAs2Transports(As2Transport value)
ProtocolDetails & WithProxyConfig(ProxyConfigT &&value)
ProtocolDetails & WithAs2Transports(As2TransportsT &&value)
ProtocolDetails & WithTlsSessionResumptionMode(TlsSessionResumptionMode value)
ProtocolDetails & WithSftpPorts(SftpPortsT &&value)
ProtocolDetails & WithPassiveIp(PassiveIpT &&value)
const Aws::Vector< SftpPortWithOptions > & GetSftpPorts() const
AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const
ProtocolDetails & AddSftpPorts(SftpPortsT &&value)
void SetPassiveIp(PassiveIpT &&value)
const Aws::String & GetPassiveIp() const
TlsSessionResumptionMode GetTlsSessionResumptionMode() const
void SetSetStatOption(SetStatOption value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue