CalcBMDRequest.cc 2.5 KB

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