/** * 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 ServiceDiscovery { namespace Model { PrivateDnsNamespaceProperties::PrivateDnsNamespaceProperties() : m_dnsPropertiesHasBeenSet(false) { } PrivateDnsNamespaceProperties::PrivateDnsNamespaceProperties(JsonView jsonValue) : m_dnsPropertiesHasBeenSet(false) { *this = jsonValue; } PrivateDnsNamespaceProperties& PrivateDnsNamespaceProperties::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("DnsProperties")) { m_dnsProperties = jsonValue.GetObject("DnsProperties"); m_dnsPropertiesHasBeenSet = true; } return *this; } JsonValue PrivateDnsNamespaceProperties::Jsonize() const { JsonValue payload; if(m_dnsPropertiesHasBeenSet) { payload.WithObject("DnsProperties", m_dnsProperties.Jsonize()); } return payload; } } // namespace Model } // namespace ServiceDiscovery } // namespace Aws