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