CalcCACSRequest.cc 2.4 KB

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