AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetObjectAttributesParts.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/s3/S3_EXPORTS.h>
9#include <aws/s3/model/ObjectPart.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace S3 {
20namespace Model {
21
29 public:
30 AWS_S3_API GetObjectAttributesParts() = default;
33
34 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
35
37
40 inline int GetTotalPartsCount() const { return m_totalPartsCount; }
41 inline bool TotalPartsCountHasBeenSet() const { return m_totalPartsCountHasBeenSet; }
42 inline void SetTotalPartsCount(int value) {
43 m_totalPartsCountHasBeenSet = true;
44 m_totalPartsCount = value;
45 }
47 SetTotalPartsCount(value);
48 return *this;
49 }
51
53
56 inline int GetPartNumberMarker() const { return m_partNumberMarker; }
57 inline bool PartNumberMarkerHasBeenSet() const { return m_partNumberMarkerHasBeenSet; }
58 inline void SetPartNumberMarker(int value) {
59 m_partNumberMarkerHasBeenSet = true;
60 m_partNumberMarker = value;
61 }
64 return *this;
65 }
67
69
74 inline int GetNextPartNumberMarker() const { return m_nextPartNumberMarker; }
75 inline bool NextPartNumberMarkerHasBeenSet() const { return m_nextPartNumberMarkerHasBeenSet; }
76 inline void SetNextPartNumberMarker(int value) {
77 m_nextPartNumberMarkerHasBeenSet = true;
78 m_nextPartNumberMarker = value;
79 }
82 return *this;
83 }
85
87
90 inline int GetMaxParts() const { return m_maxParts; }
91 inline bool MaxPartsHasBeenSet() const { return m_maxPartsHasBeenSet; }
92 inline void SetMaxParts(int value) {
93 m_maxPartsHasBeenSet = true;
94 m_maxParts = value;
95 }
97 SetMaxParts(value);
98 return *this;
99 }
101
103
109 inline bool GetIsTruncated() const { return m_isTruncated; }
110 inline bool IsTruncatedHasBeenSet() const { return m_isTruncatedHasBeenSet; }
111 inline void SetIsTruncated(bool value) {
112 m_isTruncatedHasBeenSet = true;
113 m_isTruncated = value;
114 }
116 SetIsTruncated(value);
117 return *this;
118 }
120
122
135 inline const Aws::Vector<ObjectPart>& GetParts() const { return m_parts; }
136 inline bool PartsHasBeenSet() const { return m_partsHasBeenSet; }
137 template <typename PartsT = Aws::Vector<ObjectPart>>
138 void SetParts(PartsT&& value) {
139 m_partsHasBeenSet = true;
140 m_parts = std::forward<PartsT>(value);
141 }
142 template <typename PartsT = Aws::Vector<ObjectPart>>
144 SetParts(std::forward<PartsT>(value));
145 return *this;
146 }
147 template <typename PartsT = ObjectPart>
149 m_partsHasBeenSet = true;
150 m_parts.emplace_back(std::forward<PartsT>(value));
151 return *this;
152 }
154 private:
155 int m_totalPartsCount{0};
156
157 int m_partNumberMarker{0};
158
159 int m_nextPartNumberMarker{0};
160
161 int m_maxParts{0};
162
163 bool m_isTruncated{false};
164
166 bool m_totalPartsCountHasBeenSet = false;
167 bool m_partNumberMarkerHasBeenSet = false;
168 bool m_nextPartNumberMarkerHasBeenSet = false;
169 bool m_maxPartsHasBeenSet = false;
170 bool m_isTruncatedHasBeenSet = false;
171 bool m_partsHasBeenSet = false;
172};
173
174} // namespace Model
175} // namespace S3
176} // namespace Aws
GetObjectAttributesParts & WithNextPartNumberMarker(int value)
GetObjectAttributesParts & WithParts(PartsT &&value)
GetObjectAttributesParts & AddParts(PartsT &&value)
GetObjectAttributesParts & WithTotalPartsCount(int value)
GetObjectAttributesParts & WithPartNumberMarker(int value)
GetObjectAttributesParts & WithIsTruncated(bool value)
const Aws::Vector< ObjectPart > & GetParts() const
AWS_S3_API GetObjectAttributesParts(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
GetObjectAttributesParts & WithMaxParts(int value)
AWS_S3_API GetObjectAttributesParts & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3_API GetObjectAttributesParts()=default
std::vector< T, Aws::Allocator< T > > Vector