AWS SDK for C++

AWS SDK for C++ Version 1.11.812

Loading...
Searching...
No Matches
ObjectPart.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/s3/S3_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Xml {
15class XmlNode;
16} // namespace Xml
17} // namespace Utils
18namespace S3 {
19namespace Model {
20
28 public:
29 AWS_S3_API ObjectPart() = default;
30 AWS_S3_API ObjectPart(const Aws::Utils::Xml::XmlNode& xmlNode);
31 AWS_S3_API ObjectPart& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
34
36
40 inline int GetPartNumber() const { return m_partNumber; }
41 inline bool PartNumberHasBeenSet() const { return m_partNumberHasBeenSet; }
42 inline void SetPartNumber(int value) {
43 m_partNumberHasBeenSet = true;
44 m_partNumber = value;
45 }
46 inline ObjectPart& WithPartNumber(int value) {
47 SetPartNumber(value);
48 return *this;
49 }
51
53
56 inline long long GetSize() const { return m_size; }
57 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
58 inline void SetSize(long long value) {
59 m_sizeHasBeenSet = true;
60 m_size = value;
61 }
62 inline ObjectPart& WithSize(long long value) {
63 SetSize(value);
64 return *this;
65 }
67
69
76 inline const Aws::String& GetChecksumCRC32() const { return m_checksumCRC32; }
77 inline bool ChecksumCRC32HasBeenSet() const { return m_checksumCRC32HasBeenSet; }
78 template <typename ChecksumCRC32T = Aws::String>
79 void SetChecksumCRC32(ChecksumCRC32T&& value) {
80 m_checksumCRC32HasBeenSet = true;
81 m_checksumCRC32 = std::forward<ChecksumCRC32T>(value);
82 }
83 template <typename ChecksumCRC32T = Aws::String>
84 ObjectPart& WithChecksumCRC32(ChecksumCRC32T&& value) {
85 SetChecksumCRC32(std::forward<ChecksumCRC32T>(value));
86 return *this;
87 }
89
91
98 inline const Aws::String& GetChecksumCRC32C() const { return m_checksumCRC32C; }
99 inline bool ChecksumCRC32CHasBeenSet() const { return m_checksumCRC32CHasBeenSet; }
100 template <typename ChecksumCRC32CT = Aws::String>
101 void SetChecksumCRC32C(ChecksumCRC32CT&& value) {
102 m_checksumCRC32CHasBeenSet = true;
103 m_checksumCRC32C = std::forward<ChecksumCRC32CT>(value);
104 }
105 template <typename ChecksumCRC32CT = Aws::String>
106 ObjectPart& WithChecksumCRC32C(ChecksumCRC32CT&& value) {
107 SetChecksumCRC32C(std::forward<ChecksumCRC32CT>(value));
108 return *this;
109 }
111
113
122 inline const Aws::String& GetChecksumCRC64NVME() const { return m_checksumCRC64NVME; }
123 inline bool ChecksumCRC64NVMEHasBeenSet() const { return m_checksumCRC64NVMEHasBeenSet; }
124 template <typename ChecksumCRC64NVMET = Aws::String>
125 void SetChecksumCRC64NVME(ChecksumCRC64NVMET&& value) {
126 m_checksumCRC64NVMEHasBeenSet = true;
127 m_checksumCRC64NVME = std::forward<ChecksumCRC64NVMET>(value);
128 }
129 template <typename ChecksumCRC64NVMET = Aws::String>
130 ObjectPart& WithChecksumCRC64NVME(ChecksumCRC64NVMET&& value) {
131 SetChecksumCRC64NVME(std::forward<ChecksumCRC64NVMET>(value));
132 return *this;
133 }
135
137
144 inline const Aws::String& GetChecksumSHA1() const { return m_checksumSHA1; }
145 inline bool ChecksumSHA1HasBeenSet() const { return m_checksumSHA1HasBeenSet; }
146 template <typename ChecksumSHA1T = Aws::String>
147 void SetChecksumSHA1(ChecksumSHA1T&& value) {
148 m_checksumSHA1HasBeenSet = true;
149 m_checksumSHA1 = std::forward<ChecksumSHA1T>(value);
150 }
151 template <typename ChecksumSHA1T = Aws::String>
152 ObjectPart& WithChecksumSHA1(ChecksumSHA1T&& value) {
153 SetChecksumSHA1(std::forward<ChecksumSHA1T>(value));
154 return *this;
155 }
157
159
166 inline const Aws::String& GetChecksumSHA256() const { return m_checksumSHA256; }
167 inline bool ChecksumSHA256HasBeenSet() const { return m_checksumSHA256HasBeenSet; }
168 template <typename ChecksumSHA256T = Aws::String>
169 void SetChecksumSHA256(ChecksumSHA256T&& value) {
170 m_checksumSHA256HasBeenSet = true;
171 m_checksumSHA256 = std::forward<ChecksumSHA256T>(value);
172 }
173 template <typename ChecksumSHA256T = Aws::String>
174 ObjectPart& WithChecksumSHA256(ChecksumSHA256T&& value) {
175 SetChecksumSHA256(std::forward<ChecksumSHA256T>(value));
176 return *this;
177 }
179
181
188 inline const Aws::String& GetChecksumSHA512() const { return m_checksumSHA512; }
189 inline bool ChecksumSHA512HasBeenSet() const { return m_checksumSHA512HasBeenSet; }
190 template <typename ChecksumSHA512T = Aws::String>
191 void SetChecksumSHA512(ChecksumSHA512T&& value) {
192 m_checksumSHA512HasBeenSet = true;
193 m_checksumSHA512 = std::forward<ChecksumSHA512T>(value);
194 }
195 template <typename ChecksumSHA512T = Aws::String>
196 ObjectPart& WithChecksumSHA512(ChecksumSHA512T&& value) {
197 SetChecksumSHA512(std::forward<ChecksumSHA512T>(value));
198 return *this;
199 }
201
203
210 inline const Aws::String& GetChecksumMD5() const { return m_checksumMD5; }
211 inline bool ChecksumMD5HasBeenSet() const { return m_checksumMD5HasBeenSet; }
212 template <typename ChecksumMD5T = Aws::String>
213 void SetChecksumMD5(ChecksumMD5T&& value) {
214 m_checksumMD5HasBeenSet = true;
215 m_checksumMD5 = std::forward<ChecksumMD5T>(value);
216 }
217 template <typename ChecksumMD5T = Aws::String>
218 ObjectPart& WithChecksumMD5(ChecksumMD5T&& value) {
219 SetChecksumMD5(std::forward<ChecksumMD5T>(value));
220 return *this;
221 }
223
225
232 inline const Aws::String& GetChecksumXXHASH64() const { return m_checksumXXHASH64; }
233 inline bool ChecksumXXHASH64HasBeenSet() const { return m_checksumXXHASH64HasBeenSet; }
234 template <typename ChecksumXXHASH64T = Aws::String>
235 void SetChecksumXXHASH64(ChecksumXXHASH64T&& value) {
236 m_checksumXXHASH64HasBeenSet = true;
237 m_checksumXXHASH64 = std::forward<ChecksumXXHASH64T>(value);
238 }
239 template <typename ChecksumXXHASH64T = Aws::String>
240 ObjectPart& WithChecksumXXHASH64(ChecksumXXHASH64T&& value) {
241 SetChecksumXXHASH64(std::forward<ChecksumXXHASH64T>(value));
242 return *this;
243 }
245
247
254 inline const Aws::String& GetChecksumXXHASH3() const { return m_checksumXXHASH3; }
255 inline bool ChecksumXXHASH3HasBeenSet() const { return m_checksumXXHASH3HasBeenSet; }
256 template <typename ChecksumXXHASH3T = Aws::String>
257 void SetChecksumXXHASH3(ChecksumXXHASH3T&& value) {
258 m_checksumXXHASH3HasBeenSet = true;
259 m_checksumXXHASH3 = std::forward<ChecksumXXHASH3T>(value);
260 }
261 template <typename ChecksumXXHASH3T = Aws::String>
262 ObjectPart& WithChecksumXXHASH3(ChecksumXXHASH3T&& value) {
263 SetChecksumXXHASH3(std::forward<ChecksumXXHASH3T>(value));
264 return *this;
265 }
267
269
276 inline const Aws::String& GetChecksumXXHASH128() const { return m_checksumXXHASH128; }
277 inline bool ChecksumXXHASH128HasBeenSet() const { return m_checksumXXHASH128HasBeenSet; }
278 template <typename ChecksumXXHASH128T = Aws::String>
279 void SetChecksumXXHASH128(ChecksumXXHASH128T&& value) {
280 m_checksumXXHASH128HasBeenSet = true;
281 m_checksumXXHASH128 = std::forward<ChecksumXXHASH128T>(value);
282 }
283 template <typename ChecksumXXHASH128T = Aws::String>
284 ObjectPart& WithChecksumXXHASH128(ChecksumXXHASH128T&& value) {
285 SetChecksumXXHASH128(std::forward<ChecksumXXHASH128T>(value));
286 return *this;
287 }
289 private:
290 int m_partNumber{0};
291
292 long long m_size{0};
293
294 Aws::String m_checksumCRC32;
295
296 Aws::String m_checksumCRC32C;
297
298 Aws::String m_checksumCRC64NVME;
299
300 Aws::String m_checksumSHA1;
301
302 Aws::String m_checksumSHA256;
303
304 Aws::String m_checksumSHA512;
305
306 Aws::String m_checksumMD5;
307
308 Aws::String m_checksumXXHASH64;
309
310 Aws::String m_checksumXXHASH3;
311
312 Aws::String m_checksumXXHASH128;
313 bool m_partNumberHasBeenSet = false;
314 bool m_sizeHasBeenSet = false;
315 bool m_checksumCRC32HasBeenSet = false;
316 bool m_checksumCRC32CHasBeenSet = false;
317 bool m_checksumCRC64NVMEHasBeenSet = false;
318 bool m_checksumSHA1HasBeenSet = false;
319 bool m_checksumSHA256HasBeenSet = false;
320 bool m_checksumSHA512HasBeenSet = false;
321 bool m_checksumMD5HasBeenSet = false;
322 bool m_checksumXXHASH64HasBeenSet = false;
323 bool m_checksumXXHASH3HasBeenSet = false;
324 bool m_checksumXXHASH128HasBeenSet = false;
325};
326
327} // namespace Model
328} // namespace S3
329} // namespace Aws
void SetChecksumXXHASH3(ChecksumXXHASH3T &&value)
Definition ObjectPart.h:257
const Aws::String & GetChecksumSHA256() const
Definition ObjectPart.h:166
AWS_S3_API ObjectPart()=default
void SetChecksumCRC32(ChecksumCRC32T &&value)
Definition ObjectPart.h:79
long long GetSize() const
Definition ObjectPart.h:56
bool PartNumberHasBeenSet() const
Definition ObjectPart.h:41
bool ChecksumXXHASH64HasBeenSet() const
Definition ObjectPart.h:233
AWS_S3_API ObjectPart & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ObjectPart & WithChecksumXXHASH64(ChecksumXXHASH64T &&value)
Definition ObjectPart.h:240
void SetChecksumSHA256(ChecksumSHA256T &&value)
Definition ObjectPart.h:169
ObjectPart & WithPartNumber(int value)
Definition ObjectPart.h:46
void SetPartNumber(int value)
Definition ObjectPart.h:42
bool ChecksumSHA256HasBeenSet() const
Definition ObjectPart.h:167
ObjectPart & WithSize(long long value)
Definition ObjectPart.h:62
void SetChecksumXXHASH128(ChecksumXXHASH128T &&value)
Definition ObjectPart.h:279
ObjectPart & WithChecksumSHA512(ChecksumSHA512T &&value)
Definition ObjectPart.h:196
bool ChecksumXXHASH128HasBeenSet() const
Definition ObjectPart.h:277
const Aws::String & GetChecksumXXHASH128() const
Definition ObjectPart.h:276
const Aws::String & GetChecksumCRC32() const
Definition ObjectPart.h:76
const Aws::String & GetChecksumMD5() const
Definition ObjectPart.h:210
bool ChecksumSHA1HasBeenSet() const
Definition ObjectPart.h:145
void SetChecksumSHA1(ChecksumSHA1T &&value)
Definition ObjectPart.h:147
ObjectPart & WithChecksumXXHASH3(ChecksumXXHASH3T &&value)
Definition ObjectPart.h:262
void SetChecksumMD5(ChecksumMD5T &&value)
Definition ObjectPart.h:213
ObjectPart & WithChecksumSHA1(ChecksumSHA1T &&value)
Definition ObjectPart.h:152
bool ChecksumCRC32HasBeenSet() const
Definition ObjectPart.h:77
bool ChecksumMD5HasBeenSet() const
Definition ObjectPart.h:211
bool ChecksumXXHASH3HasBeenSet() const
Definition ObjectPart.h:255
bool SizeHasBeenSet() const
Definition ObjectPart.h:57
const Aws::String & GetChecksumCRC64NVME() const
Definition ObjectPart.h:122
const Aws::String & GetChecksumSHA512() const
Definition ObjectPart.h:188
void SetChecksumCRC64NVME(ChecksumCRC64NVMET &&value)
Definition ObjectPart.h:125
const Aws::String & GetChecksumXXHASH3() const
Definition ObjectPart.h:254
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const Aws::String & GetChecksumCRC32C() const
Definition ObjectPart.h:98
const Aws::String & GetChecksumSHA1() const
Definition ObjectPart.h:144
void SetChecksumCRC32C(ChecksumCRC32CT &&value)
Definition ObjectPart.h:101
ObjectPart & WithChecksumXXHASH128(ChecksumXXHASH128T &&value)
Definition ObjectPart.h:284
ObjectPart & WithChecksumMD5(ChecksumMD5T &&value)
Definition ObjectPart.h:218
void SetChecksumSHA512(ChecksumSHA512T &&value)
Definition ObjectPart.h:191
ObjectPart & WithChecksumCRC32(ChecksumCRC32T &&value)
Definition ObjectPart.h:84
ObjectPart & WithChecksumCRC32C(ChecksumCRC32CT &&value)
Definition ObjectPart.h:106
ObjectPart & WithChecksumSHA256(ChecksumSHA256T &&value)
Definition ObjectPart.h:174
bool ChecksumSHA512HasBeenSet() const
Definition ObjectPart.h:189
void SetSize(long long value)
Definition ObjectPart.h:58
AWS_S3_API ObjectPart(const Aws::Utils::Xml::XmlNode &xmlNode)
bool ChecksumCRC64NVMEHasBeenSet() const
Definition ObjectPart.h:123
ObjectPart & WithChecksumCRC64NVME(ChecksumCRC64NVMET &&value)
Definition ObjectPart.h:130
bool ChecksumCRC32CHasBeenSet() const
Definition ObjectPart.h:99
const Aws::String & GetChecksumXXHASH64() const
Definition ObjectPart.h:232
void SetChecksumXXHASH64(ChecksumXXHASH64T &&value)
Definition ObjectPart.h:235
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String