/** * 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 AppRunner { namespace Model { IngressVpcConfiguration::IngressVpcConfiguration() : m_vpcIdHasBeenSet(false), m_vpcEndpointIdHasBeenSet(false) { } IngressVpcConfiguration::IngressVpcConfiguration(JsonView jsonValue) : m_vpcIdHasBeenSet(false), m_vpcEndpointIdHasBeenSet(false) { *this = jsonValue; } IngressVpcConfiguration& IngressVpcConfiguration::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("VpcId")) { m_vpcId = jsonValue.GetString("VpcId"); m_vpcIdHasBeenSet = true; } if(jsonValue.ValueExists("VpcEndpointId")) { m_vpcEndpointId = jsonValue.GetString("VpcEndpointId"); m_vpcEndpointIdHasBeenSet = true; } return *this; } JsonValue IngressVpcConfiguration::Jsonize() const { JsonValue payload; if(m_vpcIdHasBeenSet) { payload.WithString("VpcId", m_vpcId); } if(m_vpcEndpointIdHasBeenSet) { payload.WithString("VpcEndpointId", m_vpcEndpointId); } return payload; } } // namespace Model } // namespace AppRunner } // namespace Aws