AddTemplateRequest.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. <?php
  2. namespace Mts\Request\V20140618;
  3. /**
  4. * Request of AddTemplate
  5. *
  6. * @method string getContainer()
  7. * @method string getResourceOwnerId()
  8. * @method string getResourceOwnerAccount()
  9. * @method string getOwnerAccount()
  10. * @method string getName()
  11. * @method string getTransConfig()
  12. * @method string getMuxConfig()
  13. * @method string getVideo()
  14. * @method string getAudio()
  15. * @method string getOwnerId()
  16. */
  17. class AddTemplateRequest extends \RpcAcsRequest
  18. {
  19. /**
  20. * @var string
  21. */
  22. protected $method = 'POST';
  23. /**
  24. * Class constructor.
  25. */
  26. public function __construct()
  27. {
  28. parent::__construct(
  29. 'Mts',
  30. '2014-06-18',
  31. 'AddTemplate',
  32. 'mts'
  33. );
  34. }
  35. /**
  36. * @param string $container
  37. *
  38. * @return $this
  39. */
  40. public function setContainer($container)
  41. {
  42. $this->requestParameters['Container'] = $container;
  43. $this->queryParameters['Container'] = $container;
  44. return $this;
  45. }
  46. /**
  47. * @param string $resourceOwnerId
  48. *
  49. * @return $this
  50. */
  51. public function setResourceOwnerId($resourceOwnerId)
  52. {
  53. $this->requestParameters['ResourceOwnerId'] = $resourceOwnerId;
  54. $this->queryParameters['ResourceOwnerId'] = $resourceOwnerId;
  55. return $this;
  56. }
  57. /**
  58. * @param string $resourceOwnerAccount
  59. *
  60. * @return $this
  61. */
  62. public function setResourceOwnerAccount($resourceOwnerAccount)
  63. {
  64. $this->requestParameters['ResourceOwnerAccount'] = $resourceOwnerAccount;
  65. $this->queryParameters['ResourceOwnerAccount'] = $resourceOwnerAccount;
  66. return $this;
  67. }
  68. /**
  69. * @param string $ownerAccount
  70. *
  71. * @return $this
  72. */
  73. public function setOwnerAccount($ownerAccount)
  74. {
  75. $this->requestParameters['OwnerAccount'] = $ownerAccount;
  76. $this->queryParameters['OwnerAccount'] = $ownerAccount;
  77. return $this;
  78. }
  79. /**
  80. * @param string $name
  81. *
  82. * @return $this
  83. */
  84. public function setName($name)
  85. {
  86. $this->requestParameters['Name'] = $name;
  87. $this->queryParameters['Name'] = $name;
  88. return $this;
  89. }
  90. /**
  91. * @param string $transConfig
  92. *
  93. * @return $this
  94. */
  95. public function setTransConfig($transConfig)
  96. {
  97. $this->requestParameters['TransConfig'] = $transConfig;
  98. $this->queryParameters['TransConfig'] = $transConfig;
  99. return $this;
  100. }
  101. /**
  102. * @param string $muxConfig
  103. *
  104. * @return $this
  105. */
  106. public function setMuxConfig($muxConfig)
  107. {
  108. $this->requestParameters['MuxConfig'] = $muxConfig;
  109. $this->queryParameters['MuxConfig'] = $muxConfig;
  110. return $this;
  111. }
  112. /**
  113. * @param string $video
  114. *
  115. * @return $this
  116. */
  117. public function setVideo($video)
  118. {
  119. $this->requestParameters['Video'] = $video;
  120. $this->queryParameters['Video'] = $video;
  121. return $this;
  122. }
  123. /**
  124. * @param string $audio
  125. *
  126. * @return $this
  127. */
  128. public function setAudio($audio)
  129. {
  130. $this->requestParameters['Audio'] = $audio;
  131. $this->queryParameters['Audio'] = $audio;
  132. return $this;
  133. }
  134. /**
  135. * @param string $ownerId
  136. *
  137. * @return $this
  138. */
  139. public function setOwnerId($ownerId)
  140. {
  141. $this->requestParameters['OwnerId'] = $ownerId;
  142. $this->queryParameters['OwnerId'] = $ownerId;
  143. return $this;
  144. }
  145. }