CreateEventSubscribeRequest.cc 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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/CreateEventSubscribeRequest.h>
  17. using AlibabaCloud::Rtc::Model::CreateEventSubscribeRequest;
  18. CreateEventSubscribeRequest::CreateEventSubscribeRequest()
  19. : RpcServiceRequest("rtc", "2018-01-11", "CreateEventSubscribe") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. CreateEventSubscribeRequest::~CreateEventSubscribeRequest() {}
  23. std::string CreateEventSubscribeRequest::getClientToken() const {
  24. return clientToken_;
  25. }
  26. void CreateEventSubscribeRequest::setClientToken(const std::string &clientToken) {
  27. clientToken_ = clientToken;
  28. setParameter(std::string("ClientToken"), clientToken);
  29. }
  30. bool CreateEventSubscribeRequest::getNeedCallbackAuth() const {
  31. return needCallbackAuth_;
  32. }
  33. void CreateEventSubscribeRequest::setNeedCallbackAuth(bool needCallbackAuth) {
  34. needCallbackAuth_ = needCallbackAuth;
  35. setParameter(std::string("NeedCallbackAuth"), needCallbackAuth ? "true" : "false");
  36. }
  37. std::vector<std::string> CreateEventSubscribeRequest::getEvents() const {
  38. return events_;
  39. }
  40. void CreateEventSubscribeRequest::setEvents(const std::vector<std::string> &events) {
  41. events_ = events;
  42. }
  43. std::string CreateEventSubscribeRequest::getShowLog() const {
  44. return showLog_;
  45. }
  46. void CreateEventSubscribeRequest::setShowLog(const std::string &showLog) {
  47. showLog_ = showLog;
  48. setParameter(std::string("ShowLog"), showLog);
  49. }
  50. long CreateEventSubscribeRequest::getOwnerId() const {
  51. return ownerId_;
  52. }
  53. void CreateEventSubscribeRequest::setOwnerId(long ownerId) {
  54. ownerId_ = ownerId;
  55. setParameter(std::string("OwnerId"), std::to_string(ownerId));
  56. }
  57. std::vector<std::string> CreateEventSubscribeRequest::getUsers() const {
  58. return users_;
  59. }
  60. void CreateEventSubscribeRequest::setUsers(const std::vector<std::string> &users) {
  61. users_ = users;
  62. }
  63. std::string CreateEventSubscribeRequest::getAppId() const {
  64. return appId_;
  65. }
  66. void CreateEventSubscribeRequest::setAppId(const std::string &appId) {
  67. appId_ = appId;
  68. setParameter(std::string("AppId"), appId);
  69. }
  70. std::string CreateEventSubscribeRequest::getCallbackUrl() const {
  71. return callbackUrl_;
  72. }
  73. void CreateEventSubscribeRequest::setCallbackUrl(const std::string &callbackUrl) {
  74. callbackUrl_ = callbackUrl;
  75. setParameter(std::string("CallbackUrl"), callbackUrl);
  76. }
  77. std::string CreateEventSubscribeRequest::getChannelId() const {
  78. return channelId_;
  79. }
  80. void CreateEventSubscribeRequest::setChannelId(const std::string &channelId) {
  81. channelId_ = channelId;
  82. setParameter(std::string("ChannelId"), channelId);
  83. }