StartTaskRequest.cc 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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/StartTaskRequest.h>
  17. using AlibabaCloud::Rtc::Model::StartTaskRequest;
  18. StartTaskRequest::StartTaskRequest() :
  19. RpcServiceRequest("rtc", "2018-01-11", "StartTask")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. StartTaskRequest::~StartTaskRequest()
  24. {}
  25. std::vector<StartTaskRequest::MixPanes> StartTaskRequest::getMixPanes()const
  26. {
  27. return mixPanes_;
  28. }
  29. void StartTaskRequest::setMixPanes(const std::vector<MixPanes>& mixPanes)
  30. {
  31. mixPanes_ = mixPanes;
  32. for(int dep1 = 0; dep1!= mixPanes.size(); dep1++) {
  33. auto mixPanesObj = mixPanes.at(dep1);
  34. std::string mixPanesObjStr = "MixPanes." + std::to_string(dep1 + 1);
  35. setParameter(mixPanesObjStr + ".PaneId", std::to_string(mixPanesObj.paneId));
  36. setParameter(mixPanesObjStr + ".UserId", mixPanesObj.userId);
  37. setParameter(mixPanesObjStr + ".SourceType", mixPanesObj.sourceType);
  38. }
  39. }
  40. std::string StartTaskRequest::getIdempotentId()const
  41. {
  42. return idempotentId_;
  43. }
  44. void StartTaskRequest::setIdempotentId(const std::string& idempotentId)
  45. {
  46. idempotentId_ = idempotentId;
  47. setParameter("IdempotentId", idempotentId);
  48. }
  49. long StartTaskRequest::getOwnerId()const
  50. {
  51. return ownerId_;
  52. }
  53. void StartTaskRequest::setOwnerId(long ownerId)
  54. {
  55. ownerId_ = ownerId;
  56. setParameter("OwnerId", std::to_string(ownerId));
  57. }
  58. long StartTaskRequest::getTemplateId()const
  59. {
  60. return templateId_;
  61. }
  62. void StartTaskRequest::setTemplateId(long templateId)
  63. {
  64. templateId_ = templateId;
  65. setParameter("TemplateId", std::to_string(templateId));
  66. }
  67. std::string StartTaskRequest::getAppId()const
  68. {
  69. return appId_;
  70. }
  71. void StartTaskRequest::setAppId(const std::string& appId)
  72. {
  73. appId_ = appId;
  74. setParameter("AppId", appId);
  75. }
  76. std::string StartTaskRequest::getChannelId()const
  77. {
  78. return channelId_;
  79. }
  80. void StartTaskRequest::setChannelId(const std::string& channelId)
  81. {
  82. channelId_ = channelId;
  83. setParameter("ChannelId", channelId);
  84. }