AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
ObjectPart.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Xml
16{
17 class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace S3
21{
22namespace Model
23{
24
32 {
33 public:
37
39
40
45 inline int GetPartNumber() const{ return m_partNumber; }
46
51 inline bool PartNumberHasBeenSet() const { return m_partNumberHasBeenSet; }
52
57 inline void SetPartNumber(int value) { m_partNumberHasBeenSet = true; m_partNumber = value; }
58
63 inline ObjectPart& WithPartNumber(int value) { SetPartNumber(value); return *this;}
64
65
69 inline long long GetSize() const{ return m_size; }
70
74 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
75
79 inline void SetSize(long long value) { m_sizeHasBeenSet = true; m_size = value; }
80
84 inline ObjectPart& WithSize(long long value) { SetSize(value); return *this;}
85
86
95 inline const Aws::String& GetChecksumCRC32() const{ return m_checksumCRC32; }
96
105 inline bool ChecksumCRC32HasBeenSet() const { return m_checksumCRC32HasBeenSet; }
106
115 inline void SetChecksumCRC32(const Aws::String& value) { m_checksumCRC32HasBeenSet = true; m_checksumCRC32 = value; }
116
125 inline void SetChecksumCRC32(Aws::String&& value) { m_checksumCRC32HasBeenSet = true; m_checksumCRC32 = std::move(value); }
126
135 inline void SetChecksumCRC32(const char* value) { m_checksumCRC32HasBeenSet = true; m_checksumCRC32.assign(value); }
136
145 inline ObjectPart& WithChecksumCRC32(const Aws::String& value) { SetChecksumCRC32(value); return *this;}
146
155 inline ObjectPart& WithChecksumCRC32(Aws::String&& value) { SetChecksumCRC32(std::move(value)); return *this;}
156
165 inline ObjectPart& WithChecksumCRC32(const char* value) { SetChecksumCRC32(value); return *this;}
166
167
176 inline const Aws::String& GetChecksumCRC32C() const{ return m_checksumCRC32C; }
177
186 inline bool ChecksumCRC32CHasBeenSet() const { return m_checksumCRC32CHasBeenSet; }
187
196 inline void SetChecksumCRC32C(const Aws::String& value) { m_checksumCRC32CHasBeenSet = true; m_checksumCRC32C = value; }
197
206 inline void SetChecksumCRC32C(Aws::String&& value) { m_checksumCRC32CHasBeenSet = true; m_checksumCRC32C = std::move(value); }
207
216 inline void SetChecksumCRC32C(const char* value) { m_checksumCRC32CHasBeenSet = true; m_checksumCRC32C.assign(value); }
217
226 inline ObjectPart& WithChecksumCRC32C(const Aws::String& value) { SetChecksumCRC32C(value); return *this;}
227
236 inline ObjectPart& WithChecksumCRC32C(Aws::String&& value) { SetChecksumCRC32C(std::move(value)); return *this;}
237
246 inline ObjectPart& WithChecksumCRC32C(const char* value) { SetChecksumCRC32C(value); return *this;}
247
248
257 inline const Aws::String& GetChecksumSHA1() const{ return m_checksumSHA1; }
258
267 inline bool ChecksumSHA1HasBeenSet() const { return m_checksumSHA1HasBeenSet; }
268
277 inline void SetChecksumSHA1(const Aws::String& value) { m_checksumSHA1HasBeenSet = true; m_checksumSHA1 = value; }
278
287 inline void SetChecksumSHA1(Aws::String&& value) { m_checksumSHA1HasBeenSet = true; m_checksumSHA1 = std::move(value); }
288
297 inline void SetChecksumSHA1(const char* value) { m_checksumSHA1HasBeenSet = true; m_checksumSHA1.assign(value); }
298
307 inline ObjectPart& WithChecksumSHA1(const Aws::String& value) { SetChecksumSHA1(value); return *this;}
308
317 inline ObjectPart& WithChecksumSHA1(Aws::String&& value) { SetChecksumSHA1(std::move(value)); return *this;}
318
327 inline ObjectPart& WithChecksumSHA1(const char* value) { SetChecksumSHA1(value); return *this;}
328
329
338 inline const Aws::String& GetChecksumSHA256() const{ return m_checksumSHA256; }
339
348 inline bool ChecksumSHA256HasBeenSet() const { return m_checksumSHA256HasBeenSet; }
349
358 inline void SetChecksumSHA256(const Aws::String& value) { m_checksumSHA256HasBeenSet = true; m_checksumSHA256 = value; }
359
368 inline void SetChecksumSHA256(Aws::String&& value) { m_checksumSHA256HasBeenSet = true; m_checksumSHA256 = std::move(value); }
369
378 inline void SetChecksumSHA256(const char* value) { m_checksumSHA256HasBeenSet = true; m_checksumSHA256.assign(value); }
379
388 inline ObjectPart& WithChecksumSHA256(const Aws::String& value) { SetChecksumSHA256(value); return *this;}
389
398 inline ObjectPart& WithChecksumSHA256(Aws::String&& value) { SetChecksumSHA256(std::move(value)); return *this;}
399
408 inline ObjectPart& WithChecksumSHA256(const char* value) { SetChecksumSHA256(value); return *this;}
409
410 private:
411
412 int m_partNumber;
413 bool m_partNumberHasBeenSet = false;
414
415 long long m_size;
416 bool m_sizeHasBeenSet = false;
417
418 Aws::String m_checksumCRC32;
419 bool m_checksumCRC32HasBeenSet = false;
420
421 Aws::String m_checksumCRC32C;
422 bool m_checksumCRC32CHasBeenSet = false;
423
424 Aws::String m_checksumSHA1;
425 bool m_checksumSHA1HasBeenSet = false;
426
427 Aws::String m_checksumSHA256;
428 bool m_checksumSHA256HasBeenSet = false;
429 };
430
431} // namespace Model
432} // namespace S3
433} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
const Aws::String & GetChecksumSHA256() const
Definition: ObjectPart.h:338
void SetChecksumCRC32(Aws::String &&value)
Definition: ObjectPart.h:125
void SetChecksumCRC32(const Aws::String &value)
Definition: ObjectPart.h:115
long long GetSize() const
Definition: ObjectPart.h:69
bool PartNumberHasBeenSet() const
Definition: ObjectPart.h:51
AWS_S3_API ObjectPart & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ObjectPart & WithChecksumCRC32C(const Aws::String &value)
Definition: ObjectPart.h:226
void SetChecksumCRC32(const char *value)
Definition: ObjectPart.h:135
ObjectPart & WithChecksumCRC32(const Aws::String &value)
Definition: ObjectPart.h:145
ObjectPart & WithPartNumber(int value)
Definition: ObjectPart.h:63
void SetPartNumber(int value)
Definition: ObjectPart.h:57
bool ChecksumSHA256HasBeenSet() const
Definition: ObjectPart.h:348
ObjectPart & WithSize(long long value)
Definition: ObjectPart.h:84
void SetChecksumSHA1(const char *value)
Definition: ObjectPart.h:297
const Aws::String & GetChecksumCRC32() const
Definition: ObjectPart.h:95
void SetChecksumSHA256(Aws::String &&value)
Definition: ObjectPart.h:368
void SetChecksumCRC32C(const char *value)
Definition: ObjectPart.h:216
ObjectPart & WithChecksumCRC32(Aws::String &&value)
Definition: ObjectPart.h:155
bool ChecksumSHA1HasBeenSet() const
Definition: ObjectPart.h:267
ObjectPart & WithChecksumSHA256(const Aws::String &value)
Definition: ObjectPart.h:388
void SetChecksumSHA1(Aws::String &&value)
Definition: ObjectPart.h:287
bool ChecksumCRC32HasBeenSet() const
Definition: ObjectPart.h:105
void SetChecksumSHA1(const Aws::String &value)
Definition: ObjectPart.h:277
bool SizeHasBeenSet() const
Definition: ObjectPart.h:74
ObjectPart & WithChecksumSHA1(Aws::String &&value)
Definition: ObjectPart.h:317
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
ObjectPart & WithChecksumSHA256(Aws::String &&value)
Definition: ObjectPart.h:398
const Aws::String & GetChecksumCRC32C() const
Definition: ObjectPart.h:176
void SetChecksumCRC32C(Aws::String &&value)
Definition: ObjectPart.h:206
const Aws::String & GetChecksumSHA1() const
Definition: ObjectPart.h:257
void SetChecksumSHA256(const Aws::String &value)
Definition: ObjectPart.h:358
ObjectPart & WithChecksumSHA1(const char *value)
Definition: ObjectPart.h:327
ObjectPart & WithChecksumCRC32C(const char *value)
Definition: ObjectPart.h:246
ObjectPart & WithChecksumSHA256(const char *value)
Definition: ObjectPart.h:408
ObjectPart & WithChecksumCRC32(const char *value)
Definition: ObjectPart.h:165
ObjectPart & WithChecksumCRC32C(Aws::String &&value)
Definition: ObjectPart.h:236
void SetSize(long long value)
Definition: ObjectPart.h:79
AWS_S3_API ObjectPart(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetChecksumCRC32C(const Aws::String &value)
Definition: ObjectPart.h:196
void SetChecksumSHA256(const char *value)
Definition: ObjectPart.h:378
bool ChecksumCRC32CHasBeenSet() const
Definition: ObjectPart.h:186
ObjectPart & WithChecksumSHA1(const Aws::String &value)
Definition: ObjectPart.h:307
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String