Add Ext parameter to image translation API.

This commit is contained in:
sdk-team
2021-11-15 06:45:14 +00:00
parent cf62272b5b
commit 96f811507e
54 changed files with 2102 additions and 1512 deletions

View File

@@ -43,6 +43,10 @@ set(alimt_public_header_model
include/alibabacloud/alimt/model/GetTitleGenerateResult.h
include/alibabacloud/alimt/model/GetTitleIntelligenceRequest.h
include/alibabacloud/alimt/model/GetTitleIntelligenceResult.h
include/alibabacloud/alimt/model/GetTranslateReportRequest.h
include/alibabacloud/alimt/model/GetTranslateReportResult.h
include/alibabacloud/alimt/model/GetUserRequest.h
include/alibabacloud/alimt/model/GetUserResult.h
include/alibabacloud/alimt/model/OpenAlimtServiceRequest.h
include/alibabacloud/alimt/model/OpenAlimtServiceResult.h
include/alibabacloud/alimt/model/TranslateRequest.h
@@ -52,7 +56,9 @@ set(alimt_public_header_model
include/alibabacloud/alimt/model/TranslateECommerceRequest.h
include/alibabacloud/alimt/model/TranslateECommerceResult.h
include/alibabacloud/alimt/model/TranslateGeneralRequest.h
include/alibabacloud/alimt/model/TranslateGeneralResult.h )
include/alibabacloud/alimt/model/TranslateGeneralResult.h
include/alibabacloud/alimt/model/TranslateImageRequest.h
include/alibabacloud/alimt/model/TranslateImageResult.h )
set(alimt_src
src/AlimtClient.cc
@@ -78,6 +84,10 @@ set(alimt_src
src/model/GetTitleGenerateResult.cc
src/model/GetTitleIntelligenceRequest.cc
src/model/GetTitleIntelligenceResult.cc
src/model/GetTranslateReportRequest.cc
src/model/GetTranslateReportResult.cc
src/model/GetUserRequest.cc
src/model/GetUserResult.cc
src/model/OpenAlimtServiceRequest.cc
src/model/OpenAlimtServiceResult.cc
src/model/TranslateRequest.cc
@@ -87,7 +97,9 @@ set(alimt_src
src/model/TranslateECommerceRequest.cc
src/model/TranslateECommerceResult.cc
src/model/TranslateGeneralRequest.cc
src/model/TranslateGeneralResult.cc )
src/model/TranslateGeneralResult.cc
src/model/TranslateImageRequest.cc
src/model/TranslateImageResult.cc )
add_library(alimt ${LIB_TYPE}
${alimt_public_header}

View File

@@ -44,6 +44,10 @@
#include "model/GetTitleGenerateResult.h"
#include "model/GetTitleIntelligenceRequest.h"
#include "model/GetTitleIntelligenceResult.h"
#include "model/GetTranslateReportRequest.h"
#include "model/GetTranslateReportResult.h"
#include "model/GetUserRequest.h"
#include "model/GetUserResult.h"
#include "model/OpenAlimtServiceRequest.h"
#include "model/OpenAlimtServiceResult.h"
#include "model/TranslateRequest.h"
@@ -54,6 +58,8 @@
#include "model/TranslateECommerceResult.h"
#include "model/TranslateGeneralRequest.h"
#include "model/TranslateGeneralResult.h"
#include "model/TranslateImageRequest.h"
#include "model/TranslateImageResult.h"
namespace AlibabaCloud
@@ -96,6 +102,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetTitleIntelligenceResult> GetTitleIntelligenceOutcome;
typedef std::future<GetTitleIntelligenceOutcome> GetTitleIntelligenceOutcomeCallable;
typedef std::function<void(const AlimtClient*, const Model::GetTitleIntelligenceRequest&, const GetTitleIntelligenceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTitleIntelligenceAsyncHandler;
typedef Outcome<Error, Model::GetTranslateReportResult> GetTranslateReportOutcome;
typedef std::future<GetTranslateReportOutcome> GetTranslateReportOutcomeCallable;
typedef std::function<void(const AlimtClient*, const Model::GetTranslateReportRequest&, const GetTranslateReportOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTranslateReportAsyncHandler;
typedef Outcome<Error, Model::GetUserResult> GetUserOutcome;
typedef std::future<GetUserOutcome> GetUserOutcomeCallable;
typedef std::function<void(const AlimtClient*, const Model::GetUserRequest&, const GetUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetUserAsyncHandler;
typedef Outcome<Error, Model::OpenAlimtServiceResult> OpenAlimtServiceOutcome;
typedef std::future<OpenAlimtServiceOutcome> OpenAlimtServiceOutcomeCallable;
typedef std::function<void(const AlimtClient*, const Model::OpenAlimtServiceRequest&, const OpenAlimtServiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OpenAlimtServiceAsyncHandler;
@@ -111,6 +123,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::TranslateGeneralResult> TranslateGeneralOutcome;
typedef std::future<TranslateGeneralOutcome> TranslateGeneralOutcomeCallable;
typedef std::function<void(const AlimtClient*, const Model::TranslateGeneralRequest&, const TranslateGeneralOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TranslateGeneralAsyncHandler;
typedef Outcome<Error, Model::TranslateImageResult> TranslateImageOutcome;
typedef std::future<TranslateImageOutcome> TranslateImageOutcomeCallable;
typedef std::function<void(const AlimtClient*, const Model::TranslateImageRequest&, const TranslateImageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TranslateImageAsyncHandler;
AlimtClient(const Credentials &credentials, const ClientConfiguration &configuration);
AlimtClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
@@ -149,6 +164,12 @@ namespace AlibabaCloud
GetTitleIntelligenceOutcome getTitleIntelligence(const Model::GetTitleIntelligenceRequest &request)const;
void getTitleIntelligenceAsync(const Model::GetTitleIntelligenceRequest& request, const GetTitleIntelligenceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetTitleIntelligenceOutcomeCallable getTitleIntelligenceCallable(const Model::GetTitleIntelligenceRequest& request) const;
GetTranslateReportOutcome getTranslateReport(const Model::GetTranslateReportRequest &request)const;
void getTranslateReportAsync(const Model::GetTranslateReportRequest& request, const GetTranslateReportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetTranslateReportOutcomeCallable getTranslateReportCallable(const Model::GetTranslateReportRequest& request) const;
GetUserOutcome getUser(const Model::GetUserRequest &request)const;
void getUserAsync(const Model::GetUserRequest& request, const GetUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetUserOutcomeCallable getUserCallable(const Model::GetUserRequest& request) const;
OpenAlimtServiceOutcome openAlimtService(const Model::OpenAlimtServiceRequest &request)const;
void openAlimtServiceAsync(const Model::OpenAlimtServiceRequest& request, const OpenAlimtServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
OpenAlimtServiceOutcomeCallable openAlimtServiceCallable(const Model::OpenAlimtServiceRequest& request) const;
@@ -164,6 +185,9 @@ namespace AlibabaCloud
TranslateGeneralOutcome translateGeneral(const Model::TranslateGeneralRequest &request)const;
void translateGeneralAsync(const Model::TranslateGeneralRequest& request, const TranslateGeneralAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
TranslateGeneralOutcomeCallable translateGeneralCallable(const Model::TranslateGeneralRequest& request) const;
TranslateImageOutcome translateImage(const Model::TranslateImageRequest &request)const;
void translateImageAsync(const Model::TranslateImageRequest& request, const TranslateImageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
TranslateImageOutcomeCallable translateImageCallable(const Model::TranslateImageRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;

View File

@@ -1,63 +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_ALIMT_MODEL_CREATEDOCTRANSLATETASKREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_CREATEDOCTRANSLATETASKREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT CreateDocTranslateTaskRequest : public RpcServiceRequest
{
public:
CreateDocTranslateTaskRequest();
~CreateDocTranslateTaskRequest();
std::string getSourceLanguage()const;
void setSourceLanguage(const std::string& sourceLanguage);
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
std::string getScene()const;
void setScene(const std::string& scene);
std::string getFileUrl()const;
void setFileUrl(const std::string& fileUrl);
std::string getTargetLanguage()const;
void setTargetLanguage(const std::string& targetLanguage);
std::string getCallbackUrl()const;
void setCallbackUrl(const std::string& callbackUrl);
private:
std::string sourceLanguage_;
std::string clientToken_;
std::string scene_;
std::string fileUrl_;
std::string targetLanguage_;
std::string callbackUrl_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_CREATEDOCTRANSLATETASKREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_CREATEDOCTRANSLATETASKREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_CREATEDOCTRANSLATETASKREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT CreateDocTranslateTaskRequest : public RpcServiceRequest {
public:
CreateDocTranslateTaskRequest();
~CreateDocTranslateTaskRequest();
std::string getSourceLanguage() const;
void setSourceLanguage(const std::string &sourceLanguage);
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getScene() const;
void setScene(const std::string &scene);
std::string getFileUrl() const;
void setFileUrl(const std::string &fileUrl);
std::string getTargetLanguage() const;
void setTargetLanguage(const std::string &targetLanguage);
std::string getCallbackUrl() const;
void setCallbackUrl(const std::string &callbackUrl);
private:
std::string sourceLanguage_;
std::string clientToken_;
std::string scene_;
std::string fileUrl_;
std::string targetLanguage_;
std::string callbackUrl_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_CREATEDOCTRANSLATETASKREQUEST_H_

View File

@@ -1,60 +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_ALIMT_MODEL_CREATEIMAGETRANSLATETASKREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_CREATEIMAGETRANSLATETASKREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT CreateImageTranslateTaskRequest : public RpcServiceRequest
{
public:
CreateImageTranslateTaskRequest();
~CreateImageTranslateTaskRequest();
std::string getSourceLanguage()const;
void setSourceLanguage(const std::string& sourceLanguage);
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
std::string getUrlList()const;
void setUrlList(const std::string& urlList);
std::string getExtra()const;
void setExtra(const std::string& extra);
std::string getTargetLanguage()const;
void setTargetLanguage(const std::string& targetLanguage);
private:
std::string sourceLanguage_;
std::string clientToken_;
std::string urlList_;
std::string extra_;
std::string targetLanguage_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_CREATEIMAGETRANSLATETASKREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_CREATEIMAGETRANSLATETASKREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_CREATEIMAGETRANSLATETASKREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT CreateImageTranslateTaskRequest : public RpcServiceRequest {
public:
CreateImageTranslateTaskRequest();
~CreateImageTranslateTaskRequest();
std::string getSourceLanguage() const;
void setSourceLanguage(const std::string &sourceLanguage);
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getUrlList() const;
void setUrlList(const std::string &urlList);
std::string getExtra() const;
void setExtra(const std::string &extra);
std::string getTargetLanguage() const;
void setTargetLanguage(const std::string &targetLanguage);
private:
std::string sourceLanguage_;
std::string clientToken_;
std::string urlList_;
std::string extra_;
std::string targetLanguage_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_CREATEIMAGETRANSLATETASKREQUEST_H_

View File

@@ -1,63 +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_ALIMT_MODEL_GETBATCHTRANSLATEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETBATCHTRANSLATEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT GetBatchTranslateRequest : public RpcServiceRequest
{
public:
GetBatchTranslateRequest();
~GetBatchTranslateRequest();
std::string getSourceLanguage()const;
void setSourceLanguage(const std::string& sourceLanguage);
std::string getSourceText()const;
void setSourceText(const std::string& sourceText);
std::string getFormatType()const;
void setFormatType(const std::string& formatType);
std::string getApiType()const;
void setApiType(const std::string& apiType);
std::string getScene()const;
void setScene(const std::string& scene);
std::string getTargetLanguage()const;
void setTargetLanguage(const std::string& targetLanguage);
private:
std::string sourceLanguage_;
std::string sourceText_;
std::string formatType_;
std::string apiType_;
std::string scene_;
std::string targetLanguage_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETBATCHTRANSLATEREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETBATCHTRANSLATEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETBATCHTRANSLATEREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT GetBatchTranslateRequest : public RpcServiceRequest {
public:
GetBatchTranslateRequest();
~GetBatchTranslateRequest();
std::string getSourceLanguage() const;
void setSourceLanguage(const std::string &sourceLanguage);
std::string getSourceText() const;
void setSourceText(const std::string &sourceText);
std::string getFormatType() const;
void setFormatType(const std::string &formatType);
std::string getApiType() const;
void setApiType(const std::string &apiType);
std::string getScene() const;
void setScene(const std::string &scene);
std::string getTargetLanguage() const;
void setTargetLanguage(const std::string &targetLanguage);
private:
std::string sourceLanguage_;
std::string sourceText_;
std::string formatType_;
std::string apiType_;
std::string scene_;
std::string targetLanguage_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETBATCHTRANSLATEREQUEST_H_

View File

@@ -1,48 +1,42 @@
/*
* 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_ALIMT_MODEL_GETDETECTLANGUAGEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETDETECTLANGUAGEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT GetDetectLanguageRequest : public RpcServiceRequest
{
public:
GetDetectLanguageRequest();
~GetDetectLanguageRequest();
std::string getSourceText()const;
void setSourceText(const std::string& sourceText);
private:
std::string sourceText_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETDETECTLANGUAGEREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETDETECTLANGUAGEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETDETECTLANGUAGEREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT GetDetectLanguageRequest : public RpcServiceRequest {
public:
GetDetectLanguageRequest();
~GetDetectLanguageRequest();
std::string getSourceText() const;
void setSourceText(const std::string &sourceText);
private:
std::string sourceText_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETDETECTLANGUAGEREQUEST_H_

View File

@@ -1,48 +1,42 @@
/*
* 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_ALIMT_MODEL_GETDOCTRANSLATETASKREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETDOCTRANSLATETASKREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT GetDocTranslateTaskRequest : public RpcServiceRequest
{
public:
GetDocTranslateTaskRequest();
~GetDocTranslateTaskRequest();
std::string getTaskId()const;
void setTaskId(const std::string& taskId);
private:
std::string taskId_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETDOCTRANSLATETASKREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETDOCTRANSLATETASKREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETDOCTRANSLATETASKREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT GetDocTranslateTaskRequest : public RpcServiceRequest {
public:
GetDocTranslateTaskRequest();
~GetDocTranslateTaskRequest();
std::string getTaskId() const;
void setTaskId(const std::string &taskId);
private:
std::string taskId_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETDOCTRANSLATETASKREQUEST_H_

View File

@@ -1,51 +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_ALIMT_MODEL_GETIMAGEDIAGNOSEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETIMAGEDIAGNOSEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT GetImageDiagnoseRequest : public RpcServiceRequest
{
public:
GetImageDiagnoseRequest();
~GetImageDiagnoseRequest();
std::string getUrl()const;
void setUrl(const std::string& url);
std::string getExtra()const;
void setExtra(const std::string& extra);
private:
std::string url_;
std::string extra_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETIMAGEDIAGNOSEREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETIMAGEDIAGNOSEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETIMAGEDIAGNOSEREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT GetImageDiagnoseRequest : public RpcServiceRequest {
public:
GetImageDiagnoseRequest();
~GetImageDiagnoseRequest();
std::string getUrl() const;
void setUrl(const std::string &url);
std::string getExtra() const;
void setExtra(const std::string &extra);
private:
std::string url_;
std::string extra_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETIMAGEDIAGNOSEREQUEST_H_

View File

@@ -1,57 +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_ALIMT_MODEL_GETIMAGETRANSLATEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT GetImageTranslateRequest : public RpcServiceRequest
{
public:
GetImageTranslateRequest();
~GetImageTranslateRequest();
std::string getSourceLanguage()const;
void setSourceLanguage(const std::string& sourceLanguage);
std::string getUrl()const;
void setUrl(const std::string& url);
std::string getExtra()const;
void setExtra(const std::string& extra);
std::string getTargetLanguage()const;
void setTargetLanguage(const std::string& targetLanguage);
private:
std::string sourceLanguage_;
std::string url_;
std::string extra_;
std::string targetLanguage_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATEREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATEREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT GetImageTranslateRequest : public RpcServiceRequest {
public:
GetImageTranslateRequest();
~GetImageTranslateRequest();
std::string getSourceLanguage() const;
void setSourceLanguage(const std::string &sourceLanguage);
std::string getUrl() const;
void setUrl(const std::string &url);
std::string getExtra() const;
void setExtra(const std::string &extra);
std::string getTargetLanguage() const;
void setTargetLanguage(const std::string &targetLanguage);
private:
std::string sourceLanguage_;
std::string url_;
std::string extra_;
std::string targetLanguage_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATEREQUEST_H_

View File

@@ -1,48 +1,42 @@
/*
* 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_ALIMT_MODEL_GETIMAGETRANSLATETASKREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATETASKREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT GetImageTranslateTaskRequest : public RpcServiceRequest
{
public:
GetImageTranslateTaskRequest();
~GetImageTranslateTaskRequest();
std::string getTaskId()const;
void setTaskId(const std::string& taskId);
private:
std::string taskId_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATETASKREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATETASKREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATETASKREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT GetImageTranslateTaskRequest : public RpcServiceRequest {
public:
GetImageTranslateTaskRequest();
~GetImageTranslateTaskRequest();
std::string getTaskId() const;
void setTaskId(const std::string &taskId);
private:
std::string taskId_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATETASKREQUEST_H_

View File

@@ -1,60 +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_ALIMT_MODEL_GETTITLEDIAGNOSEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETTITLEDIAGNOSEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT GetTitleDiagnoseRequest : public RpcServiceRequest
{
public:
GetTitleDiagnoseRequest();
~GetTitleDiagnoseRequest();
std::string getLanguage()const;
void setLanguage(const std::string& language);
std::string getTitle()const;
void setTitle(const std::string& title);
std::string getPlatform()const;
void setPlatform(const std::string& platform);
std::string getExtra()const;
void setExtra(const std::string& extra);
std::string getCategoryId()const;
void setCategoryId(const std::string& categoryId);
private:
std::string language_;
std::string title_;
std::string platform_;
std::string extra_;
std::string categoryId_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTITLEDIAGNOSEREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETTITLEDIAGNOSEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETTITLEDIAGNOSEREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT GetTitleDiagnoseRequest : public RpcServiceRequest {
public:
GetTitleDiagnoseRequest();
~GetTitleDiagnoseRequest();
std::string getLanguage() const;
void setLanguage(const std::string &language);
std::string getTitle() const;
void setTitle(const std::string &title);
std::string getPlatform() const;
void setPlatform(const std::string &platform);
std::string getExtra() const;
void setExtra(const std::string &extra);
std::string getCategoryId() const;
void setCategoryId(const std::string &categoryId);
private:
std::string language_;
std::string title_;
std::string platform_;
std::string extra_;
std::string categoryId_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTITLEDIAGNOSEREQUEST_H_

View File

@@ -41,9 +41,9 @@ namespace AlibabaCloud
std::string overLengthLimit;
std::string totalScore;
std::string duplicateWords;
std::string wordSpelledCorrectError;
std::string allUppercaseWords;
std::string languageQualityScore;
std::string allUppercaseWords;
std::string wordSpelledCorrectError;
};

View File

@@ -1,66 +1,60 @@
/*
* 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_ALIMT_MODEL_GETTITLEGENERATEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETTITLEGENERATEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT GetTitleGenerateRequest : public RpcServiceRequest
{
public:
GetTitleGenerateRequest();
~GetTitleGenerateRequest();
std::string getLanguage()const;
void setLanguage(const std::string& language);
std::string getTitle()const;
void setTitle(const std::string& title);
std::string getPlatform()const;
void setPlatform(const std::string& platform);
std::string getExtra()const;
void setExtra(const std::string& extra);
std::string getAttributes()const;
void setAttributes(const std::string& attributes);
std::string getHotWords()const;
void setHotWords(const std::string& hotWords);
std::string getCategoryId()const;
void setCategoryId(const std::string& categoryId);
private:
std::string language_;
std::string title_;
std::string platform_;
std::string extra_;
std::string attributes_;
std::string hotWords_;
std::string categoryId_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTITLEGENERATEREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETTITLEGENERATEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETTITLEGENERATEREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT GetTitleGenerateRequest : public RpcServiceRequest {
public:
GetTitleGenerateRequest();
~GetTitleGenerateRequest();
std::string getLanguage() const;
void setLanguage(const std::string &language);
std::string getTitle() const;
void setTitle(const std::string &title);
std::string getPlatform() const;
void setPlatform(const std::string &platform);
std::string getExtra() const;
void setExtra(const std::string &extra);
std::string getAttributes() const;
void setAttributes(const std::string &attributes);
std::string getHotWords() const;
void setHotWords(const std::string &hotWords);
std::string getCategoryId() const;
void setCategoryId(const std::string &categoryId);
private:
std::string language_;
std::string title_;
std::string platform_;
std::string extra_;
std::string attributes_;
std::string hotWords_;
std::string categoryId_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTITLEGENERATEREQUEST_H_

View File

@@ -1,60 +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_ALIMT_MODEL_GETTITLEINTELLIGENCEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETTITLEINTELLIGENCEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT GetTitleIntelligenceRequest : public RpcServiceRequest
{
public:
GetTitleIntelligenceRequest();
~GetTitleIntelligenceRequest();
long getCatLevelThreeId()const;
void setCatLevelThreeId(long catLevelThreeId);
long getCatLevelTwoId()const;
void setCatLevelTwoId(long catLevelTwoId);
std::string getKeywords()const;
void setKeywords(const std::string& keywords);
std::string getPlatform()const;
void setPlatform(const std::string& platform);
std::string getExtra()const;
void setExtra(const std::string& extra);
private:
long catLevelThreeId_;
long catLevelTwoId_;
std::string keywords_;
std::string platform_;
std::string extra_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTITLEINTELLIGENCEREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETTITLEINTELLIGENCEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETTITLEINTELLIGENCEREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT GetTitleIntelligenceRequest : public RpcServiceRequest {
public:
GetTitleIntelligenceRequest();
~GetTitleIntelligenceRequest();
long getCatLevelThreeId() const;
void setCatLevelThreeId(long catLevelThreeId);
long getCatLevelTwoId() const;
void setCatLevelTwoId(long catLevelTwoId);
std::string getKeywords() const;
void setKeywords(const std::string &keywords);
std::string getPlatform() const;
void setPlatform(const std::string &platform);
std::string getExtra() const;
void setExtra(const std::string &extra);
private:
long catLevelThreeId_;
long catLevelTwoId_;
std::string keywords_;
std::string platform_;
std::string extra_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTITLEINTELLIGENCEREQUEST_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_ALIMT_MODEL_GETTRANSLATEREPORTREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETTRANSLATEREPORTREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT GetTranslateReportRequest : public RpcServiceRequest {
public:
GetTranslateReportRequest();
~GetTranslateReportRequest();
std::string getEndTime() const;
void setEndTime(const std::string &endTime);
std::string getBeginTime() const;
void setBeginTime(const std::string &beginTime);
std::string getApiName() const;
void setApiName(const std::string &apiName);
std::string getGroup() const;
void setGroup(const std::string &group);
private:
std::string endTime_;
std::string beginTime_;
std::string apiName_;
std::string group_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTRANSLATEREPORTREQUEST_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_ALIMT_MODEL_GETTRANSLATEREPORTRESULT_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETTRANSLATEREPORTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT GetTranslateReportResult : public ServiceResult
{
public:
GetTranslateReportResult();
explicit GetTranslateReportResult(const std::string &payload);
~GetTranslateReportResult();
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_ALIMT_MODEL_GETTRANSLATEREPORTRESULT_H_

View File

@@ -0,0 +1,39 @@
/*
* 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_ALIMT_MODEL_GETUSERREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETUSERREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT GetUserRequest : public RpcServiceRequest {
public:
GetUserRequest();
~GetUserRequest();
private:
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETUSERREQUEST_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_ALIMT_MODEL_GETUSERRESULT_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETUSERRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT GetUserResult : public ServiceResult
{
public:
GetUserResult();
explicit GetUserResult(const std::string &payload);
~GetUserResult();
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_ALIMT_MODEL_GETUSERRESULT_H_

View File

@@ -1,51 +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_ALIMT_MODEL_OPENALIMTSERVICEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT OpenAlimtServiceRequest : public RpcServiceRequest
{
public:
OpenAlimtServiceRequest();
~OpenAlimtServiceRequest();
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getType()const;
void setType(const std::string& type);
private:
long ownerId_;
std::string type_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICEREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICEREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT OpenAlimtServiceRequest : public RpcServiceRequest {
public:
OpenAlimtServiceRequest();
~OpenAlimtServiceRequest();
long getOwnerId() const;
void setOwnerId(long ownerId);
std::string getType() const;
void setType(const std::string &type);
private:
long ownerId_;
std::string type_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICEREQUEST_H_

View File

@@ -1,60 +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_ALIMT_MODEL_TRANSLATECERTIFICATEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATECERTIFICATEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT TranslateCertificateRequest : public RpcServiceRequest
{
public:
TranslateCertificateRequest();
~TranslateCertificateRequest();
std::string getSourceLanguage()const;
void setSourceLanguage(const std::string& sourceLanguage);
std::string getCertificateType()const;
void setCertificateType(const std::string& certificateType);
std::string getResultType()const;
void setResultType(const std::string& resultType);
std::string getImageUrl()const;
void setImageUrl(const std::string& imageUrl);
std::string getTargetLanguage()const;
void setTargetLanguage(const std::string& targetLanguage);
private:
std::string sourceLanguage_;
std::string certificateType_;
std::string resultType_;
std::string imageUrl_;
std::string targetLanguage_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATECERTIFICATEREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_TRANSLATECERTIFICATEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATECERTIFICATEREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT TranslateCertificateRequest : public RpcServiceRequest {
public:
TranslateCertificateRequest();
~TranslateCertificateRequest();
std::string getExt() const;
void setExt(const std::string &ext);
std::string getSourceLanguage() const;
void setSourceLanguage(const std::string &sourceLanguage);
std::string getCertificateType() const;
void setCertificateType(const std::string &certificateType);
std::string getResultType() const;
void setResultType(const std::string &resultType);
std::string getImageUrl() const;
void setImageUrl(const std::string &imageUrl);
std::string getTargetLanguage() const;
void setTargetLanguage(const std::string &targetLanguage);
private:
std::string ext_;
std::string sourceLanguage_;
std::string certificateType_;
std::string resultType_;
std::string imageUrl_;
std::string targetLanguage_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATECERTIFICATEREQUEST_H_

View File

@@ -1,60 +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_ALIMT_MODEL_TRANSLATEECOMMERCEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATEECOMMERCEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT TranslateECommerceRequest : public RpcServiceRequest
{
public:
TranslateECommerceRequest();
~TranslateECommerceRequest();
std::string getSourceLanguage()const;
void setSourceLanguage(const std::string& sourceLanguage);
std::string getSourceText()const;
void setSourceText(const std::string& sourceText);
std::string getFormatType()const;
void setFormatType(const std::string& formatType);
std::string getScene()const;
void setScene(const std::string& scene);
std::string getTargetLanguage()const;
void setTargetLanguage(const std::string& targetLanguage);
private:
std::string sourceLanguage_;
std::string sourceText_;
std::string formatType_;
std::string scene_;
std::string targetLanguage_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATEECOMMERCEREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_TRANSLATEECOMMERCEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATEECOMMERCEREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT TranslateECommerceRequest : public RpcServiceRequest {
public:
TranslateECommerceRequest();
~TranslateECommerceRequest();
std::string getSourceLanguage() const;
void setSourceLanguage(const std::string &sourceLanguage);
std::string getSourceText() const;
void setSourceText(const std::string &sourceText);
std::string getFormatType() const;
void setFormatType(const std::string &formatType);
std::string getScene() const;
void setScene(const std::string &scene);
std::string getTargetLanguage() const;
void setTargetLanguage(const std::string &targetLanguage);
private:
std::string sourceLanguage_;
std::string sourceText_;
std::string formatType_;
std::string scene_;
std::string targetLanguage_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATEECOMMERCEREQUEST_H_

View File

@@ -1,60 +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_ALIMT_MODEL_TRANSLATEGENERALREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATEGENERALREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT TranslateGeneralRequest : public RpcServiceRequest
{
public:
TranslateGeneralRequest();
~TranslateGeneralRequest();
std::string getSourceLanguage()const;
void setSourceLanguage(const std::string& sourceLanguage);
std::string getSourceText()const;
void setSourceText(const std::string& sourceText);
std::string getFormatType()const;
void setFormatType(const std::string& formatType);
std::string getScene()const;
void setScene(const std::string& scene);
std::string getTargetLanguage()const;
void setTargetLanguage(const std::string& targetLanguage);
private:
std::string sourceLanguage_;
std::string sourceText_;
std::string formatType_;
std::string scene_;
std::string targetLanguage_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATEGENERALREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_TRANSLATEGENERALREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATEGENERALREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT TranslateGeneralRequest : public RpcServiceRequest {
public:
TranslateGeneralRequest();
~TranslateGeneralRequest();
std::string getSourceLanguage() const;
void setSourceLanguage(const std::string &sourceLanguage);
std::string getSourceText() const;
void setSourceText(const std::string &sourceText);
std::string getFormatType() const;
void setFormatType(const std::string &formatType);
std::string getScene() const;
void setScene(const std::string &scene);
std::string getTargetLanguage() const;
void setTargetLanguage(const std::string &targetLanguage);
private:
std::string sourceLanguage_;
std::string sourceText_;
std::string formatType_;
std::string scene_;
std::string targetLanguage_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATEGENERALREQUEST_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_ALIMT_MODEL_TRANSLATEIMAGEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATEIMAGEREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT TranslateImageRequest : public RpcServiceRequest {
public:
TranslateImageRequest();
~TranslateImageRequest();
std::string getExt() const;
void setExt(const std::string &ext);
std::string getSourceLanguage() const;
void setSourceLanguage(const std::string &sourceLanguage);
std::string getField() const;
void setField(const std::string &field);
std::string getImageUrl() const;
void setImageUrl(const std::string &imageUrl);
std::string getTargetLanguage() const;
void setTargetLanguage(const std::string &targetLanguage);
std::string getImageBase64() const;
void setImageBase64(const std::string &imageBase64);
private:
std::string ext_;
std::string sourceLanguage_;
std::string field_;
std::string imageUrl_;
std::string targetLanguage_;
std::string imageBase64_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATEIMAGEREQUEST_H_

View File

@@ -0,0 +1,61 @@
/*
* 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_ALIMT_MODEL_TRANSLATEIMAGERESULT_H_
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATEIMAGERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT TranslateImageResult : public ServiceResult
{
public:
struct Data
{
std::string inPaintingUrl;
std::string templateJson;
std::string finalImageUrl;
};
TranslateImageResult();
explicit TranslateImageResult(const std::string &payload);
~TranslateImageResult();
std::string getMessage()const;
Data getData()const;
int getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
int code_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATEIMAGERESULT_H_

View File

@@ -1,60 +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_ALIMT_MODEL_TRANSLATEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT TranslateRequest : public RpcServiceRequest
{
public:
TranslateRequest();
~TranslateRequest();
std::string getSourceLanguage()const;
void setSourceLanguage(const std::string& sourceLanguage);
std::string getSourceText()const;
void setSourceText(const std::string& sourceText);
std::string getFormatType()const;
void setFormatType(const std::string& formatType);
std::string getScene()const;
void setScene(const std::string& scene);
std::string getTargetLanguage()const;
void setTargetLanguage(const std::string& targetLanguage);
private:
std::string sourceLanguage_;
std::string sourceText_;
std::string formatType_;
std::string scene_;
std::string targetLanguage_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATEREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_TRANSLATEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATEREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT TranslateRequest : public RpcServiceRequest {
public:
TranslateRequest();
~TranslateRequest();
std::string getSourceLanguage() const;
void setSourceLanguage(const std::string &sourceLanguage);
std::string getSourceText() const;
void setSourceText(const std::string &sourceText);
std::string getFormatType() const;
void setFormatType(const std::string &formatType);
std::string getScene() const;
void setScene(const std::string &scene);
std::string getTargetLanguage() const;
void setTargetLanguage(const std::string &targetLanguage);
private:
std::string sourceLanguage_;
std::string sourceText_;
std::string formatType_;
std::string scene_;
std::string targetLanguage_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATEREQUEST_H_

View File

@@ -31,21 +31,21 @@ AlimtClient::AlimtClient(const Credentials &credentials, const ClientConfigurati
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alimt");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
AlimtClient::AlimtClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alimt");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
AlimtClient::AlimtClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
{
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alimt");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
AlimtClient::~AlimtClient()
@@ -447,6 +447,78 @@ AlimtClient::GetTitleIntelligenceOutcomeCallable AlimtClient::getTitleIntelligen
return task->get_future();
}
AlimtClient::GetTranslateReportOutcome AlimtClient::getTranslateReport(const GetTranslateReportRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetTranslateReportOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetTranslateReportOutcome(GetTranslateReportResult(outcome.result()));
else
return GetTranslateReportOutcome(outcome.error());
}
void AlimtClient::getTranslateReportAsync(const GetTranslateReportRequest& request, const GetTranslateReportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getTranslateReport(request), context);
};
asyncExecute(new Runnable(fn));
}
AlimtClient::GetTranslateReportOutcomeCallable AlimtClient::getTranslateReportCallable(const GetTranslateReportRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetTranslateReportOutcome()>>(
[this, request]()
{
return this->getTranslateReport(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlimtClient::GetUserOutcome AlimtClient::getUser(const GetUserRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetUserOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetUserOutcome(GetUserResult(outcome.result()));
else
return GetUserOutcome(outcome.error());
}
void AlimtClient::getUserAsync(const GetUserRequest& request, const GetUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getUser(request), context);
};
asyncExecute(new Runnable(fn));
}
AlimtClient::GetUserOutcomeCallable AlimtClient::getUserCallable(const GetUserRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetUserOutcome()>>(
[this, request]()
{
return this->getUser(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlimtClient::OpenAlimtServiceOutcome AlimtClient::openAlimtService(const OpenAlimtServiceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -627,3 +699,39 @@ AlimtClient::TranslateGeneralOutcomeCallable AlimtClient::translateGeneralCallab
return task->get_future();
}
AlimtClient::TranslateImageOutcome AlimtClient::translateImage(const TranslateImageRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return TranslateImageOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return TranslateImageOutcome(TranslateImageResult(outcome.result()));
else
return TranslateImageOutcome(outcome.error());
}
void AlimtClient::translateImageAsync(const TranslateImageRequest& request, const TranslateImageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, translateImage(request), context);
};
asyncExecute(new Runnable(fn));
}
AlimtClient::TranslateImageOutcomeCallable AlimtClient::translateImageCallable(const TranslateImageRequest &request) const
{
auto task = std::make_shared<std::packaged_task<TranslateImageOutcome()>>(
[this, request]()
{
return this->translateImage(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}

View File

@@ -1,95 +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/alimt/model/CreateDocTranslateTaskRequest.h>
using AlibabaCloud::Alimt::Model::CreateDocTranslateTaskRequest;
CreateDocTranslateTaskRequest::CreateDocTranslateTaskRequest() :
RpcServiceRequest("alimt", "2018-10-12", "CreateDocTranslateTask")
{
setMethod(HttpRequest::Method::Post);
}
CreateDocTranslateTaskRequest::~CreateDocTranslateTaskRequest()
{}
std::string CreateDocTranslateTaskRequest::getSourceLanguage()const
{
return sourceLanguage_;
*/
#include <alibabacloud/alimt/model/CreateDocTranslateTaskRequest.h>
using AlibabaCloud::Alimt::Model::CreateDocTranslateTaskRequest;
CreateDocTranslateTaskRequest::CreateDocTranslateTaskRequest()
: RpcServiceRequest("alimt", "2018-10-12", "CreateDocTranslateTask") {
setMethod(HttpRequest::Method::Post);
}
void CreateDocTranslateTaskRequest::setSourceLanguage(const std::string& sourceLanguage)
{
sourceLanguage_ = sourceLanguage;
setBodyParameter("SourceLanguage", sourceLanguage);
CreateDocTranslateTaskRequest::~CreateDocTranslateTaskRequest() {}
std::string CreateDocTranslateTaskRequest::getSourceLanguage() const {
return sourceLanguage_;
}
std::string CreateDocTranslateTaskRequest::getClientToken()const
{
return clientToken_;
void CreateDocTranslateTaskRequest::setSourceLanguage(const std::string &sourceLanguage) {
sourceLanguage_ = sourceLanguage;
setBodyParameter(std::string("SourceLanguage"), sourceLanguage);
}
void CreateDocTranslateTaskRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setBodyParameter("ClientToken", clientToken);
std::string CreateDocTranslateTaskRequest::getClientToken() const {
return clientToken_;
}
std::string CreateDocTranslateTaskRequest::getScene()const
{
return scene_;
void CreateDocTranslateTaskRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setBodyParameter(std::string("ClientToken"), clientToken);
}
void CreateDocTranslateTaskRequest::setScene(const std::string& scene)
{
scene_ = scene;
setBodyParameter("Scene", scene);
std::string CreateDocTranslateTaskRequest::getScene() const {
return scene_;
}
std::string CreateDocTranslateTaskRequest::getFileUrl()const
{
return fileUrl_;
void CreateDocTranslateTaskRequest::setScene(const std::string &scene) {
scene_ = scene;
setBodyParameter(std::string("Scene"), scene);
}
void CreateDocTranslateTaskRequest::setFileUrl(const std::string& fileUrl)
{
fileUrl_ = fileUrl;
setBodyParameter("FileUrl", fileUrl);
std::string CreateDocTranslateTaskRequest::getFileUrl() const {
return fileUrl_;
}
std::string CreateDocTranslateTaskRequest::getTargetLanguage()const
{
return targetLanguage_;
void CreateDocTranslateTaskRequest::setFileUrl(const std::string &fileUrl) {
fileUrl_ = fileUrl;
setBodyParameter(std::string("FileUrl"), fileUrl);
}
void CreateDocTranslateTaskRequest::setTargetLanguage(const std::string& targetLanguage)
{
targetLanguage_ = targetLanguage;
setBodyParameter("TargetLanguage", targetLanguage);
std::string CreateDocTranslateTaskRequest::getTargetLanguage() const {
return targetLanguage_;
}
std::string CreateDocTranslateTaskRequest::getCallbackUrl()const
{
return callbackUrl_;
void CreateDocTranslateTaskRequest::setTargetLanguage(const std::string &targetLanguage) {
targetLanguage_ = targetLanguage;
setBodyParameter(std::string("TargetLanguage"), targetLanguage);
}
void CreateDocTranslateTaskRequest::setCallbackUrl(const std::string& callbackUrl)
{
callbackUrl_ = callbackUrl;
setBodyParameter("CallbackUrl", callbackUrl);
std::string CreateDocTranslateTaskRequest::getCallbackUrl() const {
return callbackUrl_;
}
void CreateDocTranslateTaskRequest::setCallbackUrl(const std::string &callbackUrl) {
callbackUrl_ = callbackUrl;
setBodyParameter(std::string("CallbackUrl"), callbackUrl);
}

View File

@@ -39,10 +39,10 @@ void CreateDocTranslateTaskResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["TaskId"].isNull())
taskId_ = value["TaskId"].asString();
if(!value["Status"].isNull())
status_ = value["Status"].asString();
if(!value["TaskId"].isNull())
taskId_ = value["TaskId"].asString();
}

View File

@@ -1,84 +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/alimt/model/CreateImageTranslateTaskRequest.h>
using AlibabaCloud::Alimt::Model::CreateImageTranslateTaskRequest;
CreateImageTranslateTaskRequest::CreateImageTranslateTaskRequest() :
RpcServiceRequest("alimt", "2018-10-12", "CreateImageTranslateTask")
{
setMethod(HttpRequest::Method::Post);
}
CreateImageTranslateTaskRequest::~CreateImageTranslateTaskRequest()
{}
std::string CreateImageTranslateTaskRequest::getSourceLanguage()const
{
return sourceLanguage_;
*/
#include <alibabacloud/alimt/model/CreateImageTranslateTaskRequest.h>
using AlibabaCloud::Alimt::Model::CreateImageTranslateTaskRequest;
CreateImageTranslateTaskRequest::CreateImageTranslateTaskRequest()
: RpcServiceRequest("alimt", "2018-10-12", "CreateImageTranslateTask") {
setMethod(HttpRequest::Method::Post);
}
void CreateImageTranslateTaskRequest::setSourceLanguage(const std::string& sourceLanguage)
{
sourceLanguage_ = sourceLanguage;
setBodyParameter("SourceLanguage", sourceLanguage);
CreateImageTranslateTaskRequest::~CreateImageTranslateTaskRequest() {}
std::string CreateImageTranslateTaskRequest::getSourceLanguage() const {
return sourceLanguage_;
}
std::string CreateImageTranslateTaskRequest::getClientToken()const
{
return clientToken_;
void CreateImageTranslateTaskRequest::setSourceLanguage(const std::string &sourceLanguage) {
sourceLanguage_ = sourceLanguage;
setBodyParameter(std::string("SourceLanguage"), sourceLanguage);
}
void CreateImageTranslateTaskRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setBodyParameter("ClientToken", clientToken);
std::string CreateImageTranslateTaskRequest::getClientToken() const {
return clientToken_;
}
std::string CreateImageTranslateTaskRequest::getUrlList()const
{
return urlList_;
void CreateImageTranslateTaskRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setBodyParameter(std::string("ClientToken"), clientToken);
}
void CreateImageTranslateTaskRequest::setUrlList(const std::string& urlList)
{
urlList_ = urlList;
setBodyParameter("UrlList", urlList);
std::string CreateImageTranslateTaskRequest::getUrlList() const {
return urlList_;
}
std::string CreateImageTranslateTaskRequest::getExtra()const
{
return extra_;
void CreateImageTranslateTaskRequest::setUrlList(const std::string &urlList) {
urlList_ = urlList;
setBodyParameter(std::string("UrlList"), urlList);
}
void CreateImageTranslateTaskRequest::setExtra(const std::string& extra)
{
extra_ = extra;
setBodyParameter("Extra", extra);
std::string CreateImageTranslateTaskRequest::getExtra() const {
return extra_;
}
std::string CreateImageTranslateTaskRequest::getTargetLanguage()const
{
return targetLanguage_;
void CreateImageTranslateTaskRequest::setExtra(const std::string &extra) {
extra_ = extra;
setBodyParameter(std::string("Extra"), extra);
}
void CreateImageTranslateTaskRequest::setTargetLanguage(const std::string& targetLanguage)
{
targetLanguage_ = targetLanguage;
setBodyParameter("TargetLanguage", targetLanguage);
std::string CreateImageTranslateTaskRequest::getTargetLanguage() const {
return targetLanguage_;
}
void CreateImageTranslateTaskRequest::setTargetLanguage(const std::string &targetLanguage) {
targetLanguage_ = targetLanguage;
setBodyParameter(std::string("TargetLanguage"), targetLanguage);
}

View File

@@ -1,95 +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/alimt/model/GetBatchTranslateRequest.h>
using AlibabaCloud::Alimt::Model::GetBatchTranslateRequest;
GetBatchTranslateRequest::GetBatchTranslateRequest() :
RpcServiceRequest("alimt", "2018-10-12", "GetBatchTranslate")
{
setMethod(HttpRequest::Method::Post);
}
GetBatchTranslateRequest::~GetBatchTranslateRequest()
{}
std::string GetBatchTranslateRequest::getSourceLanguage()const
{
return sourceLanguage_;
*/
#include <alibabacloud/alimt/model/GetBatchTranslateRequest.h>
using AlibabaCloud::Alimt::Model::GetBatchTranslateRequest;
GetBatchTranslateRequest::GetBatchTranslateRequest()
: RpcServiceRequest("alimt", "2018-10-12", "GetBatchTranslate") {
setMethod(HttpRequest::Method::Post);
}
void GetBatchTranslateRequest::setSourceLanguage(const std::string& sourceLanguage)
{
sourceLanguage_ = sourceLanguage;
setBodyParameter("SourceLanguage", sourceLanguage);
GetBatchTranslateRequest::~GetBatchTranslateRequest() {}
std::string GetBatchTranslateRequest::getSourceLanguage() const {
return sourceLanguage_;
}
std::string GetBatchTranslateRequest::getSourceText()const
{
return sourceText_;
void GetBatchTranslateRequest::setSourceLanguage(const std::string &sourceLanguage) {
sourceLanguage_ = sourceLanguage;
setBodyParameter(std::string("SourceLanguage"), sourceLanguage);
}
void GetBatchTranslateRequest::setSourceText(const std::string& sourceText)
{
sourceText_ = sourceText;
setBodyParameter("SourceText", sourceText);
std::string GetBatchTranslateRequest::getSourceText() const {
return sourceText_;
}
std::string GetBatchTranslateRequest::getFormatType()const
{
return formatType_;
void GetBatchTranslateRequest::setSourceText(const std::string &sourceText) {
sourceText_ = sourceText;
setBodyParameter(std::string("SourceText"), sourceText);
}
void GetBatchTranslateRequest::setFormatType(const std::string& formatType)
{
formatType_ = formatType;
setBodyParameter("FormatType", formatType);
std::string GetBatchTranslateRequest::getFormatType() const {
return formatType_;
}
std::string GetBatchTranslateRequest::getApiType()const
{
return apiType_;
void GetBatchTranslateRequest::setFormatType(const std::string &formatType) {
formatType_ = formatType;
setBodyParameter(std::string("FormatType"), formatType);
}
void GetBatchTranslateRequest::setApiType(const std::string& apiType)
{
apiType_ = apiType;
setBodyParameter("ApiType", apiType);
std::string GetBatchTranslateRequest::getApiType() const {
return apiType_;
}
std::string GetBatchTranslateRequest::getScene()const
{
return scene_;
void GetBatchTranslateRequest::setApiType(const std::string &apiType) {
apiType_ = apiType;
setBodyParameter(std::string("ApiType"), apiType);
}
void GetBatchTranslateRequest::setScene(const std::string& scene)
{
scene_ = scene;
setBodyParameter("Scene", scene);
std::string GetBatchTranslateRequest::getScene() const {
return scene_;
}
std::string GetBatchTranslateRequest::getTargetLanguage()const
{
return targetLanguage_;
void GetBatchTranslateRequest::setScene(const std::string &scene) {
scene_ = scene;
setBodyParameter(std::string("Scene"), scene);
}
void GetBatchTranslateRequest::setTargetLanguage(const std::string& targetLanguage)
{
targetLanguage_ = targetLanguage;
setBodyParameter("TargetLanguage", targetLanguage);
std::string GetBatchTranslateRequest::getTargetLanguage() const {
return targetLanguage_;
}
void GetBatchTranslateRequest::setTargetLanguage(const std::string &targetLanguage) {
targetLanguage_ = targetLanguage;
setBodyParameter(std::string("TargetLanguage"), targetLanguage);
}

View File

@@ -1,40 +1,36 @@
/*
* 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/alimt/model/GetDetectLanguageRequest.h>
using AlibabaCloud::Alimt::Model::GetDetectLanguageRequest;
GetDetectLanguageRequest::GetDetectLanguageRequest() :
RpcServiceRequest("alimt", "2018-10-12", "GetDetectLanguage")
{
setMethod(HttpRequest::Method::Post);
}
GetDetectLanguageRequest::~GetDetectLanguageRequest()
{}
std::string GetDetectLanguageRequest::getSourceText()const
{
return sourceText_;
*/
#include <alibabacloud/alimt/model/GetDetectLanguageRequest.h>
using AlibabaCloud::Alimt::Model::GetDetectLanguageRequest;
GetDetectLanguageRequest::GetDetectLanguageRequest()
: RpcServiceRequest("alimt", "2018-10-12", "GetDetectLanguage") {
setMethod(HttpRequest::Method::Post);
}
void GetDetectLanguageRequest::setSourceText(const std::string& sourceText)
{
sourceText_ = sourceText;
setBodyParameter("SourceText", sourceText);
GetDetectLanguageRequest::~GetDetectLanguageRequest() {}
std::string GetDetectLanguageRequest::getSourceText() const {
return sourceText_;
}
void GetDetectLanguageRequest::setSourceText(const std::string &sourceText) {
sourceText_ = sourceText;
setBodyParameter(std::string("SourceText"), sourceText);
}

View File

@@ -1,40 +1,36 @@
/*
* 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/alimt/model/GetDocTranslateTaskRequest.h>
using AlibabaCloud::Alimt::Model::GetDocTranslateTaskRequest;
GetDocTranslateTaskRequest::GetDocTranslateTaskRequest() :
RpcServiceRequest("alimt", "2018-10-12", "GetDocTranslateTask")
{
setMethod(HttpRequest::Method::Get);
}
GetDocTranslateTaskRequest::~GetDocTranslateTaskRequest()
{}
std::string GetDocTranslateTaskRequest::getTaskId()const
{
return taskId_;
*/
#include <alibabacloud/alimt/model/GetDocTranslateTaskRequest.h>
using AlibabaCloud::Alimt::Model::GetDocTranslateTaskRequest;
GetDocTranslateTaskRequest::GetDocTranslateTaskRequest()
: RpcServiceRequest("alimt", "2018-10-12", "GetDocTranslateTask") {
setMethod(HttpRequest::Method::Get);
}
void GetDocTranslateTaskRequest::setTaskId(const std::string& taskId)
{
taskId_ = taskId;
setParameter("TaskId", taskId);
GetDocTranslateTaskRequest::~GetDocTranslateTaskRequest() {}
std::string GetDocTranslateTaskRequest::getTaskId() const {
return taskId_;
}
void GetDocTranslateTaskRequest::setTaskId(const std::string &taskId) {
taskId_ = taskId;
setParameter(std::string("TaskId"), taskId);
}

View File

@@ -39,18 +39,18 @@ void GetDocTranslateTaskResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["TaskId"].isNull())
taskId_ = value["TaskId"].asString();
if(!value["Status"].isNull())
status_ = value["Status"].asString();
if(!value["TranslateFileUrl"].isNull())
translateFileUrl_ = value["TranslateFileUrl"].asString();
if(!value["TranslateErrorCode"].isNull())
translateErrorCode_ = value["TranslateErrorCode"].asString();
if(!value["TranslateErrorMessage"].isNull())
translateErrorMessage_ = value["TranslateErrorMessage"].asString();
if(!value["PageCount"].isNull())
pageCount_ = std::stoi(value["PageCount"].asString());
if(!value["TaskId"].isNull())
taskId_ = value["TaskId"].asString();
if(!value["TranslateErrorMessage"].isNull())
translateErrorMessage_ = value["TranslateErrorMessage"].asString();
}

View File

@@ -1,51 +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/alimt/model/GetImageDiagnoseRequest.h>
using AlibabaCloud::Alimt::Model::GetImageDiagnoseRequest;
GetImageDiagnoseRequest::GetImageDiagnoseRequest() :
RpcServiceRequest("alimt", "2018-10-12", "GetImageDiagnose")
{
setMethod(HttpRequest::Method::Post);
}
GetImageDiagnoseRequest::~GetImageDiagnoseRequest()
{}
std::string GetImageDiagnoseRequest::getUrl()const
{
return url_;
*/
#include <alibabacloud/alimt/model/GetImageDiagnoseRequest.h>
using AlibabaCloud::Alimt::Model::GetImageDiagnoseRequest;
GetImageDiagnoseRequest::GetImageDiagnoseRequest()
: RpcServiceRequest("alimt", "2018-10-12", "GetImageDiagnose") {
setMethod(HttpRequest::Method::Post);
}
void GetImageDiagnoseRequest::setUrl(const std::string& url)
{
url_ = url;
setBodyParameter("Url", url);
GetImageDiagnoseRequest::~GetImageDiagnoseRequest() {}
std::string GetImageDiagnoseRequest::getUrl() const {
return url_;
}
std::string GetImageDiagnoseRequest::getExtra()const
{
return extra_;
void GetImageDiagnoseRequest::setUrl(const std::string &url) {
url_ = url;
setBodyParameter(std::string("Url"), url);
}
void GetImageDiagnoseRequest::setExtra(const std::string& extra)
{
extra_ = extra;
setBodyParameter("Extra", extra);
std::string GetImageDiagnoseRequest::getExtra() const {
return extra_;
}
void GetImageDiagnoseRequest::setExtra(const std::string &extra) {
extra_ = extra;
setBodyParameter(std::string("Extra"), extra);
}

View File

@@ -1,73 +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/alimt/model/GetImageTranslateRequest.h>
using AlibabaCloud::Alimt::Model::GetImageTranslateRequest;
GetImageTranslateRequest::GetImageTranslateRequest() :
RpcServiceRequest("alimt", "2018-10-12", "GetImageTranslate")
{
setMethod(HttpRequest::Method::Post);
}
GetImageTranslateRequest::~GetImageTranslateRequest()
{}
std::string GetImageTranslateRequest::getSourceLanguage()const
{
return sourceLanguage_;
*/
#include <alibabacloud/alimt/model/GetImageTranslateRequest.h>
using AlibabaCloud::Alimt::Model::GetImageTranslateRequest;
GetImageTranslateRequest::GetImageTranslateRequest()
: RpcServiceRequest("alimt", "2018-10-12", "GetImageTranslate") {
setMethod(HttpRequest::Method::Post);
}
void GetImageTranslateRequest::setSourceLanguage(const std::string& sourceLanguage)
{
sourceLanguage_ = sourceLanguage;
setBodyParameter("SourceLanguage", sourceLanguage);
GetImageTranslateRequest::~GetImageTranslateRequest() {}
std::string GetImageTranslateRequest::getSourceLanguage() const {
return sourceLanguage_;
}
std::string GetImageTranslateRequest::getUrl()const
{
return url_;
void GetImageTranslateRequest::setSourceLanguage(const std::string &sourceLanguage) {
sourceLanguage_ = sourceLanguage;
setBodyParameter(std::string("SourceLanguage"), sourceLanguage);
}
void GetImageTranslateRequest::setUrl(const std::string& url)
{
url_ = url;
setBodyParameter("Url", url);
std::string GetImageTranslateRequest::getUrl() const {
return url_;
}
std::string GetImageTranslateRequest::getExtra()const
{
return extra_;
void GetImageTranslateRequest::setUrl(const std::string &url) {
url_ = url;
setBodyParameter(std::string("Url"), url);
}
void GetImageTranslateRequest::setExtra(const std::string& extra)
{
extra_ = extra;
setBodyParameter("Extra", extra);
std::string GetImageTranslateRequest::getExtra() const {
return extra_;
}
std::string GetImageTranslateRequest::getTargetLanguage()const
{
return targetLanguage_;
void GetImageTranslateRequest::setExtra(const std::string &extra) {
extra_ = extra;
setBodyParameter(std::string("Extra"), extra);
}
void GetImageTranslateRequest::setTargetLanguage(const std::string& targetLanguage)
{
targetLanguage_ = targetLanguage;
setBodyParameter("TargetLanguage", targetLanguage);
std::string GetImageTranslateRequest::getTargetLanguage() const {
return targetLanguage_;
}
void GetImageTranslateRequest::setTargetLanguage(const std::string &targetLanguage) {
targetLanguage_ = targetLanguage;
setBodyParameter(std::string("TargetLanguage"), targetLanguage);
}

View File

@@ -1,40 +1,36 @@
/*
* 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/alimt/model/GetImageTranslateTaskRequest.h>
using AlibabaCloud::Alimt::Model::GetImageTranslateTaskRequest;
GetImageTranslateTaskRequest::GetImageTranslateTaskRequest() :
RpcServiceRequest("alimt", "2018-10-12", "GetImageTranslateTask")
{
setMethod(HttpRequest::Method::Post);
}
GetImageTranslateTaskRequest::~GetImageTranslateTaskRequest()
{}
std::string GetImageTranslateTaskRequest::getTaskId()const
{
return taskId_;
*/
#include <alibabacloud/alimt/model/GetImageTranslateTaskRequest.h>
using AlibabaCloud::Alimt::Model::GetImageTranslateTaskRequest;
GetImageTranslateTaskRequest::GetImageTranslateTaskRequest()
: RpcServiceRequest("alimt", "2018-10-12", "GetImageTranslateTask") {
setMethod(HttpRequest::Method::Post);
}
void GetImageTranslateTaskRequest::setTaskId(const std::string& taskId)
{
taskId_ = taskId;
setBodyParameter("TaskId", taskId);
GetImageTranslateTaskRequest::~GetImageTranslateTaskRequest() {}
std::string GetImageTranslateTaskRequest::getTaskId() const {
return taskId_;
}
void GetImageTranslateTaskRequest::setTaskId(const std::string &taskId) {
taskId_ = taskId;
setBodyParameter(std::string("TaskId"), taskId);
}

View File

@@ -1,84 +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/alimt/model/GetTitleDiagnoseRequest.h>
using AlibabaCloud::Alimt::Model::GetTitleDiagnoseRequest;
GetTitleDiagnoseRequest::GetTitleDiagnoseRequest() :
RpcServiceRequest("alimt", "2018-10-12", "GetTitleDiagnose")
{
setMethod(HttpRequest::Method::Post);
}
GetTitleDiagnoseRequest::~GetTitleDiagnoseRequest()
{}
std::string GetTitleDiagnoseRequest::getLanguage()const
{
return language_;
*/
#include <alibabacloud/alimt/model/GetTitleDiagnoseRequest.h>
using AlibabaCloud::Alimt::Model::GetTitleDiagnoseRequest;
GetTitleDiagnoseRequest::GetTitleDiagnoseRequest()
: RpcServiceRequest("alimt", "2018-10-12", "GetTitleDiagnose") {
setMethod(HttpRequest::Method::Post);
}
void GetTitleDiagnoseRequest::setLanguage(const std::string& language)
{
language_ = language;
setBodyParameter("Language", language);
GetTitleDiagnoseRequest::~GetTitleDiagnoseRequest() {}
std::string GetTitleDiagnoseRequest::getLanguage() const {
return language_;
}
std::string GetTitleDiagnoseRequest::getTitle()const
{
return title_;
void GetTitleDiagnoseRequest::setLanguage(const std::string &language) {
language_ = language;
setBodyParameter(std::string("Language"), language);
}
void GetTitleDiagnoseRequest::setTitle(const std::string& title)
{
title_ = title;
setBodyParameter("Title", title);
std::string GetTitleDiagnoseRequest::getTitle() const {
return title_;
}
std::string GetTitleDiagnoseRequest::getPlatform()const
{
return platform_;
void GetTitleDiagnoseRequest::setTitle(const std::string &title) {
title_ = title;
setBodyParameter(std::string("Title"), title);
}
void GetTitleDiagnoseRequest::setPlatform(const std::string& platform)
{
platform_ = platform;
setBodyParameter("Platform", platform);
std::string GetTitleDiagnoseRequest::getPlatform() const {
return platform_;
}
std::string GetTitleDiagnoseRequest::getExtra()const
{
return extra_;
void GetTitleDiagnoseRequest::setPlatform(const std::string &platform) {
platform_ = platform;
setBodyParameter(std::string("Platform"), platform);
}
void GetTitleDiagnoseRequest::setExtra(const std::string& extra)
{
extra_ = extra;
setBodyParameter("Extra", extra);
std::string GetTitleDiagnoseRequest::getExtra() const {
return extra_;
}
std::string GetTitleDiagnoseRequest::getCategoryId()const
{
return categoryId_;
void GetTitleDiagnoseRequest::setExtra(const std::string &extra) {
extra_ = extra;
setBodyParameter(std::string("Extra"), extra);
}
void GetTitleDiagnoseRequest::setCategoryId(const std::string& categoryId)
{
categoryId_ = categoryId;
setBodyParameter("CategoryId", categoryId);
std::string GetTitleDiagnoseRequest::getCategoryId() const {
return categoryId_;
}
void GetTitleDiagnoseRequest::setCategoryId(const std::string &categoryId) {
categoryId_ = categoryId;
setBodyParameter(std::string("CategoryId"), categoryId);
}

View File

@@ -40,26 +40,26 @@ void GetTitleDiagnoseResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["ContainCoreClasses"].isNull())
data_.containCoreClasses = dataNode["ContainCoreClasses"].asString();
if(!dataNode["OverLengthLimit"].isNull())
data_.overLengthLimit = dataNode["OverLengthLimit"].asString();
if(!dataNode["WordSpelledCorrectError"].isNull())
data_.wordSpelledCorrectError = dataNode["WordSpelledCorrectError"].asString();
if(!dataNode["AllUppercaseWords"].isNull())
data_.allUppercaseWords = dataNode["AllUppercaseWords"].asString();
if(!dataNode["NoFirstUppercaseList"].isNull())
data_.noFirstUppercaseList = dataNode["NoFirstUppercaseList"].asString();
if(!dataNode["DuplicateWords"].isNull())
data_.duplicateWords = dataNode["DuplicateWords"].asString();
if(!dataNode["DisableWords"].isNull())
data_.disableWords = dataNode["DisableWords"].asString();
if(!dataNode["ContainCoreClasses"].isNull())
data_.containCoreClasses = dataNode["ContainCoreClasses"].asString();
if(!dataNode["WordCount"].isNull())
data_.wordCount = dataNode["WordCount"].asString();
if(!dataNode["TotalScore"].isNull())
data_.totalScore = dataNode["TotalScore"].asString();
if(!dataNode["LanguageQualityScore"].isNull())
data_.languageQualityScore = dataNode["LanguageQualityScore"].asString();
if(!dataNode["AllUppercaseWords"].isNull())
data_.allUppercaseWords = dataNode["AllUppercaseWords"].asString();
if(!dataNode["OverLengthLimit"].isNull())
data_.overLengthLimit = dataNode["OverLengthLimit"].asString();
if(!dataNode["DisableWords"].isNull())
data_.disableWords = dataNode["DisableWords"].asString();
if(!dataNode["NoFirstUppercaseList"].isNull())
data_.noFirstUppercaseList = dataNode["NoFirstUppercaseList"].asString();
if(!dataNode["TotalScore"].isNull())
data_.totalScore = dataNode["TotalScore"].asString();
if(!dataNode["WordSpelledCorrectError"].isNull())
data_.wordSpelledCorrectError = dataNode["WordSpelledCorrectError"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())

View File

@@ -1,106 +1,90 @@
/*
* 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/alimt/model/GetTitleGenerateRequest.h>
using AlibabaCloud::Alimt::Model::GetTitleGenerateRequest;
GetTitleGenerateRequest::GetTitleGenerateRequest() :
RpcServiceRequest("alimt", "2018-10-12", "GetTitleGenerate")
{
setMethod(HttpRequest::Method::Post);
}
GetTitleGenerateRequest::~GetTitleGenerateRequest()
{}
std::string GetTitleGenerateRequest::getLanguage()const
{
return language_;
*/
#include <alibabacloud/alimt/model/GetTitleGenerateRequest.h>
using AlibabaCloud::Alimt::Model::GetTitleGenerateRequest;
GetTitleGenerateRequest::GetTitleGenerateRequest()
: RpcServiceRequest("alimt", "2018-10-12", "GetTitleGenerate") {
setMethod(HttpRequest::Method::Post);
}
void GetTitleGenerateRequest::setLanguage(const std::string& language)
{
language_ = language;
setBodyParameter("Language", language);
GetTitleGenerateRequest::~GetTitleGenerateRequest() {}
std::string GetTitleGenerateRequest::getLanguage() const {
return language_;
}
std::string GetTitleGenerateRequest::getTitle()const
{
return title_;
void GetTitleGenerateRequest::setLanguage(const std::string &language) {
language_ = language;
setBodyParameter(std::string("Language"), language);
}
void GetTitleGenerateRequest::setTitle(const std::string& title)
{
title_ = title;
setBodyParameter("Title", title);
std::string GetTitleGenerateRequest::getTitle() const {
return title_;
}
std::string GetTitleGenerateRequest::getPlatform()const
{
return platform_;
void GetTitleGenerateRequest::setTitle(const std::string &title) {
title_ = title;
setBodyParameter(std::string("Title"), title);
}
void GetTitleGenerateRequest::setPlatform(const std::string& platform)
{
platform_ = platform;
setBodyParameter("Platform", platform);
std::string GetTitleGenerateRequest::getPlatform() const {
return platform_;
}
std::string GetTitleGenerateRequest::getExtra()const
{
return extra_;
void GetTitleGenerateRequest::setPlatform(const std::string &platform) {
platform_ = platform;
setBodyParameter(std::string("Platform"), platform);
}
void GetTitleGenerateRequest::setExtra(const std::string& extra)
{
extra_ = extra;
setBodyParameter("Extra", extra);
std::string GetTitleGenerateRequest::getExtra() const {
return extra_;
}
std::string GetTitleGenerateRequest::getAttributes()const
{
return attributes_;
void GetTitleGenerateRequest::setExtra(const std::string &extra) {
extra_ = extra;
setBodyParameter(std::string("Extra"), extra);
}
void GetTitleGenerateRequest::setAttributes(const std::string& attributes)
{
attributes_ = attributes;
setBodyParameter("Attributes", attributes);
std::string GetTitleGenerateRequest::getAttributes() const {
return attributes_;
}
std::string GetTitleGenerateRequest::getHotWords()const
{
return hotWords_;
void GetTitleGenerateRequest::setAttributes(const std::string &attributes) {
attributes_ = attributes;
setBodyParameter(std::string("Attributes"), attributes);
}
void GetTitleGenerateRequest::setHotWords(const std::string& hotWords)
{
hotWords_ = hotWords;
setBodyParameter("HotWords", hotWords);
std::string GetTitleGenerateRequest::getHotWords() const {
return hotWords_;
}
std::string GetTitleGenerateRequest::getCategoryId()const
{
return categoryId_;
void GetTitleGenerateRequest::setHotWords(const std::string &hotWords) {
hotWords_ = hotWords;
setBodyParameter(std::string("HotWords"), hotWords);
}
void GetTitleGenerateRequest::setCategoryId(const std::string& categoryId)
{
categoryId_ = categoryId;
setBodyParameter("CategoryId", categoryId);
std::string GetTitleGenerateRequest::getCategoryId() const {
return categoryId_;
}
void GetTitleGenerateRequest::setCategoryId(const std::string &categoryId) {
categoryId_ = categoryId;
setBodyParameter(std::string("CategoryId"), categoryId);
}

View File

@@ -1,84 +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/alimt/model/GetTitleIntelligenceRequest.h>
using AlibabaCloud::Alimt::Model::GetTitleIntelligenceRequest;
GetTitleIntelligenceRequest::GetTitleIntelligenceRequest() :
RpcServiceRequest("alimt", "2018-10-12", "GetTitleIntelligence")
{
setMethod(HttpRequest::Method::Post);
}
GetTitleIntelligenceRequest::~GetTitleIntelligenceRequest()
{}
long GetTitleIntelligenceRequest::getCatLevelThreeId()const
{
return catLevelThreeId_;
*/
#include <alibabacloud/alimt/model/GetTitleIntelligenceRequest.h>
using AlibabaCloud::Alimt::Model::GetTitleIntelligenceRequest;
GetTitleIntelligenceRequest::GetTitleIntelligenceRequest()
: RpcServiceRequest("alimt", "2018-10-12", "GetTitleIntelligence") {
setMethod(HttpRequest::Method::Post);
}
void GetTitleIntelligenceRequest::setCatLevelThreeId(long catLevelThreeId)
{
catLevelThreeId_ = catLevelThreeId;
setBodyParameter("CatLevelThreeId", std::to_string(catLevelThreeId));
GetTitleIntelligenceRequest::~GetTitleIntelligenceRequest() {}
long GetTitleIntelligenceRequest::getCatLevelThreeId() const {
return catLevelThreeId_;
}
long GetTitleIntelligenceRequest::getCatLevelTwoId()const
{
return catLevelTwoId_;
void GetTitleIntelligenceRequest::setCatLevelThreeId(long catLevelThreeId) {
catLevelThreeId_ = catLevelThreeId;
setBodyParameter(std::string("CatLevelThreeId"), std::to_string(catLevelThreeId));
}
void GetTitleIntelligenceRequest::setCatLevelTwoId(long catLevelTwoId)
{
catLevelTwoId_ = catLevelTwoId;
setBodyParameter("CatLevelTwoId", std::to_string(catLevelTwoId));
long GetTitleIntelligenceRequest::getCatLevelTwoId() const {
return catLevelTwoId_;
}
std::string GetTitleIntelligenceRequest::getKeywords()const
{
return keywords_;
void GetTitleIntelligenceRequest::setCatLevelTwoId(long catLevelTwoId) {
catLevelTwoId_ = catLevelTwoId;
setBodyParameter(std::string("CatLevelTwoId"), std::to_string(catLevelTwoId));
}
void GetTitleIntelligenceRequest::setKeywords(const std::string& keywords)
{
keywords_ = keywords;
setBodyParameter("Keywords", keywords);
std::string GetTitleIntelligenceRequest::getKeywords() const {
return keywords_;
}
std::string GetTitleIntelligenceRequest::getPlatform()const
{
return platform_;
void GetTitleIntelligenceRequest::setKeywords(const std::string &keywords) {
keywords_ = keywords;
setBodyParameter(std::string("Keywords"), keywords);
}
void GetTitleIntelligenceRequest::setPlatform(const std::string& platform)
{
platform_ = platform;
setBodyParameter("Platform", platform);
std::string GetTitleIntelligenceRequest::getPlatform() const {
return platform_;
}
std::string GetTitleIntelligenceRequest::getExtra()const
{
return extra_;
void GetTitleIntelligenceRequest::setPlatform(const std::string &platform) {
platform_ = platform;
setBodyParameter(std::string("Platform"), platform);
}
void GetTitleIntelligenceRequest::setExtra(const std::string& extra)
{
extra_ = extra;
setBodyParameter("Extra", extra);
std::string GetTitleIntelligenceRequest::getExtra() const {
return extra_;
}
void GetTitleIntelligenceRequest::setExtra(const std::string &extra) {
extra_ = extra;
setBodyParameter(std::string("Extra"), extra);
}

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/alimt/model/GetTranslateReportRequest.h>
using AlibabaCloud::Alimt::Model::GetTranslateReportRequest;
GetTranslateReportRequest::GetTranslateReportRequest()
: RpcServiceRequest("alimt", "2018-10-12", "GetTranslateReport") {
setMethod(HttpRequest::Method::Post);
}
GetTranslateReportRequest::~GetTranslateReportRequest() {}
std::string GetTranslateReportRequest::getEndTime() const {
return endTime_;
}
void GetTranslateReportRequest::setEndTime(const std::string &endTime) {
endTime_ = endTime;
setParameter(std::string("EndTime"), endTime);
}
std::string GetTranslateReportRequest::getBeginTime() const {
return beginTime_;
}
void GetTranslateReportRequest::setBeginTime(const std::string &beginTime) {
beginTime_ = beginTime;
setParameter(std::string("BeginTime"), beginTime);
}
std::string GetTranslateReportRequest::getApiName() const {
return apiName_;
}
void GetTranslateReportRequest::setApiName(const std::string &apiName) {
apiName_ = apiName;
setParameter(std::string("ApiName"), apiName);
}
std::string GetTranslateReportRequest::getGroup() const {
return group_;
}
void GetTranslateReportRequest::setGroup(const std::string &group) {
group_ = group;
setParameter(std::string("Group"), group);
}

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/alimt/model/GetTranslateReportResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alimt;
using namespace AlibabaCloud::Alimt::Model;
GetTranslateReportResult::GetTranslateReportResult() :
ServiceResult()
{}
GetTranslateReportResult::GetTranslateReportResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetTranslateReportResult::~GetTranslateReportResult()
{}
void GetTranslateReportResult::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 GetTranslateReportResult::getMessage()const
{
return message_;
}
std::string GetTranslateReportResult::getData()const
{
return data_;
}
int GetTranslateReportResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,27 @@
/*
* 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/alimt/model/GetUserRequest.h>
using AlibabaCloud::Alimt::Model::GetUserRequest;
GetUserRequest::GetUserRequest()
: RpcServiceRequest("alimt", "2018-10-12", "GetUser") {
setMethod(HttpRequest::Method::Post);
}
GetUserRequest::~GetUserRequest() {}

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/alimt/model/GetUserResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alimt;
using namespace AlibabaCloud::Alimt::Model;
GetUserResult::GetUserResult() :
ServiceResult()
{}
GetUserResult::GetUserResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetUserResult::~GetUserResult()
{}
void GetUserResult::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 GetUserResult::getMessage()const
{
return message_;
}
std::string GetUserResult::getData()const
{
return data_;
}
int GetUserResult::getCode()const
{
return code_;
}

View File

@@ -1,51 +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/alimt/model/OpenAlimtServiceRequest.h>
using AlibabaCloud::Alimt::Model::OpenAlimtServiceRequest;
OpenAlimtServiceRequest::OpenAlimtServiceRequest() :
RpcServiceRequest("alimt", "2018-10-12", "OpenAlimtService")
{
setMethod(HttpRequest::Method::Post);
}
OpenAlimtServiceRequest::~OpenAlimtServiceRequest()
{}
long OpenAlimtServiceRequest::getOwnerId()const
{
return ownerId_;
*/
#include <alibabacloud/alimt/model/OpenAlimtServiceRequest.h>
using AlibabaCloud::Alimt::Model::OpenAlimtServiceRequest;
OpenAlimtServiceRequest::OpenAlimtServiceRequest()
: RpcServiceRequest("alimt", "2018-10-12", "OpenAlimtService") {
setMethod(HttpRequest::Method::Post);
}
void OpenAlimtServiceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
OpenAlimtServiceRequest::~OpenAlimtServiceRequest() {}
long OpenAlimtServiceRequest::getOwnerId() const {
return ownerId_;
}
std::string OpenAlimtServiceRequest::getType()const
{
return type_;
void OpenAlimtServiceRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void OpenAlimtServiceRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
std::string OpenAlimtServiceRequest::getType() const {
return type_;
}
void OpenAlimtServiceRequest::setType(const std::string &type) {
type_ = type;
setParameter(std::string("Type"), type);
}

View File

@@ -1,84 +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/alimt/model/TranslateCertificateRequest.h>
using AlibabaCloud::Alimt::Model::TranslateCertificateRequest;
TranslateCertificateRequest::TranslateCertificateRequest() :
RpcServiceRequest("alimt", "2018-10-12", "TranslateCertificate")
{
setMethod(HttpRequest::Method::Post);
}
TranslateCertificateRequest::~TranslateCertificateRequest()
{}
std::string TranslateCertificateRequest::getSourceLanguage()const
{
return sourceLanguage_;
*/
#include <alibabacloud/alimt/model/TranslateCertificateRequest.h>
using AlibabaCloud::Alimt::Model::TranslateCertificateRequest;
TranslateCertificateRequest::TranslateCertificateRequest()
: RpcServiceRequest("alimt", "2018-10-12", "TranslateCertificate") {
setMethod(HttpRequest::Method::Post);
}
void TranslateCertificateRequest::setSourceLanguage(const std::string& sourceLanguage)
{
sourceLanguage_ = sourceLanguage;
setBodyParameter("SourceLanguage", sourceLanguage);
TranslateCertificateRequest::~TranslateCertificateRequest() {}
std::string TranslateCertificateRequest::getExt() const {
return ext_;
}
std::string TranslateCertificateRequest::getCertificateType()const
{
return certificateType_;
void TranslateCertificateRequest::setExt(const std::string &ext) {
ext_ = ext;
setBodyParameter(std::string("Ext"), ext);
}
void TranslateCertificateRequest::setCertificateType(const std::string& certificateType)
{
certificateType_ = certificateType;
setBodyParameter("CertificateType", certificateType);
std::string TranslateCertificateRequest::getSourceLanguage() const {
return sourceLanguage_;
}
std::string TranslateCertificateRequest::getResultType()const
{
return resultType_;
void TranslateCertificateRequest::setSourceLanguage(const std::string &sourceLanguage) {
sourceLanguage_ = sourceLanguage;
setBodyParameter(std::string("SourceLanguage"), sourceLanguage);
}
void TranslateCertificateRequest::setResultType(const std::string& resultType)
{
resultType_ = resultType;
setBodyParameter("ResultType", resultType);
std::string TranslateCertificateRequest::getCertificateType() const {
return certificateType_;
}
std::string TranslateCertificateRequest::getImageUrl()const
{
return imageUrl_;
void TranslateCertificateRequest::setCertificateType(const std::string &certificateType) {
certificateType_ = certificateType;
setBodyParameter(std::string("CertificateType"), certificateType);
}
void TranslateCertificateRequest::setImageUrl(const std::string& imageUrl)
{
imageUrl_ = imageUrl;
setBodyParameter("ImageUrl", imageUrl);
std::string TranslateCertificateRequest::getResultType() const {
return resultType_;
}
std::string TranslateCertificateRequest::getTargetLanguage()const
{
return targetLanguage_;
void TranslateCertificateRequest::setResultType(const std::string &resultType) {
resultType_ = resultType;
setBodyParameter(std::string("ResultType"), resultType);
}
void TranslateCertificateRequest::setTargetLanguage(const std::string& targetLanguage)
{
targetLanguage_ = targetLanguage;
setBodyParameter("TargetLanguage", targetLanguage);
std::string TranslateCertificateRequest::getImageUrl() const {
return imageUrl_;
}
void TranslateCertificateRequest::setImageUrl(const std::string &imageUrl) {
imageUrl_ = imageUrl;
setBodyParameter(std::string("ImageUrl"), imageUrl);
}
std::string TranslateCertificateRequest::getTargetLanguage() const {
return targetLanguage_;
}
void TranslateCertificateRequest::setTargetLanguage(const std::string &targetLanguage) {
targetLanguage_ = targetLanguage;
setBodyParameter(std::string("TargetLanguage"), targetLanguage);
}

View File

@@ -44,14 +44,14 @@ void TranslateCertificateResult::parse(const std::string &payload)
for (auto dataNodeTranslatedValuesCertificateTranslateItemDTO : allTranslatedValuesNode)
{
Data::CertificateTranslateItemDTO certificateTranslateItemDTOObject;
if(!dataNodeTranslatedValuesCertificateTranslateItemDTO["KeyTranslation"].isNull())
certificateTranslateItemDTOObject.keyTranslation = dataNodeTranslatedValuesCertificateTranslateItemDTO["KeyTranslation"].asString();
if(!dataNodeTranslatedValuesCertificateTranslateItemDTO["Key"].isNull())
certificateTranslateItemDTOObject.key = dataNodeTranslatedValuesCertificateTranslateItemDTO["Key"].asString();
if(!dataNodeTranslatedValuesCertificateTranslateItemDTO["Value"].isNull())
certificateTranslateItemDTOObject.value = dataNodeTranslatedValuesCertificateTranslateItemDTO["Value"].asString();
if(!dataNodeTranslatedValuesCertificateTranslateItemDTO["ValueTranslation"].isNull())
certificateTranslateItemDTOObject.valueTranslation = dataNodeTranslatedValuesCertificateTranslateItemDTO["ValueTranslation"].asString();
if(!dataNodeTranslatedValuesCertificateTranslateItemDTO["KeyTranslation"].isNull())
certificateTranslateItemDTOObject.keyTranslation = dataNodeTranslatedValuesCertificateTranslateItemDTO["KeyTranslation"].asString();
data_.translatedValues.push_back(certificateTranslateItemDTOObject);
}

View File

@@ -1,84 +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/alimt/model/TranslateECommerceRequest.h>
using AlibabaCloud::Alimt::Model::TranslateECommerceRequest;
TranslateECommerceRequest::TranslateECommerceRequest() :
RpcServiceRequest("alimt", "2018-10-12", "TranslateECommerce")
{
setMethod(HttpRequest::Method::Post);
}
TranslateECommerceRequest::~TranslateECommerceRequest()
{}
std::string TranslateECommerceRequest::getSourceLanguage()const
{
return sourceLanguage_;
*/
#include <alibabacloud/alimt/model/TranslateECommerceRequest.h>
using AlibabaCloud::Alimt::Model::TranslateECommerceRequest;
TranslateECommerceRequest::TranslateECommerceRequest()
: RpcServiceRequest("alimt", "2018-10-12", "TranslateECommerce") {
setMethod(HttpRequest::Method::Post);
}
void TranslateECommerceRequest::setSourceLanguage(const std::string& sourceLanguage)
{
sourceLanguage_ = sourceLanguage;
setBodyParameter("SourceLanguage", sourceLanguage);
TranslateECommerceRequest::~TranslateECommerceRequest() {}
std::string TranslateECommerceRequest::getSourceLanguage() const {
return sourceLanguage_;
}
std::string TranslateECommerceRequest::getSourceText()const
{
return sourceText_;
void TranslateECommerceRequest::setSourceLanguage(const std::string &sourceLanguage) {
sourceLanguage_ = sourceLanguage;
setBodyParameter(std::string("SourceLanguage"), sourceLanguage);
}
void TranslateECommerceRequest::setSourceText(const std::string& sourceText)
{
sourceText_ = sourceText;
setBodyParameter("SourceText", sourceText);
std::string TranslateECommerceRequest::getSourceText() const {
return sourceText_;
}
std::string TranslateECommerceRequest::getFormatType()const
{
return formatType_;
void TranslateECommerceRequest::setSourceText(const std::string &sourceText) {
sourceText_ = sourceText;
setBodyParameter(std::string("SourceText"), sourceText);
}
void TranslateECommerceRequest::setFormatType(const std::string& formatType)
{
formatType_ = formatType;
setBodyParameter("FormatType", formatType);
std::string TranslateECommerceRequest::getFormatType() const {
return formatType_;
}
std::string TranslateECommerceRequest::getScene()const
{
return scene_;
void TranslateECommerceRequest::setFormatType(const std::string &formatType) {
formatType_ = formatType;
setBodyParameter(std::string("FormatType"), formatType);
}
void TranslateECommerceRequest::setScene(const std::string& scene)
{
scene_ = scene;
setBodyParameter("Scene", scene);
std::string TranslateECommerceRequest::getScene() const {
return scene_;
}
std::string TranslateECommerceRequest::getTargetLanguage()const
{
return targetLanguage_;
void TranslateECommerceRequest::setScene(const std::string &scene) {
scene_ = scene;
setBodyParameter(std::string("Scene"), scene);
}
void TranslateECommerceRequest::setTargetLanguage(const std::string& targetLanguage)
{
targetLanguage_ = targetLanguage;
setBodyParameter("TargetLanguage", targetLanguage);
std::string TranslateECommerceRequest::getTargetLanguage() const {
return targetLanguage_;
}
void TranslateECommerceRequest::setTargetLanguage(const std::string &targetLanguage) {
targetLanguage_ = targetLanguage;
setBodyParameter(std::string("TargetLanguage"), targetLanguage);
}

View File

@@ -1,84 +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/alimt/model/TranslateGeneralRequest.h>
using AlibabaCloud::Alimt::Model::TranslateGeneralRequest;
TranslateGeneralRequest::TranslateGeneralRequest() :
RpcServiceRequest("alimt", "2018-10-12", "TranslateGeneral")
{
setMethod(HttpRequest::Method::Post);
}
TranslateGeneralRequest::~TranslateGeneralRequest()
{}
std::string TranslateGeneralRequest::getSourceLanguage()const
{
return sourceLanguage_;
*/
#include <alibabacloud/alimt/model/TranslateGeneralRequest.h>
using AlibabaCloud::Alimt::Model::TranslateGeneralRequest;
TranslateGeneralRequest::TranslateGeneralRequest()
: RpcServiceRequest("alimt", "2018-10-12", "TranslateGeneral") {
setMethod(HttpRequest::Method::Post);
}
void TranslateGeneralRequest::setSourceLanguage(const std::string& sourceLanguage)
{
sourceLanguage_ = sourceLanguage;
setBodyParameter("SourceLanguage", sourceLanguage);
TranslateGeneralRequest::~TranslateGeneralRequest() {}
std::string TranslateGeneralRequest::getSourceLanguage() const {
return sourceLanguage_;
}
std::string TranslateGeneralRequest::getSourceText()const
{
return sourceText_;
void TranslateGeneralRequest::setSourceLanguage(const std::string &sourceLanguage) {
sourceLanguage_ = sourceLanguage;
setBodyParameter(std::string("SourceLanguage"), sourceLanguage);
}
void TranslateGeneralRequest::setSourceText(const std::string& sourceText)
{
sourceText_ = sourceText;
setBodyParameter("SourceText", sourceText);
std::string TranslateGeneralRequest::getSourceText() const {
return sourceText_;
}
std::string TranslateGeneralRequest::getFormatType()const
{
return formatType_;
void TranslateGeneralRequest::setSourceText(const std::string &sourceText) {
sourceText_ = sourceText;
setBodyParameter(std::string("SourceText"), sourceText);
}
void TranslateGeneralRequest::setFormatType(const std::string& formatType)
{
formatType_ = formatType;
setBodyParameter("FormatType", formatType);
std::string TranslateGeneralRequest::getFormatType() const {
return formatType_;
}
std::string TranslateGeneralRequest::getScene()const
{
return scene_;
void TranslateGeneralRequest::setFormatType(const std::string &formatType) {
formatType_ = formatType;
setBodyParameter(std::string("FormatType"), formatType);
}
void TranslateGeneralRequest::setScene(const std::string& scene)
{
scene_ = scene;
setBodyParameter("Scene", scene);
std::string TranslateGeneralRequest::getScene() const {
return scene_;
}
std::string TranslateGeneralRequest::getTargetLanguage()const
{
return targetLanguage_;
void TranslateGeneralRequest::setScene(const std::string &scene) {
scene_ = scene;
setBodyParameter(std::string("Scene"), scene);
}
void TranslateGeneralRequest::setTargetLanguage(const std::string& targetLanguage)
{
targetLanguage_ = targetLanguage;
setBodyParameter("TargetLanguage", targetLanguage);
std::string TranslateGeneralRequest::getTargetLanguage() const {
return targetLanguage_;
}
void TranslateGeneralRequest::setTargetLanguage(const std::string &targetLanguage) {
targetLanguage_ = targetLanguage;
setBodyParameter(std::string("TargetLanguage"), targetLanguage);
}

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/alimt/model/TranslateImageRequest.h>
using AlibabaCloud::Alimt::Model::TranslateImageRequest;
TranslateImageRequest::TranslateImageRequest()
: RpcServiceRequest("alimt", "2018-10-12", "TranslateImage") {
setMethod(HttpRequest::Method::Post);
}
TranslateImageRequest::~TranslateImageRequest() {}
std::string TranslateImageRequest::getExt() const {
return ext_;
}
void TranslateImageRequest::setExt(const std::string &ext) {
ext_ = ext;
setBodyParameter(std::string("Ext"), ext);
}
std::string TranslateImageRequest::getSourceLanguage() const {
return sourceLanguage_;
}
void TranslateImageRequest::setSourceLanguage(const std::string &sourceLanguage) {
sourceLanguage_ = sourceLanguage;
setBodyParameter(std::string("SourceLanguage"), sourceLanguage);
}
std::string TranslateImageRequest::getField() const {
return field_;
}
void TranslateImageRequest::setField(const std::string &field) {
field_ = field;
setBodyParameter(std::string("Field"), field);
}
std::string TranslateImageRequest::getImageUrl() const {
return imageUrl_;
}
void TranslateImageRequest::setImageUrl(const std::string &imageUrl) {
imageUrl_ = imageUrl;
setBodyParameter(std::string("ImageUrl"), imageUrl);
}
std::string TranslateImageRequest::getTargetLanguage() const {
return targetLanguage_;
}
void TranslateImageRequest::setTargetLanguage(const std::string &targetLanguage) {
targetLanguage_ = targetLanguage;
setBodyParameter(std::string("TargetLanguage"), targetLanguage);
}
std::string TranslateImageRequest::getImageBase64() const {
return imageBase64_;
}
void TranslateImageRequest::setImageBase64(const std::string &imageBase64) {
imageBase64_ = imageBase64;
setBodyParameter(std::string("ImageBase64"), imageBase64);
}

View File

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

View File

@@ -1,84 +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/alimt/model/TranslateRequest.h>
using AlibabaCloud::Alimt::Model::TranslateRequest;
TranslateRequest::TranslateRequest() :
RpcServiceRequest("alimt", "2018-10-12", "Translate")
{
setMethod(HttpRequest::Method::Post);
}
TranslateRequest::~TranslateRequest()
{}
std::string TranslateRequest::getSourceLanguage()const
{
return sourceLanguage_;
*/
#include <alibabacloud/alimt/model/TranslateRequest.h>
using AlibabaCloud::Alimt::Model::TranslateRequest;
TranslateRequest::TranslateRequest()
: RpcServiceRequest("alimt", "2018-10-12", "Translate") {
setMethod(HttpRequest::Method::Post);
}
void TranslateRequest::setSourceLanguage(const std::string& sourceLanguage)
{
sourceLanguage_ = sourceLanguage;
setBodyParameter("SourceLanguage", sourceLanguage);
TranslateRequest::~TranslateRequest() {}
std::string TranslateRequest::getSourceLanguage() const {
return sourceLanguage_;
}
std::string TranslateRequest::getSourceText()const
{
return sourceText_;
void TranslateRequest::setSourceLanguage(const std::string &sourceLanguage) {
sourceLanguage_ = sourceLanguage;
setBodyParameter(std::string("SourceLanguage"), sourceLanguage);
}
void TranslateRequest::setSourceText(const std::string& sourceText)
{
sourceText_ = sourceText;
setBodyParameter("SourceText", sourceText);
std::string TranslateRequest::getSourceText() const {
return sourceText_;
}
std::string TranslateRequest::getFormatType()const
{
return formatType_;
void TranslateRequest::setSourceText(const std::string &sourceText) {
sourceText_ = sourceText;
setBodyParameter(std::string("SourceText"), sourceText);
}
void TranslateRequest::setFormatType(const std::string& formatType)
{
formatType_ = formatType;
setBodyParameter("FormatType", formatType);
std::string TranslateRequest::getFormatType() const {
return formatType_;
}
std::string TranslateRequest::getScene()const
{
return scene_;
void TranslateRequest::setFormatType(const std::string &formatType) {
formatType_ = formatType;
setBodyParameter(std::string("FormatType"), formatType);
}
void TranslateRequest::setScene(const std::string& scene)
{
scene_ = scene;
setBodyParameter("Scene", scene);
std::string TranslateRequest::getScene() const {
return scene_;
}
std::string TranslateRequest::getTargetLanguage()const
{
return targetLanguage_;
void TranslateRequest::setScene(const std::string &scene) {
scene_ = scene;
setBodyParameter(std::string("Scene"), scene);
}
void TranslateRequest::setTargetLanguage(const std::string& targetLanguage)
{
targetLanguage_ = targetLanguage;
setBodyParameter("TargetLanguage", targetLanguage);
std::string TranslateRequest::getTargetLanguage() const {
return targetLanguage_;
}
void TranslateRequest::setTargetLanguage(const std::string &targetLanguage) {
targetLanguage_ = targetLanguage;
setBodyParameter(std::string("TargetLanguage"), targetLanguage);
}