| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- /*
- * 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_ANYTRANS_MODEL_BATCHTRANSLATEREQUEST_H_
- #define ALIBABACLOUD_ANYTRANS_MODEL_BATCHTRANSLATEREQUEST_H_
- #include <alibabacloud/anytrans/AnyTransExport.h>
- #include <alibabacloud/core/RoaServiceRequest.h>
- #include <string>
- #include <vector>
- #include <map>
- namespace AlibabaCloud {
- namespace AnyTrans {
- namespace Model {
- class ALIBABACLOUD_ANYTRANS_EXPORT BatchTranslateRequest : public RoaServiceRequest {
- public:
- struct Ext {
- std::string string;
- std::vector<std::string> sensitives;
- struct TerminologiesItem {
- std::string tgt;
- std::string src;
- };
- terminologiesItem terminologiesItem;
- std::vector<terminologiesItem> terminologies;
- struct TextTransform {
- bool toLower;
- bool toUpper;
- bool toTitle;
- };
- textTransform textTransform;
- struct ExamplesItem {
- std::string tgt;
- std::string src;
- };
- examplesItem examplesItem;
- std::vector<examplesItem> examples;
- struct Config {
- bool skipCsiCheck;
- };
- config config;
- std::string domainHint;
- };
- BatchTranslateRequest();
- ~BatchTranslateRequest();
- ext getExt() const;
- void setExt(const ext &ext);
- std::string getSourceLanguage() const;
- void setSourceLanguage(const std::string &sourceLanguage);
- std::string getFormat() const;
- void setFormat(const std::string &format);
- std::string getScene() const;
- void setScene(const std::string &scene);
- std::string getAppName() const;
- void setAppName(const std::string &appName);
- std::string getTargetLanguage() const;
- void setTargetLanguage(const std::string &targetLanguage);
- std::map<std::string, std::string> getText() const;
- void setText(const std::map<std::string, std::string> &text);
- std::string getWorkspaceId() const;
- void setWorkspaceId(const std::string &workspaceId);
- private:
- ext ext_;
- std::string sourceLanguage_;
- std::string format_;
- std::string scene_;
- std::string appName_;
- std::string targetLanguage_;
- std::map<std::string, std::string> text_;
- std::string workspaceId_;
- };
- } // namespace Model
- } // namespace AnyTrans
- } // namespace AlibabaCloud
- #endif // !ALIBABACLOUD_ANYTRANS_MODEL_BATCHTRANSLATEREQUEST_H_
|