SubmitMcuJobRequest.php 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. <?php
  2. namespace Mts\Request\V20140618;
  3. /**
  4. * Request of SubmitMcuJob
  5. *
  6. * @method string getTemplate()
  7. * @method string getInput()
  8. * @method string getUserData()
  9. * @method string getResourceOwnerId()
  10. * @method string getResourceOwnerAccount()
  11. * @method string getOwnerAccount()
  12. * @method string getOwnerId()
  13. * @method string getTemplateId()
  14. * @method string getPipelineId()
  15. */
  16. class SubmitMcuJobRequest extends \RpcAcsRequest
  17. {
  18. /**
  19. * @var string
  20. */
  21. protected $method = 'POST';
  22. /**
  23. * Class constructor.
  24. */
  25. public function __construct()
  26. {
  27. parent::__construct(
  28. 'Mts',
  29. '2014-06-18',
  30. 'SubmitMcuJob',
  31. 'mts'
  32. );
  33. }
  34. /**
  35. * @param string $template
  36. *
  37. * @return $this
  38. */
  39. public function setTemplate($template)
  40. {
  41. $this->requestParameters['Template'] = $template;
  42. $this->queryParameters['Template'] = $template;
  43. return $this;
  44. }
  45. /**
  46. * @param string $input
  47. *
  48. * @return $this
  49. */
  50. public function setInput($input)
  51. {
  52. $this->requestParameters['Input'] = $input;
  53. $this->queryParameters['Input'] = $input;
  54. return $this;
  55. }
  56. /**
  57. * @param string $userData
  58. *
  59. * @return $this
  60. */
  61. public function setUserData($userData)
  62. {
  63. $this->requestParameters['UserData'] = $userData;
  64. $this->queryParameters['UserData'] = $userData;
  65. return $this;
  66. }
  67. /**
  68. * @param string $resourceOwnerId
  69. *
  70. * @return $this
  71. */
  72. public function setResourceOwnerId($resourceOwnerId)
  73. {
  74. $this->requestParameters['ResourceOwnerId'] = $resourceOwnerId;
  75. $this->queryParameters['ResourceOwnerId'] = $resourceOwnerId;
  76. return $this;
  77. }
  78. /**
  79. * @param string $resourceOwnerAccount
  80. *
  81. * @return $this
  82. */
  83. public function setResourceOwnerAccount($resourceOwnerAccount)
  84. {
  85. $this->requestParameters['ResourceOwnerAccount'] = $resourceOwnerAccount;
  86. $this->queryParameters['ResourceOwnerAccount'] = $resourceOwnerAccount;
  87. return $this;
  88. }
  89. /**
  90. * @param string $ownerAccount
  91. *
  92. * @return $this
  93. */
  94. public function setOwnerAccount($ownerAccount)
  95. {
  96. $this->requestParameters['OwnerAccount'] = $ownerAccount;
  97. $this->queryParameters['OwnerAccount'] = $ownerAccount;
  98. return $this;
  99. }
  100. /**
  101. * @param string $ownerId
  102. *
  103. * @return $this
  104. */
  105. public function setOwnerId($ownerId)
  106. {
  107. $this->requestParameters['OwnerId'] = $ownerId;
  108. $this->queryParameters['OwnerId'] = $ownerId;
  109. return $this;
  110. }
  111. /**
  112. * @param string $templateId
  113. *
  114. * @return $this
  115. */
  116. public function setTemplateId($templateId)
  117. {
  118. $this->requestParameters['TemplateId'] = $templateId;
  119. $this->queryParameters['TemplateId'] = $templateId;
  120. return $this;
  121. }
  122. /**
  123. * @param string $pipelineId
  124. *
  125. * @return $this
  126. */
  127. public function setPipelineId($pipelineId)
  128. {
  129. $this->requestParameters['PipelineId'] = $pipelineId;
  130. $this->queryParameters['PipelineId'] = $pipelineId;
  131. return $this;
  132. }
  133. }