/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { namespace AppMesh { namespace Model { VirtualGatewayHttp2ConnectionPool::VirtualGatewayHttp2ConnectionPool() : m_maxRequests(0), m_maxRequestsHasBeenSet(false) { } VirtualGatewayHttp2ConnectionPool::VirtualGatewayHttp2ConnectionPool(JsonView jsonValue) : m_maxRequests(0), m_maxRequestsHasBeenSet(false) { *this = jsonValue; } VirtualGatewayHttp2ConnectionPool& VirtualGatewayHttp2ConnectionPool::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("maxRequests")) { m_maxRequests = jsonValue.GetInteger("maxRequests"); m_maxRequestsHasBeenSet = true; } return *this; } JsonValue VirtualGatewayHttp2ConnectionPool::Jsonize() const { JsonValue payload; if(m_maxRequestsHasBeenSet) { payload.WithInteger("maxRequests", m_maxRequests); } return payload; } } // namespace Model } // namespace AppMesh } // namespace Aws