GenerateCosplayImageRequest.cc 2.0 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/aigen/model/GenerateCosplayImageRequest.h>
  17. using AlibabaCloud::Aigen::Model::GenerateCosplayImageRequest;
  18. GenerateCosplayImageRequest::GenerateCosplayImageRequest()
  19. : RpcServiceRequest("aigen", "2024-01-11", "GenerateCosplayImage") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. GenerateCosplayImageRequest::~GenerateCosplayImageRequest() {}
  23. std::string GenerateCosplayImageRequest::getTemplateImageUrl() const {
  24. return templateImageUrl_;
  25. }
  26. void GenerateCosplayImageRequest::setTemplateImageUrl(const std::string &templateImageUrl) {
  27. templateImageUrl_ = templateImageUrl;
  28. setBodyParameter(std::string("TemplateImageUrl"), templateImageUrl);
  29. }
  30. std::string GenerateCosplayImageRequest::getFaceImageUrl() const {
  31. return faceImageUrl_;
  32. }
  33. void GenerateCosplayImageRequest::setFaceImageUrl(const std::string &faceImageUrl) {
  34. faceImageUrl_ = faceImageUrl;
  35. setBodyParameter(std::string("FaceImageUrl"), faceImageUrl);
  36. }
  37. bool GenerateCosplayImageRequest::getAsync() const {
  38. return async_;
  39. }
  40. void GenerateCosplayImageRequest::setAsync(bool async) {
  41. async_ = async;
  42. setBodyParameter(std::string("Async"), async ? "true" : "false");
  43. }
  44. long GenerateCosplayImageRequest::getStyle() const {
  45. return style_;
  46. }
  47. void GenerateCosplayImageRequest::setStyle(long style) {
  48. style_ = style;
  49. setBodyParameter(std::string("Style"), std::to_string(style));
  50. }