AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
LoadBalancerTlsPolicy.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/lightsail/Lightsail_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Lightsail {
21namespace Model {
22
34 public:
35 AWS_LIGHTSAIL_API LoadBalancerTlsPolicy() = default;
38 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template <typename NameT = Aws::String>
47 void SetName(NameT&& value) {
48 m_nameHasBeenSet = true;
49 m_name = std::forward<NameT>(value);
50 }
51 template <typename NameT = Aws::String>
53 SetName(std::forward<NameT>(value));
54 return *this;
55 }
57
59
63 inline bool GetIsDefault() const { return m_isDefault; }
64 inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; }
65 inline void SetIsDefault(bool value) {
66 m_isDefaultHasBeenSet = true;
67 m_isDefault = value;
68 }
70 SetIsDefault(value);
71 return *this;
72 }
74
76
79 inline const Aws::String& GetDescription() const { return m_description; }
80 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
81 template <typename DescriptionT = Aws::String>
82 void SetDescription(DescriptionT&& value) {
83 m_descriptionHasBeenSet = true;
84 m_description = std::forward<DescriptionT>(value);
85 }
86 template <typename DescriptionT = Aws::String>
87 LoadBalancerTlsPolicy& WithDescription(DescriptionT&& value) {
88 SetDescription(std::forward<DescriptionT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::Vector<Aws::String>& GetProtocols() const { return m_protocols; }
98 inline bool ProtocolsHasBeenSet() const { return m_protocolsHasBeenSet; }
99 template <typename ProtocolsT = Aws::Vector<Aws::String>>
100 void SetProtocols(ProtocolsT&& value) {
101 m_protocolsHasBeenSet = true;
102 m_protocols = std::forward<ProtocolsT>(value);
103 }
104 template <typename ProtocolsT = Aws::Vector<Aws::String>>
106 SetProtocols(std::forward<ProtocolsT>(value));
107 return *this;
108 }
109 template <typename ProtocolsT = Aws::String>
110 LoadBalancerTlsPolicy& AddProtocols(ProtocolsT&& value) {
111 m_protocolsHasBeenSet = true;
112 m_protocols.emplace_back(std::forward<ProtocolsT>(value));
113 return *this;
114 }
116
118
122 inline const Aws::Vector<Aws::String>& GetCiphers() const { return m_ciphers; }
123 inline bool CiphersHasBeenSet() const { return m_ciphersHasBeenSet; }
124 template <typename CiphersT = Aws::Vector<Aws::String>>
125 void SetCiphers(CiphersT&& value) {
126 m_ciphersHasBeenSet = true;
127 m_ciphers = std::forward<CiphersT>(value);
128 }
129 template <typename CiphersT = Aws::Vector<Aws::String>>
131 SetCiphers(std::forward<CiphersT>(value));
132 return *this;
133 }
134 template <typename CiphersT = Aws::String>
136 m_ciphersHasBeenSet = true;
137 m_ciphers.emplace_back(std::forward<CiphersT>(value));
138 return *this;
139 }
141 private:
142 Aws::String m_name;
143
144 bool m_isDefault{false};
145
146 Aws::String m_description;
147
148 Aws::Vector<Aws::String> m_protocols;
149
150 Aws::Vector<Aws::String> m_ciphers;
151 bool m_nameHasBeenSet = false;
152 bool m_isDefaultHasBeenSet = false;
153 bool m_descriptionHasBeenSet = false;
154 bool m_protocolsHasBeenSet = false;
155 bool m_ciphersHasBeenSet = false;
156};
157
158} // namespace Model
159} // namespace Lightsail
160} // 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