소스 검색

Add Ext parameter to image translation API.

sdk-team 4 년 전
부모
커밋
96f811507e
54개의 변경된 파일2100개의 추가작업 그리고 1510개의 파일을 삭제
  1. 3 0
      CHANGELOG
  2. 1 1
      VERSION
  3. 14 2
      alimt/CMakeLists.txt
  4. 24 0
      alimt/include/alibabacloud/alimt/AlimtClient.h
  5. 46 52
      alimt/include/alibabacloud/alimt/model/CreateDocTranslateTaskRequest.h
  6. 43 49
      alimt/include/alibabacloud/alimt/model/CreateImageTranslateTaskRequest.h
  7. 46 52
      alimt/include/alibabacloud/alimt/model/GetBatchTranslateRequest.h
  8. 31 37
      alimt/include/alibabacloud/alimt/model/GetDetectLanguageRequest.h
  9. 31 37
      alimt/include/alibabacloud/alimt/model/GetDocTranslateTaskRequest.h
  10. 34 40
      alimt/include/alibabacloud/alimt/model/GetImageDiagnoseRequest.h
  11. 40 46
      alimt/include/alibabacloud/alimt/model/GetImageTranslateRequest.h
  12. 31 37
      alimt/include/alibabacloud/alimt/model/GetImageTranslateTaskRequest.h
  13. 43 49
      alimt/include/alibabacloud/alimt/model/GetTitleDiagnoseRequest.h
  14. 2 2
      alimt/include/alibabacloud/alimt/model/GetTitleDiagnoseResult.h
  15. 49 55
      alimt/include/alibabacloud/alimt/model/GetTitleGenerateRequest.h
  16. 43 49
      alimt/include/alibabacloud/alimt/model/GetTitleIntelligenceRequest.h
  17. 51 0
      alimt/include/alibabacloud/alimt/model/GetTranslateReportRequest.h
  18. 55 0
      alimt/include/alibabacloud/alimt/model/GetTranslateReportResult.h
  19. 39 0
      alimt/include/alibabacloud/alimt/model/GetUserRequest.h
  20. 55 0
      alimt/include/alibabacloud/alimt/model/GetUserResult.h
  21. 34 40
      alimt/include/alibabacloud/alimt/model/OpenAlimtServiceRequest.h
  22. 46 49
      alimt/include/alibabacloud/alimt/model/TranslateCertificateRequest.h
  23. 43 49
      alimt/include/alibabacloud/alimt/model/TranslateECommerceRequest.h
  24. 43 49
      alimt/include/alibabacloud/alimt/model/TranslateGeneralRequest.h
  25. 57 0
      alimt/include/alibabacloud/alimt/model/TranslateImageRequest.h
  26. 61 0
      alimt/include/alibabacloud/alimt/model/TranslateImageResult.h
  27. 43 49
      alimt/include/alibabacloud/alimt/model/TranslateRequest.h
  28. 111 3
      alimt/src/AlimtClient.cc
  29. 46 60
      alimt/src/model/CreateDocTranslateTaskRequest.cc
  30. 2 2
      alimt/src/model/CreateDocTranslateTaskResult.cc
  31. 41 53
      alimt/src/model/CreateImageTranslateTaskRequest.cc
  32. 46 60
      alimt/src/model/GetBatchTranslateRequest.cc
  33. 21 25
      alimt/src/model/GetDetectLanguageRequest.cc
  34. 21 25
      alimt/src/model/GetDocTranslateTaskRequest.cc
  35. 4 4
      alimt/src/model/GetDocTranslateTaskResult.cc
  36. 26 32
      alimt/src/model/GetImageDiagnoseRequest.cc
  37. 36 46
      alimt/src/model/GetImageTranslateRequest.cc
  38. 21 25
      alimt/src/model/GetImageTranslateTaskRequest.cc
  39. 41 53
      alimt/src/model/GetTitleDiagnoseRequest.cc
  40. 12 12
      alimt/src/model/GetTitleDiagnoseResult.cc
  41. 51 67
      alimt/src/model/GetTitleGenerateRequest.cc
  42. 41 53
      alimt/src/model/GetTitleIntelligenceRequest.cc
  43. 63 0
      alimt/src/model/GetTranslateReportRequest.cc
  44. 65 0
      alimt/src/model/GetTranslateReportResult.cc
  45. 27 0
      alimt/src/model/GetUserRequest.cc
  46. 65 0
      alimt/src/model/GetUserResult.cc
  47. 26 32
      alimt/src/model/OpenAlimtServiceRequest.cc
  48. 50 53
      alimt/src/model/TranslateCertificateRequest.cc
  49. 2 2
      alimt/src/model/TranslateCertificateResult.cc
  50. 41 53
      alimt/src/model/TranslateECommerceRequest.cc
  51. 41 53
      alimt/src/model/TranslateGeneralRequest.cc
  52. 81 0
      alimt/src/model/TranslateImageRequest.cc
  53. 70 0
      alimt/src/model/TranslateImageResult.cc
  54. 41 53
      alimt/src/model/TranslateRequest.cc

+ 3 - 0
CHANGELOG

@@ -1,3 +1,6 @@
+2021-11-15 Version: 1.36.929
+- Add Ext parameter to image translation API.
+
 2021-11-15 Version: 1.36.928
 - Update DetectVehicleICongestion DetectVehicleIllegalParking.
 

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.36.928
+1.36.929

+ 14 - 2
alimt/CMakeLists.txt

@@ -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}

+ 24 - 0
alimt/include/alibabacloud/alimt/AlimtClient.h

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

+ 46 - 52
alimt/include/alibabacloud/alimt/model/CreateDocTranslateTaskRequest.h

@@ -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_

+ 43 - 49
alimt/include/alibabacloud/alimt/model/CreateImageTranslateTaskRequest.h

@@ -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_

+ 46 - 52
alimt/include/alibabacloud/alimt/model/GetBatchTranslateRequest.h

@@ -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_

+ 31 - 37
alimt/include/alibabacloud/alimt/model/GetDetectLanguageRequest.h

@@ -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_

+ 31 - 37
alimt/include/alibabacloud/alimt/model/GetDocTranslateTaskRequest.h

@@ -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_

+ 34 - 40
alimt/include/alibabacloud/alimt/model/GetImageDiagnoseRequest.h

