GetDRMLicenseRequest.cc 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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/vod/model/GetDRMLicenseRequest.h>
  17. using AlibabaCloud::Vod::Model::GetDRMLicenseRequest;
  18. GetDRMLicenseRequest::GetDRMLicenseRequest() :
  19. RpcServiceRequest("vod", "2017-03-21", "GetDRMLicense")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. GetDRMLicenseRequest::~GetDRMLicenseRequest()
  24. {}
  25. std::string GetDRMLicenseRequest::getCDMData()const
  26. {
  27. return cDMData_;
  28. }
  29. void GetDRMLicenseRequest::setCDMData(const std::string& cDMData)
  30. {
  31. cDMData_ = cDMData;
  32. setParameter("CDMData", cDMData);
  33. }
  34. std::string GetDRMLicenseRequest::getCertId()const
  35. {
  36. return certId_;
  37. }
  38. void GetDRMLicenseRequest::setCertId(const std::string& certId)
  39. {
  40. certId_ = certId;
  41. setParameter("CertId", certId);
  42. }
  43. std::string GetDRMLicenseRequest::getResourceOwnerAccount()const
  44. {
  45. return resourceOwnerAccount_;
  46. }
  47. void GetDRMLicenseRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
  48. {
  49. resourceOwnerAccount_ = resourceOwnerAccount;
  50. setParameter("ResourceOwnerAccount", resourceOwnerAccount);
  51. }
  52. std::string GetDRMLicenseRequest::getVideoId()const
  53. {
  54. return videoId_;
  55. }
  56. void GetDRMLicenseRequest::setVideoId(const std::string& videoId)
  57. {
  58. videoId_ = videoId;
  59. setParameter("VideoId", videoId);
  60. }
  61. long GetDRMLicenseRequest::getOwnerId()const
  62. {
  63. return ownerId_;
  64. }
  65. void GetDRMLicenseRequest::setOwnerId(long ownerId)
  66. {
  67. ownerId_ = ownerId;
  68. setParameter("OwnerId", std::to_string(ownerId));
  69. }
  70. std::string GetDRMLicenseRequest::getDRMType()const
  71. {
  72. return dRMType_;
  73. }
  74. void GetDRMLicenseRequest::setDRMType(const std::string& dRMType)
  75. {
  76. dRMType_ = dRMType;
  77. setParameter("DRMType", dRMType);
  78. }