PutLiveChannelRequest.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. #pragma once
  17. #include <alibabacloud/oss/Export.h>
  18. #include <alibabacloud/oss/OssRequest.h>
  19. #include <alibabacloud/oss/Types.h>
  20. #include <alibabacloud/oss/model/ObjectMetaData.h>
  21. #include <alibabacloud/oss/http/HttpType.h>
  22. namespace AlibabaCloud
  23. {
  24. namespace OSS
  25. {
  26. class ALIBABACLOUD_OSS_EXPORT PutLiveChannelRequest : public LiveChannelRequest
  27. {
  28. public:
  29. PutLiveChannelRequest(const std::string& bucket, const std::string& channelName,
  30. const std::string& type);
  31. void setChannelType(const std::string& type);
  32. void setStatus(LiveChannelStatus status);
  33. void setDescripition(const std::string& description);
  34. void setPlayListName(const std::string& playListName);
  35. void setRoleName(const std::string& roleName);
  36. void setDestBucket(const std::string& destBucket);
  37. void setNotifyTopic(const std::string& notifyTopic);
  38. void setFragDuration(uint64_t fragDuration);
  39. void setFragCount(uint64_t fragCount);
  40. void setInterval(uint64_t interval);
  41. protected:
  42. virtual ParameterCollection specialParameters() const;
  43. virtual std::string payload() const;
  44. virtual int validate() const;
  45. private:
  46. std::string channelType_;
  47. std::string description_;
  48. std::string playListName_;
  49. std::string roleName_;
  50. std::string destBucket_;
  51. std::string notifyTopic_;
  52. LiveChannelStatus status_;
  53. uint64_t fragDuration_;
  54. uint64_t fragCount_;
  55. uint64_t interval_;
  56. bool snapshot_;
  57. };
  58. }
  59. }