GetTitleGenerateRequest.cc 2.6 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/alimt/model/GetTitleGenerateRequest.h>
  17. using AlibabaCloud::Alimt::Model::GetTitleGenerateRequest;
  18. GetTitleGenerateRequest::GetTitleGenerateRequest()
  19. : RpcServiceRequest("alimt", "2018-10-12", "GetTitleGenerate") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. GetTitleGenerateRequest::~GetTitleGenerateRequest() {}
  23. std::string GetTitleGenerateRequest::getLanguage() const {
  24. return language_;
  25. }
  26. void GetTitleGenerateRequest::setLanguage(const std::string &language) {
  27. language_ = language;
  28. setBodyParameter(std::string("Language"), language);
  29. }
  30. std::string GetTitleGenerateRequest::getTitle() const {
  31. return title_;
  32. }
  33. void GetTitleGenerateRequest::setTitle(const std::string &title) {
  34. title_ = title;
  35. setBodyParameter(std::string("Title"), title);
  36. }
  37. std::string GetTitleGenerateRequest::getPlatform() const {
  38. return platform_;
  39. }
  40. void GetTitleGenerateRequest::setPlatform(const std::string &platform) {
  41. platform_ = platform;
  42. setBodyParameter(std::string("Platform"), platform);
  43. }
  44. std::string GetTitleGenerateRequest::getExtra() const {
  45. return extra_;
  46. }
  47. void GetTitleGenerateRequest::setExtra(const std::string &extra) {
  48. extra_ = extra;
  49. setBodyParameter(std::string("Extra"), extra);
  50. }
  51. std::string GetTitleGenerateRequest::getAttributes() const {
  52. return attributes_;
  53. }
  54. void GetTitleGenerateRequest::setAttributes(const std::string &attributes) {
  55. attributes_ = attributes;
  56. setBodyParameter(std::string("Attributes"), attributes);
  57. }
  58. std::string GetTitleGenerateRequest::getHotWords() const {
  59. return hotWords_;
  60. }
  61. void GetTitleGenerateRequest::setHotWords(const std::string &hotWords) {
  62. hotWords_ = hotWords;
  63. setBodyParameter(std::string("HotWords"), hotWords);
  64. }
  65. std::string GetTitleGenerateRequest::getCategoryId() const {
  66. return categoryId_;
  67. }
  68. void GetTitleGenerateRequest::setCategoryId(const std::string &categoryId) {
  69. categoryId_ = categoryId;
  70. setBodyParameter(std::string("CategoryId"), categoryId);
  71. }