55 lines
1.3 KiB
C++
55 lines
1.3 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/es/model/UpgradeElasticsearchDomainResult.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
#include <aws/core/AmazonWebServiceResult.h>
|
|
#include <aws/core/utils/StringUtils.h>
|
|
#include <aws/core/utils/UnreferencedParam.h>
|
|
|
|
#include <utility>
|
|
|
|
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<JsonValue>& result) :
|
|
m_performCheckOnly(false)
|
|
{
|
|
*this = result;
|
|
}
|
|
|
|
UpgradeElasticsearchDomainResult& UpgradeElasticsearchDomainResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& 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;
|
|
}
|