ListMultipartUploadInfo.php 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <?php
  2. namespace OSS\Model;
  3. /**
  4. * Class ListMultipartUploadInfo
  5. * @package OSS\Model
  6. *
  7. * @link http://help.aliyun.com/document_detail/oss/api-reference/multipart-upload/ListMultipartUploads.html
  8. */
  9. class ListMultipartUploadInfo
  10. {
  11. /**
  12. * ListMultipartUploadInfo constructor.
  13. *
  14. * @param string $bucket
  15. * @param string $keyMarker
  16. * @param string $uploadIdMarker
  17. * @param string $nextKeyMarker
  18. * @param string $nextUploadIdMarker
  19. * @param string $delimiter
  20. * @param string $prefix
  21. * @param int $maxUploads
  22. * @param string $isTruncated
  23. * @param array $uploads
  24. */
  25. public function __construct($bucket, $keyMarker, $uploadIdMarker, $nextKeyMarker, $nextUploadIdMarker, $delimiter, $prefix, $maxUploads, $isTruncated, array $uploads)
  26. {
  27. $this->bucket = $bucket;
  28. $this->keyMarker = $keyMarker;
  29. $this->uploadIdMarker = $uploadIdMarker;
  30. $this->nextKeyMarker = $nextKeyMarker;
  31. $this->nextUploadIdMarker = $nextUploadIdMarker;
  32. $this->delimiter = $delimiter;
  33. $this->prefix = $prefix;
  34. $this->maxUploads = $maxUploads;
  35. $this->isTruncated = $isTruncated;
  36. $this->uploads = $uploads;
  37. }
  38. /**
  39. * 得到bucket名称
  40. *
  41. * @return string
  42. */
  43. public function getBucket()
  44. {
  45. return $this->bucket;
  46. }
  47. /**
  48. * @return string
  49. */
  50. public function getKeyMarker()
  51. {
  52. return $this->keyMarker;
  53. }
  54. /**
  55. *
  56. * @return string
  57. */
  58. public function getUploadIdMarker()
  59. {
  60. return $this->uploadIdMarker;
  61. }
  62. /**
  63. * @return string
  64. */
  65. public function getNextKeyMarker()
  66. {
  67. return $this->nextKeyMarker;
  68. }
  69. /**
  70. * @return string
  71. */
  72. public function getNextUploadIdMarker()
  73. {
  74. return $this->nextUploadIdMarker;
  75. }
  76. /**
  77. * @return string
  78. */
  79. public function getDelimiter()
  80. {
  81. return $this->delimiter;
  82. }
  83. /**
  84. * @return string
  85. */
  86. public function getPrefix()
  87. {
  88. return $this->prefix;
  89. }
  90. /**
  91. * @return int
  92. */
  93. public function getMaxUploads()
  94. {
  95. return $this->maxUploads;
  96. }
  97. /**
  98. * @return string
  99. */
  100. public function getIsTruncated()
  101. {
  102. return $this->isTruncated;
  103. }
  104. /**
  105. * @return UploadInfo[]
  106. */
  107. public function getUploads()
  108. {
  109. return $this->uploads;
  110. }
  111. private $bucket = "";
  112. private $keyMarker = "";
  113. private $uploadIdMarker = "";
  114. private $nextKeyMarker = "";
  115. private $nextUploadIdMarker = "";
  116. private $delimiter = "";
  117. private $prefix = "";
  118. private $maxUploads = 0;
  119. private $isTruncated = "false";
  120. private $uploads = array();
  121. }