/** * 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 ElasticsearchService { namespace Model { DomainInformation::DomainInformation() : m_ownerIdHasBeenSet(false), m_domainNameHasBeenSet(false), m_regionHasBeenSet(false) { } DomainInformation::DomainInformation(JsonView jsonValue) : m_ownerIdHasBeenSet(false), m_domainNameHasBeenSet(false), m_regionHasBeenSet(false) { *this = jsonValue; } DomainInformation& DomainInformation::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("OwnerId")) { m_ownerId = jsonValue.GetString("OwnerId"); m_ownerIdHasBeenSet = true; } if(jsonValue.ValueExists("DomainName")) { m_domainName = jsonValue.GetString("DomainName"); m_domainNameHasBeenSet = true; } if(jsonValue.ValueExists("Region")) { m_region = jsonValue.GetString("Region"); m_regionHasBeenSet = true; } return *this; } JsonValue DomainInformation::Jsonize() const { JsonValue payload; if(m_ownerIdHasBeenSet) { payload.WithString("OwnerId", m_ownerId); } if(m_domainNameHasBeenSet) { payload.WithString("DomainName", m_domainName); } if(m_regionHasBeenSet) { payload.WithString("Region", m_region); } return payload; } } // namespace Model } // namespace ElasticsearchService } // namespace Aws