AddCasterEpisodeRequest.cc 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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/AddCasterEpisodeRequest.h>
  17. using AlibabaCloud::Live::Model::AddCasterEpisodeRequest;
  18. AddCasterEpisodeRequest::AddCasterEpisodeRequest() :
  19. RpcServiceRequest("live", "2016-11-01", "AddCasterEpisode")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. AddCasterEpisodeRequest::~AddCasterEpisodeRequest()
  24. {}
  25. std::string AddCasterEpisodeRequest::getEpisodeName()const
  26. {
  27. return episodeName_;
  28. }
  29. void AddCasterEpisodeRequest::setEpisodeName(const std::string& episodeName)
  30. {
  31. episodeName_ = episodeName;
  32. setParameter("EpisodeName", episodeName);
  33. }
  34. std::string AddCasterEpisodeRequest::getStartTime()const
  35. {
  36. return startTime_;
  37. }
  38. void AddCasterEpisodeRequest::setStartTime(const std::string& startTime)
  39. {
  40. startTime_ = startTime;
  41. setParameter("StartTime", startTime);
  42. }
  43. std::string AddCasterEpisodeRequest::getResourceId()const
  44. {
  45. return resourceId_;
  46. }
  47. void AddCasterEpisodeRequest::setResourceId(const std::string& resourceId)
  48. {
  49. resourceId_ = resourceId;
  50. setParameter("ResourceId", resourceId);
  51. }
  52. std::vector<std::string> AddCasterEpisodeRequest::getComponentId()const
  53. {
  54. return componentId_;
  55. }
  56. void AddCasterEpisodeRequest::setComponentId(const std::vector<std::string>& componentId)
  57. {
  58. componentId_ = componentId;
  59. for(int dep1 = 0; dep1!= componentId.size(); dep1++) {
  60. setParameter("ComponentId."+ std::to_string(dep1), componentId.at(dep1));
  61. }
  62. }
  63. std::string AddCasterEpisodeRequest::getCasterId()const
  64. {
  65. return casterId_;
  66. }
  67. void AddCasterEpisodeRequest::setCasterId(const std::string& casterId)
  68. {
  69. casterId_ = casterId;
  70. setParameter("CasterId", casterId);
  71. }
  72. std::string AddCasterEpisodeRequest::getEpisodeType()const
  73. {
  74. return episodeType_;
  75. }
  76. void AddCasterEpisodeRequest::setEpisodeType(const std::string& episodeType)
  77. {
  78. episodeType_ = episodeType;
  79. setParameter("EpisodeType", episodeType);
  80. }
  81. std::string AddCasterEpisodeRequest::getEndTime()const
  82. {
  83. return endTime_;
  84. }
  85. void AddCasterEpisodeRequest::setEndTime(const std::string& endTime)
  86. {
  87. endTime_ = endTime;
  88. setParameter("EndTime", endTime);
  89. }
  90. long AddCasterEpisodeRequest::getOwnerId()const
  91. {
  92. return ownerId_;
  93. }
  94. void AddCasterEpisodeRequest::setOwnerId(long ownerId)
  95. {
  96. ownerId_ = ownerId;
  97. setParameter("OwnerId", std::to_string(ownerId));
  98. }
  99. std::string AddCasterEpisodeRequest::getSwitchType()const
  100. {
  101. return switchType_;
  102. }
  103. void AddCasterEpisodeRequest::setSwitchType(const std::string& switchType)
  104. {
  105. switchType_ = switchType;
  106. setParameter("SwitchType", switchType);
  107. }