/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include #include #include #include using namespace Aws::ElasticsearchService::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; using namespace Aws; UpgradeElasticsearchDomainResult::UpgradeElasticsearchDomainResult() : m_performCheckOnly(false) { } UpgradeElasticsearchDomainResult::UpgradeElasticsearchDomainResult(const Aws::AmazonWebServiceResult& result) : m_performCheckOnly(false) { *this = result; } UpgradeElasticsearchDomainResult& UpgradeElasticsearchDomainResult::operator =(const Aws::AmazonWebServiceResult& result) { JsonView jsonValue = result.GetPayload().View(); if(jsonValue.ValueExists("DomainName")) { m_domainName = jsonValue.GetString("DomainName"); } if(jsonValue.ValueExists("TargetVersion")) { m_targetVersion = jsonValue.GetString("TargetVersion"); } if(jsonValue.ValueExists("PerformCheckOnly")) { m_performCheckOnly = jsonValue.GetBool("PerformCheckOnly"); } return *this; }