AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LoadBalancerTlsPolicy.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Lightsail
23{
24namespace Model
25{
26
38 {
39 public:
40 AWS_LIGHTSAIL_API LoadBalancerTlsPolicy() = default;
43 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetName() const { return m_name; }
51 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
52 template<typename NameT = Aws::String>
53 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
54 template<typename NameT = Aws::String>
55 LoadBalancerTlsPolicy& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
57
59
63 inline bool GetIsDefault() const { return m_isDefault; }
64 inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; }
65 inline void SetIsDefault(bool value) { m_isDefaultHasBeenSet = true; m_isDefault = value; }
66 inline LoadBalancerTlsPolicy& WithIsDefault(bool value) { SetIsDefault(value); return *this;}
68
70
73 inline const Aws::String& GetDescription() const { return m_description; }
74 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
75 template<typename DescriptionT = Aws::String>
76 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
77 template<typename DescriptionT = Aws::String>
78 LoadBalancerTlsPolicy& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
80
82
85 inline const Aws::Vector<Aws::String>& GetProtocols() const { return m_protocols; }
86 inline bool ProtocolsHasBeenSet() const { return m_protocolsHasBeenSet; }
87 template<typename ProtocolsT = Aws::Vector<Aws::String>>
88 void SetProtocols(ProtocolsT&& value) { m_protocolsHasBeenSet = true; m_protocols = std::forward<ProtocolsT>(value); }
89 template<typename ProtocolsT = Aws::Vector<Aws::String>>
90 LoadBalancerTlsPolicy& WithProtocols(ProtocolsT&& value) { SetProtocols(std::forward<ProtocolsT>(value)); return *this;}
91 template<typename ProtocolsT = Aws::String>
92 LoadBalancerTlsPolicy& AddProtocols(ProtocolsT&& value) { m_protocolsHasBeenSet = true; m_protocols.emplace_back(std::forward<ProtocolsT>(value)); return *this; }
94
96
100 inline const Aws::Vector<Aws::String>& GetCiphers() const { return m_ciphers; }
101 inline bool CiphersHasBeenSet() const { return m_ciphersHasBeenSet; }
102 template<typename CiphersT = Aws::Vector<Aws::String>>
103 void SetCiphers(CiphersT&& value) { m_ciphersHasBeenSet = true; m_ciphers = std::forward<CiphersT>(value); }
104 template<typename CiphersT = Aws::Vector<Aws::String>>
105 LoadBalancerTlsPolicy& WithCiphers(CiphersT&& value) { SetCiphers(std::forward<CiphersT>(value)); return *this;}
106 template<typename CiphersT = Aws::String>
107 LoadBalancerTlsPolicy& AddCiphers(CiphersT&& value) { m_ciphersHasBeenSet = true; m_ciphers.emplace_back(std::forward<CiphersT>(value)); return *this; }
109 private:
110
111 Aws::String m_name;
112 bool m_nameHasBeenSet = false;
113
114 bool m_isDefault{false};
115 bool m_isDefaultHasBeenSet = false;
116
117 Aws::String m_description;
118 bool m_descriptionHasBeenSet = false;
119
120 Aws::Vector<Aws::String> m_protocols;
121 bool m_protocolsHasBeenSet = false;
122
123 Aws::Vector<Aws::String> m_ciphers;
124 bool m_ciphersHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace Lightsail
129} // namespace Aws
AWS_LIGHTSAIL_API LoadBalancerTlsPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
LoadBalancerTlsPolicy & WithCiphers(CiphersT &&value)
AWS_LIGHTSAIL_API LoadBalancerTlsPolicy()=default
const Aws::Vector< Aws::String > & GetProtocols() const
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetCiphers() const
LoadBalancerTlsPolicy & AddProtocols(ProtocolsT &&value)
LoadBalancerTlsPolicy & WithDescription(DescriptionT &&value)
LoadBalancerTlsPolicy & AddCiphers(CiphersT &&value)
LoadBalancerTlsPolicy & WithProtocols(ProtocolsT &&value)
LoadBalancerTlsPolicy & WithName(NameT &&value)
AWS_LIGHTSAIL_API LoadBalancerTlsPolicy(Aws::Utils::Json::JsonView jsonValue)
LoadBalancerTlsPolicy & WithIsDefault(bool 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