AWS SDK for C++

AWS SDK for C++ Version 1.11.891

Loading...
Searching...
No Matches
GetObjectResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/Array.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/stream/ResponseStream.h>
13#include <aws/s3/S3_EXPORTS.h>
14#include <aws/s3/model/ChecksumType.h>
15#include <aws/s3/model/ObjectLockEventHold.h>
16#include <aws/s3/model/ObjectLockLegalHoldStatus.h>
17#include <aws/s3/model/ObjectLockMode.h>
18#include <aws/s3/model/ReplicationStatus.h>
19#include <aws/s3/model/RequestCharged.h>
20#include <aws/s3/model/ServerSideEncryption.h>
21#include <aws/s3/model/StorageClass.h>
22
23#include <utility>
24
25namespace Aws {
26template <typename RESULT_TYPE>
27class AmazonWebServiceResult;
28
29namespace S3 {
30namespace Model {
32 public:
33 AWS_S3_API GetObjectResult() = default;
34 AWS_S3_API GetObjectResult(GetObjectResult&&) = default;
35 AWS_S3_API GetObjectResult& operator=(GetObjectResult&&) = default;
36 // we delete these because Microsoft doesn't handle move generation correctly
37 // and we therefore don't trust them to get it right here either.
40
43
45
48 inline Aws::IOStream& GetBody() const { return m_body.GetUnderlyingStream(); }
49 inline void ReplaceBody(Aws::IOStream* body) { m_body = Aws::Utils::Stream::ResponseStream(body); }
50
52
54
64 inline bool GetDeleteMarker() const { return m_deleteMarker; }
65 inline void SetDeleteMarker(bool value) {
66 m_deleteMarkerHasBeenSet = true;
67 m_deleteMarker = value;
68 }
69 inline GetObjectResult& WithDeleteMarker(bool value) {
70 SetDeleteMarker(value);
71 return *this;
72 }
74
76
79 inline const Aws::String& GetAcceptRanges() const { return m_acceptRanges; }
80 template <typename AcceptRangesT = Aws::String>
81 void SetAcceptRanges(AcceptRangesT&& value) {
82 m_acceptRangesHasBeenSet = true;
83 m_acceptRanges = std::forward<AcceptRangesT>(value);
84 }
85 template <typename AcceptRangesT = Aws::String>
86 GetObjectResult& WithAcceptRanges(AcceptRangesT&& value) {
87 SetAcceptRanges(std::forward<AcceptRangesT>(value));
88 return *this;
89 }
91
93
104 inline const Aws::String& GetExpiration() const { return m_expiration; }
105 template <typename ExpirationT = Aws::String>
106 void SetExpiration(ExpirationT&& value) {
107 m_expirationHasBeenSet = true;
108 m_expiration = std::forward<ExpirationT>(value);
109 }
110 template <typename ExpirationT = Aws::String>
111 GetObjectResult& WithExpiration(ExpirationT&& value) {
112 SetExpiration(std::forward<ExpirationT>(value));
113 return *this;
114 }
116
118
126 inline const Aws::String& GetRestore() const { return m_restore; }
127 template <typename RestoreT = Aws::String>
128 void SetRestore(RestoreT&& value) {
129 m_restoreHasBeenSet = true;
130 m_restore = std::forward<RestoreT>(value);
131 }
132 template <typename RestoreT = Aws::String>
133 GetObjectResult& WithRestore(RestoreT&& value) {
134 SetRestore(std::forward<RestoreT>(value));
135 return *this;
136 }
138
140
147 inline const Aws::Utils::DateTime& GetLastModified() const { return m_lastModified; }
148 template <typename LastModifiedT = Aws::Utils::DateTime>
149 void SetLastModified(LastModifiedT&& value) {
150 m_lastModifiedHasBeenSet = true;
151 m_lastModified = std::forward<LastModifiedT>(value);
152 }
153 template <typename LastModifiedT = Aws::Utils::DateTime>
154 GetObjectResult& WithLastModified(LastModifiedT&& value) {
155 SetLastModified(std::forward<LastModifiedT>(value));
156 return *this;
157 }
159
161
164 inline long long GetContentLength() const { return m_contentLength; }
165 inline void SetContentLength(long long value) {
166 m_contentLengthHasBeenSet = true;
167 m_contentLength = value;
168 }
169 inline GetObjectResult& WithContentLength(long long value) {
170 SetContentLength(value);
171 return *this;
172 }
174
176
180 inline const Aws::String& GetETag() const { return m_eTag; }
181 template <typename ETagT = Aws::String>
182 void SetETag(ETagT&& value) {
183 m_eTagHasBeenSet = true;
184 m_eTag = std::forward<ETagT>(value);
185 }
186 template <typename ETagT = Aws::String>
187 GetObjectResult& WithETag(ETagT&& value) {
188 SetETag(std::forward<ETagT>(value));
189 return *this;
190 }
192
194
201 inline const Aws::String& GetChecksumCRC32() const { return m_checksumCRC32; }
202 template <typename ChecksumCRC32T = Aws::String>
203 void SetChecksumCRC32(ChecksumCRC32T&& value) {
204 m_checksumCRC32HasBeenSet = true;
205 m_checksumCRC32 = std::forward<ChecksumCRC32T>(value);
206 }
207 template <typename ChecksumCRC32T = Aws::String>
208 GetObjectResult& WithChecksumCRC32(ChecksumCRC32T&& value) {
209 SetChecksumCRC32(std::forward<ChecksumCRC32T>(value));
210 return *this;
211 }
213
215
222 inline const Aws::String& GetChecksumCRC32C() const { return m_checksumCRC32C; }
223 template <typename ChecksumCRC32CT = Aws::String>
224 void SetChecksumCRC32C(ChecksumCRC32CT&& value) {
225 m_checksumCRC32CHasBeenSet = true;
226 m_checksumCRC32C = std::forward<ChecksumCRC32CT>(value);
227 }
228 template <typename ChecksumCRC32CT = Aws::String>
229 GetObjectResult& WithChecksumCRC32C(ChecksumCRC32CT&& value) {
230 SetChecksumCRC32C(std::forward<ChecksumCRC32CT>(value));
231 return *this;
232 }
234
236
242 inline const Aws::String& GetChecksumCRC64NVME() const { return m_checksumCRC64NVME; }
243 template <typename ChecksumCRC64NVMET = Aws::String>
244 void SetChecksumCRC64NVME(ChecksumCRC64NVMET&& value) {
245 m_checksumCRC64NVMEHasBeenSet = true;
246 m_checksumCRC64NVME = std::forward<ChecksumCRC64NVMET>(value);
247 }
248 template <typename ChecksumCRC64NVMET = Aws::String>
249 GetObjectResult& WithChecksumCRC64NVME(ChecksumCRC64NVMET&& value) {
250 SetChecksumCRC64NVME(std::forward<ChecksumCRC64NVMET>(value));
251 return *this;
252 }
254
256
263 inline const Aws::String& GetChecksumSHA1() const { return m_checksumSHA1; }
264 template <typename ChecksumSHA1T = Aws::String>
265 void SetChecksumSHA1(ChecksumSHA1T&& value) {
266 m_checksumSHA1HasBeenSet = true;
267 m_checksumSHA1 = std::forward<ChecksumSHA1T>(value);
268 }
269 template <typename ChecksumSHA1T = Aws::String>
270 GetObjectResult& WithChecksumSHA1(ChecksumSHA1T&& value) {
271 SetChecksumSHA1(std::forward<ChecksumSHA1T>(value));
272 return *this;
273 }
275
277
284 inline const Aws::String& GetChecksumSHA256() const { return m_checksumSHA256; }
285 template <typename ChecksumSHA256T = Aws::String>
286 void SetChecksumSHA256(ChecksumSHA256T&& value) {
287 m_checksumSHA256HasBeenSet = true;
288 m_checksumSHA256 = std::forward<ChecksumSHA256T>(value);
289 }
290 template <typename ChecksumSHA256T = Aws::String>
291 GetObjectResult& WithChecksumSHA256(ChecksumSHA256T&& value) {
292 SetChecksumSHA256(std::forward<ChecksumSHA256T>(value));
293 return *this;
294 }
296
298
304 inline const Aws::String& GetChecksumSHA512() const { return m_checksumSHA512; }
305 template <typename ChecksumSHA512T = Aws::String>
306 void SetChecksumSHA512(ChecksumSHA512T&& value) {
307 m_checksumSHA512HasBeenSet = true;
308 m_checksumSHA512 = std::forward<ChecksumSHA512T>(value);
309 }
310 template <typename ChecksumSHA512T = Aws::String>
311 GetObjectResult& WithChecksumSHA512(ChecksumSHA512T&& value) {
312 SetChecksumSHA512(std::forward<ChecksumSHA512T>(value));
313 return *this;
314 }
316
318
324 inline const Aws::String& GetChecksumMD5() const { return m_checksumMD5; }
325 template <typename ChecksumMD5T = Aws::String>
326 void SetChecksumMD5(ChecksumMD5T&& value) {
327 m_checksumMD5HasBeenSet = true;
328 m_checksumMD5 = std::forward<ChecksumMD5T>(value);
329 }
330 template <typename ChecksumMD5T = Aws::String>
331 GetObjectResult& WithChecksumMD5(ChecksumMD5T&& value) {
332 SetChecksumMD5(std::forward<ChecksumMD5T>(value));
333 return *this;
334 }
336
338
344 inline const Aws::String& GetChecksumXXHASH64() const { return m_checksumXXHASH64; }
345 template <typename ChecksumXXHASH64T = Aws::String>
346 void SetChecksumXXHASH64(ChecksumXXHASH64T&& value) {
347 m_checksumXXHASH64HasBeenSet = true;
348 m_checksumXXHASH64 = std::forward<ChecksumXXHASH64T>(value);
349 }
350 template <typename ChecksumXXHASH64T = Aws::String>
351 GetObjectResult& WithChecksumXXHASH64(ChecksumXXHASH64T&& value) {
352 SetChecksumXXHASH64(std::forward<ChecksumXXHASH64T>(value));
353 return *this;
354 }
356
358
364 inline const Aws::String& GetChecksumXXHASH3() const { return m_checksumXXHASH3; }
365 template <typename ChecksumXXHASH3T = Aws::String>
366 void SetChecksumXXHASH3(ChecksumXXHASH3T&& value) {
367 m_checksumXXHASH3HasBeenSet = true;
368 m_checksumXXHASH3 = std::forward<ChecksumXXHASH3T>(value);
369 }
370 template <typename ChecksumXXHASH3T = Aws::String>
371 GetObjectResult& WithChecksumXXHASH3(ChecksumXXHASH3T&& value) {
372 SetChecksumXXHASH3(std::forward<ChecksumXXHASH3T>(value));
373 return *this;
374 }
376
378
384 inline const Aws::String& GetChecksumXXHASH128() const { return m_checksumXXHASH128; }
385 template <typename ChecksumXXHASH128T = Aws::String>
386 void SetChecksumXXHASH128(ChecksumXXHASH128T&& value) {
387 m_checksumXXHASH128HasBeenSet = true;
388 m_checksumXXHASH128 = std::forward<ChecksumXXHASH128T>(value);
389 }
390 template <typename ChecksumXXHASH128T = Aws::String>
391 GetObjectResult& WithChecksumXXHASH128(ChecksumXXHASH128T&& value) {
392 SetChecksumXXHASH128(std::forward<ChecksumXXHASH128T>(value));
393 return *this;
394 }
396
398
407 inline ChecksumType GetChecksumType() const { return m_checksumType; }
408 inline void SetChecksumType(ChecksumType value) {
409 m_checksumTypeHasBeenSet = true;
410 m_checksumType = value;
411 }
413 SetChecksumType(value);
414 return *this;
415 }
417
419
427 inline int GetMissingMeta() const { return m_missingMeta; }
428 inline void SetMissingMeta(int value) {
429 m_missingMetaHasBeenSet = true;
430 m_missingMeta = value;
431 }
432 inline GetObjectResult& WithMissingMeta(int value) {
433 SetMissingMeta(value);
434 return *this;
435 }
437
439
443 inline const Aws::String& GetVersionId() const { return m_versionId; }
444 template <typename VersionIdT = Aws::String>
445 void SetVersionId(VersionIdT&& value) {
446 m_versionIdHasBeenSet = true;
447 m_versionId = std::forward<VersionIdT>(value);
448 }
449 template <typename VersionIdT = Aws::String>
450 GetObjectResult& WithVersionId(VersionIdT&& value) {
451 SetVersionId(std::forward<VersionIdT>(value));
452 return *this;
453 }
455
457
460 inline const Aws::String& GetCacheControl() const { return m_cacheControl; }
461 template <typename CacheControlT = Aws::String>
462 void SetCacheControl(CacheControlT&& value) {
463 m_cacheControlHasBeenSet = true;
464 m_cacheControl = std::forward<CacheControlT>(value);
465 }
466 template <typename CacheControlT = Aws::String>
467 GetObjectResult& WithCacheControl(CacheControlT&& value) {
468 SetCacheControl(std::forward<CacheControlT>(value));
469 return *this;
470 }
472
474
477 inline const Aws::String& GetContentDisposition() const { return m_contentDisposition; }
478 template <typename ContentDispositionT = Aws::String>
479 void SetContentDisposition(ContentDispositionT&& value) {
480 m_contentDispositionHasBeenSet = true;
481 m_contentDisposition = std::forward<ContentDispositionT>(value);
482 }
483 template <typename ContentDispositionT = Aws::String>
484 GetObjectResult& WithContentDisposition(ContentDispositionT&& value) {
485 SetContentDisposition(std::forward<ContentDispositionT>(value));
486 return *this;
487 }
489
491
496 inline const Aws::String& GetContentEncoding() const { return m_contentEncoding; }
497 template <typename ContentEncodingT = Aws::String>
498 void SetContentEncoding(ContentEncodingT&& value) {
499 m_contentEncodingHasBeenSet = true;
500 m_contentEncoding = std::forward<ContentEncodingT>(value);
501 }
502 template <typename ContentEncodingT = Aws::String>
503 GetObjectResult& WithContentEncoding(ContentEncodingT&& value) {
504 SetContentEncoding(std::forward<ContentEncodingT>(value));
505 return *this;
506 }
508
510
513 inline const Aws::String& GetContentLanguage() const { return m_contentLanguage; }
514 template <typename ContentLanguageT = Aws::String>
515 void SetContentLanguage(ContentLanguageT&& value) {
516 m_contentLanguageHasBeenSet = true;
517 m_contentLanguage = std::forward<ContentLanguageT>(value);
518 }
519 template <typename ContentLanguageT = Aws::String>
520 GetObjectResult& WithContentLanguage(ContentLanguageT&& value) {
521 SetContentLanguage(std::forward<ContentLanguageT>(value));
522 return *this;
523 }
525
527
530 inline const Aws::String& GetContentRange() const { return m_contentRange; }
531 template <typename ContentRangeT = Aws::String>
532 void SetContentRange(ContentRangeT&& value) {
533 m_contentRangeHasBeenSet = true;
534 m_contentRange = std::forward<ContentRangeT>(value);
535 }
536 template <typename ContentRangeT = Aws::String>
537 GetObjectResult& WithContentRange(ContentRangeT&& value) {
538 SetContentRange(std::forward<ContentRangeT>(value));
539 return *this;
540 }
542
544
547 inline const Aws::String& GetContentType() const { return m_contentType; }
548 template <typename ContentTypeT = Aws::String>
549 void SetContentType(ContentTypeT&& value) {
550 m_contentTypeHasBeenSet = true;
551 m_contentType = std::forward<ContentTypeT>(value);
552 }
553 template <typename ContentTypeT = Aws::String>
554 GetObjectResult& WithContentType(ContentTypeT&& value) {
555 SetContentType(std::forward<ContentTypeT>(value));
556 return *this;
557 }
559
561
565 inline const Aws::Utils::DateTime& GetExpires() const { return m_expires; }
566 template <typename ExpiresT = Aws::Utils::DateTime>
567 void SetExpires(ExpiresT&& value) {
568 m_expiresHasBeenSet = true;
569 m_expires = std::forward<ExpiresT>(value);
570 }
571 template <typename ExpiresT = Aws::Utils::DateTime>
572 GetObjectResult& WithExpires(ExpiresT&& value) {
573 SetExpires(std::forward<ExpiresT>(value));
574 return *this;
575 }
577
579
585 inline const Aws::String& GetWebsiteRedirectLocation() const { return m_websiteRedirectLocation; }
586 template <typename WebsiteRedirectLocationT = Aws::String>
587 void SetWebsiteRedirectLocation(WebsiteRedirectLocationT&& value) {
588 m_websiteRedirectLocationHasBeenSet = true;
589 m_websiteRedirectLocation = std::forward<WebsiteRedirectLocationT>(value);
590 }
591 template <typename WebsiteRedirectLocationT = Aws::String>
592 GetObjectResult& WithWebsiteRedirectLocation(WebsiteRedirectLocationT&& value) {
593 SetWebsiteRedirectLocation(std::forward<WebsiteRedirectLocationT>(value));
594 return *this;
595 }
597
599
605 inline ServerSideEncryption GetServerSideEncryption() const { return m_serverSideEncryption; }
607 m_serverSideEncryptionHasBeenSet = true;
608 m_serverSideEncryption = value;
609 }
612 return *this;
613 }
615
617
620 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const { return m_metadata; }
621 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
622 void SetMetadata(MetadataT&& value) {
623 m_metadataHasBeenSet = true;
624 m_metadata = std::forward<MetadataT>(value);
625 }
626 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
627 GetObjectResult& WithMetadata(MetadataT&& value) {
628 SetMetadata(std::forward<MetadataT>(value));
629 return *this;
630 }
631 template <typename MetadataKeyT = Aws::String, typename MetadataValueT = Aws::String>
632 GetObjectResult& AddMetadata(MetadataKeyT&& key, MetadataValueT&& value) {
633 m_metadataHasBeenSet = true;
634 m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value));
635 return *this;
636 }
638
640
646 inline const Aws::String& GetSSECustomerAlgorithm() const { return m_sSECustomerAlgorithm; }
647 template <typename SSECustomerAlgorithmT = Aws::String>
648 void SetSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) {
649 m_sSECustomerAlgorithmHasBeenSet = true;
650 m_sSECustomerAlgorithm = std::forward<SSECustomerAlgorithmT>(value);
651 }
652 template <typename SSECustomerAlgorithmT = Aws::String>
653 GetObjectResult& WithSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) {
654 SetSSECustomerAlgorithm(std::forward<SSECustomerAlgorithmT>(value));
655 return *this;
656 }
658
660
666 inline const Aws::String& GetSSECustomerKeyMD5() const { return m_sSECustomerKeyMD5; }
667 template <typename SSECustomerKeyMD5T = Aws::String>
668 void SetSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) {
669 m_sSECustomerKeyMD5HasBeenSet = true;
670 m_sSECustomerKeyMD5 = std::forward<SSECustomerKeyMD5T>(value);
671 }
672 template <typename SSECustomerKeyMD5T = Aws::String>
673 GetObjectResult& WithSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) {
674 SetSSECustomerKeyMD5(std::forward<SSECustomerKeyMD5T>(value));
675 return *this;
676 }
678
680
684 inline const Aws::String& GetSSEKMSKeyId() const { return m_sSEKMSKeyId; }
685 template <typename SSEKMSKeyIdT = Aws::String>
686 void SetSSEKMSKeyId(SSEKMSKeyIdT&& value) {
687 m_sSEKMSKeyIdHasBeenSet = true;
688 m_sSEKMSKeyId = std::forward<SSEKMSKeyIdT>(value);
689 }
690 template <typename SSEKMSKeyIdT = Aws::String>
691 GetObjectResult& WithSSEKMSKeyId(SSEKMSKeyIdT&& value) {
692 SetSSEKMSKeyId(std::forward<SSEKMSKeyIdT>(value));
693 return *this;
694 }
696
698
702 inline bool GetBucketKeyEnabled() const { return m_bucketKeyEnabled; }
703 inline void SetBucketKeyEnabled(bool value) {
704 m_bucketKeyEnabledHasBeenSet = true;
705 m_bucketKeyEnabled = value;
706 }
708 SetBucketKeyEnabled(value);
709 return *this;
710 }
712
714
722 inline StorageClass GetStorageClass() const { return m_storageClass; }
723 inline void SetStorageClass(StorageClass value) {
724 m_storageClassHasBeenSet = true;
725 m_storageClass = value;
726 }
728 SetStorageClass(value);
729 return *this;
730 }
732
734
735 inline RequestCharged GetRequestCharged() const { return m_requestCharged; }
737 m_requestChargedHasBeenSet = true;
738 m_requestCharged = value;
739 }
741 SetRequestCharged(value);
742 return *this;
743 }
745
747
752 inline ReplicationStatus GetReplicationStatus() const { return m_replicationStatus; }
754 m_replicationStatusHasBeenSet = true;
755 m_replicationStatus = value;
756 }
759 return *this;
760 }
762
764
769 inline int GetPartsCount() const { return m_partsCount; }
770 inline void SetPartsCount(int value) {
771 m_partsCountHasBeenSet = true;
772 m_partsCount = value;
773 }
774 inline GetObjectResult& WithPartsCount(int value) {
775 SetPartsCount(value);
776 return *this;
777 }
779
781
788 inline int GetTagCount() const { return m_tagCount; }
789 inline void SetTagCount(int value) {
790 m_tagCountHasBeenSet = true;
791 m_tagCount = value;
792 }
793 inline GetObjectResult& WithTagCount(int value) {
794 SetTagCount(value);
795 return *this;
796 }
798
800
804 inline ObjectLockMode GetObjectLockMode() const { return m_objectLockMode; }
806 m_objectLockModeHasBeenSet = true;
807 m_objectLockMode = value;
808 }
810 SetObjectLockMode(value);
811 return *this;
812 }
814
816
820 inline const Aws::Utils::DateTime& GetObjectLockRetainUntilDate() const { return m_objectLockRetainUntilDate; }
821 template <typename ObjectLockRetainUntilDateT = Aws::Utils::DateTime>
822 void SetObjectLockRetainUntilDate(ObjectLockRetainUntilDateT&& value) {
823 m_objectLockRetainUntilDateHasBeenSet = true;
824 m_objectLockRetainUntilDate = std::forward<ObjectLockRetainUntilDateT>(value);
825 }
826 template <typename ObjectLockRetainUntilDateT = Aws::Utils::DateTime>
827 GetObjectResult& WithObjectLockRetainUntilDate(ObjectLockRetainUntilDateT&& value) {
828 SetObjectLockRetainUntilDate(std::forward<ObjectLockRetainUntilDateT>(value));
829 return *this;
830 }
832
834
839 inline ObjectLockLegalHoldStatus GetObjectLockLegalHoldStatus() const { return m_objectLockLegalHoldStatus; }
841 m_objectLockLegalHoldStatusHasBeenSet = true;
842 m_objectLockLegalHoldStatus = value;
843 }
846 return *this;
847 }
849
851
856 inline ObjectLockEventHold GetObjectLockEventHold() const { return m_objectLockEventHold; }
858 m_objectLockEventHoldHasBeenSet = true;
859 m_objectLockEventHold = value;
860 }
863 return *this;
864 }
866
868
873 inline int GetObjectLockEventHoldDurationDays() const { return m_objectLockEventHoldDurationDays; }
874 inline void SetObjectLockEventHoldDurationDays(int value) {
875 m_objectLockEventHoldDurationDaysHasBeenSet = true;
876 m_objectLockEventHoldDurationDays = value;
877 }
880 return *this;
881 }
883
885
890 inline int GetObjectLockEventHoldDurationYears() const { return m_objectLockEventHoldDurationYears; }
891 inline void SetObjectLockEventHoldDurationYears(int value) {
892 m_objectLockEventHoldDurationYearsHasBeenSet = true;
893 m_objectLockEventHoldDurationYears = value;
894 }
897 return *this;
898 }
900
902
903 inline const Aws::String& GetId2() const { return m_id2; }
904 template <typename Id2T = Aws::String>
905 void SetId2(Id2T&& value) {
906 m_id2HasBeenSet = true;
907 m_id2 = std::forward<Id2T>(value);
908 }
909 template <typename Id2T = Aws::String>
910 GetObjectResult& WithId2(Id2T&& value) {
911 SetId2(std::forward<Id2T>(value));
912 return *this;
913 }
915
917
918 inline const Aws::String& GetRequestId() const { return m_requestId; }
919 template <typename RequestIdT = Aws::String>
920 void SetRequestId(RequestIdT&& value) {
921 m_requestIdHasBeenSet = true;
922 m_requestId = std::forward<RequestIdT>(value);
923 }
924 template <typename RequestIdT = Aws::String>
925 GetObjectResult& WithRequestId(RequestIdT&& value) {
926 SetRequestId(std::forward<RequestIdT>(value));
927 return *this;
928 }
930
932
935 inline const Aws::String& GetExpiresString() const { return m_expiresString; }
936 template <typename ExpiresStringT = Aws::String>
937 void SetExpiresString(ExpiresStringT&& value) {
938 m_expiresStringHasBeenSet = true;
939 m_expiresString = std::forward<ExpiresStringT>(value);
940 }
941 template <typename ExpiresStringT = Aws::String>
942 GetObjectResult& WithExpiresString(ExpiresStringT&& value) {
943 SetExpiresString(std::forward<ExpiresStringT>(value));
944 return *this;
945 }
947 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
948
949 private:
951
952 bool m_deleteMarker{false};
953
954 Aws::String m_acceptRanges;
955
956 Aws::String m_expiration;
957
958 Aws::String m_restore;
959
960 Aws::Utils::DateTime m_lastModified{};
961
962 long long m_contentLength{0};
963
964 Aws::String m_eTag;
965
966 Aws::String m_checksumCRC32;
967
968 Aws::String m_checksumCRC32C;
969
970 Aws::String m_checksumCRC64NVME;
971
972 Aws::String m_checksumSHA1;
973
974 Aws::String m_checksumSHA256;
975
976 Aws::String m_checksumSHA512;
977
978 Aws::String m_checksumMD5;
979
980 Aws::String m_checksumXXHASH64;
981
982 Aws::String m_checksumXXHASH3;
983
984 Aws::String m_checksumXXHASH128;
985
986 ChecksumType m_checksumType{ChecksumType::NOT_SET};
987
988 int m_missingMeta{0};
989
990 Aws::String m_versionId;
991
992 Aws::String m_cacheControl;
993
994 Aws::String m_contentDisposition;
995
996 Aws::String m_contentEncoding;
997
998 Aws::String m_contentLanguage;
999
1000 Aws::String m_contentRange;
1001
1002 Aws::String m_contentType;
1003
1004 Aws::Utils::DateTime m_expires{};
1005
1006 Aws::String m_websiteRedirectLocation;
1007
1009
1011
1012 Aws::String m_sSECustomerAlgorithm;
1013
1014 Aws::String m_sSECustomerKeyMD5;
1015
1016 Aws::String m_sSEKMSKeyId;
1017
1018 bool m_bucketKeyEnabled{false};
1019
1020 StorageClass m_storageClass{StorageClass::NOT_SET};
1021
1022 RequestCharged m_requestCharged{RequestCharged::NOT_SET};
1023
1024 ReplicationStatus m_replicationStatus{ReplicationStatus::NOT_SET};
1025
1026 int m_partsCount{0};
1027
1028 int m_tagCount{0};
1029
1030 ObjectLockMode m_objectLockMode{ObjectLockMode::NOT_SET};
1031
1032 Aws::Utils::DateTime m_objectLockRetainUntilDate{};
1033
1035
1037
1038 int m_objectLockEventHoldDurationDays{0};
1039
1040 int m_objectLockEventHoldDurationYears{0};
1041
1042 Aws::String m_id2;
1043
1044 Aws::String m_requestId;
1045
1046 Aws::String m_expiresString;
1047 Aws::Http::HttpResponseCode m_HttpResponseCode;
1048 bool m_bodyHasBeenSet = false;
1049 bool m_deleteMarkerHasBeenSet = false;
1050 bool m_acceptRangesHasBeenSet = false;
1051 bool m_expirationHasBeenSet = false;
1052 bool m_restoreHasBeenSet = false;
1053 bool m_lastModifiedHasBeenSet = false;
1054 bool m_contentLengthHasBeenSet = false;
1055 bool m_eTagHasBeenSet = false;
1056 bool m_checksumCRC32HasBeenSet = false;
1057 bool m_checksumCRC32CHasBeenSet = false;
1058 bool m_checksumCRC64NVMEHasBeenSet = false;
1059 bool m_checksumSHA1HasBeenSet = false;
1060 bool m_checksumSHA256HasBeenSet = false;
1061 bool m_checksumSHA512HasBeenSet = false;
1062 bool m_checksumMD5HasBeenSet = false;
1063 bool m_checksumXXHASH64HasBeenSet = false;
1064 bool m_checksumXXHASH3HasBeenSet = false;
1065 bool m_checksumXXHASH128HasBeenSet = false;
1066 bool m_checksumTypeHasBeenSet = false;
1067 bool m_missingMetaHasBeenSet = false;
1068 bool m_versionIdHasBeenSet = false;
1069 bool m_cacheControlHasBeenSet = false;
1070 bool m_contentDispositionHasBeenSet = false;
1071 bool m_contentEncodingHasBeenSet = false;
1072 bool m_contentLanguageHasBeenSet = false;
1073 bool m_contentRangeHasBeenSet = false;
1074 bool m_contentTypeHasBeenSet = false;
1075 bool m_expiresHasBeenSet = false;
1076 bool m_websiteRedirectLocationHasBeenSet = false;
1077 bool m_serverSideEncryptionHasBeenSet = false;
1078 bool m_metadataHasBeenSet = false;
1079 bool m_sSECustomerAlgorithmHasBeenSet = false;
1080 bool m_sSECustomerKeyMD5HasBeenSet = false;
1081 bool m_sSEKMSKeyIdHasBeenSet = false;
1082 bool m_bucketKeyEnabledHasBeenSet = false;
1083 bool m_storageClassHasBeenSet = false;
1084 bool m_requestChargedHasBeenSet = false;
1085 bool m_replicationStatusHasBeenSet = false;
1086 bool m_partsCountHasBeenSet = false;
1087 bool m_tagCountHasBeenSet = false;
1088 bool m_objectLockModeHasBeenSet = false;
1089 bool m_objectLockRetainUntilDateHasBeenSet = false;
1090 bool m_objectLockLegalHoldStatusHasBeenSet = false;
1091 bool m_objectLockEventHoldHasBeenSet = false;
1092 bool m_objectLockEventHoldDurationDaysHasBeenSet = false;
1093 bool m_objectLockEventHoldDurationYearsHasBeenSet = false;
1094 bool m_id2HasBeenSet = false;
1095 bool m_requestIdHasBeenSet = false;
1096 bool m_expiresStringHasBeenSet = false;
1097};
1098
1099} // namespace Model
1100} // namespace S3
1101} // namespace Aws
void SetAcceptRanges(AcceptRangesT &&value)
void SetContentType(ContentTypeT &&value)
ChecksumType GetChecksumType() const
void SetExpires(ExpiresT &&value)
GetObjectResult & WithPartsCount(int value)
void SetObjectLockEventHold(ObjectLockEventHold value)
GetObjectResult & WithId2(Id2T &&value)
void SetRestore(RestoreT &&value)
Aws::IOStream & GetBody() const
void SetReplicationStatus(ReplicationStatus value)
void SetChecksumType(ChecksumType value)
GetObjectResult & WithChecksumMD5(ChecksumMD5T &&value)
const Aws::String & GetChecksumXXHASH128() const
GetObjectResult & AddMetadata(MetadataKeyT &&key, MetadataValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
const Aws::String & GetContentDisposition() const
GetObjectResult & WithContentDisposition(ContentDispositionT &&value)
AWS_S3_API GetObjectResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
GetObjectResult & WithETag(ETagT &&value)
GetObjectResult & WithContentLanguage(ContentLanguageT &&value)
GetObjectResult & WithMetadata(MetadataT &&value)
const Aws::String & GetContentType() const
GetObjectResult & WithCacheControl(CacheControlT &&value)
GetObjectResult & WithStorageClass(StorageClass value)
const Aws::String & GetSSEKMSKeyId() const
const Aws::String & GetExpiration() const
GetObjectResult & WithChecksumCRC32C(ChecksumCRC32CT &&value)
GetObjectResult & WithChecksumCRC32(ChecksumCRC32T &&value)
const Aws::String & GetVersionId() const
void SetSSECustomerKeyMD5(SSECustomerKeyMD5T &&value)
const Aws::String & GetContentLanguage() const
GetObjectResult & WithObjectLockMode(ObjectLockMode value)
void SetVersionId(VersionIdT &&value)
StorageClass GetStorageClass() const
GetObjectResult & WithChecksumSHA512(ChecksumSHA512T &&value)
const Aws::String & GetCacheControl() const
const Aws::String & GetAcceptRanges() const
const Aws::String & GetChecksumSHA256() const
const Aws::String & GetContentRange() const
void SetChecksumCRC32(ChecksumCRC32T &&value)
GetObjectResult & WithChecksumXXHASH3(ChecksumXXHASH3T &&value)
const Aws::String & GetContentEncoding() const
void SetChecksumXXHASH64(ChecksumXXHASH64T &&value)
RequestCharged GetRequestCharged() const
void SetChecksumMD5(ChecksumMD5T &&value)
const Aws::String & GetChecksumCRC32C() const
void SetChecksumXXHASH3(ChecksumXXHASH3T &&value)
GetObjectResult & WithRequestId(RequestIdT &&value)
GetObjectResult & WithChecksumXXHASH64(ChecksumXXHASH64T &&value)
AWS_S3_API GetObjectResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
GetObjectResult & WithMissingMeta(int value)
void SetContentRange(ContentRangeT &&value)
void SetChecksumXXHASH128(ChecksumXXHASH128T &&value)
GetObjectResult & WithObjectLockEventHoldDurationYears(int value)
GetObjectResult & WithChecksumType(ChecksumType value)
void SetChecksumSHA512(ChecksumSHA512T &&value)
ObjectLockLegalHoldStatus GetObjectLockLegalHoldStatus() const
const Aws::String & GetSSECustomerKeyMD5() const
const Aws::String & GetRequestId() const
GetObjectResult & operator=(const GetObjectResult &)=delete
GetObjectResult & WithDeleteMarker(bool value)
ObjectLockEventHold GetObjectLockEventHold() const
void SetObjectLockEventHoldDurationDays(int value)
GetObjectResult & WithRestore(RestoreT &&value)
const Aws::String & GetChecksumMD5() const
void SetChecksumCRC32C(ChecksumCRC32CT &&value)
void SetContentLanguage(ContentLanguageT &&value)
GetObjectResult & WithContentRange(ContentRangeT &&value)
GetObjectResult & WithBucketKeyEnabled(bool value)
ReplicationStatus GetReplicationStatus() const
void SetExpiresString(ExpiresStringT &&value)
void SetMetadata(MetadataT &&value)
const Aws::String & GetChecksumSHA512() const
GetObjectResult & WithChecksumXXHASH128(ChecksumXXHASH128T &&value)
GetObjectResult & WithChecksumSHA256(ChecksumSHA256T &&value)
GetObjectResult & WithObjectLockEventHold(ObjectLockEventHold value)
const Aws::String & GetChecksumXXHASH64() const
void SetContentLength(long long value)
GetObjectResult & WithLastModified(LastModifiedT &&value)
const Aws::String & GetChecksumXXHASH3() const
void SetSSECustomerAlgorithm(SSECustomerAlgorithmT &&value)
const Aws::String & GetSSECustomerAlgorithm() const
void SetChecksumSHA256(ChecksumSHA256T &&value)
void SetObjectLockEventHoldDurationYears(int value)
ServerSideEncryption GetServerSideEncryption() const
void SetChecksumCRC64NVME(ChecksumCRC64NVMET &&value)
const Aws::Utils::DateTime & GetExpires() const
GetObjectResult & WithExpires(ExpiresT &&value)
GetObjectResult & WithObjectLockLegalHoldStatus(ObjectLockLegalHoldStatus value)
const Aws::String & GetChecksumCRC32() const
void SetObjectLockRetainUntilDate(ObjectLockRetainUntilDateT &&value)
GetObjectResult & WithContentLength(long long value)
GetObjectResult & WithTagCount(int value)
GetObjectResult & WithObjectLockRetainUntilDate(ObjectLockRetainUntilDateT &&value)
void SetObjectLockLegalHoldStatus(ObjectLockLegalHoldStatus value)
const Aws::String & GetETag() const
GetObjectResult & WithChecksumSHA1(ChecksumSHA1T &&value)
void SetContentDisposition(ContentDispositionT &&value)
void SetServerSideEncryption(ServerSideEncryption value)
const Aws::String & GetId2() const
const Aws::String & GetChecksumCRC64NVME() const
void SetWebsiteRedirectLocation(WebsiteRedirectLocationT &&value)
void SetChecksumSHA1(ChecksumSHA1T &&value)
void SetContentEncoding(ContentEncodingT &&value)
void SetRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetObjectLockRetainUntilDate() const
GetObjectResult & WithSSECustomerKeyMD5(SSECustomerKeyMD5T &&value)
ObjectLockMode GetObjectLockMode() const
const Aws::Utils::DateTime & GetLastModified() const
void SetCacheControl(CacheControlT &&value)
void SetObjectLockMode(ObjectLockMode value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetObjectResult & WithWebsiteRedirectLocation(WebsiteRedirectLocationT &&value)
GetObjectResult & WithServerSideEncryption(ServerSideEncryption value)
void SetSSEKMSKeyId(SSEKMSKeyIdT &&value)
void SetStorageClass(StorageClass value)
GetObjectResult & WithVersionId(VersionIdT &&value)
const Aws::String & GetChecksumSHA1() const
GetObjectResult & WithRequestCharged(RequestCharged value)
const Aws::String & GetExpiresString() const
GetObjectResult & WithSSECustomerAlgorithm(SSECustomerAlgorithmT &&value)
void SetExpiration(ExpirationT &&value)
GetObjectResult & WithContentEncoding(ContentEncodingT &&value)
void SetRequestCharged(RequestCharged value)
const Aws::String & GetRestore() const
GetObjectResult & WithExpiresString(ExpiresStringT &&value)
AWS_S3_API GetObjectResult()=default
GetObjectResult(const GetObjectResult &)=delete
AWS_S3_API GetObjectResult & operator=(GetObjectResult &&)=default
GetObjectResult & WithAcceptRanges(AcceptRangesT &&value)
GetObjectResult & WithSSEKMSKeyId(SSEKMSKeyIdT &&value)
void ReplaceBody(Aws::IOStream *body)
AWS_S3_API GetObjectResult(GetObjectResult &&)=default
GetObjectResult & WithChecksumCRC64NVME(ChecksumCRC64NVMET &&value)
const Aws::String & GetWebsiteRedirectLocation() const
GetObjectResult & WithExpiration(ExpirationT &&value)
void SetLastModified(LastModifiedT &&value)
GetObjectResult & WithContentType(ContentTypeT &&value)
GetObjectResult & WithObjectLockEventHoldDurationDays(int value)
GetObjectResult & WithReplicationStatus(ReplicationStatus value)
Aws::IOStream & GetUnderlyingStream() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_iostream< char, std::char_traits< char > > IOStream
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String