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,86 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_DOCUMENTAUTOML_DOCUMENTAUTOMLCLIENT_H_
#define ALIBABACLOUD_DOCUMENTAUTOML_DOCUMENTAUTOMLCLIENT_H_
#include <future>
#include <alibabacloud/core/AsyncCallerContext.h>
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#include "DocumentAutomlExport.h"
#include "model/CreateModelAsyncPredictRequest.h"
#include "model/CreateModelAsyncPredictResult.h"
#include "model/GetModelAsyncPredictRequest.h"
#include "model/GetModelAsyncPredictResult.h"
#include "model/PredictClassifierModelRequest.h"
#include "model/PredictClassifierModelResult.h"
#include "model/PredictModelRequest.h"
#include "model/PredictModelResult.h"
#include "model/PredictTemplateModelRequest.h"
#include "model/PredictTemplateModelResult.h"
namespace AlibabaCloud
{
namespace DocumentAutoml
{
class ALIBABACLOUD_DOCUMENTAUTOML_EXPORT DocumentAutomlClient : public RpcServiceClient
{
public:
typedef Outcome<Error, Model::CreateModelAsyncPredictResult> CreateModelAsyncPredictOutcome;
typedef std::future<CreateModelAsyncPredictOutcome> CreateModelAsyncPredictOutcomeCallable;
typedef std::function<void(const DocumentAutomlClient*, const Model::CreateModelAsyncPredictRequest&, const CreateModelAsyncPredictOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateModelAsyncPredictAsyncHandler;
typedef Outcome<Error, Model::GetModelAsyncPredictResult> GetModelAsyncPredictOutcome;
typedef std::future<GetModelAsyncPredictOutcome> GetModelAsyncPredictOutcomeCallable;
typedef std::function<void(const DocumentAutomlClient*, const Model::GetModelAsyncPredictRequest&, const GetModelAsyncPredictOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetModelAsyncPredictAsyncHandler;
typedef Outcome<Error, Model::PredictClassifierModelResult> PredictClassifierModelOutcome;
typedef std::future<PredictClassifierModelOutcome> PredictClassifierModelOutcomeCallable;
typedef std::function<void(const DocumentAutomlClient*, const Model::PredictClassifierModelRequest&, const PredictClassifierModelOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PredictClassifierModelAsyncHandler;
typedef Outcome<Error, Model::PredictModelResult> PredictModelOutcome;
typedef std::future<PredictModelOutcome> PredictModelOutcomeCallable;
typedef std::function<void(const DocumentAutomlClient*, const Model::PredictModelRequest&, const PredictModelOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PredictModelAsyncHandler;
typedef Outcome<Error, Model::PredictTemplateModelResult> PredictTemplateModelOutcome;
typedef std::future<PredictTemplateModelOutcome> PredictTemplateModelOutcomeCallable;
typedef std::function<void(const DocumentAutomlClient*, const Model::PredictTemplateModelRequest&, const PredictTemplateModelOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PredictTemplateModelAsyncHandler;
DocumentAutomlClient(const Credentials &credentials, const ClientConfiguration &configuration);
DocumentAutomlClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
DocumentAutomlClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~DocumentAutomlClient();
CreateModelAsyncPredictOutcome createModelAsyncPredict(const Model::CreateModelAsyncPredictRequest &request)const;
void createModelAsyncPredictAsync(const Model::CreateModelAsyncPredictRequest& request, const CreateModelAsyncPredictAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateModelAsyncPredictOutcomeCallable createModelAsyncPredictCallable(const Model::CreateModelAsyncPredictRequest& request) const;
GetModelAsyncPredictOutcome getModelAsyncPredict(const Model::GetModelAsyncPredictRequest &request)const;
void getModelAsyncPredictAsync(const Model::GetModelAsyncPredictRequest& request, const GetModelAsyncPredictAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetModelAsyncPredictOutcomeCallable getModelAsyncPredictCallable(const Model::GetModelAsyncPredictRequest& request) const;
PredictClassifierModelOutcome predictClassifierModel(const Model::PredictClassifierModelRequest &request)const;
void predictClassifierModelAsync(const Model::PredictClassifierModelRequest& request, const PredictClassifierModelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
PredictClassifierModelOutcomeCallable predictClassifierModelCallable(const Model::PredictClassifierModelRequest& request) const;
PredictModelOutcome predictModel(const Model::PredictModelRequest &request)const;
void predictModelAsync(const Model::PredictModelRequest& request, const PredictModelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
PredictModelOutcomeCallable predictModelCallable(const Model::PredictModelRequest& request) const;
PredictTemplateModelOutcome predictTemplateModel(const Model::PredictTemplateModelRequest &request)const;
void predictTemplateModelAsync(const Model::PredictTemplateModelRequest& request, const PredictTemplateModelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
PredictTemplateModelOutcomeCallable predictTemplateModelCallable(const Model::PredictTemplateModelRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;
};
}
}
#endif // !ALIBABACLOUD_DOCUMENTAUTOML_DOCUMENTAUTOMLCLIENT_H_

View File

@@ -0,0 +1,32 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_DOCUMENTAUTOML_DOCUMENTAUTOMLEXPORT_H_
#define ALIBABACLOUD_DOCUMENTAUTOML_DOCUMENTAUTOMLEXPORT_H_
#include <alibabacloud/core/Global.h>
#if defined(ALIBABACLOUD_SHARED)
# if defined(ALIBABACLOUD_DOCUMENTAUTOML_LIBRARY)
# define ALIBABACLOUD_DOCUMENTAUTOML_EXPORT ALIBABACLOUD_DECL_EXPORT
# else
# define ALIBABACLOUD_DOCUMENTAUTOML_EXPORT ALIBABACLOUD_DECL_IMPORT
# endif
#else
# define ALIBABACLOUD_DOCUMENTAUTOML_EXPORT
#endif
#endif // !ALIBABACLOUD_DOCUMENTAUTOML_DOCUMENTAUTOMLEXPORT_H_

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.
*/
#ifndef ALIBABACLOUD_DOCUMENTAUTOML_MODEL_CREATEMODELASYNCPREDICTREQUEST_H_
#define ALIBABACLOUD_DOCUMENTAUTOML_MODEL_CREATEMODELASYNCPREDICTREQUEST_H_
#include <alibabacloud/documentautoml/DocumentAutomlExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace DocumentAutoml {
namespace Model {
class ALIBABACLOUD_DOCUMENTAUTOML_EXPORT CreateModelAsyncPredictRequest : public RpcServiceRequest {
public:
CreateModelAsyncPredictRequest();
~CreateModelAsyncPredictRequest();
std::string getBody() const;
void setBody(const std::string &body);
bool getBinaryToText() const;
void setBinaryToText(bool binaryToText);
std::string getContent() const;
void setContent(const std::string &content);
std::string getServiceName() const;
void setServiceName(const std::string &serviceName);
std::string getProduct() const;
void setProduct(const std::string &product);
long getModelId() const;
void setModelId(long modelId);
std::string getServiceVersion() const;
void setServiceVersion(const std::string &serviceVersion);
std::string getModelVersion() const;
void setModelVersion(const std::string &modelVersion);
private:
std::string body_;
bool binaryToText_;
std::string content_;
std::string serviceName_;
std::string product_;
long modelId_;
std::string serviceVersion_;
std::string modelVersion_;
};
} // namespace Model
} // namespace DocumentAutoml
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_DOCUMENTAUTOML_MODEL_CREATEMODELASYNCPREDICTREQUEST_H_

View File

@@ -0,0 +1,55 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_DOCUMENTAUTOML_MODEL_CREATEMODELASYNCPREDICTRESULT_H_
#define ALIBABACLOUD_DOCUMENTAUTOML_MODEL_CREATEMODELASYNCPREDICTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/documentautoml/DocumentAutomlExport.h>
namespace AlibabaCloud
{
namespace DocumentAutoml
{
namespace Model
{
class ALIBABACLOUD_DOCUMENTAUTOML_EXPORT CreateModelAsyncPredictResult : public ServiceResult
{
public:
CreateModelAsyncPredictResult();
explicit CreateModelAsyncPredictResult(const std::string &payload);
~CreateModelAsyncPredictResult();
std::string getMessage()const;
std::string getData()const;
int getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string data_;
int code_;
};
}
}
}
#endif // !ALIBABACLOUD_DOCUMENTAUTOML_MODEL_CREATEMODELASYNCPREDICTRESULT_H_

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.
*/
#ifndef ALIBABACLOUD_DOCUMENTAUTOML_MODEL_GETMODELASYNCPREDICTREQUEST_H_
#define ALIBABACLOUD_DOCUMENTAUTOML_MODEL_GETMODELASYNCPREDICTREQUEST_H_
#include <alibabacloud/documentautoml/DocumentAutomlExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace DocumentAutoml {
namespace Model {
class ALIBABACLOUD_DOCUMENTAUTOML_EXPORT GetModelAsyncPredictRequest : public RpcServiceRequest {
public:
GetModelAsyncPredictRequest();
~GetModelAsyncPredictRequest();
long getAsyncPredictId() const;
void setAsyncPredictId(long asyncPredictId);
std::string getProduct() const;
void setProduct(const std::string &product);
private:
long asyncPredictId_;
std::string product_;
};
} // namespace Model
} // namespace DocumentAutoml
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_DOCUMENTAUTOML_MODEL_GETMODELASYNCPREDICTREQUEST_H_

View File

@@ -0,0 +1,55 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_DOCUMENTAUTOML_MODEL_GETMODELASYNCPREDICTRESULT_H_
#define ALIBABACLOUD_DOCUMENTAUTOML_MODEL_GETMODELASYNCPREDICTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/documentautoml/DocumentAutomlExport.h>
namespace AlibabaCloud
{
namespace DocumentAutoml
{
namespace Model
{
class ALIBABACLOUD_DOCUMENTAUTOML_EXPORT GetModelAsyncPredictResult : public ServiceResult
{
public:
GetModelAsyncPredictResult();
explicit GetModelAsyncPredictResult(const std::string &payload);
~GetModelAsyncPredictResult();
std::string getMessage()const;
std::string getData()const;
int getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string data_;
int code_;
};
}
}
}
#endif // !ALIBABACLOUD_DOCUMENTAUTOML_MODEL_GETMODELASYNCPREDICTRESULT_H_

View File

@@ -0,0 +1,51 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_DOCUMENTAUTOML_MODEL_PREDICTCLASSIFIERMODELREQUEST_H_
#define ALIBABACLOUD_DOCUMENTAUTOML_MODEL_PREDICTCLASSIFIERMODELREQUEST_H_
#include <alibabacloud/documentautoml/DocumentAutomlExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace DocumentAutoml {
namespace Model {
class ALIBABACLOUD_DOCUMENTAUTOML_EXPORT PredictClassifierModelRequest : public RpcServiceRequest {
public:
PredictClassifierModelRequest();
~PredictClassifierModelRequest();
std::string getBody() const;
void setBody(const std::string &body);
std::string getContent() const;
void setContent(const std::string &content);
long getClassifierId() const;
void setClassifierId(long classifierId);
bool getAutoPrediction() const;
void setAutoPrediction(bool autoPrediction);
private:
std::string body_;
std::string content_;
long classifierId_;
bool autoPrediction_;
};
} // namespace Model
} // namespace DocumentAutoml
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_DOCUMENTAUTOML_MODEL_PREDICTCLASSIFIERMODELREQUEST_H_

View File

@@ -0,0 +1,55 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_DOCUMENTAUTOML_MODEL_PREDICTCLASSIFIERMODELRESULT_H_
#define ALIBABACLOUD_DOCUMENTAUTOML_MODEL_PREDICTCLASSIFIERMODELRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/documentautoml/DocumentAutomlExport.h>
namespace AlibabaCloud
{
namespace DocumentAutoml
{
namespace Model
{
class ALIBABACLOUD_DOCUMENTAUTOML_EXPORT PredictClassifierModelResult : public ServiceResult
{
public:
PredictClassifierModelResult();
explicit PredictClassifierModelResult(const std::string &payload);
~PredictClassifierModelResult();
std::string getMessage()const;
std::string getData()const;
int getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string data_;
int code_;
};
}
}
}
#endif // !ALIBABACLOUD_DOCUMENTAUTOML_MODEL_PREDICTCLASSIFIERMODELRESULT_H_

View File

@@ -0,0 +1,57 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_DOCUMENTAUTOML_MODEL_PREDICTMODELREQUEST_H_
#define ALIBABACLOUD_DOCUMENTAUTOML_MODEL_PREDICTMODELREQUEST_H_
#include <alibabacloud/documentautoml/DocumentAutomlExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace DocumentAutoml {
namespace Model {
class ALIBABACLOUD_DOCUMENTAUTOML_EXPORT PredictModelRequest : public RpcServiceRequest {
public:
PredictModelRequest();
~PredictModelRequest();
std::string getBody() const;
void setBody(const std::string &body);
std::string getContent() const;
void setContent(const std::string &content);
bool getBinaryToText() const;
void setBinaryToText(bool binaryToText);
std::string getProduct() const;
void setProduct(const std::string &product);
long getModelId() const;
void setModelId(long modelId);
std::string getModelVersion() const;
void setModelVersion(const std::string &modelVersion);
private:
std::string body_;
std::string content_;
bool binaryToText_;
std::string product_;
long modelId_;
std::string modelVersion_;
};
} // namespace Model
} // namespace DocumentAutoml
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_DOCUMENTAUTOML_MODEL_PREDICTMODELREQUEST_H_

View File

@@ -0,0 +1,55 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_DOCUMENTAUTOML_MODEL_PREDICTMODELRESULT_H_
#define ALIBABACLOUD_DOCUMENTAUTOML_MODEL_PREDICTMODELRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/documentautoml/DocumentAutomlExport.h>
namespace AlibabaCloud
{
namespace DocumentAutoml
{
namespace Model
{
class ALIBABACLOUD_DOCUMENTAUTOML_EXPORT PredictModelResult : public ServiceResult
{
public:
PredictModelResult();
explicit PredictModelResult(const std::string &payload);
~PredictModelResult();
std::string getMessage()const;
std::string getData()const;
int getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string data_;
int code_;
};
}
}
}
#endif // !ALIBABACLOUD_DOCUMENTAUTOML_MODEL_PREDICTMODELRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_DOCUMENTAUTOML_MODEL_PREDICTTEMPLATEMODELREQUEST_H_
#define ALIBABACLOUD_DOCUMENTAUTOML_MODEL_PREDICTTEMPLATEMODELREQUEST_H_
#include <alibabacloud/documentautoml/DocumentAutomlExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace DocumentAutoml {
namespace Model {
class ALIBABACLOUD_DOCUMENTAUTOML_EXPORT PredictTemplateModelRequest : public RpcServiceRequest {
public:
PredictTemplateModelRequest();
~PredictTemplateModelRequest();
std::string getBody() const;
void setBody(const std::string &body);
std::string getContent() const;
void setContent(const std::string &content);
bool getBinaryToText() const;
void setBinaryToText(bool binaryToText);
long getTaskId() const;
void setTaskId(long taskId);
std::string getProduct() const;
void setProduct(const std::string &product);
private:
std::string body_;
std::string content_;
bool binaryToText_;
long taskId_;
std::string product_;
};
} // namespace Model
} // namespace DocumentAutoml
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_DOCUMENTAUTOML_MODEL_PREDICTTEMPLATEMODELREQUEST_H_

View File

@@ -0,0 +1,55 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_DOCUMENTAUTOML_MODEL_PREDICTTEMPLATEMODELRESULT_H_
#define ALIBABACLOUD_DOCUMENTAUTOML_MODEL_PREDICTTEMPLATEMODELRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/documentautoml/DocumentAutomlExport.h>
namespace AlibabaCloud
{
namespace DocumentAutoml
{
namespace Model
{
class ALIBABACLOUD_DOCUMENTAUTOML_EXPORT PredictTemplateModelResult : public ServiceResult
{
public:
PredictTemplateModelResult();
explicit PredictTemplateModelResult(const std::string &payload);
~PredictTemplateModelResult();
std::string getMessage()const;
std::string getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_DOCUMENTAUTOML_MODEL_PREDICTTEMPLATEMODELRESULT_H_