DocumentInit.

This commit is contained in:
sdk-team
2023-04-10 07:26:17 +00:00
parent 8cfb9f0b4d
commit 8eda6c1cc6
25 changed files with 1684 additions and 1 deletions

View File

@@ -0,0 +1,99 @@
/*
* 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/documentautoml/model/CreateModelAsyncPredictRequest.h>
using AlibabaCloud::DocumentAutoml::Model::CreateModelAsyncPredictRequest;
CreateModelAsyncPredictRequest::CreateModelAsyncPredictRequest()
: RpcServiceRequest("documentautoml", "2022-12-29", "CreateModelAsyncPredict") {
setMethod(HttpRequest::Method::Post);
}
CreateModelAsyncPredictRequest::~CreateModelAsyncPredictRequest() {}
std::string CreateModelAsyncPredictRequest::getBody() const {
return body_;
}
void CreateModelAsyncPredictRequest::setBody(const std::string &body) {
body_ = body;
setBodyParameter(std::string("body"), body);
}
bool CreateModelAsyncPredictRequest::getBinaryToText() const {
return binaryToText_;
}
void CreateModelAsyncPredictRequest::setBinaryToText(bool binaryToText) {
binaryToText_ = binaryToText;
setParameter(std::string("BinaryToText"), binaryToText ? "true" : "false");
}
std::string CreateModelAsyncPredictRequest::getContent() const {
return content_;
}
void CreateModelAsyncPredictRequest::setContent(const std::string &content) {
content_ = content;
setParameter(std::string("Content"), content);
}
std::string CreateModelAsyncPredictRequest::getServiceName() const {
return serviceName_;
}
void CreateModelAsyncPredictRequest::setServiceName(const std::string &serviceName) {
serviceName_ = serviceName;
setParameter(std::string("ServiceName"), serviceName);
}
std::string CreateModelAsyncPredictRequest::getProduct() const {
return product_;
}
void CreateModelAsyncPredictRequest::setProduct(const std::string &product) {
product_ = product;
setParameter(std::string("Product"), product);
}
long CreateModelAsyncPredictRequest::getModelId() const {
return modelId_;
}
void CreateModelAsyncPredictRequest::setModelId(long modelId) {
modelId_ = modelId;
setParameter(std::string("ModelId"), std::to_string(modelId));
}
std::string CreateModelAsyncPredictRequest::getServiceVersion() const {
return serviceVersion_;
}
void CreateModelAsyncPredictRequest::setServiceVersion(const std::string &serviceVersion) {
serviceVersion_ = serviceVersion;
setParameter(std::string("ServiceVersion"), serviceVersion);
}
std::string CreateModelAsyncPredictRequest::getModelVersion() const {
return modelVersion_;
}
void CreateModelAsyncPredictRequest::setModelVersion(const std::string &modelVersion) {
modelVersion_ = modelVersion;
setParameter(std::string("ModelVersion"), modelVersion);
}

View File

@@ -0,0 +1,65 @@
/*
* 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/documentautoml/model/CreateModelAsyncPredictResult.h>
#include <json/json.h>
using namespace AlibabaCloud::DocumentAutoml;
using namespace AlibabaCloud::DocumentAutoml::Model;
CreateModelAsyncPredictResult::CreateModelAsyncPredictResult() :
ServiceResult()
{}
CreateModelAsyncPredictResult::CreateModelAsyncPredictResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateModelAsyncPredictResult::~CreateModelAsyncPredictResult()
{}
void CreateModelAsyncPredictResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Data"].isNull())
data_ = value["Data"].asString();
}
std::string CreateModelAsyncPredictResult::getMessage()const
{
return message_;
}
std::string CreateModelAsyncPredictResult::getData()const
{
return data_;
}
int CreateModelAsyncPredictResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,45 @@
/*
* 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/documentautoml/model/GetModelAsyncPredictRequest.h>
using AlibabaCloud::DocumentAutoml::Model::GetModelAsyncPredictRequest;
GetModelAsyncPredictRequest::GetModelAsyncPredictRequest()
: RpcServiceRequest("documentautoml", "2022-12-29", "GetModelAsyncPredict") {
setMethod(HttpRequest::Method::Post);
}
GetModelAsyncPredictRequest::~GetModelAsyncPredictRequest() {}
long GetModelAsyncPredictRequest::getAsyncPredictId() const {
return asyncPredictId_;
}
void GetModelAsyncPredictRequest::setAsyncPredictId(long asyncPredictId) {
asyncPredictId_ = asyncPredictId;
setParameter(std::string("AsyncPredictId"), std::to_string(asyncPredictId));
}
std::string GetModelAsyncPredictRequest::getProduct() const {
return product_;
}
void GetModelAsyncPredictRequest::setProduct(const std::string &product) {
product_ = product;
setParameter(std::string("Product"), product);
}

View File

@@ -0,0 +1,65 @@
/*
* 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/documentautoml/model/GetModelAsyncPredictResult.h>
#include <json/json.h>
using namespace AlibabaCloud::DocumentAutoml;
using namespace AlibabaCloud::DocumentAutoml::Model;
GetModelAsyncPredictResult::GetModelAsyncPredictResult() :
ServiceResult()
{}
GetModelAsyncPredictResult::GetModelAsyncPredictResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetModelAsyncPredictResult::~GetModelAsyncPredictResult()
{}
void GetModelAsyncPredictResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Data"].isNull())
data_ = value["Data"].asString();
}
std::string GetModelAsyncPredictResult::getMessage()const
{
return message_;
}
std::string GetModelAsyncPredictResult::getData()const
{
return data_;
}
int GetModelAsyncPredictResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,63 @@
/*
* 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/documentautoml/model/PredictClassifierModelRequest.h>
using AlibabaCloud::DocumentAutoml::Model::PredictClassifierModelRequest;
PredictClassifierModelRequest::PredictClassifierModelRequest()
: RpcServiceRequest("documentautoml", "2022-12-29", "PredictClassifierModel") {
setMethod(HttpRequest::Method::Post);
}
PredictClassifierModelRequest::~PredictClassifierModelRequest() {}
std::string PredictClassifierModelRequest::getBody() const {
return body_;
}
void PredictClassifierModelRequest::setBody(const std::string &body) {
body_ = body;
setBodyParameter(std::string("body"), body);
}
std::string PredictClassifierModelRequest::getContent() const {
return content_;
}
void PredictClassifierModelRequest::setContent(const std::string &content) {
content_ = content;
setParameter(std::string("Content"), content);
}
long PredictClassifierModelRequest::getClassifierId() const {
return classifierId_;
}
void PredictClassifierModelRequest::setClassifierId(long classifierId) {
classifierId_ = classifierId;
setParameter(std::string("ClassifierId"), std::to_string(classifierId));
}
bool PredictClassifierModelRequest::getAutoPrediction() const {
return autoPrediction_;
}
void PredictClassifierModelRequest::setAutoPrediction(bool autoPrediction) {
autoPrediction_ = autoPrediction;
setParameter(std::string("AutoPrediction"), autoPrediction ? "true" : "false");
}

View File

@@ -0,0 +1,65 @@
/*
* 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/documentautoml/model/PredictClassifierModelResult.h>
#include <json/json.h>
using namespace AlibabaCloud::DocumentAutoml;
using namespace AlibabaCloud::DocumentAutoml::Model;
PredictClassifierModelResult::PredictClassifierModelResult() :
ServiceResult()
{}
PredictClassifierModelResult::PredictClassifierModelResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
PredictClassifierModelResult::~PredictClassifierModelResult()
{}
void PredictClassifierModelResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string PredictClassifierModelResult::getMessage()const
{
return message_;
}
std::string PredictClassifierModelResult::getData()const
{
return data_;
}
int PredictClassifierModelResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,81 @@
/*
* 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/documentautoml/model/PredictModelRequest.h>
using AlibabaCloud::DocumentAutoml::Model::PredictModelRequest;
PredictModelRequest::PredictModelRequest()
: RpcServiceRequest("documentautoml", "2022-12-29", "PredictModel") {
setMethod(HttpRequest::Method::Post);
}
PredictModelRequest::~PredictModelRequest() {}
std::string PredictModelRequest::getBody() const {
return body_;
}
void PredictModelRequest::setBody(const std::string &body) {
body_ = body;
setBodyParameter(std::string("body"), body);
}
std::string PredictModelRequest::getContent() const {
return content_;
}
void PredictModelRequest::setContent(const std::string &content) {
content_ = content;
setParameter(std::string("Content"), content);
}
bool PredictModelRequest::getBinaryToText() const {
return binaryToText_;
}
void PredictModelRequest::setBinaryToText(bool binaryToText) {
binaryToText_ = binaryToText;
setParameter(std::string("BinaryToText"), binaryToText ? "true" : "false");
}
std::string PredictModelRequest::getProduct() const {
return product_;
}
void PredictModelRequest::setProduct(const std::string &product) {
product_ = product;
setParameter(std::string("Product"), product);
}
long PredictModelRequest::getModelId() const {
return modelId_;
}
void PredictModelRequest::setModelId(long modelId) {
modelId_ = modelId;
setParameter(std::string("ModelId"), std::to_string(modelId));
}
std::string PredictModelRequest::getModelVersion() const {
return modelVersion_;
}
void PredictModelRequest::setModelVersion(const std::string &modelVersion) {
modelVersion_ = modelVersion;
setParameter(std::string("ModelVersion"), modelVersion);
}

View File

@@ -0,0 +1,65 @@
/*
* 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/documentautoml/model/PredictModelResult.h>
#include <json/json.h>
using namespace AlibabaCloud::DocumentAutoml;
using namespace AlibabaCloud::DocumentAutoml::Model;
PredictModelResult::PredictModelResult() :
ServiceResult()
{}
PredictModelResult::PredictModelResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
PredictModelResult::~PredictModelResult()
{}
void PredictModelResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Data"].isNull())
data_ = value["Data"].asString();
}
std::string PredictModelResult::getMessage()const
{
return message_;
}
std::string PredictModelResult::getData()const
{
return data_;
}
int PredictModelResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,72 @@
/*
* 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/documentautoml/model/PredictTemplateModelRequest.h>
using AlibabaCloud::DocumentAutoml::Model::PredictTemplateModelRequest;
PredictTemplateModelRequest::PredictTemplateModelRequest()
: RpcServiceRequest("documentautoml", "2022-12-29", "PredictTemplateModel") {
setMethod(HttpRequest::Method::Post);
}
PredictTemplateModelRequest::~PredictTemplateModelRequest() {}
std::string PredictTemplateModelRequest::getBody() const {
return body_;
}
void PredictTemplateModelRequest::setBody(const std::string &body) {
body_ = body;
setBodyParameter(std::string("body"), body);
}
std::string PredictTemplateModelRequest::getContent() const {
return content_;
}
void PredictTemplateModelRequest::setContent(const std::string &content) {
content_ = content;
setParameter(std::string("Content"), content);
}
bool PredictTemplateModelRequest::getBinaryToText() const {
return binaryToText_;
}
void PredictTemplateModelRequest::setBinaryToText(bool binaryToText) {
binaryToText_ = binaryToText;
setParameter(std::string("BinaryToText"), binaryToText ? "true" : "false");
}
long PredictTemplateModelRequest::getTaskId() const {
return taskId_;
}
void PredictTemplateModelRequest::setTaskId(long taskId) {
taskId_ = taskId;
setParameter(std::string("TaskId"), std::to_string(taskId));
}
std::string PredictTemplateModelRequest::getProduct() const {
return product_;
}
void PredictTemplateModelRequest::setProduct(const std::string &product) {
product_ = product;
setParameter(std::string("Product"), product);
}

View File

@@ -0,0 +1,65 @@
/*
* 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/documentautoml/model/PredictTemplateModelResult.h>
#include <json/json.h>
using namespace AlibabaCloud::DocumentAutoml;
using namespace AlibabaCloud::DocumentAutoml::Model;
PredictTemplateModelResult::PredictTemplateModelResult() :
ServiceResult()
{}
PredictTemplateModelResult::PredictTemplateModelResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
PredictTemplateModelResult::~PredictTemplateModelResult()
{}
void PredictTemplateModelResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
}
std::string PredictTemplateModelResult::getMessage()const
{
return message_;
}
std::string PredictTemplateModelResult::getData()const
{
return data_;
}
std::string PredictTemplateModelResult::getCode()const
{
return code_;
}