AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DescribedSecurityPolicy.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 <aws/awstransfer/model/SecurityPolicyResourceType.h>
11#include <aws/awstransfer/model/SecurityPolicyProtocol.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Transfer
25{
26namespace Model
27{
28
40 {
41 public:
42 AWS_TRANSFER_API DescribedSecurityPolicy() = default;
45 AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
54 inline bool GetFips() const { return m_fips; }
55 inline bool FipsHasBeenSet() const { return m_fipsHasBeenSet; }
56 inline void SetFips(bool value) { m_fipsHasBeenSet = true; m_fips = value; }
57 inline DescribedSecurityPolicy& WithFips(bool value) { SetFips(value); return *this;}
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) { m_securityPolicyNameHasBeenSet = true; m_securityPolicyName = std::forward<SecurityPolicyNameT>(value); }
68 template<typename SecurityPolicyNameT = Aws::String>
69 DescribedSecurityPolicy& WithSecurityPolicyName(SecurityPolicyNameT&& value) { SetSecurityPolicyName(std::forward<SecurityPolicyNameT>(value)); return *this;}
71
73
78 inline const Aws::Vector<Aws::String>& GetSshCiphers() const { return m_sshCiphers; }
79 inline bool SshCiphersHasBeenSet() const { return m_sshCiphersHasBeenSet; }
80 template<typename SshCiphersT = Aws::Vector<Aws::String>>
81 void SetSshCiphers(SshCiphersT&& value) { m_sshCiphersHasBeenSet = true; m_sshCiphers = std::forward<SshCiphersT>(value); }
82 template<typename SshCiphersT = Aws::Vector<Aws::String>>
83 DescribedSecurityPolicy& WithSshCiphers(SshCiphersT&& value) { SetSshCiphers(std::forward<SshCiphersT>(value)); return *this;}
84 template<typename SshCiphersT = Aws::String>
85 DescribedSecurityPolicy& AddSshCiphers(SshCiphersT&& value) { m_sshCiphersHasBeenSet = true; m_sshCiphers.emplace_back(std::forward<SshCiphersT>(value)); return *this; }
87
89
94 inline const Aws::Vector<Aws::String>& GetSshKexs() const { return m_sshKexs; }
95 inline bool SshKexsHasBeenSet() const { return m_sshKexsHasBeenSet; }
96 template<typename SshKexsT = Aws::Vector<Aws::String>>
97 void SetSshKexs(SshKexsT&& value) { m_sshKexsHasBeenSet = true; m_sshKexs = std::forward<SshKexsT>(value); }
98 template<typename SshKexsT = Aws::Vector<Aws::String>>
99 DescribedSecurityPolicy& WithSshKexs(SshKexsT&& value) { SetSshKexs(std::forward<SshKexsT>(value)); return *this;}
100 template<typename SshKexsT = Aws::String>
101 DescribedSecurityPolicy& AddSshKexs(SshKexsT&& value) { m_sshKexsHasBeenSet = true; m_sshKexs.emplace_back(std::forward<SshKexsT>(value)); return *this; }
103
105
110 inline const Aws::Vector<Aws::String>& GetSshMacs() const { return m_sshMacs; }
111 inline bool SshMacsHasBeenSet() const { return m_sshMacsHasBeenSet; }
112 template<typename SshMacsT = Aws::Vector<Aws::String>>
113 void SetSshMacs(SshMacsT&& value) { m_sshMacsHasBeenSet = true; m_sshMacs = std::forward<SshMacsT>(value); }
114 template<typename SshMacsT = Aws::Vector<Aws::String>>
115 DescribedSecurityPolicy& WithSshMacs(SshMacsT&& value) { SetSshMacs(std::forward<SshMacsT>(value)); return *this;}
116 template<typename SshMacsT = Aws::String>
117 DescribedSecurityPolicy& AddSshMacs(SshMacsT&& value) { m_sshMacsHasBeenSet = true; m_sshMacs.emplace_back(std::forward<SshMacsT>(value)); return *this; }
119
121
126 inline const Aws::Vector<Aws::String>& GetTlsCiphers() const { return m_tlsCiphers; }
127 inline bool TlsCiphersHasBeenSet() const { return m_tlsCiphersHasBeenSet; }
128 template<typename TlsCiphersT = Aws::Vector<Aws::String>>
129 void SetTlsCiphers(TlsCiphersT&& value) { m_tlsCiphersHasBeenSet = true; m_tlsCiphers = std::forward<TlsCiphersT>(value); }
130 template<typename TlsCiphersT = Aws::Vector<Aws::String>>
131 DescribedSecurityPolicy& WithTlsCiphers(TlsCiphersT&& value) { SetTlsCiphers(std::forward<TlsCiphersT>(value)); return *this;}
132 template<typename TlsCiphersT = Aws::String>
133 DescribedSecurityPolicy& AddTlsCiphers(TlsCiphersT&& value) { m_tlsCiphersHasBeenSet = true; m_tlsCiphers.emplace_back(std::forward<TlsCiphersT>(value)); return *this; }
135
137
141 inline const Aws::Vector<Aws::String>& GetSshHostKeyAlgorithms() const { return m_sshHostKeyAlgorithms; }
142 inline bool SshHostKeyAlgorithmsHasBeenSet() const { return m_sshHostKeyAlgorithmsHasBeenSet; }
143 template<typename SshHostKeyAlgorithmsT = Aws::Vector<Aws::String>>
144 void SetSshHostKeyAlgorithms(SshHostKeyAlgorithmsT&& value) { m_sshHostKeyAlgorithmsHasBeenSet = true; m_sshHostKeyAlgorithms = std::forward<SshHostKeyAlgorithmsT>(value); }
145 template<typename SshHostKeyAlgorithmsT = Aws::Vector<Aws::String>>
146 DescribedSecurityPolicy& WithSshHostKeyAlgorithms(SshHostKeyAlgorithmsT&& value) { SetSshHostKeyAlgorithms(std::forward<SshHostKeyAlgorithmsT>(value)); return *this;}
147 template<typename SshHostKeyAlgorithmsT = Aws::String>
148 DescribedSecurityPolicy& AddSshHostKeyAlgorithms(SshHostKeyAlgorithmsT&& value) { m_sshHostKeyAlgorithmsHasBeenSet = true; m_sshHostKeyAlgorithms.emplace_back(std::forward<SshHostKeyAlgorithmsT>(value)); return *this; }
150
152
156 inline SecurityPolicyResourceType GetType() const { return m_type; }
157 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
158 inline void SetType(SecurityPolicyResourceType value) { m_typeHasBeenSet = true; m_type = value; }
161
163
166 inline const Aws::Vector<SecurityPolicyProtocol>& GetProtocols() const { return m_protocols; }
167 inline bool ProtocolsHasBeenSet() const { return m_protocolsHasBeenSet; }
168 template<typename ProtocolsT = Aws::Vector<SecurityPolicyProtocol>>
169 void SetProtocols(ProtocolsT&& value) { m_protocolsHasBeenSet = true; m_protocols = std::forward<ProtocolsT>(value); }
170 template<typename ProtocolsT = Aws::Vector<SecurityPolicyProtocol>>
171 DescribedSecurityPolicy& WithProtocols(ProtocolsT&& value) { SetProtocols(std::forward<ProtocolsT>(value)); return *this;}
172 inline DescribedSecurityPolicy& AddProtocols(SecurityPolicyProtocol value) { m_protocolsHasBeenSet = true; m_protocols.push_back(value); return *this; }
174 private:
175
176 bool m_fips{false};
177 bool m_fipsHasBeenSet = false;
178
179 Aws::String m_securityPolicyName;
180 bool m_securityPolicyNameHasBeenSet = false;
181
182 Aws::Vector<Aws::String> m_sshCiphers;
183 bool m_sshCiphersHasBeenSet = false;
184
185 Aws::Vector<Aws::String> m_sshKexs;
186 bool m_sshKexsHasBeenSet = false;
187
188 Aws::Vector<Aws::String> m_sshMacs;
189 bool m_sshMacsHasBeenSet = false;
190
191 Aws::Vector<Aws::String> m_tlsCiphers;
192 bool m_tlsCiphersHasBeenSet = false;
193
194 Aws::Vector<Aws::String> m_sshHostKeyAlgorithms;
195 bool m_sshHostKeyAlgorithmsHasBeenSet = false;
196
198 bool m_typeHasBeenSet = false;
199
201 bool m_protocolsHasBeenSet = false;
202 };
203
204} // namespace Model
205} // namespace Transfer
206} // 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