RealTimeSnapshotCommandRequest.cc 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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/RealTimeSnapshotCommandRequest.h>
  17. using AlibabaCloud::Live::Model::RealTimeSnapshotCommandRequest;
  18. RealTimeSnapshotCommandRequest::RealTimeSnapshotCommandRequest()
  19. : RpcServiceRequest("live", "2016-11-01", "RealTimeSnapshotCommand") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. RealTimeSnapshotCommandRequest::~RealTimeSnapshotCommandRequest() {}
  23. int RealTimeSnapshotCommandRequest::getSource() const {
  24. return source_;
  25. }
  26. void RealTimeSnapshotCommandRequest::setSource(int source) {
  27. source_ = source;
  28. setParameter(std::string("Source"), std::to_string(source));
  29. }
  30. int RealTimeSnapshotCommandRequest::getMode() const {
  31. return mode_;
  32. }
  33. void RealTimeSnapshotCommandRequest::setMode(int mode) {
  34. mode_ = mode;
  35. setParameter(std::string("Mode"), std::to_string(mode));
  36. }
  37. std::string RealTimeSnapshotCommandRequest::getUserData() const {
  38. return userData_;
  39. }
  40. void RealTimeSnapshotCommandRequest::setUserData(const std::string &userData) {
  41. userData_ = userData;
  42. setParameter(std::string("UserData"), userData);
  43. }
  44. std::string RealTimeSnapshotCommandRequest::getAppName() const {
  45. return appName_;
  46. }
  47. void RealTimeSnapshotCommandRequest::setAppName(const std::string &appName) {
  48. appName_ = appName;
  49. setParameter(std::string("AppName"), appName);
  50. }
  51. std::string RealTimeSnapshotCommandRequest::getStreamName() const {
  52. return streamName_;
  53. }
  54. void RealTimeSnapshotCommandRequest::setStreamName(const std::string &streamName) {
  55. streamName_ = streamName;
  56. setParameter(std::string("StreamName"), streamName);
  57. }
  58. std::string RealTimeSnapshotCommandRequest::getDomainName() const {
  59. return domainName_;
  60. }
  61. void RealTimeSnapshotCommandRequest::setDomainName(const std::string &domainName) {
  62. domainName_ = domainName;
  63. setParameter(std::string("DomainName"), domainName);
  64. }
  65. long RealTimeSnapshotCommandRequest::getOwnerId() const {
  66. return ownerId_;
  67. }
  68. void RealTimeSnapshotCommandRequest::setOwnerId(long ownerId) {
  69. ownerId_ = ownerId;
  70. setParameter(std::string("OwnerId"), std::to_string(ownerId));
  71. }
  72. std::string RealTimeSnapshotCommandRequest::getCommand() const {
  73. return command_;
  74. }
  75. void RealTimeSnapshotCommandRequest::setCommand(const std::string &command) {
  76. command_ = command;
  77. setParameter(std::string("Command"), command);
  78. }
  79. int RealTimeSnapshotCommandRequest::getSnapshotType() const {
  80. return snapshotType_;
  81. }
  82. void RealTimeSnapshotCommandRequest::setSnapshotType(int snapshotType) {
  83. snapshotType_ = snapshotType;
  84. setParameter(std::string("SnapshotType"), std::to_string(snapshotType));
  85. }
  86. int RealTimeSnapshotCommandRequest::getInterval() const {
  87. return interval_;
  88. }
  89. void RealTimeSnapshotCommandRequest::setInterval(int interval) {
  90. interval_ = interval;
  91. setParameter(std::string("Interval"), std::to_string(interval));
  92. }