ListObjectsV2Result.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 <alibabacloud/oss/model/Bucket.h>
  18. #include <alibabacloud/oss/model/ListObjectsResult.h>
  19. #include <vector>
  20. #include <memory>
  21. #include <iostream>
  22. #include <alibabacloud/oss/OssResult.h>
  23. #include <alibabacloud/oss/model/Owner.h>
  24. namespace AlibabaCloud
  25. {
  26. namespace OSS
  27. {
  28. class ALIBABACLOUD_OSS_EXPORT ListObjectsV2Result : public OssResult
  29. {
  30. public:
  31. ListObjectsV2Result();
  32. ListObjectsV2Result(const std::string& data);
  33. ListObjectsV2Result(const std::shared_ptr<std::iostream>& data);
  34. ListObjectsV2Result& operator=(const std::string& data);
  35. const std::string& Name() const { return name_; }
  36. const std::string& Prefix() const { return prefix_; }
  37. const std::string& StartAfter() const { return startAfter_; }
  38. const std::string& ContinuationToken() const { return continuationToken_; }
  39. const std::string& NextContinuationToken() const { return nextContinuationToken_; }
  40. const std::string& Delimiter() const { return delimiter_; }
  41. const std::string& EncodingType() const { return encodingType_; }
  42. int MaxKeys() const { return maxKeys_; }
  43. int KeyCount() const { return keyCount_; }
  44. bool IsTruncated() const { return isTruncated_; }
  45. const CommonPrefixeList& CommonPrefixes() const { return commonPrefixes_; }
  46. const ObjectSummaryList& ObjectSummarys() const { return objectSummarys_; }
  47. private:
  48. std::string name_;
  49. std::string prefix_;
  50. std::string startAfter_;
  51. std::string continuationToken_;
  52. std::string nextContinuationToken_;
  53. std::string delimiter_;
  54. std::string encodingType_;
  55. int maxKeys_;
  56. int keyCount_;
  57. bool isTruncated_;
  58. CommonPrefixeList commonPrefixes_;
  59. ObjectSummaryList objectSummarys_;
  60. };
  61. }
  62. }