DetectIPCPedestrianOptimizedRequest.cc 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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/facebody/model/DetectIPCPedestrianOptimizedRequest.h>
  17. using AlibabaCloud::Facebody::Model::DetectIPCPedestrianOptimizedRequest;
  18. DetectIPCPedestrianOptimizedRequest::DetectIPCPedestrianOptimizedRequest() :
  19. RoaServiceRequest("facebody", "2020-09-10")
  20. {
  21. setResourcePath("/viapi/k8s/facebody/detect-ipc-pedestrian-optimized");
  22. setMethod(HttpRequest::Method::Post);
  23. }
  24. DetectIPCPedestrianOptimizedRequest::~DetectIPCPedestrianOptimizedRequest()
  25. {}
  26. std::string DetectIPCPedestrianOptimizedRequest::getImageData()const
  27. {
  28. return imageData_;
  29. }
  30. void DetectIPCPedestrianOptimizedRequest::setImageData(const std::string& imageData)
  31. {
  32. imageData_ = imageData;
  33. setBodyParameter("ImageData", imageData);
  34. }
  35. long DetectIPCPedestrianOptimizedRequest::getWidth()const
  36. {
  37. return width_;
  38. }
  39. void DetectIPCPedestrianOptimizedRequest::setWidth(long width)
  40. {
  41. width_ = width;
  42. setBodyParameter("Width", std::to_string(width));
  43. }
  44. long DetectIPCPedestrianOptimizedRequest::getHeight()const
  45. {
  46. return height_;
  47. }
  48. void DetectIPCPedestrianOptimizedRequest::setHeight(long height)
  49. {
  50. height_ = height;
  51. setBodyParameter("Height", std::to_string(height));
  52. }