AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
DescribedSecurityPolicy.h
1
6#pragma once
7#include <aws/awstransfer/Transfer_EXPORTS.h>
8#include <aws/awstransfer/model/SecurityPolicyProtocol.h>
9#include <aws/awstransfer/model/SecurityPolicyResourceType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Transfer {
23namespace Model {
24
36 public:
37 AWS_TRANSFER_API DescribedSecurityPolicy() = default;
40 AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
48 inline bool GetFips() const { return m_fips; }
49 inline bool FipsHasBeenSet() const { return m_fipsHasBeenSet; }
50 inline void SetFips(bool value) {
51 m_fipsHasBeenSet = true;
52 m_fips = value;
53 }
54 inline DescribedSecurityPolicy& WithFips(bool value) {
55 SetFips(value);
56 return *this;
57 }
59
61
64 inline const Aws::String& GetSecurityPolicyName() const { return m_securityPolicyName; }
65 inline bool SecurityPolicyNameHasBeenSet() const { return m_securityPolicyNameHasBeenSet; }
66 template <typename SecurityPolicyNameT = Aws::String>
67 void SetSecurityPolicyName(SecurityPolicyNameT&& value) {
68 m_securityPolicyNameHasBeenSet = true;
69 m_securityPolicyName = std::forward<SecurityPolicyNameT>(value);
70 }
71 template <typename SecurityPolicyNameT = Aws::String>
72 DescribedSecurityPolicy& WithSecurityPolicyName(SecurityPolicyNameT&& value) {
73 SetSecurityPolicyName(std::forward<SecurityPolicyNameT>(value));
74 return *this;
75 }
77
79
84 inline const Aws::Vector<Aws::String>& GetSshCiphers() const { return m_sshCiphers; }
85 inline bool SshCiphersHasBeenSet() const { return m_sshCiphersHasBeenSet; }
86 template <typename SshCiphersT = Aws::Vector<Aws::String>>
87 void SetSshCiphers(SshCiphersT&& value) {
88 m_sshCiphersHasBeenSet = true;
89 m_sshCiphers = std::forward<SshCiphersT>(value);
90 }
91 template <typename SshCiphersT = Aws::Vector<Aws::String>>
93 SetSshCiphers(std::forward<SshCiphersT>(value));
94 return *this;
95 }
96 template <typename SshCiphersT = Aws::String>
97 DescribedSecurityPolicy& AddSshCiphers(SshCiphersT&& value) {
98 m_sshCiphersHasBeenSet = true;
99 m_sshCiphers.emplace_back(std::forward<SshCiphersT>(value));
100 return *this;
101 }
103
105
110 inline const Aws::Vector<Aws::String>& GetSshKexs() const { return m_sshKexs; }
111 inline bool SshKexsHasBeenSet() const { return m_sshKexsHasBeenSet; }
112 template <typename SshKexsT = Aws::Vector<Aws::String>>
113 void SetSshKexs(SshKexsT&& value) {
114 m_sshKexsHasBeenSet = true;
115 m_sshKexs = std::forward<SshKexsT>(value);
116 }
117 template <typename SshKexsT = Aws::Vector<Aws::String>>
119 SetSshKexs(std::forward<SshKexsT>(value));
120 return *this;
121 }
122 template <typename SshKexsT = Aws::String>
124 m_sshKexsHasBeenSet = true;
125 m_sshKexs.emplace_back(std::forward<SshKexsT>(value));
126 return *this;
127 }
129
131
136 inline const Aws::Vector<Aws::String>& GetSshMacs() const { return m_sshMacs; }
137 inline bool SshMacsHasBeenSet() const { return m_sshMacsHasBeenSet; }
138 template <typename SshMacsT = Aws::Vector<Aws::String>>
139 void SetSshMacs(SshMacsT&& value) {
140 m_sshMacsHasBeenSet = true;
141 m_sshMacs = std::forward<SshMacsT>(value);
142 }
143 template <typename SshMacsT = Aws::Vector<Aws::String>>
145 SetSshMacs(std::forward<SshMacsT>(value));
146 return *this;
147 }
148 template <typename SshMacsT = Aws::String>
150 m_sshMacsHasBeenSet = true;
151 m_sshMacs.emplace_back(std::forward<SshMacsT>(value));
152 return *this;
153 }
155
157
162 inline const Aws::Vector<Aws::String>& GetTlsCiphers() const { return m_tlsCiphers; }
163 inline bool TlsCiphersHasBeenSet() const { return m_tlsCiphersHasBeenSet; }
164 template <typename TlsCiphersT = Aws::Vector<Aws::String>>
165 void SetTlsCiphers(TlsCiphersT&& value) {
166 m_tlsCiphersHasBeenSet = true;
167 m_tlsCiphers = std::forward<TlsCiphersT>(value);
168 }
169 template <typename TlsCiphersT = Aws::Vector<Aws::String>>
171 SetTlsCiphers(std::forward<TlsCiphersT>(value));
172 return *this;
173 }
174 template <typename TlsCiphersT = Aws::String>
176 m_tlsCiphersHasBeenSet = true;
177 m_tlsCiphers.emplace_back(std::forward<TlsCiphersT>(value));
178 return *this;
179 }
181
183
187 inline const Aws::Vector<Aws::String>& GetSshHostKeyAlgorithms() const { return m_sshHostKeyAlgorithms; }
188 inline bool SshHostKeyAlgorithmsHasBeenSet() const { return m_sshHostKeyAlgorithmsHasBeenSet; }
189 template <typename SshHostKeyAlgorithmsT = Aws::Vector<Aws::String>>
190 void SetSshHostKeyAlgorithms(SshHostKeyAlgorithmsT&& value) {
191 m_sshHostKeyAlgorithmsHasBeenSet = true;
192 m_sshHostKeyAlgorithms = std::forward<SshHostKeyAlgorithmsT>(value);
193 }
194 template <typename SshHostKeyAlgorithmsT = Aws::Vector<Aws::String>>
195 DescribedSecurityPolicy& WithSshHostKeyAlgorithms(SshHostKeyAlgorithmsT&& value) {
196 SetSshHostKeyAlgorithms(std::forward<SshHostKeyAlgorithmsT>(value));
197 return *this;
198 }
199 template <typename SshHostKeyAlgorithmsT = Aws::String>
200 DescribedSecurityPolicy& AddSshHostKeyAlgorithms(SshHostKeyAlgorithmsT&& value) {
201 m_sshHostKeyAlgorithmsHasBeenSet = true;
202 m_sshHostKeyAlgorithms.emplace_back(std::forward<SshHostKeyAlgorithmsT>(value));
203 return *this;
204 }
206
208
212 inline SecurityPolicyResourceType GetType() const { return m_type; }
213 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
215 m_typeHasBeenSet = true;
216 m_type = value;
217 }
219 SetType(value);
220 return *this;
221 }
223
225
228 inline const Aws::Vector<SecurityPolicyProtocol>& GetProtocols() const { return m_protocols; }
229 inline bool ProtocolsHasBeenSet() const { return m_protocolsHasBeenSet; }
230 template <typename ProtocolsT = Aws::Vector<SecurityPolicyProtocol>>
231 void SetProtocols(ProtocolsT&& value) {
232 m_protocolsHasBeenSet = true;
233 m_protocols = std::forward<ProtocolsT>(value);
234 }
235 template <typename ProtocolsT = Aws::Vector<SecurityPolicyProtocol>>
237 SetProtocols(std::forward<ProtocolsT>(value));
238 return *this;
239 }
241 m_protocolsHasBeenSet = true;
242 m_protocols.push_back(value);
243 return *this;
244 }
246 private:
247 bool m_fips{false};
248
249 Aws::String m_securityPolicyName;
250
251 Aws::Vector<Aws::String> m_sshCiphers;
252
253 Aws::Vector<Aws::String> m_sshKexs;
254
255 Aws::Vector<Aws::String> m_sshMacs;
256
257 Aws::Vector<Aws::String> m_tlsCiphers;
258
259 Aws::Vector<Aws::String> m_sshHostKeyAlgorithms;
260
262
264 bool m_fipsHasBeenSet = false;
265 bool m_securityPolicyNameHasBeenSet = false;
266 bool m_sshCiphersHasBeenSet = false;
267 bool m_sshKexsHasBeenSet = false;
268 bool m_sshMacsHasBeenSet = false;
269 bool m_tlsCiphersHasBeenSet = false;
270 bool m_sshHostKeyAlgorithmsHasBeenSet = false;
271 bool m_typeHasBeenSet = false;
272 bool m_protocolsHasBeenSet = false;
273};
274
275} // namespace Model
276} // namespace Transfer
277} // namespace Aws
DescribedSecurityPolicy & AddSshKexs(SshKexsT &&value)
const Aws::Vector< Aws::String > & GetSshKexs() const
DescribedSecurityPolicy & WithSshMacs(SshMacsT &&value)
DescribedSecurityPolicy & WithTlsCiphers(TlsCiphersT &&value)
DescribedSecurityPolicy & WithFips(bool value)
const Aws::Vector< Aws::String > & GetSshHostKeyAlgorithms() const
AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const
DescribedSecurityPolicy & WithType(SecurityPolicyResourceType value)
const Aws::Vector< Aws::String > & GetSshMacs() const
DescribedSecurityPolicy & WithSshKexs(SshKexsT &&value)
DescribedSecurityPolicy & AddTlsCiphers(TlsCiphersT &&value)
DescribedSecurityPolicy & AddSshCiphers(SshCiphersT &&value)
DescribedSecurityPolicy & WithSshHostKeyAlgorithms(SshHostKeyAlgorithmsT &&value)
void SetSshHostKeyAlgorithms(SshHostKeyAlgorithmsT &&value)
const Aws::Vector< Aws::String > & GetTlsCiphers() const
AWS_TRANSFER_API DescribedSecurityPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetType(SecurityPolicyResourceType value)
const Aws::Vector< Aws::String > & GetSshCiphers() const
void SetSecurityPolicyName(SecurityPolicyNameT &&value)
DescribedSecurityPolicy & WithSshCiphers(SshCiphersT &&value)
DescribedSecurityPolicy & AddProtocols(SecurityPolicyProtocol value)
AWS_TRANSFER_API DescribedSecurityPolicy()=default
AWS_TRANSFER_API DescribedSecurityPolicy(Aws::Utils::Json::JsonView jsonValue)
DescribedSecurityPolicy & AddSshMacs(SshMacsT &&value)
const Aws::Vector< SecurityPolicyProtocol > & GetProtocols() const
DescribedSecurityPolicy & AddSshHostKeyAlgorithms(SshHostKeyAlgorithmsT &&value)
DescribedSecurityPolicy & WithSecurityPolicyName(SecurityPolicyNameT &&value)
DescribedSecurityPolicy & WithProtocols(ProtocolsT &&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