AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetObjectResult.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/stream/ResponseStream.h>
12#include <aws/s3/S3_EXPORTS.h>
13#include <aws/s3/model/ChecksumType.h>
14#include <aws/s3/model/ObjectLockLegalHoldStatus.h>
15#include <aws/s3/model/ObjectLockMode.h>
16#include <aws/s3/model/ReplicationStatus.h>
17#include <aws/s3/model/RequestCharged.h>
18#include <aws/s3/model/ServerSideEncryption.h>
19#include <aws/s3/model/StorageClass.h>
20
21#include <utility>
22
23namespace Aws {
24template <typename RESULT_TYPE>
25class AmazonWebServiceResult;
26
27namespace S3 {
28namespace Model {
30 public:
31 AWS_S3_API GetObjectResult() = default;
32 AWS_S3_API GetObjectResult(GetObjectResult&&) = default;
33 AWS_S3_API GetObjectResult& operator=(GetObjectResult&&) = default;
34 // we delete these because Microsoft doesn't handle move generation correctly
35 // and we therefore don't trust them to get it right here either.
38
41
43
46 inline Aws::IOStream& GetBody() const { return m_body.GetUnderlyingStream(); }
47 inline void ReplaceBody(Aws::IOStream* body) { m_body = Aws::Utils::Stream::ResponseStream(body); }
48
50
52
62 inline bool GetDeleteMarker() const { return m_deleteMarker; }
63 inline void SetDeleteMarker(bool value) {
64 m_deleteMarkerHasBeenSet = true;
65 m_deleteMarker = value;
66 }
67 inline GetObjectResult& WithDeleteMarker(bool value) {
68 SetDeleteMarker(value);
69 return *this;
70 }
72
74
77 inline const Aws::String& GetAcceptRanges() const { return m_acceptRanges; }
78 template <typename AcceptRangesT = Aws::String>
79 void SetAcceptRanges(AcceptRangesT&& value) {
80 m_acceptRangesHasBeenSet = true;
81 m_acceptRanges = std::forward<AcceptRangesT>(value);
82 }
83 template <typename AcceptRangesT = Aws::String>
84 GetObjectResult& WithAcceptRanges(AcceptRangesT&& value) {
85 SetAcceptRanges(std::forward<AcceptRangesT>(value));
86 return *this;
87 }
89
91
102 inline const Aws::String& GetExpiration() const { return m_expiration; }
103 template <typename ExpirationT = Aws::String>
104 void SetExpiration(ExpirationT&& value) {
105 m_expirationHasBeenSet = true;
106 m_expiration = std::forward<ExpirationT>(value);
107 }
108 template <typename ExpirationT = Aws::String>
109 GetObjectResult& WithExpiration(ExpirationT&& value) {
110 SetExpiration(std::forward<ExpirationT>(value));
111 return *this;
112 }
114
116
124 inline const Aws::String& GetRestore() const { return m_restore; }
125 template <typename RestoreT = Aws::String>
126 void SetRestore(RestoreT&& value) {
127 m_restoreHasBeenSet = true;
128 m_restore = std::forward<RestoreT>(value);
129 }
130 template <typename RestoreT = Aws::String>
131 GetObjectResult& WithRestore(RestoreT&& value) {
132 SetRestore(std::forward<RestoreT>(value));
133 return *this;
134 }
136
138
145 inline const Aws::Utils::DateTime& GetLastModified() const { return m_lastModified; }
146 template <typename LastModifiedT = Aws::Utils::DateTime>
147 void SetLastModified(LastModifiedT&& value) {
148 m_lastModifiedHasBeenSet = true;
149 m_lastModified = std::forward<LastModifiedT>(value);
150 }
151 template <typename LastModifiedT = Aws::Utils::DateTime>
152 GetObjectResult& WithLastModified(LastModifiedT&& value) {
153 SetLastModified(std::forward<LastModifiedT>(value));
154 return *this;
155 }
157
159
162 inline long long GetContentLength() const { return m_contentLength; }
163 inline void SetContentLength(long long value) {
164 m_contentLengthHasBeenSet = true;
165 m_contentLength = value;
166 }
167 inline GetObjectResult& WithContentLength(long long value) {
168 SetContentLength(value);
169 return *this;
170 }
172
174
178 inline const Aws::String& GetETag() const { return m_eTag; }
179 template <typename ETagT = Aws::String>
180 void SetETag(ETagT&& value) {
181 m_eTagHasBeenSet = true;
182 m_eTag = std::forward<ETagT>(value);
183 }
184 template <typename ETagT = Aws::String>
185 GetObjectResult& WithETag(ETagT&& value) {
186 SetETag(std::forward<ETagT>(value));
187 return *this;
188 }
190
192
199 inline const Aws::String& GetChecksumCRC32() const { return m_checksumCRC32; }
200 template <typename ChecksumCRC32T = Aws::String>
201 void SetChecksumCRC32(ChecksumCRC32T&& value) {
202 m_checksumCRC32HasBeenSet = true;
203 m_checksumCRC32 = std::forward<ChecksumCRC32T>(value);
204 }
205 template <typename ChecksumCRC32T = Aws::String>
206 GetObjectResult& WithChecksumCRC32(ChecksumCRC32T&& value) {
207 SetChecksumCRC32(std::forward<ChecksumCRC32T>(value));
208 return *this;
209 }
211
213
220 inline const Aws::String& GetChecksumCRC32C() const { return m_checksumCRC32C; }
221 template <typename ChecksumCRC32CT = Aws::String>
222 void SetChecksumCRC32C(ChecksumCRC32CT&& value) {
223 m_checksumCRC32CHasBeenSet = true;
224 m_checksumCRC32C = std::forward<ChecksumCRC32CT>(value);
225 }
226 template <typename ChecksumCRC32CT = Aws::String>
227 GetObjectResult& WithChecksumCRC32C(ChecksumCRC32CT&& value) {
228 SetChecksumCRC32C(std::forward<ChecksumCRC32CT>(value));
229 return *this;
230 }
232
234
240 inline const Aws::String& GetChecksumCRC64NVME() const { return m_checksumCRC64NVME; }
241 template <typename ChecksumCRC64NVMET = Aws::String>
242 void SetChecksumCRC64NVME(ChecksumCRC64NVMET&& value) {
243 m_checksumCRC64NVMEHasBeenSet = true;
244 m_checksumCRC64NVME = std::forward<ChecksumCRC64NVMET>(value);
245 }
246 template <typename ChecksumCRC64NVMET = Aws::String>
247 GetObjectResult& WithChecksumCRC64NVME(ChecksumCRC64NVMET&& value) {
248 SetChecksumCRC64NVME(std::forward<ChecksumCRC64NVMET>(value));
249 return *this;
250 }
252
254
261 inline const Aws::String& GetChecksumSHA1() const { return m_checksumSHA1; }
262 template <typename ChecksumSHA1T = Aws::String>
263 void SetChecksumSHA1(ChecksumSHA1T&& value) {
264 m_checksumSHA1HasBeenSet = true;
265 m_checksumSHA1 = std::forward<ChecksumSHA1T>(value);
266 }
267 template <typename ChecksumSHA1T = Aws::String>
268 GetObjectResult& WithChecksumSHA1(ChecksumSHA1T&& value) {
269 SetChecksumSHA1(std::forward<ChecksumSHA1T>(value));
270 return *this;
271 }
273
275
282 inline const Aws::String& GetChecksumSHA256() const { return m_checksumSHA256; }
283 template <typename ChecksumSHA256T = Aws::String>
284 void SetChecksumSHA256(ChecksumSHA256T&& value) {
285 m_checksumSHA256HasBeenSet = true;
286 m_checksumSHA256 = std::forward<ChecksumSHA256T>(value);
287 }
288 template <typename ChecksumSHA256T = Aws::String>
289 GetObjectResult& WithChecksumSHA256(ChecksumSHA256T&& value) {
290 SetChecksumSHA256(std::forward<ChecksumSHA256T>(value));
291 return *this;
292 }
294
296
305 inline ChecksumType GetChecksumType() const { return m_checksumType; }
306 inline void SetChecksumType(ChecksumType value) {
307 m_checksumTypeHasBeenSet = true;
308 m_checksumType = value;
309 }
311 SetChecksumType(value);
312 return *this;
313 }
315
317
325 inline int GetMissingMeta() const { return m_missingMeta; }
326 inline void SetMissingMeta(int value) {
327 m_missingMetaHasBeenSet = true;
328 m_missingMeta = value;
329 }
330 inline GetObjectResult& WithMissingMeta(int value) {
331 SetMissingMeta(value);
332 return *this;
333 }
335
337
341 inline const Aws::String& GetVersionId() const { return m_versionId; }
342 template <typename VersionIdT = Aws::String>
343 void SetVersionId(VersionIdT&& value) {
344 m_versionIdHasBeenSet = true;
345 m_versionId = std::forward<VersionIdT>(value);
346 }
347 template <typename VersionIdT = Aws::String>
348 GetObjectResult& WithVersionId(VersionIdT&& value) {
349 SetVersionId(std::forward<VersionIdT>(value));
350 return *this;
351 }
353
355
358 inline const Aws::String& GetCacheControl() const { return m_cacheControl; }
359 template <typename CacheControlT = Aws::String>
360 void SetCacheControl(CacheControlT&& value) {
361 m_cacheControlHasBeenSet = true;
362 m_cacheControl = std::forward<CacheControlT>(value);
363 }
364 template <typename CacheControlT = Aws::String>
365 GetObjectResult& WithCacheControl(CacheControlT&& value) {
366 SetCacheControl(std::forward<CacheControlT>(value));
367 return *this;
368 }
370
372
375 inline const Aws::String& GetContentDisposition() const { return m_contentDisposition; }
376 template <typename ContentDispositionT = Aws::String>
377 void SetContentDisposition(ContentDispositionT&& value) {
378 m_contentDispositionHasBeenSet = true;
379 m_contentDisposition = std::forward<ContentDispositionT>(value);
380 }
381 template <typename ContentDispositionT = Aws::String>
382 GetObjectResult& WithContentDisposition(ContentDispositionT&& value) {
383 SetContentDisposition(std::forward<ContentDispositionT>(value));
384 return *this;
385 }
387
389
394 inline const Aws::String& GetContentEncoding() const { return m_contentEncoding; }
395 template <typename ContentEncodingT = Aws::String>
396 void SetContentEncoding(ContentEncodingT&& value) {
397 m_contentEncodingHasBeenSet = true;
398 m_contentEncoding = std::forward<ContentEncodingT>(value);
399 }
400 template <typename ContentEncodingT = Aws::String>
401 GetObjectResult& WithContentEncoding(ContentEncodingT&& value) {
402 SetContentEncoding(std::forward<ContentEncodingT>(value));
403 return *this;
404 }
406
408
411 inline const Aws::String& GetContentLanguage() const { return m_contentLanguage; }
412 template <typename ContentLanguageT = Aws::String>
413 void SetContentLanguage(ContentLanguageT&& value) {
414 m_contentLanguageHasBeenSet = true;
415 m_contentLanguage = std::forward<ContentLanguageT>(value);
416 }
417 template <typename ContentLanguageT = Aws::String>
418 GetObjectResult& WithContentLanguage(ContentLanguageT&& value) {
419 SetContentLanguage(std::forward<ContentLanguageT>(value));
420 return *this;
421 }
423
425
428 inline const Aws::String& GetContentRange() const { return m_contentRange; }
429 template <typename ContentRangeT = Aws::String>
430 void SetContentRange(ContentRangeT&& value) {
431 m_contentRangeHasBeenSet = true;
432 m_contentRange = std::forward<ContentRangeT>(value);
433 }
434 template <typename ContentRangeT = Aws::String>
435 GetObjectResult& WithContentRange(ContentRangeT&& value) {
436 SetContentRange(std::forward<ContentRangeT>(value));
437 return *this;
438 }
440
442
445 inline const Aws::String& GetContentType() const { return m_contentType; }
446 template <typename ContentTypeT = Aws::String>
447 void SetContentType(ContentTypeT&& value) {
448 m_contentTypeHasBeenSet = true;
449 m_contentType = std::forward<ContentTypeT>(value);
450 }
451 template <typename ContentTypeT = Aws::String>
452 GetObjectResult& WithContentType(ContentTypeT&& value) {
453 SetContentType(std::forward<ContentTypeT>(value));
454 return *this;
455 }
457
459
463 inline const Aws::Utils::DateTime& GetExpires() const { return m_expires; }
464 template <typename ExpiresT = Aws::Utils::DateTime>
465 void SetExpires(ExpiresT&& value) {
466 m_expiresHasBeenSet = true;
467 m_expires = std::forward<ExpiresT>(value);
468 }
469 template <typename ExpiresT = Aws::Utils::DateTime>
470 GetObjectResult& WithExpires(ExpiresT&& value) {
471 SetExpires(std::forward<ExpiresT>(value));
472 return *this;
473 }
475
477
483 inline const Aws::String& GetWebsiteRedirectLocation() const { return m_websiteRedirectLocation; }
484 template <typename WebsiteRedirectLocationT = Aws::String>
485 void SetWebsiteRedirectLocation(WebsiteRedirectLocationT&& value) {
486 m_websiteRedirectLocationHasBeenSet = true;
487 m_websiteRedirectLocation = std::forward<WebsiteRedirectLocationT>(value);
488 }
489 template <typename WebsiteRedirectLocationT = Aws::String>
490 GetObjectResult& WithWebsiteRedirectLocation(WebsiteRedirectLocationT&& value) {
491 SetWebsiteRedirectLocation(std::forward<WebsiteRedirectLocationT>(value));
492 return *this;
493 }
495
497
503 inline ServerSideEncryption GetServerSideEncryption() const { return m_serverSideEncryption; }
505 m_serverSideEncryptionHasBeenSet = true;
506 m_serverSideEncryption = value;
507 }
510 return *this;
511 }
513
515
518 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const { return m_metadata; }
519 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
520 void SetMetadata(MetadataT&& value) {
521 m_metadataHasBeenSet = true;
522 m_metadata = std::forward<MetadataT>(value);
523 }
524 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
525 GetObjectResult& WithMetadata(MetadataT&& value) {
526 SetMetadata(std::forward<MetadataT>(value));
527 return *this;
528 }
529 template <typename MetadataKeyT = Aws::String, typename MetadataValueT = Aws::String>
530 GetObjectResult& AddMetadata(MetadataKeyT&& key, MetadataValueT&& value) {
531 m_metadataHasBeenSet = true;
532 m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value));
533 return *this;
534 }
536
538
544 inline const Aws::String& GetSSECustomerAlgorithm() const { return m_sSECustomerAlgorithm; }
545 template <typename SSECustomerAlgorithmT = Aws::String>
546 void SetSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) {
547 m_sSECustomerAlgorithmHasBeenSet = true;
548 m_sSECustomerAlgorithm = std::forward<SSECustomerAlgorithmT>(value);
549 }
550 template <typename SSECustomerAlgorithmT = Aws::String>
551 GetObjectResult& WithSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) {
552 SetSSECustomerAlgorithm(std::forward<SSECustomerAlgorithmT>(value));
553 return *this;
554 }
556
558
564 inline const Aws::String& GetSSECustomerKeyMD5() const { return m_sSECustomerKeyMD5; }
565 template <typename SSECustomerKeyMD5T = Aws::String>
566 void SetSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) {
567 m_sSECustomerKeyMD5HasBeenSet = true;
568 m_sSECustomerKeyMD5 = std::forward<SSECustomerKeyMD5T>(value);
569 }
570 template <typename SSECustomerKeyMD5T = Aws::String>
571 GetObjectResult& WithSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) {
572 SetSSECustomerKeyMD5(std::forward<SSECustomerKeyMD5T>(value));
573 return *this;
574 }
576
578
582 inline const Aws::String& GetSSEKMSKeyId() const { return m_sSEKMSKeyId; }
583 template <typename SSEKMSKeyIdT = Aws::String>
584 void SetSSEKMSKeyId(SSEKMSKeyIdT&& value) {
585 m_sSEKMSKeyIdHasBeenSet = true;
586 m_sSEKMSKeyId = std::forward<SSEKMSKeyIdT>(value);
587 }
588 template <typename SSEKMSKeyIdT = Aws::String>
589 GetObjectResult& WithSSEKMSKeyId(SSEKMSKeyIdT&& value) {
590 SetSSEKMSKeyId(std::forward<SSEKMSKeyIdT>(value));
591 return *this;
592 }
594
596
600 inline bool GetBucketKeyEnabled() const { return m_bucketKeyEnabled; }
601 inline void SetBucketKeyEnabled(bool value) {
602 m_bucketKeyEnabledHasBeenSet = true;
603 m_bucketKeyEnabled = value;
604 }
606 SetBucketKeyEnabled(value);
607 return *this;
608 }
610
612
620 inline StorageClass GetStorageClass() const { return m_storageClass; }
621 inline void SetStorageClass(StorageClass value) {
622 m_storageClassHasBeenSet = true;
623 m_storageClass = value;
624 }
626 SetStorageClass(value);
627 return *this;
628 }
630
632
633 inline RequestCharged GetRequestCharged() const { return m_requestCharged; }
635 m_requestChargedHasBeenSet = true;
636 m_requestCharged = value;
637 }
639 SetRequestCharged(value);
640 return *this;
641 }
643
645
650 inline ReplicationStatus GetReplicationStatus() const { return m_replicationStatus; }
652 m_replicationStatusHasBeenSet = true;
653 m_replicationStatus = value;
654 }
657 return *this;
658 }
660
662
667 inline int GetPartsCount() const { return m_partsCount; }
668 inline void SetPartsCount(int value) {
669 m_partsCountHasBeenSet = true;
670 m_partsCount = value;
671 }
672 inline GetObjectResult& WithPartsCount(int value) {
673 SetPartsCount(value);
674 return *this;
675 }
677
679
686 inline int GetTagCount() const { return m_tagCount; }
687 inline void SetTagCount(int value) {
688 m_tagCountHasBeenSet = true;
689 m_tagCount = value;
690 }
691 inline GetObjectResult& WithTagCount(int value) {
692 SetTagCount(value);
693 return *this;
694 }
696
698
702 inline ObjectLockMode GetObjectLockMode() const { return m_objectLockMode; }
704 m_objectLockModeHasBeenSet = true;
705 m_objectLockMode = value;
706 }
708 SetObjectLockMode(value);
709 return *this;
710 }
712
714
718 inline const Aws::Utils::DateTime& GetObjectLockRetainUntilDate() const { return m_objectLockRetainUntilDate; }
719 template <typename ObjectLockRetainUntilDateT = Aws::Utils::DateTime>
720 void SetObjectLockRetainUntilDate(ObjectLockRetainUntilDateT&& value) {
721 m_objectLockRetainUntilDateHasBeenSet = true;
722 m_objectLockRetainUntilDate = std::forward<ObjectLockRetainUntilDateT>(value);
723 }
724 template <typename ObjectLockRetainUntilDateT = Aws::Utils::DateTime>
725 GetObjectResult& WithObjectLockRetainUntilDate(ObjectLockRetainUntilDateT&& value) {
726 SetObjectLockRetainUntilDate(std::forward<ObjectLockRetainUntilDateT>(value));
727 return *this;
728 }
730
732
737 inline ObjectLockLegalHoldStatus GetObjectLockLegalHoldStatus() const { return m_objectLockLegalHoldStatus; }
739 m_objectLockLegalHoldStatusHasBeenSet = true;
740 m_objectLockLegalHoldStatus = value;
741 }
744 return *this;
745 }
747
749
750 inline const Aws::String& GetId2() const { return m_id2; }
751 template <typename Id2T = Aws::String>
752 void SetId2(Id2T&& value) {
753 m_id2HasBeenSet = true;
754 m_id2 = std::forward<Id2T>(value);
755 }
756 template <typename Id2T = Aws::String>
757 GetObjectResult& WithId2(Id2T&& value) {
758 SetId2(std::forward<Id2T>(value));
759 return *this;
760 }
762
764
765 inline const Aws::String& GetRequestId() const { return m_requestId; }
766 template <typename RequestIdT = Aws::String>
767 void SetRequestId(RequestIdT&& value) {
768 m_requestIdHasBeenSet = true;
769 m_requestId = std::forward<RequestIdT>(value);
770 }
771 template <typename RequestIdT = Aws::String>
772 GetObjectResult& WithRequestId(RequestIdT&& value) {
773 SetRequestId(std::forward<RequestIdT>(value));
774 return *this;
775 }
777
779
782 inline const Aws::String& GetExpiresString() const { return m_expiresString; }
783 template <typename ExpiresStringT = Aws::String>
784 void SetExpiresString(ExpiresStringT&& value) {
785 m_expiresStringHasBeenSet = true;
786 m_expiresString = std::forward<ExpiresStringT>(value);
787 }
788 template <typename ExpiresStringT = Aws::String>
789 GetObjectResult& WithExpiresString(ExpiresStringT&& value) {
790 SetExpiresString(std::forward<ExpiresStringT>(value));
791 return *this;
792 }
794 private:
796
797 bool m_deleteMarker{false};
798
799 Aws::String m_acceptRanges;
800
801 Aws::String m_expiration;
802
803 Aws::String m_restore;
804
805 Aws::Utils::DateTime m_lastModified{};
806
807 long long m_contentLength{0};
808
809 Aws::String m_eTag;
810
811 Aws::String m_checksumCRC32;
812
813 Aws::String m_checksumCRC32C;
814
815 Aws::String m_checksumCRC64NVME;
816
817 Aws::String m_checksumSHA1;
818
819 Aws::String m_checksumSHA256;
820
821 ChecksumType m_checksumType{ChecksumType::NOT_SET};
822
823 int m_missingMeta{0};
824
825 Aws::String m_versionId;
826
827 Aws::String m_cacheControl;
828
829 Aws::String m_contentDisposition;
830
831 Aws::String m_contentEncoding;
832
833 Aws::String m_contentLanguage;
834
835 Aws::String m_contentRange;
836
837 Aws::String m_contentType;
838
839 Aws::Utils::DateTime m_expires{};
840
841 Aws::String m_websiteRedirectLocation;
842
844
846
847 Aws::String m_sSECustomerAlgorithm;
848
849 Aws::String m_sSECustomerKeyMD5;
850
851 Aws::String m_sSEKMSKeyId;
852
853 bool m_bucketKeyEnabled{false};
854
855 StorageClass m_storageClass{StorageClass::NOT_SET};
856
857 RequestCharged m_requestCharged{RequestCharged::NOT_SET};
858
860
861 int m_partsCount{0};
862
863 int m_tagCount{0};
864
865 ObjectLockMode m_objectLockMode{ObjectLockMode::NOT_SET};
866
867 Aws::Utils::DateTime m_objectLockRetainUntilDate{};
868
870
871 Aws::String m_id2;
872
873 Aws::String m_requestId;
874
875 Aws::String m_expiresString;
876 bool m_bodyHasBeenSet = false;
877 bool m_deleteMarkerHasBeenSet = false;
878 bool m_acceptRangesHasBeenSet = false;
879 bool m_expirationHasBeenSet = false;
880 bool m_restoreHasBeenSet = false;
881 bool m_lastModifiedHasBeenSet = false;
882 bool m_contentLengthHasBeenSet = false;
883 bool m_eTagHasBeenSet = false;
884 bool m_checksumCRC32HasBeenSet = false;
885 bool m_checksumCRC32CHasBeenSet = false;
886 bool m_checksumCRC64NVMEHasBeenSet = false;
887 bool m_checksumSHA1HasBeenSet = false;
888 bool m_checksumSHA256HasBeenSet = false;
889 bool m_checksumTypeHasBeenSet = false;
890 bool m_missingMetaHasBeenSet = false;
891 bool m_versionIdHasBeenSet = false;
892 bool m_cacheControlHasBeenSet = false;
893 bool m_contentDispositionHasBeenSet = false;
894 bool m_contentEncodingHasBeenSet = false;
895 bool m_contentLanguageHasBeenSet = false;
896 bool m_contentRangeHasBeenSet = false;
897 bool m_contentTypeHasBeenSet = false;
898 bool m_expiresHasBeenSet = false;
899 bool m_websiteRedirectLocationHasBeenSet = false;
900 bool m_serverSideEncryptionHasBeenSet = false;
901 bool m_metadataHasBeenSet = false;
902 bool m_sSECustomerAlgorithmHasBeenSet = false;
903 bool m_sSECustomerKeyMD5HasBeenSet = false;
904 bool m_sSEKMSKeyIdHasBeenSet = false;
905 bool m_bucketKeyEnabledHasBeenSet = false;
906 bool m_storageClassHasBeenSet = false;
907 bool m_requestChargedHasBeenSet = false;
908 bool m_replicationStatusHasBeenSet = false;
909 bool m_partsCountHasBeenSet = false;
910 bool m_tagCountHasBeenSet = false;
911 bool m_objectLockModeHasBeenSet = false;
912 bool m_objectLockRetainUntilDateHasBeenSet = false;
913 bool m_objectLockLegalHoldStatusHasBeenSet = false;
914 bool m_id2HasBeenSet = false;
915 bool m_requestIdHasBeenSet = false;
916 bool m_expiresStringHasBeenSet = false;
917};
918
919} // namespace Model
920} // namespace S3
921} // namespace Aws
void SetAcceptRanges(AcceptRangesT &&value)
void SetContentType(ContentTypeT &&value)
ChecksumType GetChecksumType() const
void SetExpires(ExpiresT &&value)
GetObjectResult & WithPartsCount(int value)
GetObjectResult & WithId2(Id2T &&value)
void SetRestore(RestoreT &&value)
Aws::IOStream & GetBody() const
void SetReplicationStatus(ReplicationStatus value)
void SetChecksumType(ChecksumType value)
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
const Aws::String & GetCacheControl() const
const Aws::String & GetAcceptRanges() const
const Aws::String & GetChecksumSHA256() const
const Aws::String & GetContentRange() const
void SetChecksumCRC32(ChecksumCRC32T &&value)
const Aws::String & GetContentEncoding() const
RequestCharged GetRequestCharged() const
const Aws::String & GetChecksumCRC32C() const
GetObjectResult & WithRequestId(RequestIdT &&value)
AWS_S3_API GetObjectResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
GetObjectResult & WithMissingMeta(int value)
void SetContentRange(ContentRangeT &&value)
GetObjectResult & WithChecksumType(ChecksumType value)
ObjectLockLegalHoldStatus GetObjectLockLegalHoldStatus() const
const Aws::String & GetSSECustomerKeyMD5() const
const Aws::String & GetRequestId() const
GetObjectResult & operator=(const GetObjectResult &)=delete
GetObjectResult & WithDeleteMarker(bool value)
GetObjectResult & WithRestore(RestoreT &&value)
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)
GetObjectResult & WithChecksumSHA256(ChecksumSHA256T &&value)
void SetContentLength(long long value)
GetObjectResult & WithLastModified(LastModifiedT &&value)
void SetSSECustomerAlgorithm(SSECustomerAlgorithmT &&value)
const Aws::String & GetSSECustomerAlgorithm() const
void SetChecksumSHA256(ChecksumSHA256T &&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)
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 & 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