SetLiveStreamDelayConfigRequest.cc 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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/SetLiveStreamDelayConfigRequest.h>
  17. using AlibabaCloud::Live::Model::SetLiveStreamDelayConfigRequest;
  18. SetLiveStreamDelayConfigRequest::SetLiveStreamDelayConfigRequest() :
  19. RpcServiceRequest("live", "2016-11-01", "SetLiveStreamDelayConfig")
  20. {}
  21. SetLiveStreamDelayConfigRequest::~SetLiveStreamDelayConfigRequest()
  22. {}
  23. std::string SetLiveStreamDelayConfigRequest::getFlvLevel()const
  24. {
  25. return flvLevel_;
  26. }
  27. void SetLiveStreamDelayConfigRequest::setFlvLevel(const std::string& flvLevel)
  28. {
  29. flvLevel_ = flvLevel;
  30. setCoreParameter("FlvLevel", flvLevel);
  31. }
  32. std::string SetLiveStreamDelayConfigRequest::getHlsLevel()const
  33. {
  34. return hlsLevel_;
  35. }
  36. void SetLiveStreamDelayConfigRequest::setHlsLevel(const std::string& hlsLevel)
  37. {
  38. hlsLevel_ = hlsLevel;
  39. setCoreParameter("HlsLevel", hlsLevel);
  40. }
  41. int SetLiveStreamDelayConfigRequest::getRtmpDelay()const
  42. {
  43. return rtmpDelay_;
  44. }
  45. void SetLiveStreamDelayConfigRequest::setRtmpDelay(int rtmpDelay)
  46. {
  47. rtmpDelay_ = rtmpDelay;
  48. setCoreParameter("RtmpDelay", std::to_string(rtmpDelay));
  49. }
  50. std::string SetLiveStreamDelayConfigRequest::getDomainName()const
  51. {
  52. return domainName_;
  53. }
  54. void SetLiveStreamDelayConfigRequest::setDomainName(const std::string& domainName)
  55. {
  56. domainName_ = domainName;
  57. setCoreParameter("DomainName", domainName);
  58. }
  59. long SetLiveStreamDelayConfigRequest::getOwnerId()const
  60. {
  61. return ownerId_;
  62. }
  63. void SetLiveStreamDelayConfigRequest::setOwnerId(long ownerId)
  64. {
  65. ownerId_ = ownerId;
  66. setCoreParameter("OwnerId", std::to_string(ownerId));
  67. }
  68. int SetLiveStreamDelayConfigRequest::getFlvDelay()const
  69. {
  70. return flvDelay_;
  71. }
  72. void SetLiveStreamDelayConfigRequest::setFlvDelay(int flvDelay)
  73. {
  74. flvDelay_ = flvDelay;
  75. setCoreParameter("FlvDelay", std::to_string(flvDelay));
  76. }
  77. std::string SetLiveStreamDelayConfigRequest::getRtmpLevel()const
  78. {
  79. return rtmpLevel_;
  80. }
  81. void SetLiveStreamDelayConfigRequest::setRtmpLevel(const std::string& rtmpLevel)
  82. {
  83. rtmpLevel_ = rtmpLevel;
  84. setCoreParameter("RtmpLevel", rtmpLevel);
  85. }
  86. int SetLiveStreamDelayConfigRequest::getHlsDelay()const
  87. {
  88. return hlsDelay_;
  89. }
  90. void SetLiveStreamDelayConfigRequest::setHlsDelay(int hlsDelay)
  91. {
  92. hlsDelay_ = hlsDelay;
  93. setCoreParameter("HlsDelay", std::to_string(hlsDelay));
  94. }