AddShowIntoShowListRequest.cc 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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/AddShowIntoShowListRequest.h>
  17. using AlibabaCloud::Live::Model::AddShowIntoShowListRequest;
  18. AddShowIntoShowListRequest::AddShowIntoShowListRequest() :
  19. RpcServiceRequest("live", "2016-11-01", "AddShowIntoShowList")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. AddShowIntoShowListRequest::~AddShowIntoShowListRequest()
  24. {}
  25. int AddShowIntoShowListRequest::getLiveInputType()const
  26. {
  27. return liveInputType_;
  28. }
  29. void AddShowIntoShowListRequest::setLiveInputType(int liveInputType)
  30. {
  31. liveInputType_ = liveInputType;
  32. setParameter("LiveInputType", std::to_string(liveInputType));
  33. }
  34. long AddShowIntoShowListRequest::getDuration()const
  35. {
  36. return duration_;
  37. }
  38. void AddShowIntoShowListRequest::setDuration(long duration)
  39. {
  40. duration_ = duration;
  41. setParameter("Duration", std::to_string(duration));
  42. }
  43. int AddShowIntoShowListRequest::getRepeatTimes()const
  44. {
  45. return repeatTimes_;
  46. }
  47. void AddShowIntoShowListRequest::setRepeatTimes(int repeatTimes)
  48. {
  49. repeatTimes_ = repeatTimes;
  50. setParameter("RepeatTimes", std::to_string(repeatTimes));
  51. }
  52. std::string AddShowIntoShowListRequest::getShowName()const
  53. {
  54. return showName_;
  55. }
  56. void AddShowIntoShowListRequest::setShowName(const std::string& showName)
  57. {
  58. showName_ = showName;
  59. setParameter("ShowName", showName);
  60. }
  61. std::string AddShowIntoShowListRequest::getResourceId()const
  62. {
  63. return resourceId_;
  64. }
  65. void AddShowIntoShowListRequest::setResourceId(const std::string& resourceId)
  66. {
  67. resourceId_ = resourceId;
  68. setParameter("ResourceId", resourceId);
  69. }
  70. std::string AddShowIntoShowListRequest::getCasterId()const
  71. {
  72. return casterId_;
  73. }
  74. void AddShowIntoShowListRequest::setCasterId(const std::string& casterId)
  75. {
  76. casterId_ = casterId;
  77. setParameter("CasterId", casterId);
  78. }
  79. long AddShowIntoShowListRequest::getOwnerId()const
  80. {
  81. return ownerId_;
  82. }
  83. void AddShowIntoShowListRequest::setOwnerId(long ownerId)
  84. {
  85. ownerId_ = ownerId;
  86. setParameter("OwnerId", std::to_string(ownerId));
  87. }
  88. std::string AddShowIntoShowListRequest::getResourceType()const
  89. {
  90. return resourceType_;
  91. }
  92. void AddShowIntoShowListRequest::setResourceType(const std::string& resourceType)
  93. {
  94. resourceType_ = resourceType;
  95. setParameter("ResourceType", resourceType);
  96. }
  97. std::string AddShowIntoShowListRequest::getResourceUrl()const
  98. {
  99. return resourceUrl_;
  100. }
  101. void AddShowIntoShowListRequest::setResourceUrl(const std::string& resourceUrl)
  102. {
  103. resourceUrl_ = resourceUrl;
  104. setParameter("ResourceUrl", resourceUrl);
  105. }
  106. int AddShowIntoShowListRequest::getSpot()const
  107. {
  108. return spot_;
  109. }
  110. void AddShowIntoShowListRequest::setSpot(int spot)
  111. {
  112. spot_ = spot;
  113. setParameter("Spot", std::to_string(spot));
  114. }