/** * 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 VirtualNodeHttp2ConnectionPool { public: AWS_APPMESH_API VirtualNodeHttp2ConnectionPool(); AWS_APPMESH_API VirtualNodeHttp2ConnectionPool(Aws::Utils::Json::JsonView jsonValue); AWS_APPMESH_API VirtualNodeHttp2ConnectionPool& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Maximum number of inflight requests Envoy can concurrently support across * hosts in upstream cluster.

*/ inline int GetMaxRequests() const{ return m_maxRequests; } /** *

Maximum number of inflight requests Envoy can concurrently support across * hosts in upstream cluster.

*/ inline bool MaxRequestsHasBeenSet() const { return m_maxRequestsHasBeenSet; } /** *

Maximum number of inflight requests Envoy can concurrently support across * hosts in upstream cluster.

*/ inline void SetMaxRequests(int value) { m_maxRequestsHasBeenSet = true; m_maxRequests = value; } /** *

Maximum number of inflight requests Envoy can concurrently support across * hosts in upstream cluster.

*/ inline VirtualNodeHttp2ConnectionPool& WithMaxRequests(int value) { SetMaxRequests(value); return *this;} private: int m_maxRequests; bool m_maxRequestsHasBeenSet = false; }; } // namespace Model } // namespace AppMesh } // namespace Aws