AddMediaRequest.php 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. <?php
  2. namespace Mts\Request\V20140618;
  3. /**
  4. * Request of AddMedia
  5. *
  6. * @method string getResourceOwnerId()
  7. * @method string getResourceOwnerAccount()
  8. * @method string getOwnerAccount()
  9. * @method string getDescription()
  10. * @method string getOverrideParams()
  11. * @method string getOwnerId()
  12. * @method string getTitle()
  13. * @method string getInputUnbind()
  14. * @method string getTags()
  15. * @method string getCoverURL()
  16. * @method string getCateId()
  17. * @method string getFileURL()
  18. * @method string getMediaWorkflowId()
  19. * @method string getMediaWorkflowUserData()
  20. */
  21. class AddMediaRequest 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. 'Mts',
  34. '2014-06-18',
  35. 'AddMedia',
  36. 'mts'
  37. );
  38. }
  39. /**
  40. * @param string $resourceOwnerId
  41. *
  42. * @return $this
  43. */
  44. public function setResourceOwnerId($resourceOwnerId)
  45. {
  46. $this->requestParameters['ResourceOwnerId'] = $resourceOwnerId;
  47. $this->queryParameters['ResourceOwnerId'] = $resourceOwnerId;
  48. return $this;
  49. }
  50. /**
  51. * @param string $resourceOwnerAccount
  52. *
  53. * @return $this
  54. */
  55. public function setResourceOwnerAccount($resourceOwnerAccount)
  56. {
  57. $this->requestParameters['ResourceOwnerAccount'] = $resourceOwnerAccount;
  58. $this->queryParameters['ResourceOwnerAccount'] = $resourceOwnerAccount;
  59. return $this;
  60. }
  61. /**
  62. * @param string $ownerAccount
  63. *
  64. * @return $this
  65. */
  66. public function setOwnerAccount($ownerAccount)
  67. {
  68. $this->requestParameters['OwnerAccount'] = $ownerAccount;
  69. $this->queryParameters['OwnerAccount'] = $ownerAccount;
  70. return $this;
  71. }
  72. /**
  73. * @param string $description
  74. *
  75. * @return $this
  76. */
  77. public function setDescription($description)
  78. {
  79. $this->requestParameters['Description'] = $description;
  80. $this->queryParameters['Description'] = $description;
  81. return $this;
  82. }
  83. /**
  84. * @param string $overrideParams
  85. *
  86. * @return $this
  87. */
  88. public function setOverrideParams($overrideParams)
  89. {
  90. $this->requestParameters['OverrideParams'] = $overrideParams;
  91. $this->queryParameters['OverrideParams'] = $overrideParams;
  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 $title
  107. *
  108. * @return $this
  109. */
  110. public function setTitle($title)
  111. {
  112. $this->requestParameters['Title'] = $title;
  113. $this->queryParameters['Title'] = $title;
  114. return $this;
  115. }
  116. /**
  117. * @param string $inputUnbind
  118. *
  119. * @return $this
  120. */
  121. public function setInputUnbind($inputUnbind)
  122. {
  123. $this->requestParameters['InputUnbind'] = $inputUnbind;
  124. $this->queryParameters['InputUnbind'] = $inputUnbind;
  125. return $this;
  126. }
  127. /**
  128. * @param string $tags
  129. *
  130. * @return $this
  131. */
  132. public function setTags($tags)
  133. {
  134. $this->requestParameters['Tags'] = $tags;
  135. $this->queryParameters['Tags'] = $tags;
  136. return $this;
  137. }
  138. /**
  139. * @param string $coverURL
  140. *
  141. * @return $this
  142. */
  143. public function setCoverURL($coverURL)
  144. {
  145. $this->requestParameters['CoverURL'] = $coverURL;
  146. $this->queryParameters['CoverURL'] = $coverURL;
  147. return $this;
  148. }
  149. /**
  150. * @param string $cateId
  151. *
  152. * @return $this
  153. */
  154. public function setCateId($cateId)
  155. {
  156. $this->requestParameters['CateId'] = $cateId;
  157. $this->queryParameters['CateId'] = $cateId;
  158. return $this;
  159. }
  160. /**
  161. * @param string $fileURL
  162. *
  163. * @return $this
  164. */
  165. public function setFileURL($fileURL)
  166. {
  167. $this->requestParameters['FileURL'] = $fileURL;
  168. $this->queryParameters['FileURL'] = $fileURL;
  169. return $this;
  170. }
  171. /**
  172. * @param string $mediaWorkflowId
  173. *
  174. * @return $this
  175. */
  176. public function setMediaWorkflowId($mediaWorkflowId)
  177. {
  178. $this->requestParameters['MediaWorkflowId'] = $mediaWorkflowId;
  179. $this->queryParameters['MediaWorkflowId'] = $mediaWorkflowId;
  180. return $this;
  181. }
  182. /**
  183. * @param string $mediaWorkflowUserData
  184. *
  185. * @return $this
  186. */
  187. public function setMediaWorkflowUserData($mediaWorkflowUserData)
  188. {
  189. $this->requestParameters['MediaWorkflowUserData'] = $mediaWorkflowUserData;
  190. $this->queryParameters['MediaWorkflowUserData'] = $mediaWorkflowUserData;
  191. return $this;
  192. }
  193. }