AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
SslPolicy.h
1
6#pragma once
7#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/elasticloadbalancingv2/model/Cipher.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace ElasticLoadBalancingv2
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_ELASTICLOADBALANCINGV2_API SslPolicy() = default;
38 AWS_ELASTICLOADBALANCINGV2_API SslPolicy(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_ELASTICLOADBALANCINGV2_API SslPolicy& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::Vector<Aws::String>& GetSslProtocols() const { return m_sslProtocols; }
50 inline bool SslProtocolsHasBeenSet() const { return m_sslProtocolsHasBeenSet; }
51 template<typename SslProtocolsT = Aws::Vector<Aws::String>>
52 void SetSslProtocols(SslProtocolsT&& value) { m_sslProtocolsHasBeenSet = true; m_sslProtocols = std::forward<SslProtocolsT>(value); }
53 template<typename SslProtocolsT = Aws::Vector<Aws::String>>
54 SslPolicy& WithSslProtocols(SslProtocolsT&& value) { SetSslProtocols(std::forward<SslProtocolsT>(value)); return *this;}
55 template<typename SslProtocolsT = Aws::String>
56 SslPolicy& AddSslProtocols(SslProtocolsT&& value) { m_sslProtocolsHasBeenSet = true; m_sslProtocols.emplace_back(std::forward<SslProtocolsT>(value)); return *this; }
58
60
63 inline const Aws::Vector<Cipher>& GetCiphers() const { return m_ciphers; }
64 inline bool CiphersHasBeenSet() const { return m_ciphersHasBeenSet; }
65 template<typename CiphersT = Aws::Vector<Cipher>>
66 void SetCiphers(CiphersT&& value) { m_ciphersHasBeenSet = true; m_ciphers = std::forward<CiphersT>(value); }
67 template<typename CiphersT = Aws::Vector<Cipher>>
68 SslPolicy& WithCiphers(CiphersT&& value) { SetCiphers(std::forward<CiphersT>(value)); return *this;}
69 template<typename CiphersT = Cipher>
70 SslPolicy& AddCiphers(CiphersT&& value) { m_ciphersHasBeenSet = true; m_ciphers.emplace_back(std::forward<CiphersT>(value)); return *this; }
72
74
77 inline const Aws::String& GetName() const { return m_name; }
78 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
79 template<typename NameT = Aws::String>
80 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
81 template<typename NameT = Aws::String>
82 SslPolicy& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
84
86
89 inline const Aws::Vector<Aws::String>& GetSupportedLoadBalancerTypes() const { return m_supportedLoadBalancerTypes; }
90 inline bool SupportedLoadBalancerTypesHasBeenSet() const { return m_supportedLoadBalancerTypesHasBeenSet; }
91 template<typename SupportedLoadBalancerTypesT = Aws::Vector<Aws::String>>
92 void SetSupportedLoadBalancerTypes(SupportedLoadBalancerTypesT&& value) { m_supportedLoadBalancerTypesHasBeenSet = true; m_supportedLoadBalancerTypes = std::forward<SupportedLoadBalancerTypesT>(value); }
93 template<typename SupportedLoadBalancerTypesT = Aws::Vector<Aws::String>>
94 SslPolicy& WithSupportedLoadBalancerTypes(SupportedLoadBalancerTypesT&& value) { SetSupportedLoadBalancerTypes(std::forward<SupportedLoadBalancerTypesT>(value)); return *this;}
95 template<typename SupportedLoadBalancerTypesT = Aws::String>
96 SslPolicy& AddSupportedLoadBalancerTypes(SupportedLoadBalancerTypesT&& value) { m_supportedLoadBalancerTypesHasBeenSet = true; m_supportedLoadBalancerTypes.emplace_back(std::forward<SupportedLoadBalancerTypesT>(value)); return *this; }
98 private:
99
100 Aws::Vector<Aws::String> m_sslProtocols;
101 bool m_sslProtocolsHasBeenSet = false;
102
103 Aws::Vector<Cipher> m_ciphers;
104 bool m_ciphersHasBeenSet = false;
105
106 Aws::String m_name;
107 bool m_nameHasBeenSet = false;
108
109 Aws::Vector<Aws::String> m_supportedLoadBalancerTypes;
110 bool m_supportedLoadBalancerTypesHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace ElasticLoadBalancingv2
115} // namespace Aws
SslPolicy & WithSupportedLoadBalancerTypes(SupportedLoadBalancerTypesT &&value)
Definition SslPolicy.h:94
void SetSslProtocols(SslProtocolsT &&value)
Definition SslPolicy.h:52
const Aws::Vector< Cipher > & GetCiphers() const
Definition SslPolicy.h:63
AWS_ELASTICLOADBALANCINGV2_API SslPolicy & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
SslPolicy & WithSslProtocols(SslProtocolsT &&value)
Definition SslPolicy.h:54
const Aws::Vector< Aws::String > & GetSslProtocols() const
Definition SslPolicy.h:49
SslPolicy & AddCiphers(CiphersT &&value)
Definition SslPolicy.h:70
SslPolicy & WithName(NameT &&value)
Definition SslPolicy.h:82
const Aws::Vector< Aws::String > & GetSupportedLoadBalancerTypes() const
Definition SslPolicy.h:89
SslPolicy & AddSslProtocols(SslProtocolsT &&value)
Definition SslPolicy.h:56
AWS_ELASTICLOADBALANCINGV2_API SslPolicy(const Aws::Utils::Xml::XmlNode &xmlNode)
SslPolicy & WithCiphers(CiphersT &&value)
Definition SslPolicy.h:68
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
SslPolicy & AddSupportedLoadBalancerTypes(SupportedLoadBalancerTypesT &&value)
Definition SslPolicy.h:96
void SetSupportedLoadBalancerTypes(SupportedLoadBalancerTypesT &&value)
Definition SslPolicy.h:92
const Aws::String & GetName() const
Definition SslPolicy.h:77
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_ELASTICLOADBALANCINGV2_API SslPolicy()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream