AWS SDK for C++

AWS SDK for C++ Version 1.11.754

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Transfer {
21namespace Model {
22
31 public:
32 AWS_TRANSFER_API SftpConnectorConfig() = default;
35 AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
45 inline const Aws::String& GetUserSecretId() const { return m_userSecretId; }
46 inline bool UserSecretIdHasBeenSet() const { return m_userSecretIdHasBeenSet; }
47 template <typename UserSecretIdT = Aws::String>
48 void SetUserSecretId(UserSecretIdT&& value) {
49 m_userSecretIdHasBeenSet = true;
50 m_userSecretId = std::forward<UserSecretIdT>(value);
51 }
52 template <typename UserSecretIdT = Aws::String>
53 SftpConnectorConfig& WithUserSecretId(UserSecretIdT&& value) {
54 SetUserSecretId(std::forward<UserSecretIdT>(value));
55 return *this;
56 }
58
60
94 inline const Aws::Vector<Aws::String>& GetTrustedHostKeys() const { return m_trustedHostKeys; }
95 inline bool TrustedHostKeysHasBeenSet() const { return m_trustedHostKeysHasBeenSet; }
96 template <typename TrustedHostKeysT = Aws::Vector<Aws::String>>
97 void SetTrustedHostKeys(TrustedHostKeysT&& value) {
98 m_trustedHostKeysHasBeenSet = true;
99 m_trustedHostKeys = std::forward<TrustedHostKeysT>(value);
100 }
101 template <typename TrustedHostKeysT = Aws::Vector<Aws::String>>
102 SftpConnectorConfig& WithTrustedHostKeys(TrustedHostKeysT&& value) {
103 SetTrustedHostKeys(std::forward<TrustedHostKeysT>(value));
104 return *this;
105 }
106 template <typename TrustedHostKeysT = Aws::String>
107 SftpConnectorConfig& AddTrustedHostKeys(TrustedHostKeysT&& value) {
108 m_trustedHostKeysHasBeenSet = true;
109 m_trustedHostKeys.emplace_back(std::forward<TrustedHostKeysT>(value));
110 return *this;
111 }
113
115
125 inline int GetMaxConcurrentConnections() const { return m_maxConcurrentConnections; }
126 inline bool MaxConcurrentConnectionsHasBeenSet() const { return m_maxConcurrentConnectionsHasBeenSet; }
127 inline void SetMaxConcurrentConnections(int value) {
128 m_maxConcurrentConnectionsHasBeenSet = true;
129 m_maxConcurrentConnections = value;
130 }
133 return *this;
134 }
136 private:
137 Aws::String m_userSecretId;
138
139 Aws::Vector<Aws::String> m_trustedHostKeys;
140
141 int m_maxConcurrentConnections{0};
142 bool m_userSecretIdHasBeenSet = false;
143 bool m_trustedHostKeysHasBeenSet = false;
144 bool m_maxConcurrentConnectionsHasBeenSet = false;
145};
146
147} // namespace Model
148} // namespace Transfer
149} // 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