/** * 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 VirtualNodeTcpConnectionPool { public: AWS_APPMESH_API VirtualNodeTcpConnectionPool(); AWS_APPMESH_API VirtualNodeTcpConnectionPool(Aws::Utils::Json::JsonView jsonValue); AWS_APPMESH_API VirtualNodeTcpConnectionPool& 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 VirtualNodeTcpConnectionPool& WithMaxConnections(int value) { SetMaxConnections(value); return *this;} private: int m_maxConnections; bool m_maxConnectionsHasBeenSet = false; }; } // namespace Model } // namespace AppMesh } // namespace Aws