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