ModifyCasterVideoResourceRequest.php 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. <?php
  2. namespace live\Request\V20161101;
  3. /**
  4. * @deprecated Please use https://github.com/aliyun/openapi-sdk-php
  5. *
  6. * Request of ModifyCasterVideoResource
  7. *
  8. * @method string getResourceId()
  9. * @method string getVodUrl()
  10. * @method string getCasterId()
  11. * @method string getEndOffset()
  12. * @method string getOwnerId()
  13. * @method string getMaterialId()
  14. * @method string getBeginOffset()
  15. * @method string getLiveStreamUrl()
  16. * @method string getPtsCallbackInterval()
  17. * @method string getResourceName()
  18. * @method string getRepeatNum()
  19. */
  20. class ModifyCasterVideoResourceRequest extends \RpcAcsRequest
  21. {
  22. /**
  23. * @var string
  24. */
  25. protected $method = 'POST';
  26. /**
  27. * Class constructor.
  28. */
  29. public function __construct()
  30. {
  31. parent::__construct(
  32. 'live',
  33. '2016-11-01',
  34. 'ModifyCasterVideoResource',
  35. 'live'
  36. );
  37. }
  38. /**
  39. * @param string $resourceId
  40. *
  41. * @return $this
  42. */
  43. public function setResourceId($resourceId)
  44. {
  45. $this->requestParameters['ResourceId'] = $resourceId;
  46. $this->queryParameters['ResourceId'] = $resourceId;
  47. return $this;
  48. }
  49. /**
  50. * @param string $vodUrl
  51. *
  52. * @return $this
  53. */
  54. public function setVodUrl($vodUrl)
  55. {
  56. $this->requestParameters['VodUrl'] = $vodUrl;
  57. $this->queryParameters['VodUrl'] = $vodUrl;
  58. return $this;
  59. }
  60. /**
  61. * @param string $casterId
  62. *
  63. * @return $this
  64. */
  65. public function setCasterId($casterId)
  66. {
  67. $this->requestParameters['CasterId'] = $casterId;
  68. $this->queryParameters['CasterId'] = $casterId;
  69. return $this;
  70. }
  71. /**
  72. * @param string $endOffset
  73. *
  74. * @return $this
  75. */
  76. public function setEndOffset($endOffset)
  77. {
  78. $this->requestParameters['EndOffset'] = $endOffset;
  79. $this->queryParameters['EndOffset'] = $endOffset;
  80. return $this;
  81. }
  82. /**
  83. * @param string $ownerId
  84. *
  85. * @return $this
  86. */
  87. public function setOwnerId($ownerId)
  88. {
  89. $this->requestParameters['OwnerId'] = $ownerId;
  90. $this->queryParameters['OwnerId'] = $ownerId;
  91. return $this;
  92. }
  93. /**
  94. * @param string $materialId
  95. *
  96. * @return $this
  97. */
  98. public function setMaterialId($materialId)
  99. {
  100. $this->requestParameters['MaterialId'] = $materialId;
  101. $this->queryParameters['MaterialId'] = $materialId;
  102. return $this;
  103. }
  104. /**
  105. * @param string $beginOffset
  106. *
  107. * @return $this
  108. */
  109. public function setBeginOffset($beginOffset)
  110. {
  111. $this->requestParameters['BeginOffset'] = $beginOffset;
  112. $this->queryParameters['BeginOffset'] = $beginOffset;
  113. return $this;
  114. }
  115. /**
  116. * @param string $liveStreamUrl
  117. *
  118. * @return $this
  119. */
  120. public function setLiveStreamUrl($liveStreamUrl)
  121. {
  122. $this->requestParameters['LiveStreamUrl'] = $liveStreamUrl;
  123. $this->queryParameters['LiveStreamUrl'] = $liveStreamUrl;
  124. return $this;
  125. }
  126. /**
  127. * @param string $ptsCallbackInterval
  128. *
  129. * @return $this
  130. */
  131. public function setPtsCallbackInterval($ptsCallbackInterval)
  132. {
  133. $this->requestParameters['PtsCallbackInterval'] = $ptsCallbackInterval;
  134. $this->queryParameters['PtsCallbackInterval'] = $ptsCallbackInterval;
  135. return $this;
  136. }
  137. /**
  138. * @param string $resourceName
  139. *
  140. * @return $this
  141. */
  142. public function setResourceName($resourceName)
  143. {
  144. $this->requestParameters['ResourceName'] = $resourceName;
  145. $this->queryParameters['ResourceName'] = $resourceName;
  146. return $this;
  147. }
  148. /**
  149. * @param string $repeatNum
  150. *
  151. * @return $this
  152. */
  153. public function setRepeatNum($repeatNum)
  154. {
  155. $this->requestParameters['RepeatNum'] = $repeatNum;
  156. $this->queryParameters['RepeatNum'] = $repeatNum;
  157. return $this;
  158. }
  159. }