ConvertHdrVideoRequest.cc 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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/videoenhan/model/ConvertHdrVideoRequest.h>
  17. using AlibabaCloud::Videoenhan::Model::ConvertHdrVideoRequest;
  18. ConvertHdrVideoRequest::ConvertHdrVideoRequest()
  19. : RpcServiceRequest("videoenhan", "2020-03-20", "ConvertHdrVideo") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. ConvertHdrVideoRequest::~ConvertHdrVideoRequest() {}
  23. std::string ConvertHdrVideoRequest::getHDRFormat() const {
  24. return hDRFormat_;
  25. }
  26. void ConvertHdrVideoRequest::setHDRFormat(const std::string &hDRFormat) {
  27. hDRFormat_ = hDRFormat;
  28. setBodyParameter(std::string("HDRFormat"), hDRFormat);
  29. }
  30. int ConvertHdrVideoRequest::getMaxIlluminance() const {
  31. return maxIlluminance_;
  32. }
  33. void ConvertHdrVideoRequest::setMaxIlluminance(int maxIlluminance) {
  34. maxIlluminance_ = maxIlluminance;
  35. setBodyParameter(std::string("MaxIlluminance"), std::to_string(maxIlluminance));
  36. }
  37. int ConvertHdrVideoRequest::getBitrate() const {
  38. return bitrate_;
  39. }
  40. void ConvertHdrVideoRequest::setBitrate(int bitrate) {
  41. bitrate_ = bitrate;
  42. setBodyParameter(std::string("Bitrate"), std::to_string(bitrate));
  43. }
  44. bool ConvertHdrVideoRequest::getAsync() const {
  45. return async_;
  46. }
  47. void ConvertHdrVideoRequest::setAsync(bool async) {
  48. async_ = async;
  49. setBodyParameter(std::string("Async"), async ? "true" : "false");
  50. }
  51. std::string ConvertHdrVideoRequest::getVideoURL() const {
  52. return videoURL_;
  53. }
  54. void ConvertHdrVideoRequest::setVideoURL(const std::string &videoURL) {
  55. videoURL_ = videoURL;
  56. setBodyParameter(std::string("VideoURL"), videoURL);
  57. }