AddCustomLiveStreamTranscodeRequest.php 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. <?php
  2. namespace live\Request\V20161101;
  3. /**
  4. * @deprecated Please use https://github.com/aliyun/openapi-sdk-php
  5. *
  6. * Request of AddCustomLiveStreamTranscode
  7. *
  8. * @method string getApp()
  9. * @method string getTemplate()
  10. * @method string getProfile()
  11. * @method string getFPS()
  12. * @method string getGop()
  13. * @method string getOwnerId()
  14. * @method string getTemplateType()
  15. * @method string getAudioBitrate()
  16. * @method string getDomain()
  17. * @method string getWidth()
  18. * @method string getVideoBitrate()
  19. * @method string getHeight()
  20. */
  21. class AddCustomLiveStreamTranscodeRequest extends \RpcAcsRequest
  22. {
  23. /**
  24. * @var string
  25. */
  26. protected $method = 'POST';
  27. /**
  28. * Class constructor.
  29. */
  30. public function __construct()
  31. {
  32. parent::__construct(
  33. 'live',
  34. '2016-11-01',
  35. 'AddCustomLiveStreamTranscode',
  36. 'live'
  37. );
  38. }
  39. /**
  40. * @param string $app
  41. *
  42. * @return $this
  43. */
  44. public function setApp($app)
  45. {
  46. $this->requestParameters['App'] = $app;
  47. $this->queryParameters['App'] = $app;
  48. return $this;
  49. }
  50. /**
  51. * @param string $template
  52. *
  53. * @return $this
  54. */
  55. public function setTemplate($template)
  56. {
  57. $this->requestParameters['Template'] = $template;
  58. $this->queryParameters['Template'] = $template;
  59. return $this;
  60. }
  61. /**
  62. * @param string $profile
  63. *
  64. * @return $this
  65. */
  66. public function setProfile($profile)
  67. {
  68. $this->requestParameters['Profile'] = $profile;
  69. $this->queryParameters['Profile'] = $profile;
  70. return $this;
  71. }
  72. /**
  73. * @param string $fPS
  74. *
  75. * @return $this
  76. */
  77. public function setFPS($fPS)
  78. {
  79. $this->requestParameters['FPS'] = $fPS;
  80. $this->queryParameters['FPS'] = $fPS;
  81. return $this;
  82. }
  83. /**
  84. * @param string $gop
  85. *
  86. * @return $this
  87. */
  88. public function setGop($gop)
  89. {
  90. $this->requestParameters['Gop'] = $gop;
  91. $this->queryParameters['Gop'] = $gop;
  92. return $this;
  93. }
  94. /**
  95. * @param string $ownerId
  96. *
  97. * @return $this
  98. */
  99. public function setOwnerId($ownerId)
  100. {
  101. $this->requestParameters['OwnerId'] = $ownerId;
  102. $this->queryParameters['OwnerId'] = $ownerId;
  103. return $this;
  104. }
  105. /**
  106. * @param string $templateType
  107. *
  108. * @return $this
  109. */
  110. public function setTemplateType($templateType)
  111. {
  112. $this->requestParameters['TemplateType'] = $templateType;
  113. $this->queryParameters['TemplateType'] = $templateType;
  114. return $this;
  115. }
  116. /**
  117. * @param string $audioBitrate
  118. *
  119. * @return $this
  120. */
  121. public function setAudioBitrate($audioBitrate)
  122. {
  123. $this->requestParameters['AudioBitrate'] = $audioBitrate;
  124. $this->queryParameters['AudioBitrate'] = $audioBitrate;
  125. return $this;
  126. }
  127. /**
  128. * @param string $domain
  129. *
  130. * @return $this
  131. */
  132. public function setDomain($domain)
  133. {
  134. $this->requestParameters['Domain'] = $domain;
  135. $this->queryParameters['Domain'] = $domain;
  136. return $this;
  137. }
  138. /**
  139. * @param string $width
  140. *
  141. * @return $this
  142. */
  143. public function setWidth($width)
  144. {
  145. $this->requestParameters['Width'] = $width;
  146. $this->queryParameters['Width'] = $width;
  147. return $this;
  148. }
  149. /**
  150. * @param string $videoBitrate
  151. *
  152. * @return $this
  153. */
  154. public function setVideoBitrate($videoBitrate)
  155. {
  156. $this->requestParameters['VideoBitrate'] = $videoBitrate;
  157. $this->queryParameters['VideoBitrate'] = $videoBitrate;
  158. return $this;
  159. }
  160. /**
  161. * @param string $height
  162. *
  163. * @return $this
  164. */
  165. public function setHeight($height)
  166. {
  167. $this->requestParameters['Height'] = $height;
  168. $this->queryParameters['Height'] = $height;
  169. return $this;
  170. }
  171. }