AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
UploadPartResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/s3-crt/S3Crt_EXPORTS.h>
10#include <aws/s3-crt/model/RequestCharged.h>
11#include <aws/s3-crt/model/ServerSideEncryption.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Xml {
21class XmlDocument;
22} // namespace Xml
23} // namespace Utils
24namespace S3Crt {
25namespace Model {
27 public:
28 AWS_S3CRT_API UploadPartResult() = default;
31
33
39 inline ServerSideEncryption GetServerSideEncryption() const { return m_serverSideEncryption; }
41 m_serverSideEncryptionHasBeenSet = true;
42 m_serverSideEncryption = value;
43 }
46 return *this;
47 }
49
51
54 inline const Aws::String& GetETag() const { return m_eTag; }
55 template <typename ETagT = Aws::String>
56 void SetETag(ETagT&& value) {
57 m_eTagHasBeenSet = true;
58 m_eTag = std::forward<ETagT>(value);
59 }
60 template <typename ETagT = Aws::String>
61 UploadPartResult& WithETag(ETagT&& value) {
62 SetETag(std::forward<ETagT>(value));
63 return *this;
64 }
66
68
78 inline const Aws::String& GetChecksumCRC32() const { return m_checksumCRC32; }
79 template <typename ChecksumCRC32T = Aws::String>
80 void SetChecksumCRC32(ChecksumCRC32T&& value) {
81 m_checksumCRC32HasBeenSet = true;
82 m_checksumCRC32 = std::forward<ChecksumCRC32T>(value);
83 }
84 template <typename ChecksumCRC32T = Aws::String>
85 UploadPartResult& WithChecksumCRC32(ChecksumCRC32T&& value) {
86 SetChecksumCRC32(std::forward<ChecksumCRC32T>(value));
87 return *this;
88 }
90
92
102 inline const Aws::String& GetChecksumCRC32C() const { return m_checksumCRC32C; }
103 template <typename ChecksumCRC32CT = Aws::String>
104 void SetChecksumCRC32C(ChecksumCRC32CT&& value) {
105 m_checksumCRC32CHasBeenSet = true;
106 m_checksumCRC32C = std::forward<ChecksumCRC32CT>(value);
107 }
108 template <typename ChecksumCRC32CT = Aws::String>
109 UploadPartResult& WithChecksumCRC32C(ChecksumCRC32CT&& value) {
110 SetChecksumCRC32C(std::forward<ChecksumCRC32CT>(value));
111 return *this;
112 }
114
116
124 inline const Aws::String& GetChecksumCRC64NVME() const { return m_checksumCRC64NVME; }
125 template <typename ChecksumCRC64NVMET = Aws::String>
126 void SetChecksumCRC64NVME(ChecksumCRC64NVMET&& value) {
127 m_checksumCRC64NVMEHasBeenSet = true;
128 m_checksumCRC64NVME = std::forward<ChecksumCRC64NVMET>(value);
129 }
130 template <typename ChecksumCRC64NVMET = Aws::String>
131 UploadPartResult& WithChecksumCRC64NVME(ChecksumCRC64NVMET&& value) {
132 SetChecksumCRC64NVME(std::forward<ChecksumCRC64NVMET>(value));
133 return *this;
134 }
136
138
148 inline const Aws::String& GetChecksumSHA1() const { return m_checksumSHA1; }
149 template <typename ChecksumSHA1T = Aws::String>
150 void SetChecksumSHA1(ChecksumSHA1T&& value) {
151 m_checksumSHA1HasBeenSet = true;
152 m_checksumSHA1 = std::forward<ChecksumSHA1T>(value);
153 }
154 template <typename ChecksumSHA1T = Aws::String>
155 UploadPartResult& WithChecksumSHA1(ChecksumSHA1T&& value) {
156 SetChecksumSHA1(std::forward<ChecksumSHA1T>(value));
157 return *this;
158 }
160
162
172 inline const Aws::String& GetChecksumSHA256() const { return m_checksumSHA256; }
173 template <typename ChecksumSHA256T = Aws::String>
174 void SetChecksumSHA256(ChecksumSHA256T&& value) {
175 m_checksumSHA256HasBeenSet = true;
176 m_checksumSHA256 = std::forward<ChecksumSHA256T>(value);
177 }
178 template <typename ChecksumSHA256T = Aws::String>
179 UploadPartResult& WithChecksumSHA256(ChecksumSHA256T&& value) {
180 SetChecksumSHA256(std::forward<ChecksumSHA256T>(value));
181 return *this;
182 }
184
186
192 inline const Aws::String& GetSSECustomerAlgorithm() const { return m_sSECustomerAlgorithm; }
193 template <typename SSECustomerAlgorithmT = Aws::String>
194 void SetSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) {
195 m_sSECustomerAlgorithmHasBeenSet = true;
196 m_sSECustomerAlgorithm = std::forward<SSECustomerAlgorithmT>(value);
197 }
198 template <typename SSECustomerAlgorithmT = Aws::String>
199 UploadPartResult& WithSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) {
200 SetSSECustomerAlgorithm(std::forward<SSECustomerAlgorithmT>(value));
201 return *this;
202 }
204
206
212 inline const Aws::String& GetSSECustomerKeyMD5() const { return m_sSECustomerKeyMD5; }
213 template <typename SSECustomerKeyMD5T = Aws::String>
214 void SetSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) {
215 m_sSECustomerKeyMD5HasBeenSet = true;
216 m_sSECustomerKeyMD5 = std::forward<SSECustomerKeyMD5T>(value);
217 }
218 template <typename SSECustomerKeyMD5T = Aws::String>
219 UploadPartResult& WithSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) {
220 SetSSECustomerKeyMD5(std::forward<SSECustomerKeyMD5T>(value));
221 return *this;
222 }
224
226
230 inline const Aws::String& GetSSEKMSKeyId() const { return m_sSEKMSKeyId; }
231 template <typename SSEKMSKeyIdT = Aws::String>
232 void SetSSEKMSKeyId(SSEKMSKeyIdT&& value) {
233 m_sSEKMSKeyIdHasBeenSet = true;
234 m_sSEKMSKeyId = std::forward<SSEKMSKeyIdT>(value);
235 }
236 template <typename SSEKMSKeyIdT = Aws::String>
237 UploadPartResult& WithSSEKMSKeyId(SSEKMSKeyIdT&& value) {
238 SetSSEKMSKeyId(std::forward<SSEKMSKeyIdT>(value));
239 return *this;
240 }
242
244
248 inline bool GetBucketKeyEnabled() const { return m_bucketKeyEnabled; }
249 inline void SetBucketKeyEnabled(bool value) {
250 m_bucketKeyEnabledHasBeenSet = true;
251 m_bucketKeyEnabled = value;
252 }
254 SetBucketKeyEnabled(value);
255 return *this;
256 }
258
260
261 inline RequestCharged GetRequestCharged() const { return m_requestCharged; }
263 m_requestChargedHasBeenSet = true;
264 m_requestCharged = value;
265 }
267 SetRequestCharged(value);
268 return *this;
269 }
271
273
274 inline const Aws::String& GetRequestId() const { return m_requestId; }
275 template <typename RequestIdT = Aws::String>
276 void SetRequestId(RequestIdT&& value) {
277 m_requestIdHasBeenSet = true;
278 m_requestId = std::forward<RequestIdT>(value);
279 }
280 template <typename RequestIdT = Aws::String>
281 UploadPartResult& WithRequestId(RequestIdT&& value) {
282 SetRequestId(std::forward<RequestIdT>(value));
283 return *this;
284 }
286 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
287
288 private:
290
291 Aws::String m_eTag;
292
293 Aws::String m_checksumCRC32;
294
295 Aws::String m_checksumCRC32C;
296
297 Aws::String m_checksumCRC64NVME;
298
299 Aws::String m_checksumSHA1;
300
301 Aws::String m_checksumSHA256;
302
303 Aws::String m_sSECustomerAlgorithm;
304
305 Aws::String m_sSECustomerKeyMD5;
306
307 Aws::String m_sSEKMSKeyId;
308
309 bool m_bucketKeyEnabled{false};
310
311 RequestCharged m_requestCharged{RequestCharged::NOT_SET};
312
313 Aws::String m_requestId;
314 Aws::Http::HttpResponseCode m_HttpResponseCode;
315 bool m_serverSideEncryptionHasBeenSet = false;
316 bool m_eTagHasBeenSet = false;
317 bool m_checksumCRC32HasBeenSet = false;
318 bool m_checksumCRC32CHasBeenSet = false;
319 bool m_checksumCRC64NVMEHasBeenSet = false;
320 bool m_checksumSHA1HasBeenSet = false;
321 bool m_checksumSHA256HasBeenSet = false;
322 bool m_sSECustomerAlgorithmHasBeenSet = false;
323 bool m_sSECustomerKeyMD5HasBeenSet = false;
324 bool m_sSEKMSKeyIdHasBeenSet = false;
325 bool m_bucketKeyEnabledHasBeenSet = false;
326 bool m_requestChargedHasBeenSet = false;
327 bool m_requestIdHasBeenSet = false;
328};
329
330} // namespace Model
331} // namespace S3Crt
332} // namespace Aws
void SetRequestId(RequestIdT &&value)
UploadPartResult & WithSSEKMSKeyId(SSEKMSKeyIdT &&value)
const Aws::String & GetRequestId() const
void SetChecksumCRC32(ChecksumCRC32T &&value)
UploadPartResult & WithETag(ETagT &&value)
void SetSSECustomerKeyMD5(SSECustomerKeyMD5T &&value)
const Aws::String & GetETag() const
UploadPartResult & WithRequestId(RequestIdT &&value)
void SetRequestCharged(RequestCharged value)
void SetSSECustomerAlgorithm(SSECustomerAlgorithmT &&value)
UploadPartResult & WithSSECustomerKeyMD5(SSECustomerKeyMD5T &&value)
const Aws::String & GetChecksumCRC32C() const
const Aws::String & GetChecksumCRC32() const
const Aws::String & GetSSEKMSKeyId() const
UploadPartResult & WithChecksumCRC32(ChecksumCRC32T &&value)
void SetSSEKMSKeyId(SSEKMSKeyIdT &&value)
UploadPartResult & WithServerSideEncryption(ServerSideEncryption value)
UploadPartResult & WithChecksumSHA1(ChecksumSHA1T &&value)
UploadPartResult & WithSSECustomerAlgorithm(SSECustomerAlgorithmT &&value)
const Aws::String & GetChecksumCRC64NVME() const
UploadPartResult & WithBucketKeyEnabled(bool value)
RequestCharged GetRequestCharged() const
AWS_S3CRT_API UploadPartResult()=default
AWS_S3CRT_API UploadPartResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const Aws::String & GetSSECustomerKeyMD5() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
void SetChecksumSHA256(ChecksumSHA256T &&value)
const Aws::String & GetChecksumSHA1() const
void SetChecksumCRC64NVME(ChecksumCRC64NVMET &&value)
UploadPartResult & WithChecksumCRC64NVME(ChecksumCRC64NVMET &&value)
ServerSideEncryption GetServerSideEncryption() const
AWS_S3CRT_API UploadPartResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
UploadPartResult & WithChecksumSHA256(ChecksumSHA256T &&value)
UploadPartResult & WithChecksumCRC32C(ChecksumCRC32CT &&value)
void SetChecksumCRC32C(ChecksumCRC32CT &&value)
void SetChecksumSHA1(ChecksumSHA1T &&value)
UploadPartResult & WithRequestCharged(RequestCharged value)
void SetServerSideEncryption(ServerSideEncryption value)
const Aws::String & GetSSECustomerAlgorithm() const
const Aws::String & GetChecksumSHA256() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument