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 
17 #pragma once
18 #include <alibabacloud/oss/model/Bucket.h>
19 #include <vector>
20 #include <memory>
21 #include <iostream>
22 #include <alibabacloud/oss/Export.h>
23 #include <alibabacloud/oss/model/Owner.h>
24 #include <alibabacloud/oss/OssResult.h>
25 #include <alibabacloud/oss/model/Part.h>
26 
27 namespace AlibabaCloud
28 {
29 namespace OSS
30 {
31     class ALIBABACLOUD_OSS_EXPORT ListPartsResult :public OssResult
32     {
33     public:
34         ListPartsResult();
35         ListPartsResult(const std::string& data);
36         ListPartsResult(const std::shared_ptr<std::iostream>& data);
37         ListPartsResult& operator=(const std::string& data);
38         const std::string& Bucket() const;
39         const std::string& Key() const;
40         const std::string& UploadId() const;
41         const std::string& EncodingType() const;
42         uint32_t MaxParts() const;
43         uint32_t PartNumberMarker() const;
44         uint32_t NextPartNumberMarker() const;
45         const AlibabaCloud::OSS::PartList& PartList()const;
46         bool IsTruncated() const;
47     private:
48         std::string uploadId_;
49         uint32_t maxParts_;
50         uint32_t partNumberMarker_;
51         uint32_t nextPartNumberMarker_;
52         std::string encodingType_;
53         std::string key_;
54         std::string bucket_;
55         bool isTruncated_;
56         AlibabaCloud::OSS::PartList partList_;
57     };
58 }
59 }
60