DetectVideoIPCObjectRequest.cc 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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/objectdet/model/DetectVideoIPCObjectRequest.h>
  17. using AlibabaCloud::Objectdet::Model::DetectVideoIPCObjectRequest;
  18. DetectVideoIPCObjectRequest::DetectVideoIPCObjectRequest()
  19. : RpcServiceRequest("objectdet", "2019-12-30", "DetectVideoIPCObject") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. DetectVideoIPCObjectRequest::~DetectVideoIPCObjectRequest() {}
  23. bool DetectVideoIPCObjectRequest::getFormatResultToJson() const {
  24. return formatResultToJson_;
  25. }
  26. void DetectVideoIPCObjectRequest::setFormatResultToJson(bool formatResultToJson) {
  27. formatResultToJson_ = formatResultToJson;
  28. setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false");
  29. }
  30. long DetectVideoIPCObjectRequest::getStartTimestamp() const {
  31. return startTimestamp_;
  32. }
  33. void DetectVideoIPCObjectRequest::setStartTimestamp(long startTimestamp) {
  34. startTimestamp_ = startTimestamp;
  35. setBodyParameter(std::string("StartTimestamp"), std::to_string(startTimestamp));
  36. }
  37. std::string DetectVideoIPCObjectRequest::getOssFile() const {
  38. return ossFile_;
  39. }
  40. void DetectVideoIPCObjectRequest::setOssFile(const std::string &ossFile) {
  41. ossFile_ = ossFile;
  42. setParameter(std::string("OssFile"), ossFile);
  43. }
  44. bool DetectVideoIPCObjectRequest::getCallbackOnlyHasObject() const {
  45. return callbackOnlyHasObject_;
  46. }
  47. void DetectVideoIPCObjectRequest::setCallbackOnlyHasObject(bool callbackOnlyHasObject) {
  48. callbackOnlyHasObject_ = callbackOnlyHasObject;
  49. setBodyParameter(std::string("CallbackOnlyHasObject"), callbackOnlyHasObject ? "true" : "false");
  50. }
  51. std::string DetectVideoIPCObjectRequest::getRequestProxyBy() const {
  52. return requestProxyBy_;
  53. }
  54. void DetectVideoIPCObjectRequest::setRequestProxyBy(const std::string &requestProxyBy) {
  55. requestProxyBy_ = requestProxyBy;
  56. setParameter(std::string("RequestProxyBy"), requestProxyBy);
  57. }
  58. bool DetectVideoIPCObjectRequest::getAsync() const {
  59. return async_;
  60. }
  61. void DetectVideoIPCObjectRequest::setAsync(bool async) {
  62. async_ = async;
  63. setBodyParameter(std::string("Async"), async ? "true" : "false");
  64. }
  65. std::string DetectVideoIPCObjectRequest::getVideoURL() const {
  66. return videoURL_;
  67. }
  68. void DetectVideoIPCObjectRequest::setVideoURL(const std::string &videoURL) {
  69. videoURL_ = videoURL;
  70. setBodyParameter(std::string("VideoURL"), videoURL);
  71. }