ScreenECRequest.cc 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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/ScreenECRequest.h>
  17. using AlibabaCloud::Imageprocess::Model::ScreenECRequest;
  18. ScreenECRequest::ScreenECRequest()
  19. : RpcServiceRequest("imageprocess", "2020-03-20", "ScreenEC") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. ScreenECRequest::~ScreenECRequest() {}
  23. std::string ScreenECRequest::getDataSourceType() const {
  24. return dataSourceType_;
  25. }
  26. void ScreenECRequest::setDataSourceType(const std::string &dataSourceType) {
  27. dataSourceType_ = dataSourceType;
  28. setBodyParameter(std::string("DataSourceType"), dataSourceType);
  29. }
  30. std::vector<ScreenECRequest::URLList> ScreenECRequest::getURLList() const {
  31. return uRLList_;
  32. }
  33. void ScreenECRequest::setURLList(const std::vector<ScreenECRequest::URLList> &uRLList) {
  34. uRLList_ = uRLList;
  35. for(int dep1 = 0; dep1 != uRLList.size(); dep1++) {
  36. auto uRLListObj = uRLList.at(dep1);
  37. std::string uRLListObjStr = std::string("URLList") + "." + std::to_string(dep1 + 1);
  38. setBodyParameter(uRLListObjStr + ".URL", uRLListObj.uRL);
  39. }
  40. }
  41. bool ScreenECRequest::getAsync() const {
  42. return async_;
  43. }
  44. void ScreenECRequest::setAsync(bool async) {
  45. async_ = async;
  46. setBodyParameter(std::string("Async"), async ? "true" : "false");
  47. }