GenerateSuperResolutionImageRequest.cc 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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/imageenhan/model/GenerateSuperResolutionImageRequest.h>
  17. using AlibabaCloud::Imageenhan::Model::GenerateSuperResolutionImageRequest;
  18. GenerateSuperResolutionImageRequest::GenerateSuperResolutionImageRequest()
  19. : RpcServiceRequest("imageenhan", "2019-09-30", "GenerateSuperResolutionImage") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. GenerateSuperResolutionImageRequest::~GenerateSuperResolutionImageRequest() {}
  23. int GenerateSuperResolutionImageRequest::getScale() const {
  24. return scale_;
  25. }
  26. void GenerateSuperResolutionImageRequest::setScale(int scale) {
  27. scale_ = scale;
  28. setBodyParameter(std::string("Scale"), std::to_string(scale));
  29. }
  30. std::string GenerateSuperResolutionImageRequest::getUserData() const {
  31. return userData_;
  32. }
  33. void GenerateSuperResolutionImageRequest::setUserData(const std::string &userData) {
  34. userData_ = userData;
  35. setBodyParameter(std::string("UserData"), userData);
  36. }
  37. std::string GenerateSuperResolutionImageRequest::getOutputFormat() const {
  38. return outputFormat_;
  39. }
  40. void GenerateSuperResolutionImageRequest::setOutputFormat(const std::string &outputFormat) {
  41. outputFormat_ = outputFormat;
  42. setBodyParameter(std::string("OutputFormat"), outputFormat);
  43. }
  44. bool GenerateSuperResolutionImageRequest::getAsync() const {
  45. return async_;
  46. }
  47. void GenerateSuperResolutionImageRequest::setAsync(bool async) {
  48. async_ = async;
  49. setBodyParameter(std::string("Async"), async ? "true" : "false");
  50. }
  51. std::string GenerateSuperResolutionImageRequest::getImageUrl() const {
  52. return imageUrl_;
  53. }
  54. void GenerateSuperResolutionImageRequest::setImageUrl(const std::string &imageUrl) {
  55. imageUrl_ = imageUrl;
  56. setBodyParameter(std::string("ImageUrl"), imageUrl);
  57. }
  58. int GenerateSuperResolutionImageRequest::getOutputQuality() const {
  59. return outputQuality_;
  60. }
  61. void GenerateSuperResolutionImageRequest::setOutputQuality(int outputQuality) {
  62. outputQuality_ = outputQuality;
  63. setBodyParameter(std::string("OutputQuality"), std::to_string(outputQuality));
  64. }