AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
Part.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace S3
22{
23namespace Model
24{
25
31 class Part
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 Part& WithPartNumber(int value) { SetPartNumber(value); return *this;}
64
65
69 inline const Aws::Utils::DateTime& GetLastModified() const{ return m_lastModified; }
70
74 inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
75
79 inline void SetLastModified(const Aws::Utils::DateTime& value) { m_lastModifiedHasBeenSet = true; m_lastModified = value; }
80
84 inline void SetLastModified(Aws::Utils::DateTime&& value) { m_lastModifiedHasBeenSet = true; m_lastModified = std::move(value); }
85
89 inline Part& WithLastModified(const Aws::Utils::DateTime& value) { SetLastModified(value); return *this;}
90
94 inline Part& WithLastModified(Aws::Utils::DateTime&& value) { SetLastModified(std::move(value)); return *this;}
95
96
100 inline const Aws::String& GetETag() const{ return m_eTag; }
101
105 inline bool ETagHasBeenSet() const { return m_eTagHasBeenSet; }
106
110 inline void SetETag(const Aws::String& value) { m_eTagHasBeenSet = true; m_eTag = value; }
111
115 inline void SetETag(Aws::String&& value) { m_eTagHasBeenSet = true; m_eTag = std::move(value); }
116
120 inline void SetETag(const char* value) { m_eTagHasBeenSet = true; m_eTag.assign(value); }
121
125 inline Part& WithETag(const Aws::String& value) { SetETag(value); return *this;}
126
130 inline Part& WithETag(Aws::String&& value) { SetETag(std::move(value)); return *this;}
131
135 inline Part& WithETag(const char* value) { SetETag(value); return *this;}
136
137
141 inline long long GetSize() const{ return m_size; }
142
146 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
147
151 inline void SetSize(long long value) { m_sizeHasBeenSet = true; m_size = value; }
152
156 inline Part& WithSize(long long value) { SetSize(value); return *this;}
157
158
167 inline const Aws::String& GetChecksumCRC32() const{ return m_checksumCRC32; }
168
177 inline bool ChecksumCRC32HasBeenSet() const { return m_checksumCRC32HasBeenSet; }
178
187 inline void SetChecksumCRC32(const Aws::String& value) { m_checksumCRC32HasBeenSet = true; m_checksumCRC32 = value; }
188
197 inline void SetChecksumCRC32(Aws::String&& value) { m_checksumCRC32HasBeenSet = true; m_checksumCRC32 = std::move(value); }
198
207 inline void SetChecksumCRC32(const char* value) { m_checksumCRC32HasBeenSet = true; m_checksumCRC32.assign(value); }
208
217 inline Part& WithChecksumCRC32(const Aws::String& value) { SetChecksumCRC32(value); return *this;}
218
227 inline Part& WithChecksumCRC32(Aws::String&& value) { SetChecksumCRC32(std::move(value)); return *this;}
228
237 inline Part& WithChecksumCRC32(const char* value) { SetChecksumCRC32(value); return *this;}
238
239
248 inline const Aws::String& GetChecksumCRC32C() const{ return m_checksumCRC32C; }
249
258 inline bool ChecksumCRC32CHasBeenSet() const { return m_checksumCRC32CHasBeenSet; }
259
268 inline void SetChecksumCRC32C(const Aws::String& value) { m_checksumCRC32CHasBeenSet = true; m_checksumCRC32C = value; }
269
278 inline void SetChecksumCRC32C(Aws::String&& value) { m_checksumCRC32CHasBeenSet = true; m_checksumCRC32C = std::move(value); }
279
288 inline void SetChecksumCRC32C(const char* value) { m_checksumCRC32CHasBeenSet = true; m_checksumCRC32C.assign(value); }
289
298 inline Part& WithChecksumCRC32C(const Aws::String& value) { SetChecksumCRC32C(value); return *this;}
299
308 inline Part& WithChecksumCRC32C(Aws::String&& value) { SetChecksumCRC32C(std::move(value)); return *this;}
309
318 inline Part& WithChecksumCRC32C(const char* value) { SetChecksumCRC32C(value); return *this;}
319
320
329 inline const Aws::String& GetChecksumSHA1() const{ return m_checksumSHA1; }
330
339 inline bool ChecksumSHA1HasBeenSet() const { return m_checksumSHA1HasBeenSet; }
340
349 inline void SetChecksumSHA1(const Aws::String& value) { m_checksumSHA1HasBeenSet = true; m_checksumSHA1 = value; }
350
359 inline void SetChecksumSHA1(Aws::String&& value) { m_checksumSHA1HasBeenSet = true; m_checksumSHA1 = std::move(value); }
360
369 inline void SetChecksumSHA1(const char* value) { m_checksumSHA1HasBeenSet = true; m_checksumSHA1.assign(value); }
370
379 inline Part& WithChecksumSHA1(const Aws::String& value) { SetChecksumSHA1(value); return *this;}
380
389 inline Part& WithChecksumSHA1(Aws::String&& value) { SetChecksumSHA1(std::move(value)); return *this;}
390
399 inline Part& WithChecksumSHA1(const char* value) { SetChecksumSHA1(value); return *this;}
400
401
410 inline const Aws::String& GetChecksumSHA256() const{ return m_checksumSHA256; }
411
420 inline bool ChecksumSHA256HasBeenSet() const { return m_checksumSHA256HasBeenSet; }
421
430 inline void SetChecksumSHA256(const Aws::String& value) { m_checksumSHA256HasBeenSet = true; m_checksumSHA256 = value; }
431
440 inline void SetChecksumSHA256(Aws::String&& value) { m_checksumSHA256HasBeenSet = true; m_checksumSHA256 = std::move(value); }
441
450 inline void SetChecksumSHA256(const char* value) { m_checksumSHA256HasBeenSet = true; m_checksumSHA256.assign(value); }
451
460 inline Part& WithChecksumSHA256(const Aws::String& value) { SetChecksumSHA256(value); return *this;}
461
470 inline Part& WithChecksumSHA256(Aws::String&& value) { SetChecksumSHA256(std::move(value)); return *this;}
471
480 inline Part& WithChecksumSHA256(const char* value) { SetChecksumSHA256(value); return *this;}
481
482 private:
483
484 int m_partNumber;
485 bool m_partNumberHasBeenSet = false;
486
487 Aws::Utils::DateTime m_lastModified;
488 bool m_lastModifiedHasBeenSet = false;
489
490 Aws::String m_eTag;
491 bool m_eTagHasBeenSet = false;
492
493 long long m_size;
494 bool m_sizeHasBeenSet = false;
495
496 Aws::String m_checksumCRC32;
497 bool m_checksumCRC32HasBeenSet = false;
498
499 Aws::String m_checksumCRC32C;
500 bool m_checksumCRC32CHasBeenSet = false;
501
502 Aws::String m_checksumSHA1;
503 bool m_checksumSHA1HasBeenSet = false;
504
505 Aws::String m_checksumSHA256;
506 bool m_checksumSHA256HasBeenSet = false;
507 };
508
509} // namespace Model
510} // namespace S3
511} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
void SetLastModified(Aws::Utils::DateTime &&value)
Definition: Part.h:84
void SetChecksumSHA1(const Aws::String &value)
Definition: Part.h:349
Part & WithChecksumCRC32C(const Aws::String &value)
Definition: Part.h:298
Part & WithETag(const char *value)
Definition: Part.h:135
const Aws::String & GetChecksumCRC32() const
Definition: Part.h:167
void SetChecksumCRC32(Aws::String &&value)
Definition: Part.h:197
bool PartNumberHasBeenSet() const
Definition: Part.h:51
Part & WithLastModified(const Aws::Utils::DateTime &value)
Definition: Part.h:89
const Aws::String & GetChecksumSHA256() const
Definition: Part.h:410
Part & WithChecksumCRC32(Aws::String &&value)
Definition: Part.h:227
void SetChecksumCRC32(const Aws::String &value)
Definition: Part.h:187
long long GetSize() const
Definition: Part.h:141
bool ChecksumSHA1HasBeenSet() const
Definition: Part.h:339
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Part & WithPartNumber(int value)
Definition: Part.h:63
Part & WithChecksumCRC32C(Aws::String &&value)
Definition: Part.h:308
const Aws::Utils::DateTime & GetLastModified() const
Definition: Part.h:69
void SetChecksumSHA1(const char *value)
Definition: Part.h:369
Part & WithChecksumSHA1(Aws::String &&value)
Definition: Part.h:389
int GetPartNumber() const
Definition: Part.h:45
Part & WithChecksumSHA256(Aws::String &&value)
Definition: Part.h:470
bool LastModifiedHasBeenSet() const
Definition: Part.h:74
AWS_S3_API Part & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool ChecksumCRC32CHasBeenSet() const
Definition: Part.h:258
Part & WithETag(Aws::String &&value)
Definition: Part.h:130
bool ChecksumCRC32HasBeenSet() const
Definition: Part.h:177
Part & WithLastModified(Aws::Utils::DateTime &&value)
Definition: Part.h:94
void SetETag(const char *value)
Definition: Part.h:120
void SetChecksumCRC32(const char *value)
Definition: Part.h:207
Part & WithChecksumSHA1(const Aws::String &value)
Definition: Part.h:379
AWS_S3_API Part(const Aws::Utils::Xml::XmlNode &xmlNode)
bool SizeHasBeenSet() const
Definition: Part.h:146
void SetChecksumSHA256(const char *value)
Definition: Part.h:450
Part & WithETag(const Aws::String &value)
Definition: Part.h:125
void SetChecksumSHA1(Aws::String &&value)
Definition: Part.h:359
void SetChecksumCRC32C(const char *value)
Definition: Part.h:288
void SetLastModified(const Aws::Utils::DateTime &value)
Definition: Part.h:79
void SetChecksumCRC32C(Aws::String &&value)
Definition: Part.h:278
void SetPartNumber(int value)
Definition: Part.h:57
Part & WithChecksumSHA256(const Aws::String &value)
Definition: Part.h:460
void SetChecksumSHA256(Aws::String &&value)
Definition: Part.h:440
Part & WithChecksumCRC32(const char *value)
Definition: Part.h:237
Part & WithChecksumCRC32C(const char *value)
Definition: Part.h:318
void SetSize(long long value)
Definition: Part.h:151
void SetETag(Aws::String &&value)
Definition: Part.h:115
Part & WithChecksumSHA256(const char *value)
Definition: Part.h:480
const Aws::String & GetChecksumSHA1() const
Definition: Part.h:329
bool ETagHasBeenSet() const
Definition: Part.h:105
bool ChecksumSHA256HasBeenSet() const
Definition: Part.h:420
Part & WithChecksumSHA1(const char *value)
Definition: Part.h:399
void SetChecksumSHA256(const Aws::String &value)
Definition: Part.h:430
const Aws::String & GetChecksumCRC32C() const
Definition: Part.h:248
const Aws::String & GetETag() const
Definition: Part.h:100
void SetChecksumCRC32C(const Aws::String &value)
Definition: Part.h:268
Part & WithChecksumCRC32(const Aws::String &value)
Definition: Part.h:217
Part & WithSize(long long value)
Definition: Part.h:156
void SetETag(const Aws::String &value)
Definition: Part.h:110
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String