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/TrimDocumentRequest.h>
18 
19 using AlibabaCloud::Ocr::Model::TrimDocumentRequest;
20 
TrimDocumentRequest()21 TrimDocumentRequest::TrimDocumentRequest() :
22 	RpcServiceRequest("ocr", "2019-12-30", "TrimDocument")
23 {
24 	setMethod(HttpRequest::Method::Post);
25 }
26 
~TrimDocumentRequest()27 TrimDocumentRequest::~TrimDocumentRequest()
28 {}
29 
getFileType() const30 std::string TrimDocumentRequest::getFileType()const
31 {
32 	return fileType_;
33 }
34 
setFileType(const std::string & fileType)35 void TrimDocumentRequest::setFileType(const std::string& fileType)
36 {
37 	fileType_ = fileType;
38 	setBodyParameter("FileType", fileType);
39 }
40 
getAsync() const41 bool TrimDocumentRequest::getAsync()const
42 {
43 	return async_;
44 }
45 
setAsync(bool async)46 void TrimDocumentRequest::setAsync(bool async)
47 {
48 	async_ = async;
49 	setBodyParameter("Async", async ? "true" : "false");
50 }
51 
getFileURL() const52 std::string TrimDocumentRequest::getFileURL()const
53 {
54 	return fileURL_;
55 }
56 
setFileURL(const std::string & fileURL)57 void TrimDocumentRequest::setFileURL(const std::string& fileURL)
58 {
59 	fileURL_ = fileURL;
60 	setBodyParameter("FileURL", fileURL);
61 }
62 
getOutputType() const63 std::string TrimDocumentRequest::getOutputType()const
64 {
65 	return outputType_;
66 }
67 
setOutputType(const std::string & outputType)68 void TrimDocumentRequest::setOutputType(const std::string& outputType)
69 {
70 	outputType_ = outputType;
71 	setBodyParameter("OutputType", outputType);
72 }
73 
74