/** * 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 NetworkManager { namespace Model { VpcOptions::VpcOptions() : m_ipv6Support(false), m_ipv6SupportHasBeenSet(false), m_applianceModeSupport(false), m_applianceModeSupportHasBeenSet(false) { } VpcOptions::VpcOptions(JsonView jsonValue) : m_ipv6Support(false), m_ipv6SupportHasBeenSet(false), m_applianceModeSupport(false), m_applianceModeSupportHasBeenSet(false) { *this = jsonValue; } VpcOptions& VpcOptions::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("Ipv6Support")) { m_ipv6Support = jsonValue.GetBool("Ipv6Support"); m_ipv6SupportHasBeenSet = true; } if(jsonValue.ValueExists("ApplianceModeSupport")) { m_applianceModeSupport = jsonValue.GetBool("ApplianceModeSupport"); m_applianceModeSupportHasBeenSet = true; } return *this; } JsonValue VpcOptions::Jsonize() const { JsonValue payload; if(m_ipv6SupportHasBeenSet) { payload.WithBool("Ipv6Support", m_ipv6Support); } if(m_applianceModeSupportHasBeenSet) { payload.WithBool("ApplianceModeSupport", m_applianceModeSupport); } return payload; } } // namespace Model } // namespace NetworkManager } // namespace Aws