/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace AppMesh { namespace Model { /** *

An object that represents a type of connection pool.

See Also:

* AWS * API Reference

*/ class VirtualNodeHttpConnectionPool { public: AWS_APPMESH_API VirtualNodeHttpConnectionPool(); AWS_APPMESH_API VirtualNodeHttpConnectionPool(Aws::Utils::Json::JsonView jsonValue); AWS_APPMESH_API VirtualNodeHttpConnectionPool& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Maximum number of outbound TCP connections Envoy can establish concurrently * with all hosts in upstream cluster.

*/ inline int GetMaxConnections() const{ return m_maxConnections; } /** *

Maximum number of outbound TCP connections Envoy can establish concurrently * with all hosts in upstream cluster.

*/ inline bool MaxConnectionsHasBeenSet() const { return m_maxConnectionsHasBeenSet; } /** *

Maximum number of outbound TCP connections Envoy can establish concurrently * with all hosts in upstream cluster.

*/ inline void SetMaxConnections(int value) { m_maxConnectionsHasBeenSet = true; m_maxConnections = value; } /** *

Maximum number of outbound TCP connections Envoy can establish concurrently * with all hosts in upstream cluster.

*/ inline VirtualNodeHttpConnectionPool& WithMaxConnections(int value) { SetMaxConnections(value); return *this;} /** *

Number of overflowing requests after max_connections Envoy will * queue to upstream cluster.

*/ inline int GetMaxPendingRequests() const{ return m_maxPendingRequests; } /** *

Number of overflowing requests after max_connections Envoy will * queue to upstream cluster.

*/ inline bool MaxPendingRequestsHasBeenSet() const { return m_maxPendingRequestsHasBeenSet; } /** *

Number of overflowing requests after max_connections Envoy will * queue to upstream cluster.

*/ inline void SetMaxPendingRequests(int value) { m_maxPendingRequestsHasBeenSet = true; m_maxPendingRequests = value; } /** *

Number of overflowing requests after max_connections Envoy will * queue to upstream cluster.

*/ inline VirtualNodeHttpConnectionPool& WithMaxPendingRequests(int value) { SetMaxPendingRequests(value); return *this;} private: int m_maxConnections; bool m_maxConnectionsHasBeenSet = false; int m_maxPendingRequests; bool m_maxPendingRequestsHasBeenSet = false; }; } // namespace Model } // namespace AppMesh } // namespace Aws