service_resp.h 858 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // Copyright (c) 2017, Tencent Inc.
  2. // All rights reserved.
  3. //
  4. // Author: sevenyou <sevenyou@tencent.com>
  5. // Created: 11/14/17
  6. // Description:
  7. #ifndef SERVICE_RESP_H
  8. #define SERVICE_RESP_H
  9. #pragma once
  10. #include <vector>
  11. #include "cos_config.h"
  12. #include "cos_defines.h"
  13. #include "response/base_resp.h"
  14. namespace qcloud_cos {
  15. class GetServiceResp : public BaseResp {
  16. public:
  17. GetServiceResp() {}
  18. virtual ~GetServiceResp() {}
  19. virtual bool ParseFromXmlString(const std::string& body);
  20. /// \brief 获取 Bucket 持有者的信息
  21. ///
  22. /// \return Owner 持有者的信息
  23. Owner GetOwner() const { return m_owner; }
  24. /// \brief 获取所有 Bucket 列表信息
  25. std::vector<Bucket> GetBuckets() const { return m_buckets; }
  26. private:
  27. Owner m_owner;
  28. std::vector<Bucket> m_buckets;
  29. };
  30. } // namespace qcloud_cos
  31. #endif // SERVICE_RESP_H