/**
* 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 node 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 VirtualNodeGrpcConnectionPool& 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 VirtualNodeGrpcConnectionPool& value) { m_grpcHasBeenSet = true; m_grpc = value; } /** *An object that represents a type of connection pool.
*/ inline void SetGrpc(VirtualNodeGrpcConnectionPool&& value) { m_grpcHasBeenSet = true; m_grpc = std::move(value); } /** *An object that represents a type of connection pool.
*/ inline VirtualNodeConnectionPool& WithGrpc(const VirtualNodeGrpcConnectionPool& value) { SetGrpc(value); return *this;} /** *An object that represents a type of connection pool.
*/ inline VirtualNodeConnectionPool& WithGrpc(VirtualNodeGrpcConnectionPool&& value) { SetGrpc(std::move(value)); return *this;} /** *An object that represents a type of connection pool.
*/ inline const VirtualNodeHttpConnectionPool& 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 VirtualNodeHttpConnectionPool& value) { m_httpHasBeenSet = true; m_http = value; } /** *An object that represents a type of connection pool.
*/ inline void SetHttp(VirtualNodeHttpConnectionPool&& value) { m_httpHasBeenSet = true; m_http = std::move(value); } /** *An object that represents a type of connection pool.
*/ inline VirtualNodeConnectionPool& WithHttp(const VirtualNodeHttpConnectionPool& value) { SetHttp(value); return *this;} /** *An object that represents a type of connection pool.
*/ inline VirtualNodeConnectionPool& WithHttp(VirtualNodeHttpConnectionPool&& value) { SetHttp(std::move(value)); return *this;} /** *An object that represents a type of connection pool.
*/ inline const VirtualNodeHttp2ConnectionPool& 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 VirtualNodeHttp2ConnectionPool& value) { m_http2HasBeenSet = true; m_http2 = value; } /** *An object that represents a type of connection pool.
*/ inline void SetHttp2(VirtualNodeHttp2ConnectionPool&& value) { m_http2HasBeenSet = true; m_http2 = std::move(value); } /** *An object that represents a type of connection pool.
*/ inline VirtualNodeConnectionPool& WithHttp2(const VirtualNodeHttp2ConnectionPool& value) { SetHttp2(value); return *this;} /** *An object that represents a type of connection pool.
*/ inline VirtualNodeConnectionPool& WithHttp2(VirtualNodeHttp2ConnectionPool&& value) { SetHttp2(std::move(value)); return *this;} /** *An object that represents a type of connection pool.
*/ inline const VirtualNodeTcpConnectionPool& GetTcp() const{ return m_tcp; } /** *An object that represents a type of connection pool.
*/ inline bool TcpHasBeenSet() const { return m_tcpHasBeenSet; } /** *An object that represents a type of connection pool.
*/ inline void SetTcp(const VirtualNodeTcpConnectionPool& value) { m_tcpHasBeenSet = true; m_tcp = value; } /** *An object that represents a type of connection pool.
*/ inline void SetTcp(VirtualNodeTcpConnectionPool&& value) { m_tcpHasBeenSet = true; m_tcp = std::move(value); } /** *An object that represents a type of connection pool.
*/ inline VirtualNodeConnectionPool& WithTcp(const VirtualNodeTcpConnectionPool& value) { SetTcp(value); return *this;} /** *An object that represents a type of connection pool.
*/ inline VirtualNodeConnectionPool& WithTcp(VirtualNodeTcpConnectionPool&& value) { SetTcp(std::move(value)); return *this;} private: VirtualNodeGrpcConnectionPool m_grpc; bool m_grpcHasBeenSet = false; VirtualNodeHttpConnectionPool m_http; bool m_httpHasBeenSet = false; VirtualNodeHttp2ConnectionPool m_http2; bool m_http2HasBeenSet = false; VirtualNodeTcpConnectionPool m_tcp; bool m_tcpHasBeenSet = false; }; } // namespace Model } // namespace AppMesh } // namespace Aws