AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Part.h
1
6#pragma once
7#include <aws/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace S3Crt
22{
23namespace Model
24{
25
31 class Part
32 {
33 public:
34 AWS_S3CRT_API Part();
35 AWS_S3CRT_API Part(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_S3CRT_API Part& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39
40
42
46 inline int GetPartNumber() const{ return m_partNumber; }
47 inline bool PartNumberHasBeenSet() const { return m_partNumberHasBeenSet; }
48 inline void SetPartNumber(int value) { m_partNumberHasBeenSet = true; m_partNumber = value; }
49 inline Part& WithPartNumber(int value) { SetPartNumber(value); return *this;}
51
53
56 inline const Aws::Utils::DateTime& GetLastModified() const{ return m_lastModified; }
57 inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
58 inline void SetLastModified(const Aws::Utils::DateTime& value) { m_lastModifiedHasBeenSet = true; m_lastModified = value; }
59 inline void SetLastModified(Aws::Utils::DateTime&& value) { m_lastModifiedHasBeenSet = true; m_lastModified = std::move(value); }
60 inline Part& WithLastModified(const Aws::Utils::DateTime& value) { SetLastModified(value); return *this;}
61 inline Part& WithLastModified(Aws::Utils::DateTime&& value) { SetLastModified(std::move(value)); return *this;}
63
65
68 inline const Aws::String& GetETag() const{ return m_eTag; }
69 inline bool ETagHasBeenSet() const { return m_eTagHasBeenSet; }
70 inline void SetETag(const Aws::String& value) { m_eTagHasBeenSet = true; m_eTag = value; }
71 inline void SetETag(Aws::String&& value) { m_eTagHasBeenSet = true; m_eTag = std::move(value); }
72 inline void SetETag(const char* value) { m_eTagHasBeenSet = true; m_eTag.assign(value); }
73 inline Part& WithETag(const Aws::String& value) { SetETag(value); return *this;}
74 inline Part& WithETag(Aws::String&& value) { SetETag(std::move(value)); return *this;}
75 inline Part& WithETag(const char* value) { SetETag(value); return *this;}
77
79
82 inline long long GetSize() const{ return m_size; }
83 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
84 inline void SetSize(long long value) { m_sizeHasBeenSet = true; m_size = value; }
85 inline Part& WithSize(long long value) { SetSize(value); return *this;}
87
89
97 inline const Aws::String& GetChecksumCRC32() const{ return m_checksumCRC32; }
98 inline bool ChecksumCRC32HasBeenSet() const { return m_checksumCRC32HasBeenSet; }
99 inline void SetChecksumCRC32(const Aws::String& value) { m_checksumCRC32HasBeenSet = true; m_checksumCRC32 = value; }
100 inline void SetChecksumCRC32(Aws::String&& value) { m_checksumCRC32HasBeenSet = true; m_checksumCRC32 = std::move(value); }
101 inline void SetChecksumCRC32(const char* value) { m_checksumCRC32HasBeenSet = true; m_checksumCRC32.assign(value); }
102 inline Part& WithChecksumCRC32(const Aws::String& value) { SetChecksumCRC32(value); return *this;}
103 inline Part& WithChecksumCRC32(Aws::String&& value) { SetChecksumCRC32(std::move(value)); return *this;}
104 inline Part& WithChecksumCRC32(const char* value) { SetChecksumCRC32(value); return *this;}
106
108
118 inline const Aws::String& GetChecksumCRC32C() const{ return m_checksumCRC32C; }
119 inline bool ChecksumCRC32CHasBeenSet() const { return m_checksumCRC32CHasBeenSet; }
120 inline void SetChecksumCRC32C(const Aws::String& value) { m_checksumCRC32CHasBeenSet = true; m_checksumCRC32C = value; }
121 inline void SetChecksumCRC32C(Aws::String&& value) { m_checksumCRC32CHasBeenSet = true; m_checksumCRC32C = std::move(value); }
122 inline void SetChecksumCRC32C(const char* value) { m_checksumCRC32CHasBeenSet = true; m_checksumCRC32C.assign(value); }
123 inline Part& WithChecksumCRC32C(const Aws::String& value) { SetChecksumCRC32C(value); return *this;}
124 inline Part& WithChecksumCRC32C(Aws::String&& value) { SetChecksumCRC32C(std::move(value)); return *this;}
125 inline Part& WithChecksumCRC32C(const char* value) { SetChecksumCRC32C(value); return *this;}
127
129
139 inline const Aws::String& GetChecksumSHA1() const{ return m_checksumSHA1; }
140 inline bool ChecksumSHA1HasBeenSet() const { return m_checksumSHA1HasBeenSet; }
141 inline void SetChecksumSHA1(const Aws::String& value) { m_checksumSHA1HasBeenSet = true; m_checksumSHA1 = value; }
142 inline void SetChecksumSHA1(Aws::String&& value) { m_checksumSHA1HasBeenSet = true; m_checksumSHA1 = std::move(value); }
143 inline void SetChecksumSHA1(const char* value) { m_checksumSHA1HasBeenSet = true; m_checksumSHA1.assign(value); }
144 inline Part& WithChecksumSHA1(const Aws::String& value) { SetChecksumSHA1(value); return *this;}
145 inline Part& WithChecksumSHA1(Aws::String&& value) { SetChecksumSHA1(std::move(value)); return *this;}
146 inline Part& WithChecksumSHA1(const char* value) { SetChecksumSHA1(value); return *this;}
148
150
158 inline const Aws::String& GetChecksumSHA256() const{ return m_checksumSHA256; }
159 inline bool ChecksumSHA256HasBeenSet() const { return m_checksumSHA256HasBeenSet; }
160 inline void SetChecksumSHA256(const Aws::String& value) { m_checksumSHA256HasBeenSet = true; m_checksumSHA256 = value; }
161 inline void SetChecksumSHA256(Aws::String&& value) { m_checksumSHA256HasBeenSet = true; m_checksumSHA256 = std::move(value); }
162 inline void SetChecksumSHA256(const char* value) { m_checksumSHA256HasBeenSet = true; m_checksumSHA256.assign(value); }
163 inline Part& WithChecksumSHA256(const Aws::String& value) { SetChecksumSHA256(value); return *this;}
164 inline Part& WithChecksumSHA256(Aws::String&& value) { SetChecksumSHA256(std::move(value)); return *this;}
165 inline Part& WithChecksumSHA256(const char* value) { SetChecksumSHA256(value); return *this;}
167 private:
168
169 int m_partNumber;
170 bool m_partNumberHasBeenSet = false;
171
172 Aws::Utils::DateTime m_lastModified;
173 bool m_lastModifiedHasBeenSet = false;
174
175 Aws::String m_eTag;
176 bool m_eTagHasBeenSet = false;
177
178 long long m_size;
179 bool m_sizeHasBeenSet = false;
180
181 Aws::String m_checksumCRC32;
182 bool m_checksumCRC32HasBeenSet = false;
183
184 Aws::String m_checksumCRC32C;
185 bool m_checksumCRC32CHasBeenSet = false;
186
187 Aws::String m_checksumSHA1;
188 bool m_checksumSHA1HasBeenSet = false;
189
190 Aws::String m_checksumSHA256;
191 bool m_checksumSHA256HasBeenSet = false;
192 };
193
194} // namespace Model
195} // namespace S3Crt
196} // namespace Aws
Part & WithETag(const Aws::String &value)
Definition Part.h:73
Part & WithChecksumSHA256(const Aws::String &value)
Definition Part.h:163
Part & WithLastModified(Aws::Utils::DateTime &&value)
Definition Part.h:61
void SetETag(Aws::String &&value)
Definition Part.h:71
void SetLastModified(Aws::Utils::DateTime &&value)
Definition Part.h:59
void SetLastModified(const Aws::Utils::DateTime &value)
Definition Part.h:58
void SetChecksumSHA256(Aws::String &&value)
Definition Part.h:161
Part & WithETag(const char *value)
Definition Part.h:75
const Aws::String & GetETag() const
Definition Part.h:68
AWS_S3CRT_API Part()
void SetChecksumSHA256(const char *value)
Definition Part.h:162
Part & WithChecksumSHA256(Aws::String &&value)
Definition Part.h:164
const Aws::String & GetChecksumSHA256() const
Definition Part.h:158
bool PartNumberHasBeenSet() const
Definition Part.h:47
void SetETag(const char *value)
Definition Part.h:72
void SetETag(const Aws::String &value)
Definition Part.h:70
void SetChecksumSHA1(const char *value)
Definition Part.h:143
Part & WithChecksumCRC32(Aws::String &&value)
Definition Part.h:103
bool ChecksumSHA1HasBeenSet() const
Definition Part.h:140
const Aws::String & GetChecksumCRC32() const
Definition Part.h:97
Part & WithChecksumSHA256(const char *value)
Definition Part.h:165
bool SizeHasBeenSet() const
Definition Part.h:83
Part & WithChecksumSHA1(const char *value)
Definition Part.h:146
void SetChecksumCRC32C(const Aws::String &value)
Definition Part.h:120
bool ChecksumSHA256HasBeenSet() const
Definition Part.h:159
Part & WithLastModified(const Aws::Utils::DateTime &value)
Definition Part.h:60
Part & WithPartNumber(int value)
Definition Part.h:49
Part & WithChecksumCRC32C(const char *value)
Definition Part.h:125
Part & WithChecksumCRC32(const Aws::String &value)
Definition Part.h:102
void SetChecksumCRC32C(const char *value)
Definition Part.h:122
AWS_S3CRT_API Part & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetChecksumSHA256(const Aws::String &value)
Definition Part.h:160
bool ChecksumCRC32HasBeenSet() const
Definition Part.h:98
Part & WithChecksumSHA1(const Aws::String &value)
Definition Part.h:144
bool LastModifiedHasBeenSet() const
Definition Part.h:57
Part & WithChecksumCRC32C(const Aws::String &value)
Definition Part.h:123
Part & WithChecksumSHA1(Aws::String &&value)
Definition Part.h:145
AWS_S3CRT_API Part(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetChecksumSHA1(const Aws::String &value)
Definition Part.h:141
AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Part & WithSize(long long value)
Definition Part.h:85
const Aws::String & GetChecksumSHA1() const
Definition Part.h:139
void SetChecksumCRC32(const Aws::String &value)
Definition Part.h:99
void SetPartNumber(int value)
Definition Part.h:48
Part & WithETag(Aws::String &&value)
Definition Part.h:74
const Aws::String & GetChecksumCRC32C() const
Definition Part.h:118
Part & WithChecksumCRC32(const char *value)
Definition Part.h:104
long long GetSize() const
Definition Part.h:82
bool ChecksumCRC32CHasBeenSet() const
Definition Part.h:119
const Aws::Utils::DateTime & GetLastModified() const
Definition Part.h:56
int GetPartNumber() const
Definition Part.h:46
void SetChecksumSHA1(Aws::String &&value)
Definition Part.h:142
void SetChecksumCRC32(const char *value)
Definition Part.h:101
Part & WithChecksumCRC32C(Aws::String &&value)
Definition Part.h:124
void SetSize(long long value)
Definition Part.h:84
void SetChecksumCRC32C(Aws::String &&value)
Definition Part.h:121
void SetChecksumCRC32(Aws::String &&value)
Definition Part.h:100
bool ETagHasBeenSet() const
Definition Part.h:69
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String