UpdateMCTemplateRequest.php 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. <?php
  2. namespace Mts\Request\V20140618;
  3. /**
  4. * Request of UpdateMCTemplate
  5. *
  6. * @method string getPolitics()
  7. * @method string getResourceOwnerId()
  8. * @method string getContraband()
  9. * @method string getAd()
  10. * @method string getAbuse()
  11. * @method string getResourceOwnerAccount()
  12. * @method string getQrcode()
  13. * @method string getOwnerAccount()
  14. * @method string getOwnerId()
  15. * @method string getTemplateId()
  16. * @method string getPorn()
  17. * @method string getTerrorism()
  18. * @method string getName()
  19. * @method string getLogo()
  20. * @method string getspam()
  21. * @method string getLive()
  22. */
  23. class UpdateMCTemplateRequest extends \RpcAcsRequest
  24. {
  25. /**
  26. * @var string
  27. */
  28. protected $method = 'POST';
  29. /**
  30. * Class constructor.
  31. */
  32. public function __construct()
  33. {
  34. parent::__construct(
  35. 'Mts',
  36. '2014-06-18',
  37. 'UpdateMCTemplate',
  38. 'mts'
  39. );
  40. }
  41. /**
  42. * @param string $politics
  43. *
  44. * @return $this
  45. */
  46. public function setPolitics($politics)
  47. {
  48. $this->requestParameters['Politics'] = $politics;
  49. $this->queryParameters['Politics'] = $politics;
  50. return $this;
  51. }
  52. /**
  53. * @param string $resourceOwnerId
  54. *
  55. * @return $this
  56. */
  57. public function setResourceOwnerId($resourceOwnerId)
  58. {
  59. $this->requestParameters['ResourceOwnerId'] = $resourceOwnerId;
  60. $this->queryParameters['ResourceOwnerId'] = $resourceOwnerId;
  61. return $this;
  62. }
  63. /**
  64. * @param string $contraband
  65. *
  66. * @return $this
  67. */
  68. public function setContraband($contraband)
  69. {
  70. $this->requestParameters['Contraband'] = $contraband;
  71. $this->queryParameters['Contraband'] = $contraband;
  72. return $this;
  73. }
  74. /**
  75. * @param string $ad
  76. *
  77. * @return $this
  78. */
  79. public function setAd($ad)
  80. {
  81. $this->requestParameters['Ad'] = $ad;
  82. $this->queryParameters['Ad'] = $ad;
  83. return $this;
  84. }
  85. /**
  86. * @param string $abuse
  87. *
  88. * @return $this
  89. */
  90. public function setAbuse($abuse)
  91. {
  92. $this->requestParameters['Abuse'] = $abuse;
  93. $this->queryParameters['Abuse'] = $abuse;
  94. return $this;
  95. }
  96. /**
  97. * @param string $resourceOwnerAccount
  98. *
  99. * @return $this
  100. */
  101. public function setResourceOwnerAccount($resourceOwnerAccount)
  102. {
  103. $this->requestParameters['ResourceOwnerAccount'] = $resourceOwnerAccount;
  104. $this->queryParameters['ResourceOwnerAccount'] = $resourceOwnerAccount;
  105. return $this;
  106. }
  107. /**
  108. * @param string $qrcode
  109. *
  110. * @return $this
  111. */
  112. public function setQrcode($qrcode)
  113. {
  114. $this->requestParameters['Qrcode'] = $qrcode;
  115. $this->queryParameters['Qrcode'] = $qrcode;
  116. return $this;
  117. }
  118. /**
  119. * @param string $ownerAccount
  120. *
  121. * @return $this
  122. */
  123. public function setOwnerAccount($ownerAccount)
  124. {
  125. $this->requestParameters['OwnerAccount'] = $ownerAccount;
  126. $this->queryParameters['OwnerAccount'] = $ownerAccount;
  127. return $this;
  128. }
  129. /**
  130. * @param string $ownerId
  131. *
  132. * @return $this
  133. */
  134. public function setOwnerId($ownerId)
  135. {
  136. $this->requestParameters['OwnerId'] = $ownerId;
  137. $this->queryParameters['OwnerId'] = $ownerId;
  138. return $this;
  139. }
  140. /**
  141. * @param string $templateId
  142. *
  143. * @return $this
  144. */
  145. public function setTemplateId($templateId)
  146. {
  147. $this->requestParameters['TemplateId'] = $templateId;
  148. $this->queryParameters['TemplateId'] = $templateId;
  149. return $this;
  150. }
  151. /**
  152. * @param string $porn
  153. *
  154. * @return $this
  155. */
  156. public function setPorn($porn)
  157. {
  158. $this->requestParameters['Porn'] = $porn;
  159. $this->queryParameters['Porn'] = $porn;
  160. return $this;
  161. }
  162. /**
  163. * @param string $terrorism
  164. *
  165. * @return $this
  166. */
  167. public function setTerrorism($terrorism)
  168. {
  169. $this->requestParameters['Terrorism'] = $terrorism;
  170. $this->queryParameters['Terrorism'] = $terrorism;
  171. return $this;
  172. }
  173. /**
  174. * @param string $name
  175. *
  176. * @return $this
  177. */
  178. public function setName($name)
  179. {
  180. $this->requestParameters['Name'] = $name;
  181. $this->queryParameters['Name'] = $name;
  182. return $this;
  183. }
  184. /**
  185. * @param string $logo
  186. *
  187. * @return $this
  188. */
  189. public function setLogo($logo)
  190. {
  191. $this->requestParameters['Logo'] = $logo;
  192. $this->queryParameters['Logo'] = $logo;
  193. return $this;
  194. }
  195. /**
  196. * @param string $spam
  197. *
  198. * @return $this
  199. */
  200. public function setspam($spam)
  201. {
  202. $this->requestParameters['spam'] = $spam;
  203. $this->queryParameters['spam'] = $spam;
  204. return $this;
  205. }
  206. /**
  207. * @param string $live
  208. *
  209. * @return $this
  210. */
  211. public function setLive($live)
  212. {
  213. $this->requestParameters['Live'] = $live;
  214. $this->queryParameters['Live'] = $live;
  215. return $this;
  216. }
  217. }