ListMediaRequest.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <?php
  2. namespace Mts\Request\V20140618;
  3. /**
  4. * Request of ListMedia
  5. *
  6. * @method string getResourceOwnerId()
  7. * @method string getResourceOwnerAccount()
  8. * @method string getNextPageToken()
  9. * @method string getOwnerAccount()
  10. * @method string getMaximumPageSize()
  11. * @method string getFrom()
  12. * @method string getTo()
  13. * @method string getOwnerId()
  14. */
  15. class ListMediaRequest extends \RpcAcsRequest
  16. {
  17. /**
  18. * @var string
  19. */
  20. protected $method = 'POST';
  21. /**
  22. * Class constructor.
  23. */
  24. public function __construct()
  25. {
  26. parent::__construct(
  27. 'Mts',
  28. '2014-06-18',
  29. 'ListMedia',
  30. 'mts'
  31. );
  32. }
  33. /**
  34. * @param string $resourceOwnerId
  35. *
  36. * @return $this
  37. */
  38. public function setResourceOwnerId($resourceOwnerId)
  39. {
  40. $this->requestParameters['ResourceOwnerId'] = $resourceOwnerId;
  41. $this->queryParameters['ResourceOwnerId'] = $resourceOwnerId;
  42. return $this;
  43. }
  44. /**
  45. * @param string $resourceOwnerAccount
  46. *
  47. * @return $this
  48. */
  49. public function setResourceOwnerAccount($resourceOwnerAccount)
  50. {
  51. $this->requestParameters['ResourceOwnerAccount'] = $resourceOwnerAccount;
  52. $this->queryParameters['ResourceOwnerAccount'] = $resourceOwnerAccount;
  53. return $this;
  54. }
  55. /**
  56. * @param string $nextPageToken
  57. *
  58. * @return $this
  59. */
  60. public function setNextPageToken($nextPageToken)
  61. {
  62. $this->requestParameters['NextPageToken'] = $nextPageToken;
  63. $this->queryParameters['NextPageToken'] = $nextPageToken;
  64. return $this;
  65. }
  66. /**
  67. * @param string $ownerAccount
  68. *
  69. * @return $this
  70. */
  71. public function setOwnerAccount($ownerAccount)
  72. {
  73. $this->requestParameters['OwnerAccount'] = $ownerAccount;
  74. $this->queryParameters['OwnerAccount'] = $ownerAccount;
  75. return $this;
  76. }
  77. /**
  78. * @param string $maximumPageSize
  79. *
  80. * @return $this
  81. */
  82. public function setMaximumPageSize($maximumPageSize)
  83. {
  84. $this->requestParameters['MaximumPageSize'] = $maximumPageSize;
  85. $this->queryParameters['MaximumPageSize'] = $maximumPageSize;
  86. return $this;
  87. }
  88. /**
  89. * @param string $from
  90. *
  91. * @return $this
  92. */
  93. public function setFrom($from)
  94. {
  95. $this->requestParameters['From'] = $from;
  96. $this->queryParameters['From'] = $from;
  97. return $this;
  98. }
  99. /**
  100. * @param string $to
  101. *
  102. * @return $this
  103. */
  104. public function setTo($to)
  105. {
  106. $this->requestParameters['To'] = $to;
  107. $this->queryParameters['To'] = $to;
  108. return $this;
  109. }
  110. /**
  111. * @param string $ownerId
  112. *
  113. * @return $this
  114. */
  115. public function setOwnerId($ownerId)
  116. {
  117. $this->requestParameters['OwnerId'] = $ownerId;
  118. $this->queryParameters['OwnerId'] = $ownerId;
  119. return $this;
  120. }
  121. }