AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
CompletedPart.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
31 {
32 public:
36
38
39
43 inline const Aws::String& GetETag() const{ return m_eTag; }
44
48 inline bool ETagHasBeenSet() const { return m_eTagHasBeenSet; }
49
53 inline void SetETag(const Aws::String& value) { m_eTagHasBeenSet = true; m_eTag = value; }
54
58 inline void SetETag(Aws::String&& value) { m_eTagHasBeenSet = true; m_eTag = std::move(value); }
59
63 inline void SetETag(const char* value) { m_eTagHasBeenSet = true; m_eTag.assign(value); }
64
68 inline CompletedPart& WithETag(const Aws::String& value) { SetETag(value); return *this;}
69
73 inline CompletedPart& WithETag(Aws::String&& value) { SetETag(std::move(value)); return *this;}
74
78 inline CompletedPart& WithETag(const char* value) { SetETag(value); return *this;}
79
80
89 inline const Aws::String& GetChecksumCRC32() const{ return m_checksumCRC32; }
90
99 inline bool ChecksumCRC32HasBeenSet() const { return m_checksumCRC32HasBeenSet; }
100
109 inline void SetChecksumCRC32(const Aws::String& value) { m_checksumCRC32HasBeenSet = true; m_checksumCRC32 = value; }
110
119 inline void SetChecksumCRC32(Aws::String&& value) { m_checksumCRC32HasBeenSet = true; m_checksumCRC32 = std::move(value); }
120
129 inline void SetChecksumCRC32(const char* value) { m_checksumCRC32HasBeenSet = true; m_checksumCRC32.assign(value); }
130
139 inline CompletedPart& WithChecksumCRC32(const Aws::String& value) { SetChecksumCRC32(value); return *this;}
140
149 inline CompletedPart& WithChecksumCRC32(Aws::String&& value) { SetChecksumCRC32(std::move(value)); return *this;}
150
159 inline CompletedPart& WithChecksumCRC32(const char* value) { SetChecksumCRC32(value); return *this;}
160
161
170 inline const Aws::String& GetChecksumCRC32C() const{ return m_checksumCRC32C; }
171
180 inline bool ChecksumCRC32CHasBeenSet() const { return m_checksumCRC32CHasBeenSet; }
181
190 inline void SetChecksumCRC32C(const Aws::String& value) { m_checksumCRC32CHasBeenSet = true; m_checksumCRC32C = value; }
191
200 inline void SetChecksumCRC32C(Aws::String&& value) { m_checksumCRC32CHasBeenSet = true; m_checksumCRC32C = std::move(value); }
201
210 inline void SetChecksumCRC32C(const char* value) { m_checksumCRC32CHasBeenSet = true; m_checksumCRC32C.assign(value); }
211
220 inline CompletedPart& WithChecksumCRC32C(const Aws::String& value) { SetChecksumCRC32C(value); return *this;}
221
230 inline CompletedPart& WithChecksumCRC32C(Aws::String&& value) { SetChecksumCRC32C(std::move(value)); return *this;}
231
240 inline CompletedPart& WithChecksumCRC32C(const char* value) { SetChecksumCRC32C(value); return *this;}
241
242
251 inline const Aws::String& GetChecksumSHA1() const{ return m_checksumSHA1; }
252
261 inline bool ChecksumSHA1HasBeenSet() const { return m_checksumSHA1HasBeenSet; }
262
271 inline void SetChecksumSHA1(const Aws::String& value) { m_checksumSHA1HasBeenSet = true; m_checksumSHA1 = value; }
272
281 inline void SetChecksumSHA1(Aws::String&& value) { m_checksumSHA1HasBeenSet = true; m_checksumSHA1 = std::move(value); }
282
291 inline void SetChecksumSHA1(const char* value) { m_checksumSHA1HasBeenSet = true; m_checksumSHA1.assign(value); }
292
301 inline CompletedPart& WithChecksumSHA1(const Aws::String& value) { SetChecksumSHA1(value); return *this;}
302
311 inline CompletedPart& WithChecksumSHA1(Aws::String&& value) { SetChecksumSHA1(std::move(value)); return *this;}
312
321 inline CompletedPart& WithChecksumSHA1(const char* value) { SetChecksumSHA1(value); return *this;}
322
323
332 inline const Aws::String& GetChecksumSHA256() const{ return m_checksumSHA256; }
333
342 inline bool ChecksumSHA256HasBeenSet() const { return m_checksumSHA256HasBeenSet; }
343
352 inline void SetChecksumSHA256(const Aws::String& value) { m_checksumSHA256HasBeenSet = true; m_checksumSHA256 = value; }
353
362 inline void SetChecksumSHA256(Aws::String&& value) { m_checksumSHA256HasBeenSet = true; m_checksumSHA256 = std::move(value); }
363
372 inline void SetChecksumSHA256(const char* value) { m_checksumSHA256HasBeenSet = true; m_checksumSHA256.assign(value); }
373
382 inline CompletedPart& WithChecksumSHA256(const Aws::String& value) { SetChecksumSHA256(value); return *this;}
383
392 inline CompletedPart& WithChecksumSHA256(Aws::String&& value) { SetChecksumSHA256(std::move(value)); return *this;}
393
402 inline CompletedPart& WithChecksumSHA256(const char* value) { SetChecksumSHA256(value); return *this;}
403
404
409 inline int GetPartNumber() const{ return m_partNumber; }
410
415 inline bool PartNumberHasBeenSet() const { return m_partNumberHasBeenSet; }
416
421 inline void SetPartNumber(int value) { m_partNumberHasBeenSet = true; m_partNumber = value; }
422
427 inline CompletedPart& WithPartNumber(int value) { SetPartNumber(value); return *this;}
428
429 private:
430
431 Aws::String m_eTag;
432 bool m_eTagHasBeenSet = false;
433
434 Aws::String m_checksumCRC32;
435 bool m_checksumCRC32HasBeenSet = false;
436
437 Aws::String m_checksumCRC32C;
438 bool m_checksumCRC32CHasBeenSet = false;
439
440 Aws::String m_checksumSHA1;
441 bool m_checksumSHA1HasBeenSet = false;
442
443 Aws::String m_checksumSHA256;
444 bool m_checksumSHA256HasBeenSet = false;
445
446 int m_partNumber;
447 bool m_partNumberHasBeenSet = false;
448 };
449
450} // namespace Model
451} // namespace S3
452} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const Aws::String & GetChecksumSHA256() const
CompletedPart & WithChecksumCRC32C(Aws::String &&value)
AWS_S3_API CompletedPart(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetChecksumCRC32(const char *value)
CompletedPart & WithPartNumber(int value)
void SetChecksumSHA1(Aws::String &&value)
CompletedPart & WithChecksumSHA1(Aws::String &&value)
CompletedPart & WithETag(const char *value)
Definition: CompletedPart.h:78
void SetETag(Aws::String &&value)
Definition: CompletedPart.h:58
void SetChecksumSHA256(const Aws::String &value)
bool ChecksumCRC32HasBeenSet() const
Definition: CompletedPart.h:99
void SetETag(const char *value)
Definition: CompletedPart.h:63
CompletedPart & WithChecksumSHA256(Aws::String &&value)
void SetChecksumCRC32C(const Aws::String &value)
const Aws::String & GetChecksumCRC32() const
Definition: CompletedPart.h:89
CompletedPart & WithChecksumCRC32(const Aws::String &value)
const Aws::String & GetChecksumSHA1() const
void SetChecksumSHA256(const char *value)
void SetChecksumSHA1(const Aws::String &value)
CompletedPart & WithChecksumSHA256(const Aws::String &value)
CompletedPart & WithChecksumCRC32C(const char *value)
void SetChecksumCRC32(const Aws::String &value)
CompletedPart & WithChecksumCRC32(const char *value)
void SetETag(const Aws::String &value)
Definition: CompletedPart.h:53
CompletedPart & WithChecksumCRC32(Aws::String &&value)
void SetChecksumSHA256(Aws::String &&value)
CompletedPart & WithChecksumSHA1(const char *value)
void SetChecksumCRC32C(const char *value)
CompletedPart & WithETag(const Aws::String &value)
Definition: CompletedPart.h:68
void SetChecksumSHA1(const char *value)
AWS_S3_API CompletedPart & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetChecksumCRC32C(Aws::String &&value)
CompletedPart & WithChecksumSHA256(const char *value)
void SetChecksumCRC32(Aws::String &&value)
CompletedPart & WithChecksumCRC32C(const Aws::String &value)
const Aws::String & GetChecksumCRC32C() const
CompletedPart & WithChecksumSHA1(const Aws::String &value)
const Aws::String & GetETag() const
Definition: CompletedPart.h:43
CompletedPart & WithETag(Aws::String &&value)
Definition: CompletedPart.h:73
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String