UpdateTemplateRequest.php 3.8 KB

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