Support DescribeDBClusterVersion.

This commit is contained in:
sdk-team
2020-11-25 03:43:44 +00:00
parent efdcf35422
commit 59fadb7eb2
8 changed files with 365 additions and 0 deletions

View File

@@ -0,0 +1,95 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/polardb/model/DescribeDBClusterVersionRequest.h>
using AlibabaCloud::Polardb::Model::DescribeDBClusterVersionRequest;
DescribeDBClusterVersionRequest::DescribeDBClusterVersionRequest() :
RpcServiceRequest("polardb", "2017-08-01", "DescribeDBClusterVersion")
{
setMethod(HttpRequest::Method::Post);
}
DescribeDBClusterVersionRequest::~DescribeDBClusterVersionRequest()
{}
long DescribeDBClusterVersionRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeDBClusterVersionRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeDBClusterVersionRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeDBClusterVersionRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DescribeDBClusterVersionRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribeDBClusterVersionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeDBClusterVersionRequest::getDBClusterId()const
{
return dBClusterId_;
}
void DescribeDBClusterVersionRequest::setDBClusterId(const std::string& dBClusterId)
{
dBClusterId_ = dBClusterId;
setParameter("DBClusterId", dBClusterId);
}
std::string DescribeDBClusterVersionRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DescribeDBClusterVersionRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DescribeDBClusterVersionRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDBClusterVersionRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,93 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/polardb/model/DescribeDBClusterVersionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Polardb;
using namespace AlibabaCloud::Polardb::Model;
DescribeDBClusterVersionResult::DescribeDBClusterVersionResult() :
ServiceResult()
{}
DescribeDBClusterVersionResult::DescribeDBClusterVersionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDBClusterVersionResult::~DescribeDBClusterVersionResult()
{}
void DescribeDBClusterVersionResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["DBInstanceName"].isNull())
dBInstanceName_ = value["DBInstanceName"].asString();
if(!value["DBVersion"].isNull())
dBVersion_ = value["DBVersion"].asString();
if(!value["DBMinorVersion"].isNull())
dBMinorVersion_ = value["DBMinorVersion"].asString();
if(!value["DBRevisionVersion"].isNull())
dBRevisionVersion_ = value["DBRevisionVersion"].asString();
if(!value["DBVersionStatus"].isNull())
dBVersionStatus_ = value["DBVersionStatus"].asString();
if(!value["IsLatestVersion"].isNull())
isLatestVersion_ = value["IsLatestVersion"].asString();
if(!value["LatestRevisionVersion"].isNull())
latestRevisionVersion_ = value["LatestRevisionVersion"].asString();
}
std::string DescribeDBClusterVersionResult::getLatestRevisionVersion()const
{
return latestRevisionVersion_;
}
std::string DescribeDBClusterVersionResult::getIsLatestVersion()const
{
return isLatestVersion_;
}
std::string DescribeDBClusterVersionResult::getDBVersion()const
{
return dBVersion_;
}
std::string DescribeDBClusterVersionResult::getDBRevisionVersion()const
{
return dBRevisionVersion_;
}
std::string DescribeDBClusterVersionResult::getDBVersionStatus()const
{
return dBVersionStatus_;
}
std::string DescribeDBClusterVersionResult::getDBMinorVersion()const
{
return dBMinorVersion_;
}
std::string DescribeDBClusterVersionResult::getDBInstanceName()const
{
return dBInstanceName_;
}