UpdateLiveAIProduceRulesRequest.cc 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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/live/model/UpdateLiveAIProduceRulesRequest.h>
  17. using AlibabaCloud::Live::Model::UpdateLiveAIProduceRulesRequest;
  18. UpdateLiveAIProduceRulesRequest::UpdateLiveAIProduceRulesRequest()
  19. : RpcServiceRequest("live", "2016-11-01", "UpdateLiveAIProduceRules") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. UpdateLiveAIProduceRulesRequest::~UpdateLiveAIProduceRulesRequest() {}
  23. std::string UpdateLiveAIProduceRulesRequest::getDescription() const {
  24. return description_;
  25. }
  26. void UpdateLiveAIProduceRulesRequest::setDescription(const std::string &description) {
  27. description_ = description;
  28. setParameter(std::string("Description"), description);
  29. }
  30. std::string UpdateLiveAIProduceRulesRequest::getSuffix() const {
  31. return suffix_;
  32. }
  33. void UpdateLiveAIProduceRulesRequest::setSuffix(const std::string &suffix) {
  34. suffix_ = suffix;
  35. setParameter(std::string("Suffix"), suffix);
  36. }
  37. std::string UpdateLiveAIProduceRulesRequest::getSubtitleName() const {
  38. return subtitleName_;
  39. }
  40. void UpdateLiveAIProduceRulesRequest::setSubtitleName(const std::string &subtitleName) {
  41. subtitleName_ = subtitleName;
  42. setParameter(std::string("SubtitleName"), subtitleName);
  43. }
  44. std::string UpdateLiveAIProduceRulesRequest::getRulesId() const {
  45. return rulesId_;
  46. }
  47. void UpdateLiveAIProduceRulesRequest::setRulesId(const std::string &rulesId) {
  48. rulesId_ = rulesId;
  49. setParameter(std::string("RulesId"), rulesId);
  50. }
  51. std::string UpdateLiveAIProduceRulesRequest::getApp() const {
  52. return app_;
  53. }
  54. void UpdateLiveAIProduceRulesRequest::setApp(const std::string &app) {
  55. app_ = app;
  56. setParameter(std::string("App"), app);
  57. }
  58. long UpdateLiveAIProduceRulesRequest::getOwnerId() const {
  59. return ownerId_;
  60. }
  61. void UpdateLiveAIProduceRulesRequest::setOwnerId(long ownerId) {
  62. ownerId_ = ownerId;
  63. setParameter(std::string("OwnerId"), std::to_string(ownerId));
  64. }
  65. bool UpdateLiveAIProduceRulesRequest::getIsLazy() const {
  66. return isLazy_;
  67. }
  68. void UpdateLiveAIProduceRulesRequest::setIsLazy(bool isLazy) {
  69. isLazy_ = isLazy;
  70. setParameter(std::string("IsLazy"), isLazy ? "true" : "false");
  71. }
  72. std::string UpdateLiveAIProduceRulesRequest::getStudioName() const {
  73. return studioName_;
  74. }
  75. void UpdateLiveAIProduceRulesRequest::setStudioName(const std::string &studioName) {
  76. studioName_ = studioName;
  77. setParameter(std::string("StudioName"), studioName);
  78. }
  79. std::string UpdateLiveAIProduceRulesRequest::getLiveTemplate() const {
  80. return liveTemplate_;
  81. }
  82. void UpdateLiveAIProduceRulesRequest::setLiveTemplate(const std::string &liveTemplate) {
  83. liveTemplate_ = liveTemplate;
  84. setParameter(std::string("LiveTemplate"), liveTemplate);
  85. }
  86. std::string UpdateLiveAIProduceRulesRequest::getDomain() const {
  87. return domain_;
  88. }
  89. void UpdateLiveAIProduceRulesRequest::setDomain(const std::string &domain) {
  90. domain_ = domain;
  91. setParameter(std::string("Domain"), domain);
  92. }
  93. bool UpdateLiveAIProduceRulesRequest::getIsOrigin() const {
  94. return isOrigin_;
  95. }
  96. void UpdateLiveAIProduceRulesRequest::setIsOrigin(bool isOrigin) {
  97. isOrigin_ = isOrigin;
  98. setParameter(std::string("IsOrigin"), isOrigin ? "true" : "false");
  99. }
  100. std::string UpdateLiveAIProduceRulesRequest::getSubtitleId() const {
  101. return subtitleId_;
  102. }
  103. void UpdateLiveAIProduceRulesRequest::setSubtitleId(const std::string &subtitleId) {
  104. subtitleId_ = subtitleId;
  105. setParameter(std::string("SubtitleId"), subtitleId);
  106. }