ListBucketsResult.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * Copyright 2009-2017 Alibaba Cloud All rights reserved.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #pragma once
  17. #include "Bucket.h"
  18. #include <vector>
  19. #include <memory>
  20. #include <iostream>
  21. #include <alibabacloud/oss/OssResult.h>
  22. namespace AlibabaCloud
  23. {
  24. namespace OSS
  25. {
  26. class ALIBABACLOUD_OSS_EXPORT ListBucketsResult: public OssResult
  27. {
  28. public:
  29. ListBucketsResult();
  30. ListBucketsResult(const std::string& data);
  31. ListBucketsResult(const std::shared_ptr<std::iostream>& data);
  32. ListBucketsResult& operator=(const std::string& data);
  33. const std::string& Prefix() const { return prefix_; }
  34. const std::string& Marker() const { return marker_; }
  35. const std::string& NextMarker() const { return nextMarker_; }
  36. int MaxKeys() const { return maxKeys_; }
  37. bool IsTruncated() const { return isTruncated_; }
  38. const std::vector<Bucket>& Buckets() const { return buckets_; }
  39. private:
  40. std::string prefix_;
  41. std::string marker_;
  42. std::string nextMarker_;
  43. bool isTruncated_;
  44. int maxKeys_;
  45. std::vector<Bucket> buckets_;
  46. };
  47. }
  48. }