AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
53 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
54 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
55 inline LoadBalancerTlsPolicy& WithName(const Aws::String& value) { SetName(value); return *this;}
56 inline LoadBalancerTlsPolicy& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
57 inline LoadBalancerTlsPolicy& WithName(const char* value) { SetName(value); return *this;}
59
61
65 inline bool GetIsDefault() const{ return m_isDefault; }
66 inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; }
67 inline void SetIsDefault(bool value) { m_isDefaultHasBeenSet = true; m_isDefault = value; }
68 inline LoadBalancerTlsPolicy& WithIsDefault(bool value) { SetIsDefault(value); return *this;}
70
72
75 inline const Aws::String& GetDescription() const{ return m_description; }
76 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
77 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
78 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
79 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
80 inline LoadBalancerTlsPolicy& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
81 inline LoadBalancerTlsPolicy& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
82 inline LoadBalancerTlsPolicy& WithDescription(const char* value) { SetDescription(value); return *this;}
84
86
89 inline const Aws::Vector<Aws::String>& GetProtocols() const{ return m_protocols; }
90 inline bool ProtocolsHasBeenSet() const { return m_protocolsHasBeenSet; }
91 inline void SetProtocols(const Aws::Vector<Aws::String>& value) { m_protocolsHasBeenSet = true; m_protocols = value; }
92 inline void SetProtocols(Aws::Vector<Aws::String>&& value) { m_protocolsHasBeenSet = true; m_protocols = std::move(value); }
93 inline LoadBalancerTlsPolicy& WithProtocols(const Aws::Vector<Aws::String>& value) { SetProtocols(value); return *this;}
94 inline LoadBalancerTlsPolicy& WithProtocols(Aws::Vector<Aws::String>&& value) { SetProtocols(std::move(value)); return *this;}
95 inline LoadBalancerTlsPolicy& AddProtocols(const Aws::String& value) { m_protocolsHasBeenSet = true; m_protocols.push_back(value); return *this; }
96 inline LoadBalancerTlsPolicy& AddProtocols(Aws::String&& value) { m_protocolsHasBeenSet = true; m_protocols.push_back(std::move(value)); return *this; }
97 inline LoadBalancerTlsPolicy& AddProtocols(const char* value) { m_protocolsHasBeenSet = true; m_protocols.push_back(value); return *this; }
99
101
105 inline const Aws::Vector<Aws::String>& GetCiphers() const{ return m_ciphers; }
106 inline bool CiphersHasBeenSet() const { return m_ciphersHasBeenSet; }
107 inline void SetCiphers(const Aws::Vector<Aws::String>& value) { m_ciphersHasBeenSet = true; m_ciphers = value; }
108 inline void SetCiphers(Aws::Vector<Aws::String>&& value) { m_ciphersHasBeenSet = true; m_ciphers = std::move(value); }
109 inline LoadBalancerTlsPolicy& WithCiphers(const Aws::Vector<Aws::String>& value) { SetCiphers(value); return *this;}
110 inline LoadBalancerTlsPolicy& WithCiphers(Aws::Vector<Aws::String>&& value) { SetCiphers(std::move(value)); return *this;}
111 inline LoadBalancerTlsPolicy& AddCiphers(const Aws::String& value) { m_ciphersHasBeenSet = true; m_ciphers.push_back(value); return *this; }
112 inline LoadBalancerTlsPolicy& AddCiphers(Aws::String&& value) { m_ciphersHasBeenSet = true; m_ciphers.push_back(std::move(value)); return *this; }
113 inline LoadBalancerTlsPolicy& AddCiphers(const char* value) { m_ciphersHasBeenSet = true; m_ciphers.push_back(value); return *this; }
115 private:
116
117 Aws::String m_name;
118 bool m_nameHasBeenSet = false;
119
120 bool m_isDefault;
121 bool m_isDefaultHasBeenSet = false;
122
123 Aws::String m_description;
124 bool m_descriptionHasBeenSet = false;
125
126 Aws::Vector<Aws::String> m_protocols;
127 bool m_protocolsHasBeenSet = false;
128
129 Aws::Vector<Aws::String> m_ciphers;
130 bool m_ciphersHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace Lightsail
135} // namespace Aws
LoadBalancerTlsPolicy & AddCiphers(Aws::String &&value)
AWS_LIGHTSAIL_API LoadBalancerTlsPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetProtocols(const Aws::Vector< Aws::String > &value)
LoadBalancerTlsPolicy & AddProtocols(Aws::String &&value)
LoadBalancerTlsPolicy & WithDescription(const Aws::String &value)
LoadBalancerTlsPolicy & WithProtocols(const Aws::Vector< Aws::String > &value)
LoadBalancerTlsPolicy & AddCiphers(const Aws::String &value)
LoadBalancerTlsPolicy & AddProtocols(const char *value)
LoadBalancerTlsPolicy & WithName(const char *value)
LoadBalancerTlsPolicy & WithName(const Aws::String &value)
void SetProtocols(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetProtocols() const
void SetCiphers(const Aws::Vector< Aws::String > &value)
LoadBalancerTlsPolicy & WithProtocols(Aws::Vector< Aws::String > &&value)
void SetCiphers(Aws::Vector< Aws::String > &&value)
LoadBalancerTlsPolicy & WithCiphers(Aws::Vector< Aws::String > &&value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetCiphers() const
LoadBalancerTlsPolicy & WithCiphers(const Aws::Vector< Aws::String > &value)
LoadBalancerTlsPolicy & WithDescription(const char *value)
LoadBalancerTlsPolicy & AddCiphers(const char *value)
AWS_LIGHTSAIL_API LoadBalancerTlsPolicy(Aws::Utils::Json::JsonView jsonValue)
LoadBalancerTlsPolicy & WithName(Aws::String &&value)
LoadBalancerTlsPolicy & AddProtocols(const Aws::String &value)
LoadBalancerTlsPolicy & WithDescription(Aws::String &&value)
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