DetectLungNoduleRequest.cc 2.5 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/DetectLungNoduleRequest.h>
  17. using AlibabaCloud::Imageprocess::Model::DetectLungNoduleRequest;
  18. DetectLungNoduleRequest::DetectLungNoduleRequest() :
  19. RpcServiceRequest("imageprocess", "2020-03-20", "DetectLungNodule")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. DetectLungNoduleRequest::~DetectLungNoduleRequest()
  24. {}
  25. float DetectLungNoduleRequest::getThreshold()const
  26. {
  27. return threshold_;
  28. }
  29. void DetectLungNoduleRequest::setThreshold(float threshold)
  30. {
  31. threshold_ = threshold;
  32. setBodyParameter("Threshold", std::to_string(threshold));
  33. }
  34. std::string DetectLungNoduleRequest::getOrgName()const
  35. {
  36. return orgName_;
  37. }
  38. void DetectLungNoduleRequest::setOrgName(const std::string& orgName)
  39. {
  40. orgName_ = orgName;
  41. setBodyParameter("OrgName", orgName);
  42. }
  43. std::string DetectLungNoduleRequest::getDataFormat()const
  44. {
  45. return dataFormat_;
  46. }
  47. void DetectLungNoduleRequest::setDataFormat(const std::string& dataFormat)
  48. {
  49. dataFormat_ = dataFormat;
  50. setBodyParameter("DataFormat", dataFormat);
  51. }
  52. std::vector<DetectLungNoduleRequest::URLList> DetectLungNoduleRequest::getURLList()const
  53. {
  54. return uRLList_;
  55. }
  56. void DetectLungNoduleRequest::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 DetectLungNoduleRequest::getOrgId()const
  66. {
  67. return orgId_;
  68. }
  69. void DetectLungNoduleRequest::setOrgId(const std::string& orgId)
  70. {
  71. orgId_ = orgId;
  72. setBodyParameter("OrgId", orgId);
  73. }
  74. bool DetectLungNoduleRequest::getAsync()const
  75. {
  76. return async_;
  77. }
  78. void DetectLungNoduleRequest::setAsync(bool async)
  79. {
  80. async_ = async;
  81. setBodyParameter("Async", async ? "true" : "false");
  82. }