DetectCovid19CadRequest.cc 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. #include <alibabacloud/imageprocess/model/DetectCovid19CadRequest.h>
  17. using AlibabaCloud::Imageprocess::Model::DetectCovid19CadRequest;
  18. DetectCovid19CadRequest::DetectCovid19CadRequest()
  19. : RpcServiceRequest("imageprocess", "2020-03-20", "DetectCovid19Cad") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. DetectCovid19CadRequest::~DetectCovid19CadRequest() {}
  23. std::string DetectCovid19CadRequest::getOrgName() const {
  24. return orgName_;
  25. }
  26. void DetectCovid19CadRequest::setOrgName(const std::string &orgName) {
  27. orgName_ = orgName;
  28. setBodyParameter(std::string("OrgName"), orgName);
  29. }
  30. std::string DetectCovid19CadRequest::getDataFormat() const {
  31. return dataFormat_;
  32. }
  33. void DetectCovid19CadRequest::setDataFormat(const std::string &dataFormat) {
  34. dataFormat_ = dataFormat;
  35. setBodyParameter(std::string("DataFormat"), dataFormat);
  36. }
  37. std::vector<DetectCovid19CadRequest::URLList> DetectCovid19CadRequest::getURLList() const {
  38. return uRLList_;
  39. }
  40. void DetectCovid19CadRequest::setURLList(const std::vector<DetectCovid19CadRequest::URLList> &uRLList) {
  41. uRLList_ = uRLList;
  42. for(int dep1 = 0; dep1 != uRLList.size(); dep1++) {
  43. auto uRLListObj = uRLList.at(dep1);
  44. std::string uRLListObjStr = std::string("URLList") + "." + std::to_string(dep1 + 1);
  45. setBodyParameter(uRLListObjStr + ".URL", uRLListObj.uRL);
  46. }
  47. }
  48. std::string DetectCovid19CadRequest::getOrgId() const {
  49. return orgId_;
  50. }
  51. void DetectCovid19CadRequest::setOrgId(const std::string &orgId) {
  52. orgId_ = orgId;
  53. setBodyParameter(std::string("OrgId"), orgId);
  54. }
  55. bool DetectCovid19CadRequest::getAsync() const {
  56. return async_;
  57. }
  58. void DetectCovid19CadRequest::setAsync(bool async) {
  59. async_ = async;
  60. setBodyParameter(std::string("Async"), async ? "true" : "false");
  61. }