/** * 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 { DnsProperties::DnsProperties() : m_hostedZoneIdHasBeenSet(false), m_sOAHasBeenSet(false) { } DnsProperties::DnsProperties(JsonView jsonValue) : m_hostedZoneIdHasBeenSet(false), m_sOAHasBeenSet(false) { *this = jsonValue; } DnsProperties& DnsProperties::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("HostedZoneId")) { m_hostedZoneId = jsonValue.GetString("HostedZoneId"); m_hostedZoneIdHasBeenSet = true; } if(jsonValue.ValueExists("SOA")) { m_sOA = jsonValue.GetObject("SOA"); m_sOAHasBeenSet = true; } return *this; } JsonValue DnsProperties::Jsonize() const { JsonValue payload; if(m_hostedZoneIdHasBeenSet) { payload.WithString("HostedZoneId", m_hostedZoneId); } if(m_sOAHasBeenSet) { payload.WithObject("SOA", m_sOA.Jsonize()); } return payload; } } // namespace Model } // namespace ServiceDiscovery } // namespace Aws