1 /*
2 * Copyright 2009-2017 Alibaba Cloud All rights reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 #include <alibabacloud/ocr/model/RecognizeTableRequest.h>
18
19 using AlibabaCloud::Ocr::Model::RecognizeTableRequest;
20
RecognizeTableRequest()21 RecognizeTableRequest::RecognizeTableRequest() :
22 RpcServiceRequest("ocr", "2019-12-30", "RecognizeTable")
23 {
24 setMethod(HttpRequest::Method::Post);
25 }
26
~RecognizeTableRequest()27 RecognizeTableRequest::~RecognizeTableRequest()
28 {}
29
getImageType() const30 int RecognizeTableRequest::getImageType()const
31 {
32 return imageType_;
33 }
34
setImageType(int imageType)35 void RecognizeTableRequest::setImageType(int imageType)
36 {
37 imageType_ = imageType;
38 setBodyParameter("ImageType", std::to_string(imageType));
39 }
40
getUseFinanceModel() const41 bool RecognizeTableRequest::getUseFinanceModel()const
42 {
43 return useFinanceModel_;
44 }
45
setUseFinanceModel(bool useFinanceModel)46 void RecognizeTableRequest::setUseFinanceModel(bool useFinanceModel)
47 {
48 useFinanceModel_ = useFinanceModel;
49 setBodyParameter("UseFinanceModel", useFinanceModel ? "true" : "false");
50 }
51
getSkipDetection() const52 bool RecognizeTableRequest::getSkipDetection()const
53 {
54 return skipDetection_;
55 }
56
setSkipDetection(bool skipDetection)57 void RecognizeTableRequest::setSkipDetection(bool skipDetection)
58 {
59 skipDetection_ = skipDetection;
60 setBodyParameter("SkipDetection", skipDetection ? "true" : "false");
61 }
62
getImageURL() const63 std::string RecognizeTableRequest::getImageURL()const
64 {
65 return imageURL_;
66 }
67
setImageURL(const std::string & imageURL)68 void RecognizeTableRequest::setImageURL(const std::string& imageURL)
69 {
70 imageURL_ = imageURL;
71 setBodyParameter("ImageURL", imageURL);
72 }
73
getOutputFormat() const74 std::string RecognizeTableRequest::getOutputFormat()const
75 {
76 return outputFormat_;
77 }
78
setOutputFormat(const std::string & outputFormat)79 void RecognizeTableRequest::setOutputFormat(const std::string& outputFormat)
80 {
81 outputFormat_ = outputFormat;
82 setBodyParameter("OutputFormat", outputFormat);
83 }
84
getAssureDirection() const85 bool RecognizeTableRequest::getAssureDirection()const
86 {
87 return assureDirection_;
88 }
89
setAssureDirection(bool assureDirection)90 void RecognizeTableRequest::setAssureDirection(bool assureDirection)
91 {
92 assureDirection_ = assureDirection;
93 setBodyParameter("AssureDirection", assureDirection ? "true" : "false");
94 }
95
getHasLine() const96 bool RecognizeTableRequest::getHasLine()const
97 {
98 return hasLine_;
99 }
100
setHasLine(bool hasLine)101 void RecognizeTableRequest::setHasLine(bool hasLine)
102 {
103 hasLine_ = hasLine;
104 setBodyParameter("HasLine", hasLine ? "true" : "false");
105 }
106
107