AddLiveStreamTranscodeRequest.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <?php
  2. namespace live\Request\V20161101;
  3. /**
  4. * @deprecated Please use https://github.com/aliyun/openapi-sdk-php
  5. *
  6. * Request of AddLiveStreamTranscode
  7. *
  8. * @method string getApp()
  9. * @method string getTemplate()
  10. * @method string getSecurityToken()
  11. * @method string getDomain()
  12. * @method string getOwnerId()
  13. */
  14. class AddLiveStreamTranscodeRequest extends \RpcAcsRequest
  15. {
  16. /**
  17. * @var string
  18. */
  19. protected $method = 'POST';
  20. /**
  21. * Class constructor.
  22. */
  23. public function __construct()
  24. {
  25. parent::__construct(
  26. 'live',
  27. '2016-11-01',
  28. 'AddLiveStreamTranscode',
  29. 'live'
  30. );
  31. }
  32. /**
  33. * @param string $app
  34. *
  35. * @return $this
  36. */
  37. public function setApp($app)
  38. {
  39. $this->requestParameters['App'] = $app;
  40. $this->queryParameters['App'] = $app;
  41. return $this;
  42. }
  43. /**
  44. * @param string $template
  45. *
  46. * @return $this
  47. */
  48. public function setTemplate($template)
  49. {
  50. $this->requestParameters['Template'] = $template;
  51. $this->queryParameters['Template'] = $template;
  52. return $this;
  53. }
  54. /**
  55. * @param string $securityToken
  56. *
  57. * @return $this
  58. */
  59. public function setSecurityToken($securityToken)
  60. {
  61. $this->requestParameters['SecurityToken'] = $securityToken;
  62. $this->queryParameters['SecurityToken'] = $securityToken;
  63. return $this;
  64. }
  65. /**
  66. * @param string $domain
  67. *
  68. * @return $this
  69. */
  70. public function setDomain($domain)
  71. {
  72. $this->requestParameters['Domain'] = $domain;
  73. $this->queryParameters['Domain'] = $domain;
  74. return $this;
  75. }
  76. /**
  77. * @param string $ownerId
  78. *
  79. * @return $this
  80. */
  81. public function setOwnerId($ownerId)
  82. {
  83. $this->requestParameters['OwnerId'] = $ownerId;
  84. $this->queryParameters['OwnerId'] = $ownerId;
  85. return $this;
  86. }
  87. }