@@ -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_

+ 40 - 46
alimt/include/alibabacloud/alimt/model/GetImageTranslateRequest.h

@@ -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_

+ 31 - 37
alimt/include/alibabacloud/alimt/model/GetImageTranslateTaskRequest.h

@@ -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_

+ 43 - 49
alimt/include/alibabacloud/alimt/model/GetTitleDiagnoseRequest.h

@@ -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_

+ 2 - 2
alimt/include/alibabacloud/alimt/model/GetTitleDiagnoseResult.h

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

+ 49 - 55
alimt/include/alibabacloud/alimt/model/GetTitleGenerateRequest.h

@@ -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_

+ 43 - 49
alimt/include/alibabacloud/alimt/model/GetTitleIntelligenceRequest.h

@@ -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_

+ 51 - 0
alimt/include/alibabacloud/alimt/model/GetTranslateReportRequest.h

@@ -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_

+ 55 - 0
alimt/include/alibabacloud/alimt/model/GetTranslateReportResult.h

@@ -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_

+ 39 - 0
alimt/include/alibabacloud/alimt/model/GetUserRequest.h

@@ -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_

+ 55 - 0
alimt/include/alibabacloud/alimt/model/GetUserResult.h

@@ -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_

+ 34 - 40
alimt/include/alibabacloud/alimt/model/OpenAlimtServiceRequest.h

@@ -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_

+ 46 - 49
alimt/include/alibabacloud/alimt/model/TranslateCertificateRequest.h

@@ -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_

+ 43 - 49
alimt/include/alibabacloud/alimt/model/TranslateECommerceRequest.h

@@ -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_

+ 43 - 49
alimt/include/alibabacloud/alimt/model/TranslateGeneralRequest.h

@@ -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_

+ 57 - 0
alimt/include/alibabacloud/alimt/model/TranslateImageRequest.h

@@ -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_

+ 61 - 0
alimt/include/alibabacloud/alimt/model/TranslateImageResult.h

@@ -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_

+ 43 - 49
alimt/include/alibabacloud/alimt/model/TranslateRequest.h

@@ -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_

+ 111 - 3
alimt/src/AlimtClient.cc

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

+ 46 - 60
alimt/src/model/CreateDocTranslateTaskRequest.cc

@@ -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);
+}
+
+CreateDocTranslateTaskRequest::~CreateDocTranslateTaskRequest() {}
+
+std::string CreateDocTranslateTaskRequest::getSourceLanguage() const {
+  return sourceLanguage_;
 }
 
