CreateMPURuleRequest.cc 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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/rtc/model/CreateMPURuleRequest.h>
  17. using AlibabaCloud::Rtc::Model::CreateMPURuleRequest;
  18. CreateMPURuleRequest::CreateMPURuleRequest() :
  19. RpcServiceRequest("rtc", "2018-01-11", "CreateMPURule")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. CreateMPURuleRequest::~CreateMPURuleRequest()
  24. {}
  25. int CreateMPURuleRequest::getBackgroundColor()const
  26. {
  27. return backgroundColor_;
  28. }
  29. void CreateMPURuleRequest::setBackgroundColor(int backgroundColor)
  30. {
  31. backgroundColor_ = backgroundColor;
  32. setParameter("BackgroundColor", std::to_string(backgroundColor));
  33. }
  34. int CreateMPURuleRequest::getCropMode()const
  35. {
  36. return cropMode_;
  37. }
  38. void CreateMPURuleRequest::setCropMode(int cropMode)
  39. {
  40. cropMode_ = cropMode;
  41. setParameter("CropMode", std::to_string(cropMode));
  42. }
  43. std::string CreateMPURuleRequest::getChannelPrefix()const
  44. {
  45. return channelPrefix_;
  46. }
  47. void CreateMPURuleRequest::setChannelPrefix(const std::string& channelPrefix)
  48. {
  49. channelPrefix_ = channelPrefix;
  50. setParameter("ChannelPrefix", channelPrefix);
  51. }
  52. std::string CreateMPURuleRequest::getTaskProfile()const
  53. {
  54. return taskProfile_;
  55. }
  56. void CreateMPURuleRequest::setTaskProfile(const std::string& taskProfile)
  57. {
  58. taskProfile_ = taskProfile;
  59. setParameter("TaskProfile", taskProfile);
  60. }
  61. std::vector<long> CreateMPURuleRequest::getLayoutIds()const
  62. {
  63. return layoutIds_;
  64. }
  65. void CreateMPURuleRequest::setLayoutIds(const std::vector<long>& layoutIds)
  66. {
  67. layoutIds_ = layoutIds;
  68. for(int dep1 = 0; dep1!= layoutIds.size(); dep1++) {
  69. setParameter("LayoutIds."+ std::to_string(dep1), std::to_string(layoutIds.at(dep1)));
  70. }
  71. }
  72. std::string CreateMPURuleRequest::getShowLog()const
  73. {
  74. return showLog_;
  75. }
  76. void CreateMPURuleRequest::setShowLog(const std::string& showLog)
  77. {
  78. showLog_ = showLog;
  79. setParameter("ShowLog", showLog);
  80. }
  81. std::string CreateMPURuleRequest::getPlayDomain()const
  82. {
  83. return playDomain_;
  84. }
  85. void CreateMPURuleRequest::setPlayDomain(const std::string& playDomain)
  86. {
  87. playDomain_ = playDomain;
  88. setParameter("PlayDomain", playDomain);
  89. }
  90. long CreateMPURuleRequest::getOwnerId()const
  91. {
  92. return ownerId_;
  93. }
  94. void CreateMPURuleRequest::setOwnerId(long ownerId)
  95. {
  96. ownerId_ = ownerId;
  97. setParameter("OwnerId", std::to_string(ownerId));
  98. }
  99. std::string CreateMPURuleRequest::getAppId()const
  100. {
  101. return appId_;
  102. }
  103. void CreateMPURuleRequest::setAppId(const std::string& appId)
  104. {
  105. appId_ = appId;
  106. setParameter("AppId", appId);
  107. }
  108. int CreateMPURuleRequest::getMediaEncode()const
  109. {
  110. return mediaEncode_;
  111. }
  112. void CreateMPURuleRequest::setMediaEncode(int mediaEncode)
  113. {
  114. mediaEncode_ = mediaEncode;
  115. setParameter("MediaEncode", std::to_string(mediaEncode));
  116. }
  117. std::string CreateMPURuleRequest::getCallBack()const
  118. {
  119. return callBack_;
  120. }
  121. void CreateMPURuleRequest::setCallBack(const std::string& callBack)
  122. {
  123. callBack_ = callBack;
  124. setParameter("CallBack", callBack);
  125. }