ListTopicsRequest.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <?php
  2. /**
  3. * Copyright (C) Alibaba Cloud Computing
  4. * All rights reserved
  5. */
  6. require_once realpath(dirname(__FILE__) . '/Request.php');
  7. /**
  8. * The Request used to list topics from log service.
  9. *
  10. * @author log service dev
  11. */
  12. class Aliyun_Log_Models_ListTopicsRequest extends Aliyun_Log_Models_Request {
  13. /**
  14. * @var string $logstore logstore name
  15. */
  16. private $logstore;
  17. /**
  18. * @var string $token the start token to list topics
  19. */
  20. private $token;
  21. /**
  22. * @var integer $line max topic counts to return
  23. */
  24. private $line;
  25. /**
  26. * Aliyun_Log_Models_ListTopicsRequest constructor
  27. *
  28. * @param string $project project name
  29. * @param string $logstore logstore name
  30. * @param string $token the start token to list topics
  31. * @param integer $line max topic counts to return
  32. */
  33. public function __construct($project=null, $logstore=null, $token=null, $line=null) {
  34. parent::__construct($project);
  35. $this->logstore = $logstore;
  36. $this->token = $token;
  37. $this->line = $line;
  38. }
  39. /**
  40. * Get logstroe name
  41. *
  42. * @return string logstore name
  43. */
  44. public function getLogstore() {
  45. return $this->logstore;
  46. }
  47. /**
  48. * Set logstore name
  49. *
  50. * @param string $logstore
  51. * logstore name
  52. */
  53. public function setLogstore($logstore) {
  54. $this->logstore = $logstore;
  55. }
  56. /**
  57. * Get start token to list topics
  58. *
  59. * @return string start token to list topics
  60. */
  61. public function getToken() {
  62. return $this->token;
  63. }
  64. /**
  65. * Set start token to list topics
  66. *
  67. * @param string $token start token to list topics
  68. */
  69. public function setToken($token) {
  70. $this->token = $token;
  71. }
  72. /**
  73. * Get max topic counts to return
  74. *
  75. * @return integer max topic counts to return
  76. */
  77. public function getLine() {
  78. return $this->line;
  79. }
  80. /**
  81. * Set max topic counts to return
  82. *
  83. * @param integer $line max topic counts to return
  84. */
  85. public function setLine($line) {
  86. $this->line = $line;
  87. }
  88. }