|
|
@@ -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_;
|
|
|
+}
|
|
|
+
|