CheckResourceRequest.php 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. <?php
  2. namespace Mts\Request\V20140618;
  3. /**
  4. * Request of CheckResource
  5. *
  6. * @method string getCountry()
  7. * @method string getHid()
  8. * @method string getLevel()
  9. * @method string getInvoker()
  10. * @method string getMessage()
  11. * @method string getUrl()
  12. * @method string getSuccess()
  13. * @method string getInterrupt()
  14. * @method string getGmtWakeup()
  15. * @method string getPk()
  16. * @method string getBid()
  17. * @method string getPrompt()
  18. * @method string getTaskExtraData()
  19. * @method string getTaskIdentifier()
  20. */
  21. class CheckResourceRequest 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. 'CheckResource',
  36. 'mts'
  37. );
  38. }
  39. /**
  40. * @param string $country
  41. *
  42. * @return $this
  43. */
  44. public function setCountry($country)
  45. {
  46. $this->requestParameters['Country'] = $country;
  47. $this->queryParameters['Country'] = $country;
  48. return $this;
  49. }
  50. /**
  51. * @param string $hid
  52. *
  53. * @return $this
  54. */
  55. public function setHid($hid)
  56. {
  57. $this->requestParameters['Hid'] = $hid;
  58. $this->queryParameters['Hid'] = $hid;
  59. return $this;
  60. }
  61. /**
  62. * @param string $level
  63. *
  64. * @return $this
  65. */
  66. public function setLevel($level)
  67. {
  68. $this->requestParameters['Level'] = $level;
  69. $this->queryParameters['Level'] = $level;
  70. return $this;
  71. }
  72. /**
  73. * @param string $invoker
  74. *
  75. * @return $this
  76. */
  77. public function setInvoker($invoker)
  78. {
  79. $this->requestParameters['Invoker'] = $invoker;
  80. $this->queryParameters['Invoker'] = $invoker;
  81. return $this;
  82. }
  83. /**
  84. * @param string $message
  85. *
  86. * @return $this
  87. */
  88. public function setMessage($message)
  89. {
  90. $this->requestParameters['Message'] = $message;
  91. $this->queryParameters['Message'] = $message;
  92. return $this;
  93. }
  94. /**
  95. * @param string $url
  96. *
  97. * @return $this
  98. */
  99. public function setUrl($url)
  100. {
  101. $this->requestParameters['Url'] = $url;
  102. $this->queryParameters['Url'] = $url;
  103. return $this;
  104. }
  105. /**
  106. * @param string $success
  107. *
  108. * @return $this
  109. */
  110. public function setSuccess($success)
  111. {
  112. $this->requestParameters['Success'] = $success;
  113. $this->queryParameters['Success'] = $success;
  114. return $this;
  115. }
  116. /**
  117. * @param string $interrupt
  118. *
  119. * @return $this
  120. */
  121. public function setInterrupt($interrupt)
  122. {
  123. $this->requestParameters['Interrupt'] = $interrupt;
  124. $this->queryParameters['Interrupt'] = $interrupt;
  125. return $this;
  126. }
  127. /**
  128. * @param string $gmtWakeup
  129. *
  130. * @return $this
  131. */
  132. public function setGmtWakeup($gmtWakeup)
  133. {
  134. $this->requestParameters['GmtWakeup'] = $gmtWakeup;
  135. $this->queryParameters['GmtWakeup'] = $gmtWakeup;
  136. return $this;
  137. }
  138. /**
  139. * @param string $pk
  140. *
  141. * @return $this
  142. */
  143. public function setPk($pk)
  144. {
  145. $this->requestParameters['Pk'] = $pk;
  146. $this->queryParameters['Pk'] = $pk;
  147. return $this;
  148. }
  149. /**
  150. * @param string $bid
  151. *
  152. * @return $this
  153. */
  154. public function setBid($bid)
  155. {
  156. $this->requestParameters['Bid'] = $bid;
  157. $this->queryParameters['Bid'] = $bid;
  158. return $this;
  159. }
  160. /**
  161. * @param string $prompt
  162. *
  163. * @return $this
  164. */
  165. public function setPrompt($prompt)
  166. {
  167. $this->requestParameters['Prompt'] = $prompt;
  168. $this->queryParameters['Prompt'] = $prompt;
  169. return $this;
  170. }
  171. /**
  172. * @param string $taskExtraData
  173. *
  174. * @return $this
  175. */
  176. public function setTaskExtraData($taskExtraData)
  177. {
  178. $this->requestParameters['TaskExtraData'] = $taskExtraData;
  179. $this->queryParameters['TaskExtraData'] = $taskExtraData;
  180. return $this;
  181. }
  182. /**
  183. * @param string $taskIdentifier
  184. *
  185. * @return $this
  186. */
  187. public function setTaskIdentifier($taskIdentifier)
  188. {
  189. $this->requestParameters['TaskIdentifier'] = $taskIdentifier;
  190. $this->queryParameters['TaskIdentifier'] = $taskIdentifier;
  191. return $this;
  192. }
  193. }