-void CreateDocTranslateTaskRequest::setSourceLanguage(const std::string& sourceLanguage)
-{
-	sourceLanguage_ = sourceLanguage;
-	setBodyParameter("SourceLanguage", sourceLanguage);
+void CreateDocTranslateTaskRequest::setSourceLanguage(const std::string &sourceLanguage) {
+  sourceLanguage_ = sourceLanguage;
+  setBodyParameter(std::string("SourceLanguage"), sourceLanguage);
 }
 
-std::string CreateDocTranslateTaskRequest::getClientToken()const
-{
-	return clientToken_;
+std::string CreateDocTranslateTaskRequest::getClientToken() const {
+  return clientToken_;
 }
 
-void CreateDocTranslateTaskRequest::setClientToken(const std::string& clientToken)
-{
-	clientToken_ = clientToken;
-	setBodyParameter("ClientToken", clientToken);
+void CreateDocTranslateTaskRequest::setClientToken(const std::string &clientToken) {
+  clientToken_ = clientToken;
+  setBodyParameter(std::string("ClientToken"), clientToken);
 }
 
-std::string CreateDocTranslateTaskRequest::getScene()const
-{
-	return scene_;
+std::string CreateDocTranslateTaskRequest::getScene() const {
+  return scene_;
 }
 
-void CreateDocTranslateTaskRequest::setScene(const std::string& scene)
-{
-	scene_ = scene;
-	setBodyParameter("Scene", scene);
+void CreateDocTranslateTaskRequest::setScene(const std::string &scene) {
+  scene_ = scene;
+  setBodyParameter(std::string("Scene"), scene);
 }
 
-std::string CreateDocTranslateTaskRequest::getFileUrl()const
-{
-	return fileUrl_;
+std::string CreateDocTranslateTaskRequest::getFileUrl() const {
+  return fileUrl_;
 }
 
-void CreateDocTranslateTaskRequest::setFileUrl(const std::string& fileUrl)
-{
-	fileUrl_ = fileUrl;
-	setBodyParameter("FileUrl", fileUrl);
+void CreateDocTranslateTaskRequest::setFileUrl(const std::string &fileUrl) {
+  fileUrl_ = fileUrl;
+  setBodyParameter(std::string("FileUrl"), fileUrl);
 }
 
-std::string CreateDocTranslateTaskRequest::getTargetLanguage()const
-{
-	return targetLanguage_;
+std::string CreateDocTranslateTaskRequest::getTargetLanguage() const {
+  return targetLanguage_;
 }
 
-void CreateDocTranslateTaskRequest::setTargetLanguage(const std::string& targetLanguage)
-{
-	targetLanguage_ = targetLanguage;
-	setBodyParameter("TargetLanguage", targetLanguage);
+void CreateDocTranslateTaskRequest::setTargetLanguage(const std::string &targetLanguage) {
+  targetLanguage_ = targetLanguage;
+  setBodyParameter(std::string("TargetLanguage"), targetLanguage);
 }
 
-std::string CreateDocTranslateTaskRequest::getCallbackUrl()const
-{
-	return callbackUrl_;
+std::string CreateDocTranslateTaskRequest::getCallbackUrl() const {
+  return callbackUrl_;
 }
 
-void CreateDocTranslateTaskRequest::setCallbackUrl(const std::string& callbackUrl)
-{
-	callbackUrl_ = callbackUrl;
-	setBodyParameter("CallbackUrl", callbackUrl);
+void CreateDocTranslateTaskRequest::setCallbackUrl(const std::string &callbackUrl) {
+  callbackUrl_ = callbackUrl;
+  setBodyParameter(std::string("CallbackUrl"), callbackUrl);
 }
 

+ 2 - 2
alimt/src/model/CreateDocTranslateTaskResult.cc

@@ -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();
 
 }
 

+ 41 - 53
alimt/src/model/CreateImageTranslateTaskRequest.cc

@@ -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);
+}
+
+CreateImageTranslateTaskRequest::~CreateImageTranslateTaskRequest() {}
+
+std::string CreateImageTranslateTaskRequest::getSourceLanguage() const {
+  return sourceLanguage_;
 }
 
-void CreateImageTranslateTaskRequest::setSourceLanguage(const std::string& sourceLanguage)
-{
-	sourceLanguage_ = sourceLanguage;
-	setBodyParameter("SourceLanguage", sourceLanguage);
+void CreateImageTranslateTaskRequest::setSourceLanguage(const std::string &sourceLanguage) {
+  sourceLanguage_ = sourceLanguage;
+  setBodyParameter(std::string("SourceLanguage"), sourceLanguage);
 }
 
-std::string CreateImageTranslateTaskRequest::getClientToken()const
-{
-	return clientToken_;
+std::string CreateImageTranslateTaskRequest::getClientToken() const {
+  return clientToken_;
 }
 
-void CreateImageTranslateTaskRequest::setClientToken(const std::string& clientToken)
-{
-	clientToken_ = clientToken;
-	setBodyParameter("ClientToken", clientToken);
+void CreateImageTranslateTaskRequest::setClientToken(const std::string &clientToken) {
+  clientToken_ = clientToken;
+  setBodyParameter(std::string("ClientToken"), clientToken);
 }
 
-std::string CreateImageTranslateTaskRequest::getUrlList()const
-{
-	return urlList_;
+std::string CreateImageTranslateTaskRequest::getUrlList() const {
+  return urlList_;
 }
 
-void CreateImageTranslateTaskRequest::setUrlList(const std::string& urlList)
-{
-	urlList_ = urlList;
-	setBodyParameter("UrlList", urlList);
+void CreateImageTranslateTaskRequest::setUrlList(const std::string &urlList) {
+  urlList_ = urlList;
+  setBodyParameter(std::string("UrlList"), urlList);
 }
 
-std::string CreateImageTranslateTaskRequest::getExtra()const
-{
-	return extra_;
+std::string CreateImageTranslateTaskRequest::getExtra() const {
+  return extra_;
 }
 
-void CreateImageTranslateTaskRequest::setExtra(const std::string& extra)
-{
-	extra_ = extra;
-	setBodyParameter("Extra", extra);
+void CreateImageTranslateTaskRequest::setExtra(const std::string &extra) {
+  extra_ = extra;
+  setBodyParameter(std::string("Extra"), extra);
 }
 
-std::string CreateImageTranslateTaskRequest::getTargetLanguage()const
-{
-	return targetLanguage_;
+std::string CreateImageTranslateTaskRequest::getTargetLanguage() const {
+  return targetLanguage_;
 }
 
-void CreateImageTranslateTaskRequest::setTargetLanguage(const std::string& targetLanguage)
-{
-	targetLanguage_ = targetLanguage;
-	setBodyParameter("TargetLanguage", targetLanguage);
+void CreateImageTranslateTaskRequest::setTargetLanguage(const std::string &targetLanguage) {
+  targetLanguage_ = targetLanguage;
+  setBodyParameter(std::string("TargetLanguage"), targetLanguage);
 }
 

+ 46 - 60
alimt/src/model/GetBatchTranslateRequest.cc

@@ -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);
+}
+
+GetBatchTranslateRequest::~GetBatchTranslateRequest() {}
+
+std::string GetBatchTranslateRequest::getSourceLanguage() const {
+  return sourceLanguage_;
 }
 
-void GetBatchTranslateRequest::setSourceLanguage(const std::string& sourceLanguage)
-{
-	sourceLanguage_ = sourceLanguage;
-	setBodyParameter("SourceLanguage", sourceLanguage);
+void GetBatchTranslateRequest::setSourceLanguage(const std::string &sourceLanguage) {
+  sourceLanguage_ = sourceLanguage;
+  setBodyParameter(std::string("SourceLanguage"), sourceLanguage);
 }
 
-std::string GetBatchTranslateRequest::getSourceText()const
-{
-	return sourceText_;
+std::string GetBatchTranslateRequest::getSourceText() const {
+  return sourceText_;
 }
 
-void GetBatchTranslateRequest::setSourceText(const std::string& sourceText)
-{
-	sourceText_ = sourceText;
-	setBodyParameter("SourceText", sourceText);
+void GetBatchTranslateRequest::setSourceText(const std::string &sourceText) {
+  sourceText_ = sourceText;
+  setBodyParameter(std::string("SourceText"), sourceText);
 }
 
-std::string GetBatchTranslateRequest::getFormatType()const
-{
-	return formatType_;
+std::string GetBatchTranslateRequest::getFormatType() const {
+  return formatType_;
 }
 
-void GetBatchTranslateRequest::setFormatType(const std::string& formatType)
-{
-	formatType_ = formatType;
-	setBodyParameter("FormatType", formatType);
+void GetBatchTranslateRequest::setFormatType(const std::string &formatType) {
+  formatType_ = formatType;
+  setBodyParameter(std::string("FormatType"), formatType);
 }
 
-std::string GetBatchTranslateRequest::getApiType()const
-{
-	return apiType_;
+std::string GetBatchTranslateRequest::getApiType() const {
+  return apiType_;
 }
 
-void GetBatchTranslateRequest::setApiType(const std::string& apiType)
-{
-	apiType_ = apiType;
-	setBodyParameter("ApiType", apiType);
+void GetBatchTranslateRequest::setApiType(const std::string &apiType) {
+  apiType_ = apiType;
+  setBodyParameter(std::string("ApiType"), apiType);
 }
 
-std::string GetBatchTranslateRequest::getScene()const
-{
-	return scene_;
+std::string GetBatchTranslateRequest::getScene() const {
+  return scene_;
 }
 
-void GetBatchTranslateRequest::setScene(const std::string& scene)
-{
-	scene_ = scene;
-	setBodyParameter("Scene", scene);
+void GetBatchTranslateRequest::setScene(const std::string &scene) {
+  scene_ = scene;
+  setBodyParameter(std::string("Scene"), scene);
 }
 
-std::string GetBatchTranslateRequest::getTargetLanguage()const
-{
-	return targetLanguage_;
+std::string GetBatchTranslateRequest::getTargetLanguage() const {
+  return targetLanguage_;
 }
 
-void GetBatchTranslateRequest::setTargetLanguage(const std::string& targetLanguage)
-{
-	targetLanguage_ = targetLanguage;
-	setBodyParameter("TargetLanguage", targetLanguage);
+void GetBatchTranslateRequest::setTargetLanguage(const std::string &targetLanguage) {
+  targetLanguage_ = targetLanguage;
+  setBodyParameter(std::string("TargetLanguage"), targetLanguage);
 }
 

+ 21 - 25
alimt/src/model/GetDetectLanguageRequest.cc

@@ -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);
+}
+
+GetDetectLanguageRequest::~GetDetectLanguageRequest() {}
+
+std::string GetDetectLanguageRequest::getSourceText() const {
+  return sourceText_;
 }
 
-void GetDetectLanguageRequest::setSourceText(const std::string& sourceText)
-{
-	sourceText_ = sourceText;
-	setBodyParameter("SourceText", sourceText);
+void GetDetectLanguageRequest::setSourceText(const std::string &sourceText) {
+  sourceText_ = sourceText;
+  setBodyParameter(std::string("SourceText"), sourceText);
 }
 

+ 21 - 25
alimt/src/model/GetDocTranslateTaskRequest.cc

@@ -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);
+}
+
+GetDocTranslateTaskRequest::~GetDocTranslateTaskRequest() {}
+
+std::string GetDocTranslateTaskRequest::getTaskId() const {
+  return taskId_;
 }
 
-void GetDocTranslateTaskRequest::setTaskId(const std::string& taskId)
-{
-	taskId_ = taskId;
-	setParameter("TaskId", taskId);
+void GetDocTranslateTaskRequest::setTaskId(const std::string &taskId) {
+  taskId_ = taskId;
+  setParameter(std::string("TaskId"), taskId);
 }
 

+ 4 - 4
alimt/src/model/GetDocTranslateTaskResult.cc

@@ -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();
 
 }
 

+ 26 - 32
alimt/src/model/GetImageDiagnoseRequest.cc

@@ -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);
+}
+
+GetImageDiagnoseRequest::~GetImageDiagnoseRequest() {}
+
+std::string GetImageDiagnoseRequest::getUrl() const {
+  return url_;
 }
 
-void GetImageDiagnoseRequest::setUrl(const std::string& url)
-{
-	url_ = url;
-	setBodyParameter("Url", url);
+void GetImageDiagnoseRequest::setUrl(const std::string &url) {
+  url_ = url;
+  setBodyParameter(std::string("Url"), url);
 }
 
-std::string GetImageDiagnoseRequest::getExtra()const
-{
-	return extra_;
+std::string GetImageDiagnoseRequest::getExtra() const {
+  return extra_;
 }
 
-void GetImageDiagnoseRequest::setExtra(const std::string& extra)
-{
-	extra_ = extra;
-	setBodyParameter("Extra", extra);
+void GetImageDiagnoseRequest::setExtra(const std::string &extra) {
+  extra_ = extra;
+  setBodyParameter(std::string("Extra"), extra);
 }
 

+ 36 - 46
alimt/src/model/GetImageTranslateRequest.cc

@@ -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);
+}
+
+GetImageTranslateRequest::~GetImageTranslateRequest() {}
+
+std::string GetImageTranslateRequest::getSourceLanguage() const {
+  return sourceLanguage_;
 }
 
-void GetImageTranslateRequest::setSourceLanguage(const std::string& sourceLanguage)
-{
-	sourceLanguage_ = sourceLanguage;
-	setBodyParameter("SourceLanguage", sourceLanguage);
+void GetImageTranslateRequest::setSourceLanguage(const std::string &sourceLanguage) {
+  sourceLanguage_ = sourceLanguage;
+  setBodyParameter(std::string("SourceLanguage"), sourceLanguage);
 }
 
-std::string GetImageTranslateRequest::getUrl()const
-{
-	return url_;
+std::string GetImageTranslateRequest::getUrl() const {
+  return url_;
 }
 
-void GetImageTranslateRequest::setUrl(const std::string& url)
-{
-	url_ = url;
-	setBodyParameter("Url", url);
+void GetImageTranslateRequest::setUrl(const std::string &url) {
+  url_ = url;
+  setBodyParameter(std::string("Url"), url);
 }
 
-std::string GetImageTranslateRequest::getExtra()const
-{
-	return extra_;
+std::string GetImageTranslateRequest::getExtra() const {
+  return extra_;
 }
 
-void GetImageTranslateRequest::setExtra(const std::string& extra)
-{
-	extra_ = extra;
-	setBodyParameter("Extra", extra);
+void GetImageTranslateRequest::setExtra(const std::string &extra) {
+  extra_ = extra;
+  setBodyParameter(std::string("Extra"), extra);
 }
 
-std::string GetImageTranslateRequest::getTargetLanguage()const
-{
-	return targetLanguage_;
+std::string GetImageTranslateRequest::getTargetLanguage() const {
+  return targetLanguage_;
 }
 
-void GetImageTranslateRequest::setTargetLanguage(const std::string& targetLanguage)
-{
-	targetLanguage_ = targetLanguage;
-	setBodyParameter("TargetLanguage", targetLanguage);
+void GetImageTranslateRequest::setTargetLanguage(const std::string &targetLanguage) {
+  targetLanguage_ = targetLanguage;
+  setBodyParameter(std::string("TargetLanguage"), targetLanguage);
 }
 

+ 21 - 25
alimt/src/model/GetImageTranslateTaskRequest.cc

@@ -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);
+}
+
+GetImageTranslateTaskRequest::~GetImageTranslateTaskRequest() {}
+
+std::string GetImageTranslateTaskRequest::getTaskId() const {
+  return taskId_;
 }
 
-void GetImageTranslateTaskRequest::setTaskId(const std::string& taskId)
-{
-	taskId_ = taskId;
-	setBodyParameter("TaskId", taskId);
+void GetImageTranslateTaskRequest::setTaskId(const std::string &taskId) {
+  taskId_ = taskId;
+  setBodyParameter(std::string("TaskId"), taskId);
 }
 

+ 41 - 53
alimt/src/model/GetTitleDiagnoseRequest.cc

@@ -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);
+}
+
+GetTitleDiagnoseRequest::~GetTitleDiagnoseRequest() {}
+
+std::string GetTitleDiagnoseRequest::getLanguage() const {
+  return language_;
 }
 
-void GetTitleDiagnoseRequest::setLanguage(const std::string& language)
-{
-	language_ = language;
-	setBodyParameter("Language", language);
+void GetTitleDiagnoseRequest::setLanguage(const std::string &language) {
+  language_ = language;
+  setBodyParameter(std::string("Language"), language);
 }
 
-std::string GetTitleDiagnoseRequest::getTitle()const
-{
-	return title_;
+std::string GetTitleDiagnoseRequest::getTitle() const {
+  return title_;
 }
 
-void GetTitleDiagnoseRequest::setTitle(const std::string& title)
-{
-	title_ = title;
-	setBodyParameter("Title", title);
+void GetTitleDiagnoseRequest::setTitle(const std::string &title) {
+  title_ = title;
+  setBodyParameter(std::string("Title"), title);
 }
 
-std::string GetTitleDiagnoseRequest::getPlatform()const
-{
-	return platform_;
+std::string GetTitleDiagnoseRequest::getPlatform() const {
+  return platform_;
 }
 
-void GetTitleDiagnoseRequest::setPlatform(const std::string& platform)
-{
-	platform_ = platform;
-	setBodyParameter("Platform", platform);
+void GetTitleDiagnoseRequest::setPlatform(const std::string &platform) {
+  platform_ = platform;
+  setBodyParameter(std::string("Platform"), platform);
 }
 
-std::string GetTitleDiagnoseRequest::getExtra()const
-{
-	return extra_;
+std::string GetTitleDiagnoseRequest::getExtra() const {
+  return extra_;
 }
 
-void GetTitleDiagnoseRequest::setExtra(const std::string& extra)
-{
-	extra_ = extra;
-	setBodyParameter("Extra", extra);
+void GetTitleDiagnoseRequest::setExtra(const std::string &extra) {
+  extra_ = extra;
+  setBodyParameter(std::string("Extra"), extra);
 }
 
-std::string GetTitleDiagnoseRequest::getCategoryId()const
-{
-	return categoryId_;
+std::string GetTitleDiagnoseRequest::getCategoryId() const {
+  return categoryId_;
 }
 
-void GetTitleDiagnoseRequest::setCategoryId(const std::string& categoryId)
-{
-	categoryId_ = categoryId;
-	setBodyParameter("CategoryId", categoryId);
+void GetTitleDiagnoseRequest::setCategoryId(const std::string &categoryId) {
+  categoryId_ = categoryId;
+  setBodyParameter(std::string("CategoryId"), categoryId);
 }
 

+ 12 - 12
alimt/src/model/GetTitleDiagnoseResult.cc

@@ -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["DuplicateWords"].isNull())
+		data_.duplicateWords = dataNode["DuplicateWords"].asString();
 	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["WordCount"].isNull())
+		data_.wordCount = dataNode["WordCount"].asString();
+	if(!dataNode["LanguageQualityScore"].isNull())
+		data_.languageQualityScore = dataNode["LanguageQualityScore"].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["OverLengthLimit"].isNull())
+		data_.overLengthLimit = dataNode["OverLengthLimit"].asString();
 	if(!dataNode["DisableWords"].isNull())
 		data_.disableWords = dataNode["DisableWords"].asString();
-	if(!dataNode["WordCount"].isNull())
-		data_.wordCount = dataNode["WordCount"].asString();
+	if(!dataNode["NoFirstUppercaseList"].isNull())
+		data_.noFirstUppercaseList = dataNode["NoFirstUppercaseList"].asString();
 	if(!dataNode["TotalScore"].isNull())
 		data_.totalScore = dataNode["TotalScore"].asString();
-	if(!dataNode["LanguageQualityScore"].isNull())
-		data_.languageQualityScore = dataNode["LanguageQualityScore"].asString();
+	if(!dataNode["WordSpelledCorrectError"].isNull())
+		data_.wordSpelledCorrectError = dataNode["WordSpelledCorrectError"].asString();
 	if(!value["Code"].isNull())
 		code_ = std::stoi(value["Code"].asString());
 	if(!value["Message"].isNull())

+ 51 - 67
alimt/src/model/GetTitleGenerateRequest.cc

@@ -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);
+}
+
+GetTitleGenerateRequest::~GetTitleGenerateRequest() {}
+
+std::string GetTitleGenerateRequest::getLanguage() const {
+  return language_;
 }
 
-void GetTitleGenerateRequest::setLanguage(const std::string& language)
-{
-	language_ = language;
-	setBodyParameter("Language", language);
+void GetTitleGenerateRequest::setLanguage(const std::string &language) {
+  language_ = language;
+  setBodyParameter(std::string("Language"), language);
 }
 
-std::string GetTitleGenerateRequest::getTitle()const
-{
-	return title_;
+std::string GetTitleGenerateRequest::getTitle() const {
+  return title_;
 }
 
-void GetTitleGenerateRequest::setTitle(const std::string& title)
-{
-	title_ = title;
-	setBodyParameter("Title", title);
+void GetTitleGenerateRequest::setTitle(const std::string &title) {
+  title_ = title;
+  setBodyParameter(std::string("Title"), title);
 }
 
-std::string GetTitleGenerateRequest::getPlatform()const
-{
-	return platform_;
+std::string GetTitleGenerateRequest::getPlatform() const {
+  return platform_;
 }
 
-void GetTitleGenerateRequest::setPlatform(const std::string& platform)
-{
-	platform_ = platform;
-	setBodyParameter("Platform", platform);
+void GetTitleGenerateRequest::setPlatform(const std::string &platform) {
+  platform_ = platform;
+  setBodyParameter(std::string("Platform"), platform);
 }
 
-std::string GetTitleGenerateRequest::getExtra()const
-{
-	return extra_;
+std::string GetTitleGenerateRequest::getExtra() const {
+  return extra_;
 }
 
-void GetTitleGenerateRequest::setExtra(const std::string& extra)
-{
-	extra_ = extra;
-	setBodyParameter("Extra", extra);
+void GetTitleGenerateRequest::setExtra(const std::string &extra) {
+  extra_ = extra;
+  setBodyParameter(std::string("Extra"), extra);
 }
 
-std::string GetTitleGenerateRequest::getAttributes()const
-{
-	return attributes_;
+std::string GetTitleGenerateRequest::getAttributes() const {
+  return attributes_;
 }
 
-void GetTitleGenerateRequest::setAttributes(const std::string& attributes)
-{
-	attributes_ = attributes;
-	setBodyParameter("Attributes", attributes);
+void GetTitleGenerateRequest::setAttributes(const std::string &attributes) {
+  attributes_ = attributes;
+  setBodyParameter(std::string("Attributes"), attributes);
 }
 
-std::string GetTitleGenerateRequest::getHotWords()const
-{
-	return hotWords_;
+std::string GetTitleGenerateRequest::getHotWords() const {
+  return hotWords_;
 }
 
-void GetTitleGenerateRequest::setHotWords(const std::string& hotWords)
-{
-	hotWords_ = hotWords;
-	setBodyParameter("HotWords", hotWords);
+void GetTitleGenerateRequest::setHotWords(const std::string &hotWords) {
+  hotWords_ = hotWords;
+  setBodyParameter(std::string("HotWords"), hotWords);
 }
 
-std::string GetTitleGenerateRequest::getCategoryId()const
-{
-	return categoryId_;
+std::string GetTitleGenerateRequest::getCategoryId() const {
+  return categoryId_;
 }
 
-void GetTitleGenerateRequest::setCategoryId(const std::string& categoryId)
-{
-	categoryId_ = categoryId;
-	setBodyParameter("CategoryId", categoryId);
+void GetTitleGenerateRequest::setCategoryId(const std::string &categoryId) {
+  categoryId_ = categoryId;
+  setBodyParameter(std::string("CategoryId"), categoryId);
 }
 

+ 41 - 53
alimt/src/model/GetTitleIntelligenceRequest.cc

@@ -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);
+}
+
+GetTitleIntelligenceRequest::~GetTitleIntelligenceRequest() {}
+
+long GetTitleIntelligenceRequest::getCatLevelThreeId() const {
+  return catLevelThreeId_;
 }
 
-void GetTitleIntelligenceRequest::setCatLevelThreeId(long catLevelThreeId)
-{
-	catLevelThreeId_ = catLevelThreeId;
-	setBodyParameter("CatLevelThreeId", std::to_string(catLevelThreeId));
+void GetTitleIntelligenceRequest::setCatLevelThreeId(long catLevelThreeId) {
+  catLevelThreeId_ = catLevelThreeId;
+  setBodyParameter(std::string("CatLevelThreeId"), std::to_string(catLevelThreeId));
 }
 
-long GetTitleIntelligenceRequest::getCatLevelTwoId()const
-{
-	return catLevelTwoId_;
+long GetTitleIntelligenceRequest::getCatLevelTwoId() const {
+  return catLevelTwoId_;
 }
 
-void GetTitleIntelligenceRequest::setCatLevelTwoId(long catLevelTwoId)
-{
-	catLevelTwoId_ = catLevelTwoId;
-	setBodyParameter("CatLevelTwoId", std::to_string(catLevelTwoId));
+void GetTitleIntelligenceRequest::setCatLevelTwoId(long catLevelTwoId) {
+  catLevelTwoId_ = catLevelTwoId;
+  setBodyParameter(std::string("CatLevelTwoId"), std::to_string(catLevelTwoId));
 }
 
-std::string GetTitleIntelligenceRequest::getKeywords()const
-{
-	return keywords_;
+std::string GetTitleIntelligenceRequest::getKeywords() const {
+  return keywords_;
 }
 
-void GetTitleIntelligenceRequest::setKeywords(const std::string& keywords)
-{
-	keywords_ = keywords;
-	setBodyParameter("Keywords", keywords);
+void GetTitleIntelligenceRequest::setKeywords(const std::string &keywords) {
+  keywords_ = keywords;
+  setBodyParameter(std::string("Keywords"), keywords);
 }
 
-std::string GetTitleIntelligenceRequest::getPlatform()const
-{
-	return platform_;
+std::string GetTitleIntelligenceRequest::getPlatform() const {
+  return platform_;
 }
 
-void GetTitleIntelligenceRequest::setPlatform(const std::string& platform)
-{
-	platform_ = platform;
-	setBodyParameter("Platform", platform);
+void GetTitleIntelligenceRequest::setPlatform(const std::string &platform) {
+  platform_ = platform;
+  setBodyParameter(std::string("Platform"), platform);
 }
 
-std::string GetTitleIntelligenceRequest::getExtra()const
-{
-	return extra_;
+std::string GetTitleIntelligenceRequest::getExtra() const {
+  return extra_;
 }
 
-void GetTitleIntelligenceRequest::setExtra(const std::string& extra)
-{
-	extra_ = extra;
-	setBodyParameter("Extra", extra);
+void GetTitleIntelligenceRequest::setExtra(const std::string &extra) {
+  extra_ = extra;
+  setBodyParameter(std::string("Extra"), extra);
 }
 

+ 63 - 0
alimt/src/model/GetTranslateReportRequest.cc

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

+ 65 - 0
alimt/src/model/GetTranslateReportResult.cc

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

+ 27 - 0
alimt/src/model/GetUserRequest.cc

@@ -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() {}
+

+ 65 - 0
alimt/src/model/GetUserResult.cc

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

+ 26 - 32
alimt/src/model/OpenAlimtServiceRequest.cc

@@ -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);
+}
+
+OpenAlimtServiceRequest::~OpenAlimtServiceRequest() {}
+
+long OpenAlimtServiceRequest::getOwnerId() const {
+  return ownerId_;
 }
 
-void OpenAlimtServiceRequest::setOwnerId(long ownerId)
-{
-	ownerId_ = ownerId;
-	setParameter("OwnerId", std::to_string(ownerId));
+void OpenAlimtServiceRequest::setOwnerId(long ownerId) {
+  ownerId_ = ownerId;
+  setParameter(std::string("OwnerId"), std::to_string(ownerId));
 }
 
-std::string OpenAlimtServiceRequest::getType()const
-{
-	return type_;
+std::string OpenAlimtServiceRequest::getType() const {
+  return type_;
 }
 
-void OpenAlimtServiceRequest::setType(const std::string& type)
-{
-	type_ = type;
-	setParameter("Type", type);
+void OpenAlimtServiceRequest::setType(const std::string &type) {
+  type_ = type;
+  setParameter(std::string("Type"), type);
 }
 

+ 50 - 53
alimt/src/model/TranslateCertificateRequest.cc

@@ -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);
+}
+
+TranslateCertificateRequest::~TranslateCertificateRequest() {}
+
+std::string TranslateCertificateRequest::getExt() const {
+  return ext_;
+}
+
+void TranslateCertificateRequest::setExt(const std::string &ext) {
+  ext_ = ext;
+  setBodyParameter(std::string("Ext"), ext);
+}
+
+std::string TranslateCertificateRequest::getSourceLanguage() const {
+  return sourceLanguage_;
 }
 
-void TranslateCertificateRequest::setSourceLanguage(const std::string& sourceLanguage)
-{
-	sourceLanguage_ = sourceLanguage;
-	setBodyParameter("SourceLanguage", sourceLanguage);
+void TranslateCertificateRequest::setSourceLanguage(const std::string &sourceLanguage) {
+  sourceLanguage_ = sourceLanguage;
+  setBodyParameter(std::string("SourceLanguage"), sourceLanguage);
 }
 
-std::string TranslateCertificateRequest::getCertificateType()const
-{
-	return certificateType_;
+std::string TranslateCertificateRequest::getCertificateType() const {
+  return certificateType_;
 }
 
-void TranslateCertificateRequest::setCertificateType(const std::string& certificateType)
-{
-	certificateType_ = certificateType;
-	setBodyParameter("CertificateType", certificateType);
+void TranslateCertificateRequest::setCertificateType(const std::string &certificateType) {
+  certificateType_ = certificateType;
+  setBodyParameter(std::string("CertificateType"), certificateType);
 }
 
-std::string TranslateCertificateRequest::getResultType()const
-{
-	return resultType_;
+std::string TranslateCertificateRequest::getResultType() const {
+  return resultType_;
 }
 
-void TranslateCertificateRequest::setResultType(const std::string& resultType)
-{
-	resultType_ = resultType;
-	setBodyParameter("ResultType", resultType);
+void TranslateCertificateRequest::setResultType(const std::string &resultType) {
+  resultType_ = resultType;
+  setBodyParameter(std::string("ResultType"), resultType);
 }
 
-std::string TranslateCertificateRequest::getImageUrl()const
-{
-	return imageUrl_;
+std::string TranslateCertificateRequest::getImageUrl() const {
+  return imageUrl_;
 }
 
-void TranslateCertificateRequest::setImageUrl(const std::string& imageUrl)
-{
-	imageUrl_ = imageUrl;
-	setBodyParameter("ImageUrl", imageUrl);
+void TranslateCertificateRequest::setImageUrl(const std::string &imageUrl) {
+  imageUrl_ = imageUrl;
+  setBodyParameter(std::string("ImageUrl"), imageUrl);
 }
 
-std::string TranslateCertificateRequest::getTargetLanguage()const
-{
-	return targetLanguage_;
+std::string TranslateCertificateRequest::getTargetLanguage() const {
+  return targetLanguage_;
 }
 
-void TranslateCertificateRequest::setTargetLanguage(const std::string& targetLanguage)
-{
-	targetLanguage_ = targetLanguage;
-	setBodyParameter("TargetLanguage", targetLanguage);
+void TranslateCertificateRequest::setTargetLanguage(const std::string &targetLanguage) {
+  targetLanguage_ = targetLanguage;
+  setBodyParameter(std::string("TargetLanguage"), targetLanguage);
 }
 

+ 2 - 2
alimt/src/model/TranslateCertificateResult.cc

@@ -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);
 	}
 

+ 41 - 53
alimt/src/model/TranslateECommerceRequest.cc

@@ -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);
+}
+
+TranslateECommerceRequest::~TranslateECommerceRequest() {}
+
+std::string TranslateECommerceRequest::getSourceLanguage() const {
+  return sourceLanguage_;
 }
 
-void TranslateECommerceRequest::setSourceLanguage(const std::string& sourceLanguage)
-{
-	sourceLanguage_ = sourceLanguage;
-	setBodyParameter("SourceLanguage", sourceLanguage);
+void TranslateECommerceRequest::setSourceLanguage(const std::string &sourceLanguage) {
+  sourceLanguage_ = sourceLanguage;
+  setBodyParameter(std::string("SourceLanguage"), sourceLanguage);
 }
 
-std::string TranslateECommerceRequest::getSourceText()const
-{
-	return sourceText_;
+std::string TranslateECommerceRequest::getSourceText() const {
+  return sourceText_;
 }
 
-void TranslateECommerceRequest::setSourceText(const std::string& sourceText)
-{
-	sourceText_ = sourceText;
-	setBodyParameter("SourceText", sourceText);
+void TranslateECommerceRequest::setSourceText(const std::string &sourceText) {
+  sourceText_ = sourceText;
+  setBodyParameter(std::string("SourceText"), sourceText);
 }
 
-std::string TranslateECommerceRequest::getFormatType()const
-{
-	return formatType_;
+std::string TranslateECommerceRequest::getFormatType() const {
+  return formatType_;
 }
 
-void TranslateECommerceRequest::setFormatType(const std::string& formatType)
-{
-	formatType_ = formatType;
-	setBodyParameter("FormatType", formatType);
+void TranslateECommerceRequest::setFormatType(const std::string &formatType) {
+  formatType_ = formatType;
+  setBodyParameter(std::string("FormatType"), formatType);
 }
 
-std::string TranslateECommerceRequest::getScene()const
-{
-	return scene_;
+std::string TranslateECommerceRequest::getScene() const {
+  return scene_;
 }
 
-void TranslateECommerceRequest::setScene(const std::string& scene)
-{
-	scene_ = scene;
-	setBodyParameter("Scene", scene);
+void TranslateECommerceRequest::setScene(const std::string &scene) {
+  scene_ = scene;
+  setBodyParameter(std::string("Scene"), scene);
 }
 
-std::string TranslateECommerceRequest::getTargetLanguage()const
-{
-	return targetLanguage_;
+std::string TranslateECommerceRequest::getTargetLanguage() const {
+  return targetLanguage_;
 }
 
-void TranslateECommerceRequest::setTargetLanguage(const std::string& targetLanguage)
-{
-	targetLanguage_ = targetLanguage;
-	setBodyParameter("TargetLanguage", targetLanguage);
+void TranslateECommerceRequest::setTargetLanguage(const std::string &targetLanguage) {
+  targetLanguage_ = targetLanguage;
+  setBodyParameter(std::string("TargetLanguage"), targetLanguage);
 }
 

+ 41 - 53
alimt/src/model/TranslateGeneralRequest.cc

@@ -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);
+}
+
+TranslateGeneralRequest::~TranslateGeneralRequest() {}
+
+std::string TranslateGeneralRequest::getSourceLanguage() const {
+  return sourceLanguage_;
 }
 
-void TranslateGeneralRequest::setSourceLanguage(const std::string& sourceLanguage)
-{
-	sourceLanguage_ = sourceLanguage;
-	setBodyParameter("SourceLanguage", sourceLanguage);
+void TranslateGeneralRequest::setSourceLanguage(const std::string &sourceLanguage) {
+  sourceLanguage_ = sourceLanguage;
+  setBodyParameter(std::string("SourceLanguage"), sourceLanguage);
 }
 
-std::string TranslateGeneralRequest::getSourceText()const
-{
-	return sourceText_;
+std::string TranslateGeneralRequest::getSourceText() const {
+  return sourceText_;
 }
 
-void TranslateGeneralRequest::setSourceText(const std::string& sourceText)
-{
-	sourceText_ = sourceText;
-	setBodyParameter("SourceText", sourceText);
+void TranslateGeneralRequest::setSourceText(const std::string &sourceText) {
+  sourceText_ = sourceText;
+  setBodyParameter(std::string("SourceText"), sourceText);
 }
 
-std::string TranslateGeneralRequest::getFormatType()const
-{
-	return formatType_;
+std::string TranslateGeneralRequest::getFormatType() const {
+  return formatType_;
 }
 
-void TranslateGeneralRequest::setFormatType(const std::string& formatType)
-{
-	formatType_ = formatType;
-	setBodyParameter("FormatType", formatType);
+void TranslateGeneralRequest::setFormatType(const std::string &formatType) {
+  formatType_ = formatType;
+  setBodyParameter(std::string("FormatType"), formatType);
 }
 
-std::string TranslateGeneralRequest::getScene()const
-{
-	return scene_;
+std::string TranslateGeneralRequest::getScene() const {
+  return scene_;
 }
 
-void TranslateGeneralRequest::setScene(const std::string& scene)
-{
-	scene_ = scene;
-	setBodyParameter("Scene", scene);
+void TranslateGeneralRequest::setScene(const std::string &scene) {
+  scene_ = scene;
+  setBodyParameter(std::string("Scene"), scene);
 }
 
-std::string TranslateGeneralRequest::getTargetLanguage()const
-{
-	return targetLanguage_;
+std::string TranslateGeneralRequest::getTargetLanguage() const {
+  return targetLanguage_;
 }
 
-void TranslateGeneralRequest::setTargetLanguage(const std::string& targetLanguage)
-{
-	targetLanguage_ = targetLanguage;
-	setBodyParameter("TargetLanguage", targetLanguage);
+void TranslateGeneralRequest::setTargetLanguage(const std::string &targetLanguage) {
+  targetLanguage_ = targetLanguage;
+  setBodyParameter(std::string("TargetLanguage"), targetLanguage);
 }
 

+ 81 - 0
alimt/src/model/TranslateImageRequest.cc

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

+ 70 - 0
alimt/src/model/TranslateImageResult.cc

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

+ 41 - 53
alimt/src/model/TranslateRequest.cc

@@ -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);
+}
+
+TranslateRequest::~TranslateRequest() {}
+
+std::string TranslateRequest::getSourceLanguage() const {
+  return sourceLanguage_;
 }
 
-void TranslateRequest::setSourceLanguage(const std::string& sourceLanguage)
-{
-	sourceLanguage_ = sourceLanguage;
-	setBodyParameter("SourceLanguage", sourceLanguage);
+void TranslateRequest::setSourceLanguage(const std::string &sourceLanguage) {
+  sourceLanguage_ = sourceLanguage;
+  setBodyParameter(std::string("SourceLanguage"), sourceLanguage);
 }
 
-std::string TranslateRequest::getSourceText()const
-{
-	return sourceText_;
+std::string TranslateRequest::getSourceText() const {
+  return sourceText_;
 }
 
-void TranslateRequest::setSourceText(const std::string& sourceText)
-{
-	sourceText_ = sourceText;
-	setBodyParameter("SourceText", sourceText);
+void TranslateRequest::setSourceText(const std::string &sourceText) {
+  sourceText_ = sourceText;
+  setBodyParameter(std::string("SourceText"), sourceText);
 }
 
-std::string TranslateRequest::getFormatType()const
-{
-	return formatType_;
+std::string TranslateRequest::getFormatType() const {
+  return formatType_;
 }
 
-void TranslateRequest::setFormatType(const std::string& formatType)
-{
-	formatType_ = formatType;
-	setBodyParameter("FormatType", formatType);
+void TranslateRequest::setFormatType(const std::string &formatType) {
+  formatType_ = formatType;
+  setBodyParameter(std::string("FormatType"), formatType);
 }
 
-std::string TranslateRequest::getScene()const
-{
-	return scene_;
+std::string TranslateRequest::getScene() const {
+  return scene_;
 }
 
-void TranslateRequest::setScene(const std::string& scene)
-{
-	scene_ = scene;
-	setBodyParameter("Scene", scene);
+void TranslateRequest::setScene(const std::string &scene) {
+  scene_ = scene;
+  setBodyParameter(std::string("Scene"), scene);
 }
 
-std::string TranslateRequest::getTargetLanguage()const
-{
-	return targetLanguage_;
+std::string TranslateRequest::getTargetLanguage() const {
+  return targetLanguage_;
 }
 
-void TranslateRequest::setTargetLanguage(const std::string& targetLanguage)
-{
-	targetLanguage_ = targetLanguage;
-	setBodyParameter("TargetLanguage", targetLanguage);
+void TranslateRequest::setTargetLanguage(const std::string &targetLanguage) {
+  targetLanguage_ = targetLanguage;
+  setBodyParameter(std::string("TargetLanguage"), targetLanguage);
 }