/** * 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 GuardDuty { namespace Model { DomainDetails::DomainDetails() : m_domainHasBeenSet(false) { } DomainDetails::DomainDetails(JsonView jsonValue) : m_domainHasBeenSet(false) { *this = jsonValue; } DomainDetails& DomainDetails::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("domain")) { m_domain = jsonValue.GetString("domain"); m_domainHasBeenSet = true; } return *this; } JsonValue DomainDetails::Jsonize() const { JsonValue payload; if(m_domainHasBeenSet) { payload.WithString("domain", m_domain); } return payload; } } // namespace Model } // namespace GuardDuty } // namespace Aws