AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSecurityPolicyName(const Aws::String& value) { m_securityPolicyNameHasBeenSet = true; m_securityPolicyName = value; }
67 inline void SetSecurityPolicyName(Aws::String&& value) { m_securityPolicyNameHasBeenSet = true; m_securityPolicyName = std::move(value); }
68 inline void SetSecurityPolicyName(const char* value) { m_securityPolicyNameHasBeenSet = true; m_securityPolicyName.assign(value); }
70 inline DescribedSecurityPolicy& WithSecurityPolicyName(Aws::String&& value) { SetSecurityPolicyName(std::move(value)); return *this;}
71 inline DescribedSecurityPolicy& WithSecurityPolicyName(const char* value) { SetSecurityPolicyName(value); return *this;}
73
75
80 inline const Aws::Vector<Aws::String>& GetSshCiphers() const{ return m_sshCiphers; }
81 inline bool SshCiphersHasBeenSet() const { return m_sshCiphersHasBeenSet; }
82 inline void SetSshCiphers(const Aws::Vector<Aws::String>& value) { m_sshCiphersHasBeenSet = true; m_sshCiphers = value; }
83 inline void SetSshCiphers(Aws::Vector<Aws::String>&& value) { m_sshCiphersHasBeenSet = true; m_sshCiphers = std::move(value); }
85 inline DescribedSecurityPolicy& WithSshCiphers(Aws::Vector<Aws::String>&& value) { SetSshCiphers(std::move(value)); return *this;}
86 inline DescribedSecurityPolicy& AddSshCiphers(const Aws::String& value) { m_sshCiphersHasBeenSet = true; m_sshCiphers.push_back(value); return *this; }
87 inline DescribedSecurityPolicy& AddSshCiphers(Aws::String&& value) { m_sshCiphersHasBeenSet = true; m_sshCiphers.push_back(std::move(value)); return *this; }
88 inline DescribedSecurityPolicy& AddSshCiphers(const char* value) { m_sshCiphersHasBeenSet = true; m_sshCiphers.push_back(value); return *this; }
90
92
97 inline const Aws::Vector<Aws::String>& GetSshKexs() const{ return m_sshKexs; }
98 inline bool SshKexsHasBeenSet() const { return m_sshKexsHasBeenSet; }
99 inline void SetSshKexs(const Aws::Vector<Aws::String>& value) { m_sshKexsHasBeenSet = true; m_sshKexs = value; }
100 inline void SetSshKexs(Aws::Vector<Aws::String>&& value) { m_sshKexsHasBeenSet = true; m_sshKexs = std::move(value); }
101 inline DescribedSecurityPolicy& WithSshKexs(const Aws::Vector<Aws::String>& value) { SetSshKexs(value); return *this;}
102 inline DescribedSecurityPolicy& WithSshKexs(Aws::Vector<Aws::String>&& value) { SetSshKexs(std::move(value)); return *this;}
103 inline DescribedSecurityPolicy& AddSshKexs(const Aws::String& value) { m_sshKexsHasBeenSet = true; m_sshKexs.push_back(value); return *this; }
104 inline DescribedSecurityPolicy& AddSshKexs(Aws::String&& value) { m_sshKexsHasBeenSet = true; m_sshKexs.push_back(std::move(value)); return *this; }
105 inline DescribedSecurityPolicy& AddSshKexs(const char* value) { m_sshKexsHasBeenSet = true; m_sshKexs.push_back(value); return *this; }
107
109
114 inline const Aws::Vector<Aws::String>& GetSshMacs() const{ return m_sshMacs; }
115 inline bool SshMacsHasBeenSet() const { return m_sshMacsHasBeenSet; }
116 inline void SetSshMacs(const Aws::Vector<Aws::String>& value) { m_sshMacsHasBeenSet = true; m_sshMacs = value; }
117 inline void SetSshMacs(Aws::Vector<Aws::String>&& value) { m_sshMacsHasBeenSet = true; m_sshMacs = std::move(value); }
118 inline DescribedSecurityPolicy& WithSshMacs(const Aws::Vector<Aws::String>& value) { SetSshMacs(value); return *this;}
119 inline DescribedSecurityPolicy& WithSshMacs(Aws::Vector<Aws::String>&& value) { SetSshMacs(std::move(value)); return *this;}
120 inline DescribedSecurityPolicy& AddSshMacs(const Aws::String& value) { m_sshMacsHasBeenSet = true; m_sshMacs.push_back(value); return *this; }
121 inline DescribedSecurityPolicy& AddSshMacs(Aws::String&& value) { m_sshMacsHasBeenSet = true; m_sshMacs.push_back(std::move(value)); return *this; }
122 inline DescribedSecurityPolicy& AddSshMacs(const char* value) { m_sshMacsHasBeenSet = true; m_sshMacs.push_back(value); return *this; }
124
126
131 inline const Aws::Vector<Aws::String>& GetTlsCiphers() const{ return m_tlsCiphers; }
132 inline bool TlsCiphersHasBeenSet() const { return m_tlsCiphersHasBeenSet; }
133 inline void SetTlsCiphers(const Aws::Vector<Aws::String>& value) { m_tlsCiphersHasBeenSet = true; m_tlsCiphers = value; }
134 inline void SetTlsCiphers(Aws::Vector<Aws::String>&& value) { m_tlsCiphersHasBeenSet = true; m_tlsCiphers = std::move(value); }
136 inline DescribedSecurityPolicy& WithTlsCiphers(Aws::Vector<Aws::String>&& value) { SetTlsCiphers(std::move(value)); return *this;}
137 inline DescribedSecurityPolicy& AddTlsCiphers(const Aws::String& value) { m_tlsCiphersHasBeenSet = true; m_tlsCiphers.push_back(value); return *this; }
138 inline DescribedSecurityPolicy& AddTlsCiphers(Aws::String&& value) { m_tlsCiphersHasBeenSet = true; m_tlsCiphers.push_back(std::move(value)); return *this; }
139 inline DescribedSecurityPolicy& AddTlsCiphers(const char* value) { m_tlsCiphersHasBeenSet = true; m_tlsCiphers.push_back(value); return *this; }
141
143
147 inline const Aws::Vector<Aws::String>& GetSshHostKeyAlgorithms() const{ return m_sshHostKeyAlgorithms; }
148 inline bool SshHostKeyAlgorithmsHasBeenSet() const { return m_sshHostKeyAlgorithmsHasBeenSet; }
149 inline void SetSshHostKeyAlgorithms(const Aws::Vector<Aws::String>& value) { m_sshHostKeyAlgorithmsHasBeenSet = true; m_sshHostKeyAlgorithms = value; }
150 inline void SetSshHostKeyAlgorithms(Aws::Vector<Aws::String>&& value) { m_sshHostKeyAlgorithmsHasBeenSet = true; m_sshHostKeyAlgorithms = std::move(value); }
153 inline DescribedSecurityPolicy& AddSshHostKeyAlgorithms(const Aws::String& value) { m_sshHostKeyAlgorithmsHasBeenSet = true; m_sshHostKeyAlgorithms.push_back(value); return *this; }
154 inline DescribedSecurityPolicy& AddSshHostKeyAlgorithms(Aws::String&& value) { m_sshHostKeyAlgorithmsHasBeenSet = true; m_sshHostKeyAlgorithms.push_back(std::move(value)); return *this; }
155 inline DescribedSecurityPolicy& AddSshHostKeyAlgorithms(const char* value) { m_sshHostKeyAlgorithmsHasBeenSet = true; m_sshHostKeyAlgorithms.push_back(value); return *this; }
157
159
163 inline const SecurityPolicyResourceType& GetType() const{ return m_type; }
164 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
165 inline void SetType(const SecurityPolicyResourceType& value) { m_typeHasBeenSet = true; m_type = value; }
166 inline void SetType(SecurityPolicyResourceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
167 inline DescribedSecurityPolicy& WithType(const SecurityPolicyResourceType& value) { SetType(value); return *this;}
168 inline DescribedSecurityPolicy& WithType(SecurityPolicyResourceType&& value) { SetType(std::move(value)); return *this;}
170
172
175 inline const Aws::Vector<SecurityPolicyProtocol>& GetProtocols() const{ return m_protocols; }
176 inline bool ProtocolsHasBeenSet() const { return m_protocolsHasBeenSet; }
177 inline void SetProtocols(const Aws::Vector<SecurityPolicyProtocol>& value) { m_protocolsHasBeenSet = true; m_protocols = value; }
178 inline void SetProtocols(Aws::Vector<SecurityPolicyProtocol>&& value) { m_protocolsHasBeenSet = true; m_protocols = std::move(value); }
181 inline DescribedSecurityPolicy& AddProtocols(const SecurityPolicyProtocol& value) { m_protocolsHasBeenSet = true; m_protocols.push_back(value); return *this; }
182 inline DescribedSecurityPolicy& AddProtocols(SecurityPolicyProtocol&& value) { m_protocolsHasBeenSet = true; m_protocols.push_back(std::move(value)); return *this; }
184 private:
185
186 bool m_fips;
187 bool m_fipsHasBeenSet = false;
188
189 Aws::String m_securityPolicyName;
190 bool m_securityPolicyNameHasBeenSet = false;
191
192 Aws::Vector<Aws::String> m_sshCiphers;
193 bool m_sshCiphersHasBeenSet = false;
194
195 Aws::Vector<Aws::String> m_sshKexs;
196 bool m_sshKexsHasBeenSet = false;
197
198 Aws::Vector<Aws::String> m_sshMacs;
199 bool m_sshMacsHasBeenSet = false;
200
201 Aws::Vector<Aws::String> m_tlsCiphers;
202 bool m_tlsCiphersHasBeenSet = false;
203
204 Aws::Vector<Aws::String> m_sshHostKeyAlgorithms;
205 bool m_sshHostKeyAlgorithmsHasBeenSet = false;
206
208 bool m_typeHasBeenSet = false;
209
211 bool m_protocolsHasBeenSet = false;
212 };
213
214} // namespace Model
215} // namespace Transfer
216} // namespace Aws
DescribedSecurityPolicy & AddTlsCiphers(Aws::String &&value)
DescribedSecurityPolicy & AddSshHostKeyAlgorithms(Aws::String &&value)
DescribedSecurityPolicy & AddProtocols(SecurityPolicyProtocol &&value)
DescribedSecurityPolicy & AddProtocols(const SecurityPolicyProtocol &value)
void SetProtocols(const Aws::Vector< SecurityPolicyProtocol > &value)
DescribedSecurityPolicy & WithType(const SecurityPolicyResourceType &value)
const Aws::Vector< Aws::String > & GetSshKexs() const
DescribedSecurityPolicy & WithProtocols(Aws::Vector< SecurityPolicyProtocol > &&value)
DescribedSecurityPolicy & WithSshKexs(Aws::Vector< Aws::String > &&value)
void SetSshCiphers(Aws::Vector< Aws::String > &&value)
DescribedSecurityPolicy & WithSecurityPolicyName(Aws::String &&value)
DescribedSecurityPolicy & WithFips(bool value)
const SecurityPolicyResourceType & GetType() const
const Aws::Vector< Aws::String > & GetSshHostKeyAlgorithms() const
AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetType(const SecurityPolicyResourceType &value)
DescribedSecurityPolicy & WithSshHostKeyAlgorithms(const Aws::Vector< Aws::String > &value)
void SetSshHostKeyAlgorithms(Aws::Vector< Aws::String > &&value)
DescribedSecurityPolicy & WithSecurityPolicyName(const Aws::String &value)
const Aws::Vector< Aws::String > & GetSshMacs() const
void SetSshCiphers(const Aws::Vector< Aws::String > &value)
DescribedSecurityPolicy & AddSshHostKeyAlgorithms(const char *value)
DescribedSecurityPolicy & AddSshKexs(const Aws::String &value)
void SetSshMacs(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetTlsCiphers() const
AWS_TRANSFER_API DescribedSecurityPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
DescribedSecurityPolicy & WithType(SecurityPolicyResourceType &&value)
DescribedSecurityPolicy & WithSshKexs(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetSshCiphers() const
DescribedSecurityPolicy & WithSshMacs(const Aws::Vector< Aws::String > &value)
DescribedSecurityPolicy & AddSshKexs(Aws::String &&value)
DescribedSecurityPolicy & WithTlsCiphers(Aws::Vector< Aws::String > &&value)
DescribedSecurityPolicy & AddSshCiphers(const char *value)
void SetSshKexs(const Aws::Vector< Aws::String > &value)
DescribedSecurityPolicy & WithSshCiphers(Aws::Vector< Aws::String > &&value)
DescribedSecurityPolicy & AddSshCiphers(Aws::String &&value)
DescribedSecurityPolicy & AddSshHostKeyAlgorithms(const Aws::String &value)
DescribedSecurityPolicy & AddSshCiphers(const Aws::String &value)
DescribedSecurityPolicy & AddTlsCiphers(const Aws::String &value)
void SetTlsCiphers(Aws::Vector< Aws::String > &&value)
AWS_TRANSFER_API DescribedSecurityPolicy(Aws::Utils::Json::JsonView jsonValue)
DescribedSecurityPolicy & AddSshMacs(Aws::String &&value)
DescribedSecurityPolicy & AddTlsCiphers(const char *value)
DescribedSecurityPolicy & AddSshMacs(const char *value)
void SetTlsCiphers(const Aws::Vector< Aws::String > &value)
DescribedSecurityPolicy & WithSecurityPolicyName(const char *value)
DescribedSecurityPolicy & WithSshMacs(Aws::Vector< Aws::String > &&value)
DescribedSecurityPolicy & WithTlsCiphers(const Aws::Vector< Aws::String > &value)
void SetProtocols(Aws::Vector< SecurityPolicyProtocol > &&value)
void SetSshMacs(Aws::Vector< Aws::String > &&value)
const Aws::Vector< SecurityPolicyProtocol > & GetProtocols() const
void SetSshKexs(Aws::Vector< Aws::String > &&value)
void SetType(SecurityPolicyResourceType &&value)
DescribedSecurityPolicy & WithSshCiphers(const Aws::Vector< Aws::String > &value)
void SetSshHostKeyAlgorithms(const Aws::Vector< Aws::String > &value)
DescribedSecurityPolicy & WithSshHostKeyAlgorithms(Aws::Vector< Aws::String > &&value)
DescribedSecurityPolicy & WithProtocols(const Aws::Vector< SecurityPolicyProtocol > &value)
DescribedSecurityPolicy & AddSshKexs(const char *value)
DescribedSecurityPolicy & AddSshMacs(const Aws::String &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