瀏覽代碼

Add The billingCount return value to the RunPreTrainService Api.

sdk-team 3 年之前
父節點
當前提交
043fd0fcb4

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.36.1553
+1.36.1554

+ 2 - 0
nlp-automl/include/alibabacloud/nlp-automl/model/RunPreTrainServiceResult.h

@@ -37,11 +37,13 @@ namespace AlibabaCloud
 				RunPreTrainServiceResult();
 				explicit RunPreTrainServiceResult(const std::string &payload);
 				~RunPreTrainServiceResult();
+				int getBillingCount()const;
 				std::string getPredictResult()const;
 
 			protected:
 				void parse(const std::string &payload);
 			private:
+				int billingCount_;
 				std::string predictResult_;
 
 			};

+ 7 - 0
nlp-automl/src/model/RunPreTrainServiceResult.cc

@@ -41,9 +41,16 @@ void RunPreTrainServiceResult::parse(const std::string &payload)
 	setRequestId(value["RequestId"].asString());
 	if(!value["PredictResult"].isNull())
 		predictResult_ = value["PredictResult"].asString();
+	if(!value["BillingCount"].isNull())
+		billingCount_ = std::stoi(value["BillingCount"].asString());
 
 }
 
+int RunPreTrainServiceResult::getBillingCount()const
+{
+	return billingCount_;
+}
+
 std::string RunPreTrainServiceResult::getPredictResult()const
 {
 	return predictResult_;