AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
SslPolicy.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
11#include <aws/elasticloadbalancingv2/model/Cipher.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace ElasticLoadBalancingv2 {
22namespace Model {
23
30class SslPolicy {
31 public:
32 AWS_ELASTICLOADBALANCINGV2_API SslPolicy() = default;
33 AWS_ELASTICLOADBALANCINGV2_API SslPolicy(const Aws::Utils::Xml::XmlNode& xmlNode);
34 AWS_ELASTICLOADBALANCINGV2_API SslPolicy& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
37 const char* locationValue) const;
38 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
44 inline const Aws::Vector<Aws::String>& GetSslProtocols() const { return m_sslProtocols; }
45 inline bool SslProtocolsHasBeenSet() const { return m_sslProtocolsHasBeenSet; }
46 template <typename SslProtocolsT = Aws::Vector<Aws::String>>
47 void SetSslProtocols(SslProtocolsT&& value) {
48 m_sslProtocolsHasBeenSet = true;
49 m_sslProtocols = std::forward<SslProtocolsT>(value);
50 }
51 template <typename SslProtocolsT = Aws::Vector<Aws::String>>
52 SslPolicy& WithSslProtocols(SslProtocolsT&& value) {
53 SetSslProtocols(std::forward<SslProtocolsT>(value));
54 return *this;
55 }
56 template <typename SslProtocolsT = Aws::String>
57 SslPolicy& AddSslProtocols(SslProtocolsT&& value) {
58 m_sslProtocolsHasBeenSet = true;
59 m_sslProtocols.emplace_back(std::forward<SslProtocolsT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::Vector<Cipher>& GetCiphers() const { return m_ciphers; }
69 inline bool CiphersHasBeenSet() const { return m_ciphersHasBeenSet; }
70 template <typename CiphersT = Aws::Vector<Cipher>>
71 void SetCiphers(CiphersT&& value) {
72 m_ciphersHasBeenSet = true;
73 m_ciphers = std::forward<CiphersT>(value);
74 }
75 template <typename CiphersT = Aws::Vector<Cipher>>
76 SslPolicy& WithCiphers(CiphersT&& value) {
77 SetCiphers(std::forward<CiphersT>(value));
78 return *this;
79 }
80 template <typename CiphersT = Cipher>
81 SslPolicy& AddCiphers(CiphersT&& value) {
82 m_ciphersHasBeenSet = true;
83 m_ciphers.emplace_back(std::forward<CiphersT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetName() const { return m_name; }
93 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
94 template <typename NameT = Aws::String>
95 void SetName(NameT&& value) {
96 m_nameHasBeenSet = true;
97 m_name = std::forward<NameT>(value);
98 }
99 template <typename NameT = Aws::String>
100 SslPolicy& WithName(NameT&& value) {
101 SetName(std::forward<NameT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::Vector<Aws::String>& GetSupportedLoadBalancerTypes() const { return m_supportedLoadBalancerTypes; }
111 inline bool SupportedLoadBalancerTypesHasBeenSet() const { return m_supportedLoadBalancerTypesHasBeenSet; }
112 template <typename SupportedLoadBalancerTypesT = Aws::Vector<Aws::String>>
113 void SetSupportedLoadBalancerTypes(SupportedLoadBalancerTypesT&& value) {
114 m_supportedLoadBalancerTypesHasBeenSet = true;
115 m_supportedLoadBalancerTypes = std::forward<SupportedLoadBalancerTypesT>(value);
116 }
117 template <typename SupportedLoadBalancerTypesT = Aws::Vector<Aws::String>>
118 SslPolicy& WithSupportedLoadBalancerTypes(SupportedLoadBalancerTypesT&& value) {
119 SetSupportedLoadBalancerTypes(std::forward<SupportedLoadBalancerTypesT>(value));
120 return *this;
121 }
122 template <typename SupportedLoadBalancerTypesT = Aws::String>
123 SslPolicy& AddSupportedLoadBalancerTypes(SupportedLoadBalancerTypesT&& value) {
124 m_supportedLoadBalancerTypesHasBeenSet = true;
125 m_supportedLoadBalancerTypes.emplace_back(std::forward<SupportedLoadBalancerTypesT>(value));
126 return *this;
127 }
129 private:
130 Aws::Vector<Aws::String> m_sslProtocols;
131
132 Aws::Vector<Cipher> m_ciphers;
133
134 Aws::String m_name;
135
136 Aws::Vector<Aws::String> m_supportedLoadBalancerTypes;
137 bool m_sslProtocolsHasBeenSet = false;
138 bool m_ciphersHasBeenSet = false;
139 bool m_nameHasBeenSet = false;
140 bool m_supportedLoadBalancerTypesHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace ElasticLoadBalancingv2
145} // namespace Aws
SslPolicy & WithSupportedLoadBalancerTypes(SupportedLoadBalancerTypesT &&value)
Definition SslPolicy.h:118
void SetSslProtocols(SslProtocolsT &&value)
Definition SslPolicy.h:47
const Aws::Vector< Cipher > & GetCiphers() const
Definition SslPolicy.h:68
AWS_ELASTICLOADBALANCINGV2_API SslPolicy & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
SslPolicy & WithSslProtocols(SslProtocolsT &&value)
Definition SslPolicy.h:52
const Aws::Vector< Aws::String > & GetSslProtocols() const
Definition SslPolicy.h:44
SslPolicy & AddCiphers(CiphersT &&value)
Definition SslPolicy.h:81
const Aws::Vector< Aws::String > & GetSupportedLoadBalancerTypes() const
Definition SslPolicy.h:110
SslPolicy & AddSslProtocols(SslProtocolsT &&value)
Definition SslPolicy.h:57
AWS_ELASTICLOADBALANCINGV2_API SslPolicy(const Aws::Utils::Xml::XmlNode &xmlNode)
SslPolicy & WithCiphers(CiphersT &&value)
Definition SslPolicy.h:76
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
SslPolicy & AddSupportedLoadBalancerTypes(SupportedLoadBalancerTypesT &&value)
Definition SslPolicy.h:123
void SetSupportedLoadBalancerTypes(SupportedLoadBalancerTypesT &&value)
Definition SslPolicy.h:113
const Aws::String & GetName() const
Definition SslPolicy.h:92
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