/** * 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 SWF { namespace Model { DomainInfo::DomainInfo() : m_nameHasBeenSet(false), m_status(RegistrationStatus::NOT_SET), m_statusHasBeenSet(false), m_descriptionHasBeenSet(false), m_arnHasBeenSet(false) { } DomainInfo::DomainInfo(JsonView jsonValue) : m_nameHasBeenSet(false), m_status(RegistrationStatus::NOT_SET), m_statusHasBeenSet(false), m_descriptionHasBeenSet(false), m_arnHasBeenSet(false) { *this = jsonValue; } DomainInfo& DomainInfo::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("name")) { m_name = jsonValue.GetString("name"); m_nameHasBeenSet = true; } if(jsonValue.ValueExists("status")) { m_status = RegistrationStatusMapper::GetRegistrationStatusForName(jsonValue.GetString("status")); m_statusHasBeenSet = true; } if(jsonValue.ValueExists("description")) { m_description = jsonValue.GetString("description"); m_descriptionHasBeenSet = true; } if(jsonValue.ValueExists("arn")) { m_arn = jsonValue.GetString("arn"); m_arnHasBeenSet = true; } return *this; } JsonValue DomainInfo::Jsonize() const { JsonValue payload; if(m_nameHasBeenSet) { payload.WithString("name", m_name); } if(m_statusHasBeenSet) { payload.WithString("status", RegistrationStatusMapper::GetNameForRegistrationStatus(m_status)); } if(m_descriptionHasBeenSet) { payload.WithString("description", m_description); } if(m_arnHasBeenSet) { payload.WithString("arn", m_arn); } return payload; } } // namespace Model } // namespace SWF } // namespace Aws