AWS SDK for C++

AWS SDK for C++ Version 1.11.812

Loading...
Searching...
No Matches
PutObjectResult.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/S3_EXPORTS.h>
10#include <aws/s3/model/ChecksumType.h>
11#include <aws/s3/model/RequestCharged.h>
12#include <aws/s3/model/ServerSideEncryption.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Xml {
22class XmlDocument;
23} // namespace Xml
24} // namespace Utils
25namespace S3 {
26namespace Model {
28 public:
29 AWS_S3_API PutObjectResult() = default;
32
34
45 inline const Aws::String& GetExpiration() const { return m_expiration; }
46 template <typename ExpirationT = Aws::String>
47 void SetExpiration(ExpirationT&& value) {
48 m_expirationHasBeenSet = true;
49 m_expiration = std::forward<ExpirationT>(value);
50 }
51 template <typename ExpirationT = Aws::String>
52 PutObjectResult& WithExpiration(ExpirationT&& value) {
53 SetExpiration(std::forward<ExpirationT>(value));
54 return *this;
55 }
57
59
67 inline const Aws::String& GetETag() const { return m_eTag; }
68 template <typename ETagT = Aws::String>
69 void SetETag(ETagT&& value) {
70 m_eTagHasBeenSet = true;
71 m_eTag = std::forward<ETagT>(value);
72 }
73 template <typename ETagT = Aws::String>
74 PutObjectResult& WithETag(ETagT&& value) {
75 SetETag(std::forward<ETagT>(value));
76 return *this;
77 }
79
81
91 inline const Aws::String& GetChecksumCRC32() const { return m_checksumCRC32; }
92 template <typename ChecksumCRC32T = Aws::String>
93 void SetChecksumCRC32(ChecksumCRC32T&& value) {
94 m_checksumCRC32HasBeenSet = true;
95 m_checksumCRC32 = std::forward<ChecksumCRC32T>(value);
96 }
97 template <typename ChecksumCRC32T = Aws::String>
98 PutObjectResult& WithChecksumCRC32(ChecksumCRC32T&& value) {
99 SetChecksumCRC32(std::forward<ChecksumCRC32T>(value));
100 return *this;
101 }
103
105
115 inline const Aws::String& GetChecksumCRC32C() const { return m_checksumCRC32C; }
116 template <typename ChecksumCRC32CT = Aws::String>
117 void SetChecksumCRC32C(ChecksumCRC32CT&& value) {
118 m_checksumCRC32CHasBeenSet = true;
119 m_checksumCRC32C = std::forward<ChecksumCRC32CT>(value);
120 }
121 template <typename ChecksumCRC32CT = Aws::String>
122 PutObjectResult& WithChecksumCRC32C(ChecksumCRC32CT&& value) {
123 SetChecksumCRC32C(std::forward<ChecksumCRC32CT>(value));
124 return *this;
125 }
127
129
139 inline const Aws::String& GetChecksumCRC64NVME() const { return m_checksumCRC64NVME; }
140 template <typename ChecksumCRC64NVMET = Aws::String>
141 void SetChecksumCRC64NVME(ChecksumCRC64NVMET&& value) {
142 m_checksumCRC64NVMEHasBeenSet = true;
143 m_checksumCRC64NVME = std::forward<ChecksumCRC64NVMET>(value);
144 }
145 template <typename ChecksumCRC64NVMET = Aws::String>
146 PutObjectResult& WithChecksumCRC64NVME(ChecksumCRC64NVMET&& value) {
147 SetChecksumCRC64NVME(std::forward<ChecksumCRC64NVMET>(value));
148 return *this;
149 }
151
153
163 inline const Aws::String& GetChecksumSHA1() const { return m_checksumSHA1; }
164 template <typename ChecksumSHA1T = Aws::String>
165 void SetChecksumSHA1(ChecksumSHA1T&& value) {
166 m_checksumSHA1HasBeenSet = true;
167 m_checksumSHA1 = std::forward<ChecksumSHA1T>(value);
168 }
169 template <typename ChecksumSHA1T = Aws::String>
170 PutObjectResult& WithChecksumSHA1(ChecksumSHA1T&& value) {
171 SetChecksumSHA1(std::forward<ChecksumSHA1T>(value));
172 return *this;
173 }
175
177
187 inline const Aws::String& GetChecksumSHA256() const { return m_checksumSHA256; }
188 template <typename ChecksumSHA256T = Aws::String>
189 void SetChecksumSHA256(ChecksumSHA256T&& value) {
190 m_checksumSHA256HasBeenSet = true;
191 m_checksumSHA256 = std::forward<ChecksumSHA256T>(value);
192 }
193 template <typename ChecksumSHA256T = Aws::String>
194 PutObjectResult& WithChecksumSHA256(ChecksumSHA256T&& value) {
195 SetChecksumSHA256(std::forward<ChecksumSHA256T>(value));
196 return *this;
197 }
199
201
208 inline const Aws::String& GetChecksumSHA512() const { return m_checksumSHA512; }
209 template <typename ChecksumSHA512T = Aws::String>
210 void SetChecksumSHA512(ChecksumSHA512T&& value) {
211 m_checksumSHA512HasBeenSet = true;
212 m_checksumSHA512 = std::forward<ChecksumSHA512T>(value);
213 }
214 template <typename ChecksumSHA512T = Aws::String>
215 PutObjectResult& WithChecksumSHA512(ChecksumSHA512T&& value) {
216 SetChecksumSHA512(std::forward<ChecksumSHA512T>(value));
217 return *this;
218 }
220
222
229 inline const Aws::String& GetChecksumMD5() const { return m_checksumMD5; }
230 template <typename ChecksumMD5T = Aws::String>
231 void SetChecksumMD5(ChecksumMD5T&& value) {
232 m_checksumMD5HasBeenSet = true;
233 m_checksumMD5 = std::forward<ChecksumMD5T>(value);
234 }
235 template <typename ChecksumMD5T = Aws::String>
236 PutObjectResult& WithChecksumMD5(ChecksumMD5T&& value) {
237 SetChecksumMD5(std::forward<ChecksumMD5T>(value));
238 return *this;
239 }
241
243
250 inline const Aws::String& GetChecksumXXHASH64() const { return m_checksumXXHASH64; }
251 template <typename ChecksumXXHASH64T = Aws::String>
252 void SetChecksumXXHASH64(ChecksumXXHASH64T&& value) {
253 m_checksumXXHASH64HasBeenSet = true;
254 m_checksumXXHASH64 = std::forward<ChecksumXXHASH64T>(value);
255 }
256 template <typename ChecksumXXHASH64T = Aws::String>
257 PutObjectResult& WithChecksumXXHASH64(ChecksumXXHASH64T&& value) {
258 SetChecksumXXHASH64(std::forward<ChecksumXXHASH64T>(value));
259 return *this;
260 }
262
264
271 inline const Aws::String& GetChecksumXXHASH3() const { return m_checksumXXHASH3; }
272 template <typename ChecksumXXHASH3T = Aws::String>
273 void SetChecksumXXHASH3(ChecksumXXHASH3T&& value) {
274 m_checksumXXHASH3HasBeenSet = true;
275 m_checksumXXHASH3 = std::forward<ChecksumXXHASH3T>(value);
276 }
277 template <typename ChecksumXXHASH3T = Aws::String>
278 PutObjectResult& WithChecksumXXHASH3(ChecksumXXHASH3T&& value) {
279 SetChecksumXXHASH3(std::forward<ChecksumXXHASH3T>(value));
280 return *this;
281 }
283
285
292 inline const Aws::String& GetChecksumXXHASH128() const { return m_checksumXXHASH128; }
293 template <typename ChecksumXXHASH128T = Aws::String>
294 void SetChecksumXXHASH128(ChecksumXXHASH128T&& value) {
295 m_checksumXXHASH128HasBeenSet = true;
296 m_checksumXXHASH128 = std::forward<ChecksumXXHASH128T>(value);
297 }
298 template <typename ChecksumXXHASH128T = Aws::String>
299 PutObjectResult& WithChecksumXXHASH128(ChecksumXXHASH128T&& value) {
300 SetChecksumXXHASH128(std::forward<ChecksumXXHASH128T>(value));
301 return *this;
302 }
304
306
316 inline ChecksumType GetChecksumType() const { return m_checksumType; }
317 inline void SetChecksumType(ChecksumType value) {
318 m_checksumTypeHasBeenSet = true;
319 m_checksumType = value;
320 }
322 SetChecksumType(value);
323 return *this;
324 }
326
328
334 inline ServerSideEncryption GetServerSideEncryption() const { return m_serverSideEncryption; }
336 m_serverSideEncryptionHasBeenSet = true;
337 m_serverSideEncryption = value;
338 }
341 return *this;
342 }
344
346
360 inline const Aws::String& GetVersionId() const { return m_versionId; }
361 template <typename VersionIdT = Aws::String>
362 void SetVersionId(VersionIdT&& value) {
363 m_versionIdHasBeenSet = true;
364 m_versionId = std::forward<VersionIdT>(value);
365 }
366 template <typename VersionIdT = Aws::String>
367 PutObjectResult& WithVersionId(VersionIdT&& value) {
368 SetVersionId(std::forward<VersionIdT>(value));
369 return *this;
370 }
372
374
380 inline const Aws::String& GetSSECustomerAlgorithm() const { return m_sSECustomerAlgorithm; }
381 template <typename SSECustomerAlgorithmT = Aws::String>
382 void SetSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) {
383 m_sSECustomerAlgorithmHasBeenSet = true;
384 m_sSECustomerAlgorithm = std::forward<SSECustomerAlgorithmT>(value);
385 }
386 template <typename SSECustomerAlgorithmT = Aws::String>
387 PutObjectResult& WithSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) {
388 SetSSECustomerAlgorithm(std::forward<SSECustomerAlgorithmT>(value));
389 return *this;
390 }
392
394
400 inline const Aws::String& GetSSECustomerKeyMD5() const { return m_sSECustomerKeyMD5; }
401 template <typename SSECustomerKeyMD5T = Aws::String>
402 void SetSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) {
403 m_sSECustomerKeyMD5HasBeenSet = true;
404 m_sSECustomerKeyMD5 = std::forward<SSECustomerKeyMD5T>(value);
405 }
406 template <typename SSECustomerKeyMD5T = Aws::String>
407 PutObjectResult& WithSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) {
408 SetSSECustomerKeyMD5(std::forward<SSECustomerKeyMD5T>(value));
409 return *this;
410 }
412
414
418 inline const Aws::String& GetSSEKMSKeyId() const { return m_sSEKMSKeyId; }
419 template <typename SSEKMSKeyIdT = Aws::String>
420 void SetSSEKMSKeyId(SSEKMSKeyIdT&& value) {
421 m_sSEKMSKeyIdHasBeenSet = true;
422 m_sSEKMSKeyId = std::forward<SSEKMSKeyIdT>(value);
423 }
424 template <typename SSEKMSKeyIdT = Aws::String>
425 PutObjectResult& WithSSEKMSKeyId(SSEKMSKeyIdT&& value) {
426 SetSSEKMSKeyId(std::forward<SSEKMSKeyIdT>(value));
427 return *this;
428 }
430
432
440 inline const Aws::String& GetSSEKMSEncryptionContext() const { return m_sSEKMSEncryptionContext; }
441 template <typename SSEKMSEncryptionContextT = Aws::String>
442 void SetSSEKMSEncryptionContext(SSEKMSEncryptionContextT&& value) {
443 m_sSEKMSEncryptionContextHasBeenSet = true;
444 m_sSEKMSEncryptionContext = std::forward<SSEKMSEncryptionContextT>(value);
445 }
446 template <typename SSEKMSEncryptionContextT = Aws::String>
447 PutObjectResult& WithSSEKMSEncryptionContext(SSEKMSEncryptionContextT&& value) {
448 SetSSEKMSEncryptionContext(std::forward<SSEKMSEncryptionContextT>(value));
449 return *this;
450 }
452
454
458 inline bool GetBucketKeyEnabled() const { return m_bucketKeyEnabled; }
459 inline void SetBucketKeyEnabled(bool value) {
460 m_bucketKeyEnabledHasBeenSet = true;
461 m_bucketKeyEnabled = value;
462 }
464 SetBucketKeyEnabled(value);
465 return *this;
466 }
468
470
475 inline long long GetSize() const { return m_size; }
476 inline void SetSize(long long value) {
477 m_sizeHasBeenSet = true;
478 m_size = value;
479 }
480 inline PutObjectResult& WithSize(long long value) {
481 SetSize(value);
482 return *this;
483 }
485
487
488 inline RequestCharged GetRequestCharged() const { return m_requestCharged; }
490 m_requestChargedHasBeenSet = true;
491 m_requestCharged = value;
492 }
494 SetRequestCharged(value);
495 return *this;
496 }
498
500
501 inline const Aws::String& GetRequestId() const { return m_requestId; }
502 template <typename RequestIdT = Aws::String>
503 void SetRequestId(RequestIdT&& value) {
504 m_requestIdHasBeenSet = true;
505 m_requestId = std::forward<RequestIdT>(value);
506 }
507 template <typename RequestIdT = Aws::String>
508 PutObjectResult& WithRequestId(RequestIdT&& value) {
509 SetRequestId(std::forward<RequestIdT>(value));
510 return *this;
511 }
513 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
514
515 private:
516 Aws::String m_expiration;
517
518 Aws::String m_eTag;
519
520 Aws::String m_checksumCRC32;
521
522 Aws::String m_checksumCRC32C;
523
524 Aws::String m_checksumCRC64NVME;
525
526 Aws::String m_checksumSHA1;
527
528 Aws::String m_checksumSHA256;
529
530 Aws::String m_checksumSHA512;
531
532 Aws::String m_checksumMD5;
533
534 Aws::String m_checksumXXHASH64;
535
536 Aws::String m_checksumXXHASH3;
537
538 Aws::String m_checksumXXHASH128;
539
540 ChecksumType m_checksumType{ChecksumType::NOT_SET};
541
543
544 Aws::String m_versionId;
545
546 Aws::String m_sSECustomerAlgorithm;
547
548 Aws::String m_sSECustomerKeyMD5;
549
550 Aws::String m_sSEKMSKeyId;
551
552 Aws::String m_sSEKMSEncryptionContext;
553
554 bool m_bucketKeyEnabled{false};
555
556 long long m_size{0};
557
558 RequestCharged m_requestCharged{RequestCharged::NOT_SET};
559
560 Aws::String m_requestId;
561 Aws::Http::HttpResponseCode m_HttpResponseCode;
562 bool m_expirationHasBeenSet = false;
563 bool m_eTagHasBeenSet = false;
564 bool m_checksumCRC32HasBeenSet = false;
565 bool m_checksumCRC32CHasBeenSet = false;
566 bool m_checksumCRC64NVMEHasBeenSet = false;
567 bool m_checksumSHA1HasBeenSet = false;
568 bool m_checksumSHA256HasBeenSet = false;
569 bool m_checksumSHA512HasBeenSet = false;
570 bool m_checksumMD5HasBeenSet = false;
571 bool m_checksumXXHASH64HasBeenSet = false;
572 bool m_checksumXXHASH3HasBeenSet = false;
573 bool m_checksumXXHASH128HasBeenSet = false;
574 bool m_checksumTypeHasBeenSet = false;
575 bool m_serverSideEncryptionHasBeenSet = false;
576 bool m_versionIdHasBeenSet = false;
577 bool m_sSECustomerAlgorithmHasBeenSet = false;
578 bool m_sSECustomerKeyMD5HasBeenSet = false;
579 bool m_sSEKMSKeyIdHasBeenSet = false;
580 bool m_sSEKMSEncryptionContextHasBeenSet = false;
581 bool m_bucketKeyEnabledHasBeenSet = false;
582 bool m_sizeHasBeenSet = false;
583 bool m_requestChargedHasBeenSet = false;
584 bool m_requestIdHasBeenSet = false;
585};
586
587} // namespace Model
588} // namespace S3
589} // namespace Aws
void SetChecksumXXHASH64(ChecksumXXHASH64T &&value)
const Aws::String & GetChecksumXXHASH3() const
const Aws::String & GetChecksumCRC32C() const
const Aws::String & GetChecksumXXHASH128() const
ServerSideEncryption GetServerSideEncryption() const
PutObjectResult & WithSSEKMSEncryptionContext(SSEKMSEncryptionContextT &&value)
PutObjectResult & WithChecksumSHA512(ChecksumSHA512T &&value)
PutObjectResult & WithChecksumMD5(ChecksumMD5T &&value)
PutObjectResult & WithChecksumXXHASH64(ChecksumXXHASH64T &&value)
PutObjectResult & WithRequestId(RequestIdT &&value)
const Aws::String & GetRequestId() const
const Aws::String & GetExpiration() const
void SetSSEKMSKeyId(SSEKMSKeyIdT &&value)
const Aws::String & GetSSECustomerAlgorithm() const
void SetChecksumSHA256(ChecksumSHA256T &&value)
void SetChecksumType(ChecksumType value)
PutObjectResult & WithSize(long long value)
ChecksumType GetChecksumType() const
AWS_S3_API PutObjectResult()=default
PutObjectResult & WithBucketKeyEnabled(bool value)
void SetChecksumCRC32(ChecksumCRC32T &&value)
PutObjectResult & WithChecksumSHA256(ChecksumSHA256T &&value)
PutObjectResult & WithChecksumXXHASH128(ChecksumXXHASH128T &&value)
const Aws::String & GetChecksumSHA1() const
const Aws::String & GetSSEKMSEncryptionContext() const
void SetRequestCharged(RequestCharged value)
void SetRequestId(RequestIdT &&value)
const Aws::String & GetChecksumSHA256() const
RequestCharged GetRequestCharged() const
PutObjectResult & WithSSECustomerAlgorithm(SSECustomerAlgorithmT &&value)
void SetChecksumXXHASH128(ChecksumXXHASH128T &&value)
PutObjectResult & WithChecksumCRC64NVME(ChecksumCRC64NVMET &&value)
void SetSSECustomerKeyMD5(SSECustomerKeyMD5T &&value)
PutObjectResult & WithChecksumCRC32C(ChecksumCRC32CT &&value)
void SetVersionId(VersionIdT &&value)
const Aws::String & GetChecksumCRC32() const
PutObjectResult & WithChecksumCRC32(ChecksumCRC32T &&value)
const Aws::String & GetChecksumSHA512() const
void SetChecksumSHA512(ChecksumSHA512T &&value)
void SetChecksumXXHASH3(ChecksumXXHASH3T &&value)
void SetChecksumCRC64NVME(ChecksumCRC64NVMET &&value)
const Aws::String & GetSSEKMSKeyId() const
const Aws::String & GetSSECustomerKeyMD5() const
PutObjectResult & WithChecksumXXHASH3(ChecksumXXHASH3T &&value)
const Aws::String & GetChecksumXXHASH64() const
AWS_S3_API PutObjectResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetChecksumCRC32C(ChecksumCRC32CT &&value)
PutObjectResult & WithChecksumType(ChecksumType value)
PutObjectResult & WithSSEKMSKeyId(SSEKMSKeyIdT &&value)
void SetExpiration(ExpirationT &&value)
PutObjectResult & WithRequestCharged(RequestCharged value)
PutObjectResult & WithChecksumSHA1(ChecksumSHA1T &&value)
const Aws::String & GetChecksumMD5() const
const Aws::String & GetVersionId() const
void SetServerSideEncryption(ServerSideEncryption value)
void SetSSEKMSEncryptionContext(SSEKMSEncryptionContextT &&value)
void SetSSECustomerAlgorithm(SSECustomerAlgorithmT &&value)
const Aws::String & GetETag() const
PutObjectResult & WithSSECustomerKeyMD5(SSECustomerKeyMD5T &&value)
const Aws::String & GetChecksumCRC64NVME() const
PutObjectResult & WithVersionId(VersionIdT &&value)
PutObjectResult & WithETag(ETagT &&value)
AWS_S3_API PutObjectResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
PutObjectResult & WithServerSideEncryption(ServerSideEncryption value)
void SetChecksumMD5(ChecksumMD5T &&value)
PutObjectResult & WithExpiration(ExpirationT &&value)
void SetChecksumSHA1(ChecksumSHA1T &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument