/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An object that represents the type of virtual gateway connection pool. Only one protocol is used at a time and should be the same protocol as the
* one chosen under port mapping. If not present the default value for
* maxPendingRequests
is 2147483647
.See
* Also:
AWS
* API Reference
An object that represents a type of connection pool.
*/ inline const VirtualGatewayGrpcConnectionPool& GetGrpc() const{ return m_grpc; } /** *An object that represents a type of connection pool.
*/ inline bool GrpcHasBeenSet() const { return m_grpcHasBeenSet; } /** *An object that represents a type of connection pool.
*/ inline void SetGrpc(const VirtualGatewayGrpcConnectionPool& value) { m_grpcHasBeenSet = true; m_grpc = value; } /** *An object that represents a type of connection pool.
*/ inline void SetGrpc(VirtualGatewayGrpcConnectionPool&& value) { m_grpcHasBeenSet = true; m_grpc = std::move(value); } /** *An object that represents a type of connection pool.
*/ inline VirtualGatewayConnectionPool& WithGrpc(const VirtualGatewayGrpcConnectionPool& value) { SetGrpc(value); return *this;} /** *An object that represents a type of connection pool.
*/ inline VirtualGatewayConnectionPool& WithGrpc(VirtualGatewayGrpcConnectionPool&& value) { SetGrpc(std::move(value)); return *this;} /** *An object that represents a type of connection pool.
*/ inline const VirtualGatewayHttpConnectionPool& GetHttp() const{ return m_http; } /** *An object that represents a type of connection pool.
*/ inline bool HttpHasBeenSet() const { return m_httpHasBeenSet; } /** *An object that represents a type of connection pool.
*/ inline void SetHttp(const VirtualGatewayHttpConnectionPool& value) { m_httpHasBeenSet = true; m_http = value; } /** *An object that represents a type of connection pool.
*/ inline void SetHttp(VirtualGatewayHttpConnectionPool&& value) { m_httpHasBeenSet = true; m_http = std::move(value); } /** *An object that represents a type of connection pool.
*/ inline VirtualGatewayConnectionPool& WithHttp(const VirtualGatewayHttpConnectionPool& value) { SetHttp(value); return *this;} /** *An object that represents a type of connection pool.
*/ inline VirtualGatewayConnectionPool& WithHttp(VirtualGatewayHttpConnectionPool&& value) { SetHttp(std::move(value)); return *this;} /** *An object that represents a type of connection pool.
*/ inline const VirtualGatewayHttp2ConnectionPool& GetHttp2() const{ return m_http2; } /** *An object that represents a type of connection pool.
*/ inline bool Http2HasBeenSet() const { return m_http2HasBeenSet; } /** *An object that represents a type of connection pool.
*/ inline void SetHttp2(const VirtualGatewayHttp2ConnectionPool& value) { m_http2HasBeenSet = true; m_http2 = value; } /** *An object that represents a type of connection pool.
*/ inline void SetHttp2(VirtualGatewayHttp2ConnectionPool&& value) { m_http2HasBeenSet = true; m_http2 = std::move(value); } /** *An object that represents a type of connection pool.
*/ inline VirtualGatewayConnectionPool& WithHttp2(const VirtualGatewayHttp2ConnectionPool& value) { SetHttp2(value); return *this;} /** *An object that represents a type of connection pool.
*/ inline VirtualGatewayConnectionPool& WithHttp2(VirtualGatewayHttp2ConnectionPool&& value) { SetHttp2(std::move(value)); return *this;} private: VirtualGatewayGrpcConnectionPool m_grpc; bool m_grpcHasBeenSet = false; VirtualGatewayHttpConnectionPool m_http; bool m_httpHasBeenSet = false; VirtualGatewayHttp2ConnectionPool m_http2; bool m_http2HasBeenSet = false; }; } // namespace Model } // namespace AppMesh } // namespace Aws