AWS SDK for C++  1.9.16
AWS SDK for C++
Listener.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23  class JsonView;
24 } // namespace Json
25 } // namespace Utils
26 namespace AppMesh
27 {
28 namespace Model
29 {
30 
38  {
39  public:
44 
45 
49  inline const VirtualNodeConnectionPool& GetConnectionPool() const{ return m_connectionPool; }
50 
54  inline bool ConnectionPoolHasBeenSet() const { return m_connectionPoolHasBeenSet; }
55 
59  inline void SetConnectionPool(const VirtualNodeConnectionPool& value) { m_connectionPoolHasBeenSet = true; m_connectionPool = value; }
60 
64  inline void SetConnectionPool(VirtualNodeConnectionPool&& value) { m_connectionPoolHasBeenSet = true; m_connectionPool = std::move(value); }
65 
69  inline Listener& WithConnectionPool(const VirtualNodeConnectionPool& value) { SetConnectionPool(value); return *this;}
70 
74  inline Listener& WithConnectionPool(VirtualNodeConnectionPool&& value) { SetConnectionPool(std::move(value)); return *this;}
75 
76 
80  inline const HealthCheckPolicy& GetHealthCheck() const{ return m_healthCheck; }
81 
85  inline bool HealthCheckHasBeenSet() const { return m_healthCheckHasBeenSet; }
86 
90  inline void SetHealthCheck(const HealthCheckPolicy& value) { m_healthCheckHasBeenSet = true; m_healthCheck = value; }
91 
95  inline void SetHealthCheck(HealthCheckPolicy&& value) { m_healthCheckHasBeenSet = true; m_healthCheck = std::move(value); }
96 
100  inline Listener& WithHealthCheck(const HealthCheckPolicy& value) { SetHealthCheck(value); return *this;}
101 
105  inline Listener& WithHealthCheck(HealthCheckPolicy&& value) { SetHealthCheck(std::move(value)); return *this;}
106 
107 
111  inline const OutlierDetection& GetOutlierDetection() const{ return m_outlierDetection; }
112 
116  inline bool OutlierDetectionHasBeenSet() const { return m_outlierDetectionHasBeenSet; }
117 
121  inline void SetOutlierDetection(const OutlierDetection& value) { m_outlierDetectionHasBeenSet = true; m_outlierDetection = value; }
122 
126  inline void SetOutlierDetection(OutlierDetection&& value) { m_outlierDetectionHasBeenSet = true; m_outlierDetection = std::move(value); }
127 
131  inline Listener& WithOutlierDetection(const OutlierDetection& value) { SetOutlierDetection(value); return *this;}
132 
136  inline Listener& WithOutlierDetection(OutlierDetection&& value) { SetOutlierDetection(std::move(value)); return *this;}
137 
138 
142  inline const PortMapping& GetPortMapping() const{ return m_portMapping; }
143 
147  inline bool PortMappingHasBeenSet() const { return m_portMappingHasBeenSet; }
148 
152  inline void SetPortMapping(const PortMapping& value) { m_portMappingHasBeenSet = true; m_portMapping = value; }
153 
157  inline void SetPortMapping(PortMapping&& value) { m_portMappingHasBeenSet = true; m_portMapping = std::move(value); }
158 
162  inline Listener& WithPortMapping(const PortMapping& value) { SetPortMapping(value); return *this;}
163 
167  inline Listener& WithPortMapping(PortMapping&& value) { SetPortMapping(std::move(value)); return *this;}
168 
169 
173  inline const ListenerTimeout& GetTimeout() const{ return m_timeout; }
174 
178  inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
179 
183  inline void SetTimeout(const ListenerTimeout& value) { m_timeoutHasBeenSet = true; m_timeout = value; }
184 
188  inline void SetTimeout(ListenerTimeout&& value) { m_timeoutHasBeenSet = true; m_timeout = std::move(value); }
189 
193  inline Listener& WithTimeout(const ListenerTimeout& value) { SetTimeout(value); return *this;}
194 
198  inline Listener& WithTimeout(ListenerTimeout&& value) { SetTimeout(std::move(value)); return *this;}
199 
200 
205  inline const ListenerTls& GetTls() const{ return m_tls; }
206 
211  inline bool TlsHasBeenSet() const { return m_tlsHasBeenSet; }
212 
217  inline void SetTls(const ListenerTls& value) { m_tlsHasBeenSet = true; m_tls = value; }
218 
223  inline void SetTls(ListenerTls&& value) { m_tlsHasBeenSet = true; m_tls = std::move(value); }
224 
229  inline Listener& WithTls(const ListenerTls& value) { SetTls(value); return *this;}
230 
235  inline Listener& WithTls(ListenerTls&& value) { SetTls(std::move(value)); return *this;}
236 
237  private:
238 
239  VirtualNodeConnectionPool m_connectionPool;
240  bool m_connectionPoolHasBeenSet;
241 
242  HealthCheckPolicy m_healthCheck;
243  bool m_healthCheckHasBeenSet;
244 
245  OutlierDetection m_outlierDetection;
246  bool m_outlierDetectionHasBeenSet;
247 
248  PortMapping m_portMapping;
249  bool m_portMappingHasBeenSet;
250 
251  ListenerTimeout m_timeout;
252  bool m_timeoutHasBeenSet;
253 
254  ListenerTls m_tls;
255  bool m_tlsHasBeenSet;
256  };
257 
258 } // namespace Model
259 } // namespace AppMesh
260 } // namespace Aws
Aws::AppMesh::Model::Listener::GetOutlierDetection
const OutlierDetection & GetOutlierDetection() const
Definition: Listener.h:111
Aws::AppMesh::Model::Listener::WithOutlierDetection
Listener & WithOutlierDetection(const OutlierDetection &value)
Definition: Listener.h:131
Aws::AppMesh::Model::OutlierDetection
Definition: OutlierDetection.h:33
Aws::AppMesh::Model::Listener::Listener
Listener()
Aws::AppMesh::Model::Listener::TimeoutHasBeenSet
bool TimeoutHasBeenSet() const
Definition: Listener.h:178
Aws::AppMesh::Model::Listener::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AppMesh::Model::Listener::SetTimeout
void SetTimeout(const ListenerTimeout &value)
Definition: Listener.h:183
Aws::AppMesh::Model::Listener::SetTls
void SetTls(const ListenerTls &value)
Definition: Listener.h:217
PortMapping.h
Aws::AppMesh::Model::Listener::WithPortMapping
Listener & WithPortMapping(PortMapping &&value)
Definition: Listener.h:167
Aws::AppMesh::Model::Listener::GetHealthCheck
const HealthCheckPolicy & GetHealthCheck() const
Definition: Listener.h:80
Aws::AppMesh::Model::Listener::SetConnectionPool
void SetConnectionPool(VirtualNodeConnectionPool &&value)
Definition: Listener.h:64
Aws::AppMesh::Model::Listener::WithTls
Listener & WithTls(ListenerTls &&value)
Definition: Listener.h:235
OutlierDetection.h
Aws::AppMesh::Model::Listener::GetConnectionPool
const VirtualNodeConnectionPool & GetConnectionPool() const
Definition: Listener.h:49
VirtualNodeConnectionPool.h
Aws::AppMesh::Model::PortMapping
Definition: PortMapping.h:32
AppMesh_EXPORTS.h
Aws::AppMesh::Model::Listener::SetTls
void SetTls(ListenerTls &&value)
Definition: Listener.h:223
ListenerTimeout.h
Aws::AppMesh::Model::Listener::WithTls
Listener & WithTls(const ListenerTls &value)
Definition: Listener.h:229
Aws::AppMesh::Model::Listener::TlsHasBeenSet
bool TlsHasBeenSet() const
Definition: Listener.h:211
Aws::AppMesh::Model::Listener::WithTimeout
Listener & WithTimeout(ListenerTimeout &&value)
Definition: Listener.h:198
Aws::AppMesh::Model::Listener::SetPortMapping
void SetPortMapping(const PortMapping &value)
Definition: Listener.h:152
Aws::AppMesh::Model::Listener::SetTimeout
void SetTimeout(ListenerTimeout &&value)
Definition: Listener.h:188
ListenerTls.h
Aws::AppMesh::Model::Listener::WithOutlierDetection
Listener & WithOutlierDetection(OutlierDetection &&value)
Definition: Listener.h:136
Aws::AppMesh::Model::Listener::SetOutlierDetection
void SetOutlierDetection(const OutlierDetection &value)
Definition: Listener.h:121
Aws::AppMesh::Model::Listener::GetTimeout
const ListenerTimeout & GetTimeout() const
Definition: Listener.h:173
Aws::AppMesh::Model::Listener::WithTimeout
Listener & WithTimeout(const ListenerTimeout &value)
Definition: Listener.h:193
Aws::AppMesh::Model::Listener::WithHealthCheck
Listener & WithHealthCheck(HealthCheckPolicy &&value)
Definition: Listener.h:105
Aws::AppMesh::Model::Listener::SetConnectionPool
void SetConnectionPool(const VirtualNodeConnectionPool &value)
Definition: Listener.h:59
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::AppMesh::Model::ListenerTimeout
Definition: ListenerTimeout.h:35
Aws::AppMesh::Model::Listener::OutlierDetectionHasBeenSet
bool OutlierDetectionHasBeenSet() const
Definition: Listener.h:116
Aws::AppMesh::Model::Listener::PortMappingHasBeenSet
bool PortMappingHasBeenSet() const
Definition: Listener.h:147
Aws::AppMesh::Model::Listener::GetTls
const ListenerTls & GetTls() const
Definition: Listener.h:205
Aws::AppMesh::Model::ListenerTls
Definition: ListenerTls.h:35
Aws::AppMesh::Model::VirtualNodeConnectionPool
Definition: VirtualNodeConnectionPool.h:39
Aws::AppMesh::Model::Listener::WithConnectionPool
Listener & WithConnectionPool(VirtualNodeConnectionPool &&value)
Definition: Listener.h:74
Aws::AppMesh::Model::Listener::HealthCheckHasBeenSet
bool HealthCheckHasBeenSet() const
Definition: Listener.h:85
Aws::AppMesh::Model::Listener::SetHealthCheck
void SetHealthCheck(const HealthCheckPolicy &value)
Definition: Listener.h:90
Aws::AppMesh::Model::Listener::WithConnectionPool
Listener & WithConnectionPool(const VirtualNodeConnectionPool &value)
Definition: Listener.h:69
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::Listener::WithHealthCheck
Listener & WithHealthCheck(const HealthCheckPolicy &value)
Definition: Listener.h:100
Aws::AppMesh::Model::HealthCheckPolicy
Definition: HealthCheckPolicy.h:34
HealthCheckPolicy.h
Aws::AppMesh::Model::Listener::ConnectionPoolHasBeenSet
bool ConnectionPoolHasBeenSet() const
Definition: Listener.h:54
Aws::AppMesh::Model::Listener::SetHealthCheck
void SetHealthCheck(HealthCheckPolicy &&value)
Definition: Listener.h:95
Aws::AppMesh::Model::Listener::Listener
Listener(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::Listener
Definition: Listener.h:38
Aws::AppMesh::Model::Listener::operator=
Listener & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::Listener::WithPortMapping
Listener & WithPortMapping(const PortMapping &value)
Definition: Listener.h:162
Aws::AppMesh::Model::Listener::GetPortMapping
const PortMapping & GetPortMapping() const
Definition: Listener.h:142
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28
Aws::AppMesh::Model::Listener::SetPortMapping
void SetPortMapping(PortMapping &&value)
Definition: Listener.h:157
Aws::AppMesh::Model::Listener::SetOutlierDetection
void SetOutlierDetection(OutlierDetection &&value)
Definition: Listener.h:126