DecryptKeyRequest.php 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <?php
  2. namespace Mts\Request\V20140618;
  3. /**
  4. * Request of DecryptKey
  5. *
  6. * @method string getRand()
  7. * @method string getResourceOwnerId()
  8. * @method string getResourceOwnerAccount()
  9. * @method string getOwnerAccount()
  10. * @method string getOwnerId()
  11. * @method string getCiphertextBlob()
  12. */
  13. class DecryptKeyRequest extends \RpcAcsRequest
  14. {
  15. /**
  16. * @var string
  17. */
  18. protected $method = 'POST';
  19. /**
  20. * Class constructor.
  21. */
  22. public function __construct()
  23. {
  24. parent::__construct(
  25. 'Mts',
  26. '2014-06-18',
  27. 'DecryptKey',
  28. 'mts'
  29. );
  30. }
  31. /**
  32. * @param string $rand
  33. *
  34. * @return $this
  35. */
  36. public function setRand($rand)
  37. {
  38. $this->requestParameters['Rand'] = $rand;
  39. $this->queryParameters['Rand'] = $rand;
  40. return $this;
  41. }
  42. /**
  43. * @param string $resourceOwnerId
  44. *
  45. * @return $this
  46. */
  47. public function setResourceOwnerId($resourceOwnerId)
  48. {
  49. $this->requestParameters['ResourceOwnerId'] = $resourceOwnerId;
  50. $this->queryParameters['ResourceOwnerId'] = $resourceOwnerId;
  51. return $this;
  52. }
  53. /**
  54. * @param string $resourceOwnerAccount
  55. *
  56. * @return $this
  57. */
  58. public function setResourceOwnerAccount($resourceOwnerAccount)
  59. {
  60. $this->requestParameters['ResourceOwnerAccount'] = $resourceOwnerAccount;
  61. $this->queryParameters['ResourceOwnerAccount'] = $resourceOwnerAccount;
  62. return $this;
  63. }
  64. /**
  65. * @param string $ownerAccount
  66. *
  67. * @return $this
  68. */
  69. public function setOwnerAccount($ownerAccount)
  70. {
  71. $this->requestParameters['OwnerAccount'] = $ownerAccount;
  72. $this->queryParameters['OwnerAccount'] = $ownerAccount;
  73. return $this;
  74. }
  75. /**
  76. * @param string $ownerId
  77. *
  78. * @return $this
  79. */
  80. public function setOwnerId($ownerId)
  81. {
  82. $this->requestParameters['OwnerId'] = $ownerId;
  83. $this->queryParameters['OwnerId'] = $ownerId;
  84. return $this;
  85. }
  86. /**
  87. * @param string $ciphertextBlob
  88. *
  89. * @return $this
  90. */
  91. public function setCiphertextBlob($ciphertextBlob)
  92. {
  93. $this->requestParameters['CiphertextBlob'] = $ciphertextBlob;
  94. $this->queryParameters['CiphertextBlob'] = $ciphertextBlob;
  95. return $this;
  96. }
  97. }