AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SftpConnectorConfig.h
1
6#pragma once
7#include <aws/awstransfer/Transfer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Transfer
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_TRANSFER_API SftpConnectorConfig() = default;
40 AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
51 inline const Aws::String& GetUserSecretId() const { return m_userSecretId; }
52 inline bool UserSecretIdHasBeenSet() const { return m_userSecretIdHasBeenSet; }
53 template<typename UserSecretIdT = Aws::String>
54 void SetUserSecretId(UserSecretIdT&& value) { m_userSecretIdHasBeenSet = true; m_userSecretId = std::forward<UserSecretIdT>(value); }
55 template<typename UserSecretIdT = Aws::String>
56 SftpConnectorConfig& WithUserSecretId(UserSecretIdT&& value) { SetUserSecretId(std::forward<UserSecretIdT>(value)); return *this;}
58
60
87 inline const Aws::Vector<Aws::String>& GetTrustedHostKeys() const { return m_trustedHostKeys; }
88 inline bool TrustedHostKeysHasBeenSet() const { return m_trustedHostKeysHasBeenSet; }
89 template<typename TrustedHostKeysT = Aws::Vector<Aws::String>>
90 void SetTrustedHostKeys(TrustedHostKeysT&& value) { m_trustedHostKeysHasBeenSet = true; m_trustedHostKeys = std::forward<TrustedHostKeysT>(value); }
91 template<typename TrustedHostKeysT = Aws::Vector<Aws::String>>
92 SftpConnectorConfig& WithTrustedHostKeys(TrustedHostKeysT&& value) { SetTrustedHostKeys(std::forward<TrustedHostKeysT>(value)); return *this;}
93 template<typename TrustedHostKeysT = Aws::String>
94 SftpConnectorConfig& AddTrustedHostKeys(TrustedHostKeysT&& value) { m_trustedHostKeysHasBeenSet = true; m_trustedHostKeys.emplace_back(std::forward<TrustedHostKeysT>(value)); return *this; }
96
98
106 inline int GetMaxConcurrentConnections() const { return m_maxConcurrentConnections; }
107 inline bool MaxConcurrentConnectionsHasBeenSet() const { return m_maxConcurrentConnectionsHasBeenSet; }
108 inline void SetMaxConcurrentConnections(int value) { m_maxConcurrentConnectionsHasBeenSet = true; m_maxConcurrentConnections = value; }
111 private:
112
113 Aws::String m_userSecretId;
114 bool m_userSecretIdHasBeenSet = false;
115
116 Aws::Vector<Aws::String> m_trustedHostKeys;
117 bool m_trustedHostKeysHasBeenSet = false;
118
119 int m_maxConcurrentConnections{0};
120 bool m_maxConcurrentConnectionsHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace Transfer
125} // namespace Aws
const Aws::Vector< Aws::String > & GetTrustedHostKeys() const
SftpConnectorConfig & WithTrustedHostKeys(TrustedHostKeysT &&value)
void SetTrustedHostKeys(TrustedHostKeysT &&value)
SftpConnectorConfig & WithUserSecretId(UserSecretIdT &&value)
AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_TRANSFER_API SftpConnectorConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_TRANSFER_API SftpConnectorConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
SftpConnectorConfig & WithMaxConcurrentConnections(int value)
AWS_TRANSFER_API SftpConnectorConfig()=default
SftpConnectorConfig & AddTrustedHostKeys(TrustedHostKeysT &&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