/** * 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 MediaLive { namespace Model { InputDestinationVpc::InputDestinationVpc() : m_availabilityZoneHasBeenSet(false), m_networkInterfaceIdHasBeenSet(false) { } InputDestinationVpc::InputDestinationVpc(JsonView jsonValue) : m_availabilityZoneHasBeenSet(false), m_networkInterfaceIdHasBeenSet(false) { *this = jsonValue; } InputDestinationVpc& InputDestinationVpc::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("availabilityZone")) { m_availabilityZone = jsonValue.GetString("availabilityZone"); m_availabilityZoneHasBeenSet = true; } if(jsonValue.ValueExists("networkInterfaceId")) { m_networkInterfaceId = jsonValue.GetString("networkInterfaceId"); m_networkInterfaceIdHasBeenSet = true; } return *this; } JsonValue InputDestinationVpc::Jsonize() const { JsonValue payload; if(m_availabilityZoneHasBeenSet) { payload.WithString("availabilityZone", m_availabilityZone); } if(m_networkInterfaceIdHasBeenSet) { payload.WithString("networkInterfaceId", m_networkInterfaceId); } return payload; } } // namespace Model } // namespace MediaLive } // namespace Aws