AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CompletedPart.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.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:
33 AWS_S3_API CompletedPart();
34 AWS_S3_API CompletedPart(const Aws::Utils::Xml::XmlNode& xmlNode);
36
37 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
38
39
41
44 inline const Aws::String& GetETag() const{ return m_eTag; }
45 inline bool ETagHasBeenSet() const { return m_eTagHasBeenSet; }
46 inline void SetETag(const Aws::String& value) { m_eTagHasBeenSet = true; m_eTag = value; }
47 inline void SetETag(Aws::String&& value) { m_eTagHasBeenSet = true; m_eTag = std::move(value); }
48 inline void SetETag(const char* value) { m_eTagHasBeenSet = true; m_eTag.assign(value); }
49 inline CompletedPart& WithETag(const Aws::String& value) { SetETag(value); return *this;}
50 inline CompletedPart& WithETag(Aws::String&& value) { SetETag(std::move(value)); return *this;}
51 inline CompletedPart& WithETag(const char* value) { SetETag(value); return *this;}
53
55
65 inline const Aws::String& GetChecksumCRC32() const{ return m_checksumCRC32; }
66 inline bool ChecksumCRC32HasBeenSet() const { return m_checksumCRC32HasBeenSet; }
67 inline void SetChecksumCRC32(const Aws::String& value) { m_checksumCRC32HasBeenSet = true; m_checksumCRC32 = value; }
68 inline void SetChecksumCRC32(Aws::String&& value) { m_checksumCRC32HasBeenSet = true; m_checksumCRC32 = std::move(value); }
69 inline void SetChecksumCRC32(const char* value) { m_checksumCRC32HasBeenSet = true; m_checksumCRC32.assign(value); }
70 inline CompletedPart& WithChecksumCRC32(const Aws::String& value) { SetChecksumCRC32(value); return *this;}
71 inline CompletedPart& WithChecksumCRC32(Aws::String&& value) { SetChecksumCRC32(std::move(value)); return *this;}
72 inline CompletedPart& WithChecksumCRC32(const char* value) { SetChecksumCRC32(value); return *this;}
74
76
86 inline const Aws::String& GetChecksumCRC32C() const{ return m_checksumCRC32C; }
87 inline bool ChecksumCRC32CHasBeenSet() const { return m_checksumCRC32CHasBeenSet; }
88 inline void SetChecksumCRC32C(const Aws::String& value) { m_checksumCRC32CHasBeenSet = true; m_checksumCRC32C = value; }
89 inline void SetChecksumCRC32C(Aws::String&& value) { m_checksumCRC32CHasBeenSet = true; m_checksumCRC32C = std::move(value); }
90 inline void SetChecksumCRC32C(const char* value) { m_checksumCRC32CHasBeenSet = true; m_checksumCRC32C.assign(value); }
91 inline CompletedPart& WithChecksumCRC32C(const Aws::String& value) { SetChecksumCRC32C(value); return *this;}
92 inline CompletedPart& WithChecksumCRC32C(Aws::String&& value) { SetChecksumCRC32C(std::move(value)); return *this;}
93 inline CompletedPart& WithChecksumCRC32C(const char* value) { SetChecksumCRC32C(value); return *this;}
95
97
107 inline const Aws::String& GetChecksumSHA1() const{ return m_checksumSHA1; }
108 inline bool ChecksumSHA1HasBeenSet() const { return m_checksumSHA1HasBeenSet; }
109 inline void SetChecksumSHA1(const Aws::String& value) { m_checksumSHA1HasBeenSet = true; m_checksumSHA1 = value; }
110 inline void SetChecksumSHA1(Aws::String&& value) { m_checksumSHA1HasBeenSet = true; m_checksumSHA1 = std::move(value); }
111 inline void SetChecksumSHA1(const char* value) { m_checksumSHA1HasBeenSet = true; m_checksumSHA1.assign(value); }
112 inline CompletedPart& WithChecksumSHA1(const Aws::String& value) { SetChecksumSHA1(value); return *this;}
113 inline CompletedPart& WithChecksumSHA1(Aws::String&& value) { SetChecksumSHA1(std::move(value)); return *this;}
114 inline CompletedPart& WithChecksumSHA1(const char* value) { SetChecksumSHA1(value); return *this;}
116
118
128 inline const Aws::String& GetChecksumSHA256() const{ return m_checksumSHA256; }
129 inline bool ChecksumSHA256HasBeenSet() const { return m_checksumSHA256HasBeenSet; }
130 inline void SetChecksumSHA256(const Aws::String& value) { m_checksumSHA256HasBeenSet = true; m_checksumSHA256 = value; }
131 inline void SetChecksumSHA256(Aws::String&& value) { m_checksumSHA256HasBeenSet = true; m_checksumSHA256 = std::move(value); }
132 inline void SetChecksumSHA256(const char* value) { m_checksumSHA256HasBeenSet = true; m_checksumSHA256.assign(value); }
133 inline CompletedPart& WithChecksumSHA256(const Aws::String& value) { SetChecksumSHA256(value); return *this;}
134 inline CompletedPart& WithChecksumSHA256(Aws::String&& value) { SetChecksumSHA256(std::move(value)); return *this;}
135 inline CompletedPart& WithChecksumSHA256(const char* value) { SetChecksumSHA256(value); return *this;}
137
139
152 inline int GetPartNumber() const{ return m_partNumber; }
153 inline bool PartNumberHasBeenSet() const { return m_partNumberHasBeenSet; }
154 inline void SetPartNumber(int value) { m_partNumberHasBeenSet = true; m_partNumber = value; }
155 inline CompletedPart& WithPartNumber(int value) { SetPartNumber(value); return *this;}
157 private:
158
159 Aws::String m_eTag;
160 bool m_eTagHasBeenSet = false;
161
162 Aws::String m_checksumCRC32;
163 bool m_checksumCRC32HasBeenSet = false;
164
165 Aws::String m_checksumCRC32C;
166 bool m_checksumCRC32CHasBeenSet = false;
167
168 Aws::String m_checksumSHA1;
169 bool m_checksumSHA1HasBeenSet = false;
170
171 Aws::String m_checksumSHA256;
172 bool m_checksumSHA256HasBeenSet = false;
173
174 int m_partNumber;
175 bool m_partNumberHasBeenSet = false;
176 };
177
178} // namespace Model
179} // namespace S3
180} // namespace Aws
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)
void SetETag(Aws::String &&value)
void SetChecksumSHA256(const Aws::String &value)
void SetETag(const char *value)
CompletedPart & WithChecksumSHA256(Aws::String &&value)
void SetChecksumCRC32C(const Aws::String &value)
const Aws::String & GetChecksumCRC32() const
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)
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)
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
CompletedPart & WithETag(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String