SubmitMCJobRequest.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. <?php
  2. namespace Mts\Request\V20140618;
  3. /**
  4. * Request of SubmitMCJob
  5. *
  6. * @method string getUserData()
  7. * @method string getResourceOwnerId()
  8. * @method string getImages()
  9. * @method string getTexts()
  10. * @method string getResourceOwnerAccount()
  11. * @method string getOwnerAccount()
  12. * @method string getVideo()
  13. * @method string getOwnerId()
  14. * @method string getCensorConfig()
  15. * @method string getPipelineId()
  16. */
  17. class SubmitMCJobRequest 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. 'SubmitMCJob',
  32. 'mts'
  33. );
  34. }
  35. /**
  36. * @param string $userData
  37. *
  38. * @return $this
  39. */
  40. public function setUserData($userData)
  41. {
  42. $this->requestParameters['UserData'] = $userData;
  43. $this->queryParameters['UserData'] = $userData;
  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 $images
  59. *
  60. * @return $this
  61. */
  62. public function setImages($images)
  63. {
  64. $this->requestParameters['Images'] = $images;
  65. $this->queryParameters['Images'] = $images;
  66. return $this;
  67. }
  68. /**
  69. * @param string $texts
  70. *
  71. * @return $this
  72. */
  73. public function setTexts($texts)
  74. {
  75. $this->requestParameters['Texts'] = $texts;
  76. $this->queryParameters['Texts'] = $texts;
  77. return $this;
  78. }
  79. /**
  80. * @param string $resourceOwnerAccount
  81. *
  82. * @return $this
  83. */
  84. public function setResourceOwnerAccount($resourceOwnerAccount)
  85. {
  86. $this->requestParameters['ResourceOwnerAccount'] = $resourceOwnerAccount;
  87. $this->queryParameters['ResourceOwnerAccount'] = $resourceOwnerAccount;
  88. return $this;
  89. }
  90. /**
  91. * @param string $ownerAccount
  92. *
  93. * @return $this
  94. */
  95. public function setOwnerAccount($ownerAccount)
  96. {
  97. $this->requestParameters['OwnerAccount'] = $ownerAccount;
  98. $this->queryParameters['OwnerAccount'] = $ownerAccount;
  99. return $this;
  100. }
  101. /**
  102. * @param string $video
  103. *
  104. * @return $this
  105. */
  106. public function setVideo($video)
  107. {
  108. $this->requestParameters['Video'] = $video;
  109. $this->queryParameters['Video'] = $video;
  110. return $this;
  111. }
  112. /**
  113. * @param string $ownerId
  114. *
  115. * @return $this
  116. */
  117. public function setOwnerId($ownerId)
  118. {
  119. $this->requestParameters['OwnerId'] = $ownerId;
  120. $this->queryParameters['OwnerId'] = $ownerId;
  121. return $this;
  122. }
  123. /**
  124. * @param string $censorConfig
  125. *
  126. * @return $this
  127. */
  128. public function setCensorConfig($censorConfig)
  129. {
  130. $this->requestParameters['CensorConfig'] = $censorConfig;
  131. $this->queryParameters['CensorConfig'] = $censorConfig;
  132. return $this;
  133. }
  134. /**
  135. * @param string $pipelineId
  136. *
  137. * @return $this
  138. */
  139. public function setPipelineId($pipelineId)
  140. {
  141. $this->requestParameters['PipelineId'] = $pipelineId;
  142. $this->queryParameters['PipelineId'] = $pipelineId;
  143. return $this;
  144. }
  145. }