AWS SDK for C++

AWS SDK for C++ Version 1.11.783

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-crt/S3Crt_EXPORTS.h>
14#include <aws/s3-crt/model/ChecksumType.h>
15#include <aws/s3-crt/model/ObjectLockLegalHoldStatus.h>
16#include <aws/s3-crt/model/ObjectLockMode.h>
17#include <aws/s3-crt/model/ReplicationStatus.h>
18#include <aws/s3-crt/model/RequestCharged.h>
19#include <aws/s3-crt/model/ServerSideEncryption.h>
20#include <aws/s3-crt/model/StorageClass.h>
21
22#include <utility>
23
24namespace Aws {
25template <typename RESULT_TYPE>
26class AmazonWebServiceResult;
27
28namespace S3Crt {
29namespace Model {
31 public:
32 AWS_S3CRT_API GetObjectResult() = default;
33 AWS_S3CRT_API GetObjectResult(GetObjectResult&&) = default;
34 AWS_S3CRT_API GetObjectResult& operator=(GetObjectResult&&) = default;
35 // we delete these because Microsoft doesn't handle move generation correctly
36 // and we therefore don't trust them to get it right here either.
39
42
44
47 inline Aws::IOStream& GetBody() const { return m_body.GetUnderlyingStream(); }
48 inline void ReplaceBody(Aws::IOStream* body) { m_body = Aws::Utils::Stream::ResponseStream(body); }
49
51
53
63 inline bool GetDeleteMarker() const { return m_deleteMarker; }
64 inline void SetDeleteMarker(bool value) {
65 m_deleteMarkerHasBeenSet = true;
66 m_deleteMarker = value;
67 }
68 inline GetObjectResult& WithDeleteMarker(bool value) {
69 SetDeleteMarker(value);
70 return *this;
71 }
73
75
78 inline const Aws::String& GetAcceptRanges() const { return m_acceptRanges; }
79 template <typename AcceptRangesT = Aws::String>
80 void SetAcceptRanges(AcceptRangesT&& value) {
81 m_acceptRangesHasBeenSet = true;
82 m_acceptRanges = std::forward<AcceptRangesT>(value);
83 }
84 template <typename AcceptRangesT = Aws::String>
85 GetObjectResult& WithAcceptRanges(AcceptRangesT&& value) {
86 SetAcceptRanges(std::forward<AcceptRangesT>(value));
87 return *this;
88 }
90
92
103 inline const Aws::String& GetExpiration() const { return m_expiration; }
104 template <typename ExpirationT = Aws::String>
105 void SetExpiration(ExpirationT&& value) {
106 m_expirationHasBeenSet = true;
107 m_expiration = std::forward<ExpirationT>(value);
108 }
109 template <typename ExpirationT = Aws::String>
110 GetObjectResult& WithExpiration(ExpirationT&& value) {
111 SetExpiration(std::forward<ExpirationT>(value));
112 return *this;
113 }
115
117
125 inline const Aws::String& GetRestore() const { return m_restore; }
126 template <typename RestoreT = Aws::String>
127 void SetRestore(RestoreT&& value) {
128 m_restoreHasBeenSet = true;
129 m_restore = std::forward<RestoreT>(value);
130 }
131 template <typename RestoreT = Aws::String>
132 GetObjectResult& WithRestore(RestoreT&& value) {
133 SetRestore(std::forward<RestoreT>(value));
134 return *this;
135 }
137
139
146 inline const Aws::Utils::DateTime& GetLastModified() const { return m_lastModified; }
147 template <typename LastModifiedT = Aws::Utils::DateTime>
148 void SetLastModified(LastModifiedT&& value) {
149 m_lastModifiedHasBeenSet = true;
150 m_lastModified = std::forward<LastModifiedT>(value);
151 }
152 template <typename LastModifiedT = Aws::Utils::DateTime>
153 GetObjectResult& WithLastModified(LastModifiedT&& value) {
154 SetLastModified(std::forward<LastModifiedT>(value));
155 return *this;
156 }
158
160
163 inline long long GetContentLength() const { return m_contentLength; }
164 inline void SetContentLength(long long value) {
165 m_contentLengthHasBeenSet = true;
166 m_contentLength = value;
167 }
168 inline GetObjectResult& WithContentLength(long long value) {
169 SetContentLength(value);
170 return *this;
171 }
173
175
179 inline const Aws::String& GetETag() const { return m_eTag; }
180 template <typename ETagT = Aws::String>
181 void SetETag(ETagT&& value) {
182 m_eTagHasBeenSet = true;
183 m_eTag = std::forward<ETagT>(value);
184 }
185 template <typename ETagT = Aws::String>
186 GetObjectResult& WithETag(ETagT&& value) {
187 SetETag(std::forward<ETagT>(value));
188 return *this;
189 }
191
193
200 inline const Aws::String& GetChecksumCRC32() const { return m_checksumCRC32; }
201 template <typename ChecksumCRC32T = Aws::String>
202 void SetChecksumCRC32(ChecksumCRC32T&& value) {
203 m_checksumCRC32HasBeenSet = true;
204 m_checksumCRC32 = std::forward<ChecksumCRC32T>(value);
205 }
206 template <typename ChecksumCRC32T = Aws::String>
207 GetObjectResult& WithChecksumCRC32(ChecksumCRC32T&& value) {
208 SetChecksumCRC32(std::forward<ChecksumCRC32T>(value));
209 return *this;
210 }
212
214
221 inline const Aws::String& GetChecksumCRC32C() const { return m_checksumCRC32C; }
222 template <typename ChecksumCRC32CT = Aws::String>
223 void SetChecksumCRC32C(ChecksumCRC32CT&& value) {
224 m_checksumCRC32CHasBeenSet = true;
225 m_checksumCRC32C = std::forward<ChecksumCRC32CT>(value);
226 }
227 template <typename ChecksumCRC32CT = Aws::String>
228 GetObjectResult& WithChecksumCRC32C(ChecksumCRC32CT&& value) {
229 SetChecksumCRC32C(std::forward<ChecksumCRC32CT>(value));
230 return *this;
231 }
233
235
241 inline const Aws::String& GetChecksumCRC64NVME() const { return m_checksumCRC64NVME; }
242 template <typename ChecksumCRC64NVMET = Aws::String>
243 void SetChecksumCRC64NVME(ChecksumCRC64NVMET&& value) {
244 m_checksumCRC64NVMEHasBeenSet = true;
245 m_checksumCRC64NVME = std::forward<ChecksumCRC64NVMET>(value);
246 }
247 template <typename ChecksumCRC64NVMET = Aws::String>
248 GetObjectResult& WithChecksumCRC64NVME(ChecksumCRC64NVMET&& value) {
249 SetChecksumCRC64NVME(std::forward<ChecksumCRC64NVMET>(value));
250 return *this;
251 }
253
255
262 inline const Aws::String& GetChecksumSHA1() const { return m_checksumSHA1; }
263 template <typename ChecksumSHA1T = Aws::String>
264 void SetChecksumSHA1(ChecksumSHA1T&& value) {
265 m_checksumSHA1HasBeenSet = true;
266 m_checksumSHA1 = std::forward<ChecksumSHA1T>(value);
267 }
268 template <typename ChecksumSHA1T = Aws::String>
269 GetObjectResult& WithChecksumSHA1(ChecksumSHA1T&& value) {
270 SetChecksumSHA1(std::forward<ChecksumSHA1T>(value));
271 return *this;
272 }
274
276
283 inline const Aws::String& GetChecksumSHA256() const { return m_checksumSHA256; }
284 template <typename ChecksumSHA256T = Aws::String>
285 void SetChecksumSHA256(ChecksumSHA256T&& value) {
286 m_checksumSHA256HasBeenSet = true;
287 m_checksumSHA256 = std::forward<ChecksumSHA256T>(value);
288 }
289 template <typename ChecksumSHA256T = Aws::String>
290 GetObjectResult& WithChecksumSHA256(ChecksumSHA256T&& value) {
291 SetChecksumSHA256(std::forward<ChecksumSHA256T>(value));
292 return *this;
293 }
295
297
306 inline ChecksumType GetChecksumType() const { return m_checksumType; }
307 inline void SetChecksumType(ChecksumType value) {
308 m_checksumTypeHasBeenSet = true;
309 m_checksumType = value;
310 }
312 SetChecksumType(value);
313 return *this;
314 }
316
318
326 inline int GetMissingMeta() const { return m_missingMeta; }
327 inline void SetMissingMeta(int value) {
328 m_missingMetaHasBeenSet = true;
329 m_missingMeta = value;
330 }
331 inline GetObjectResult& WithMissingMeta(int value) {
332 SetMissingMeta(value);
333 return *this;
334 }
336
338
342 inline const Aws::String& GetVersionId() const { return m_versionId; }
343 template <typename VersionIdT = Aws::String>
344 void SetVersionId(VersionIdT&& value) {
345 m_versionIdHasBeenSet = true;
346 m_versionId = std::forward<VersionIdT>(value);
347 }
348 template <typename VersionIdT = Aws::String>
349 GetObjectResult& WithVersionId(VersionIdT&& value) {
350 SetVersionId(std::forward<VersionIdT>(value));
351 return *this;
352 }
354
356
359 inline const Aws::String& GetCacheControl() const { return m_cacheControl; }
360 template <typename CacheControlT = Aws::String>
361 void SetCacheControl(CacheControlT&& value) {
362 m_cacheControlHasBeenSet = true;
363 m_cacheControl = std::forward<CacheControlT>(value);
364 }
365 template <typename CacheControlT = Aws::String>
366 GetObjectResult& WithCacheControl(CacheControlT&& value) {
367 SetCacheControl(std::forward<CacheControlT>(value));
368 return *this;
369 }
371
373
376 inline const Aws::String& GetContentDisposition() const { return m_contentDisposition; }
377 template <typename ContentDispositionT = Aws::String>
378 void SetContentDisposition(ContentDispositionT&& value) {
379 m_contentDispositionHasBeenSet = true;
380 m_contentDisposition = std::forward<ContentDispositionT>(value);
381 }
382 template <typename ContentDispositionT = Aws::String>
383 GetObjectResult& WithContentDisposition(ContentDispositionT&& value) {
384 SetContentDisposition(std::forward<ContentDispositionT>(value));
385 return *this;
386 }
388
390
395 inline const Aws::String& GetContentEncoding() const { return m_contentEncoding; }
396 template <typename ContentEncodingT = Aws::String>
397 void SetContentEncoding(ContentEncodingT&& value) {
398 m_contentEncodingHasBeenSet = true;
399 m_contentEncoding = std::forward<ContentEncodingT>(value);
400 }
401 template <typename ContentEncodingT = Aws::String>
402 GetObjectResult& WithContentEncoding(ContentEncodingT&& value) {
403 SetContentEncoding(std::forward<ContentEncodingT>(value));
404 return *this;
405 }
407
409
412 inline const Aws::String& GetContentLanguage() const { return m_contentLanguage; }
413 template <typename ContentLanguageT = Aws::String>
414 void SetContentLanguage(ContentLanguageT&& value) {
415 m_contentLanguageHasBeenSet = true;
416 m_contentLanguage = std::forward<ContentLanguageT>(value);
417 }
418 template <typename ContentLanguageT = Aws::String>
419 GetObjectResult& WithContentLanguage(ContentLanguageT&& value) {
420 SetContentLanguage(std::forward<ContentLanguageT>(value));
421 return *this;
422 }
424
426
429 inline const Aws::String& GetContentRange() const { return m_contentRange; }
430 template <typename ContentRangeT = Aws::String>
431 void SetContentRange(ContentRangeT&& value) {
432 m_contentRangeHasBeenSet = true;
433 m_contentRange = std::forward<ContentRangeT>(value);
434 }
435 template <typename ContentRangeT = Aws::String>
436 GetObjectResult& WithContentRange(ContentRangeT&& value) {
437 SetContentRange(std::forward<ContentRangeT>(value));
438 return *this;
439 }
441
443
446 inline const Aws::String& GetContentType() const { return m_contentType; }
447 template <typename ContentTypeT = Aws::String>
448 void SetContentType(ContentTypeT&& value) {
449 m_contentTypeHasBeenSet = true;
450 m_contentType = std::forward<ContentTypeT>(value);
451 }
452 template <typename ContentTypeT = Aws::String>
453 GetObjectResult& WithContentType(ContentTypeT&& value) {
454 SetContentType(std::forward<ContentTypeT>(value));
455 return *this;
456 }
458
460
464 inline const Aws::Utils::DateTime& GetExpires() const { return m_expires; }
465 template <typename ExpiresT = Aws::Utils::DateTime>
466 void SetExpires(ExpiresT&& value) {
467 m_expiresHasBeenSet = true;
468 m_expires = std::forward<ExpiresT>(value);
469 }
470 template <typename ExpiresT = Aws::Utils::DateTime>
471 GetObjectResult& WithExpires(ExpiresT&& value) {
472 SetExpires(std::forward<ExpiresT>(value));
473 return *this;
474 }
476
478
484 inline const Aws::String& GetWebsiteRedirectLocation() const { return m_websiteRedirectLocation; }
485 template <typename WebsiteRedirectLocationT = Aws::String>
486 void SetWebsiteRedirectLocation(WebsiteRedirectLocationT&& value) {
487 m_websiteRedirectLocationHasBeenSet = true;
488 m_websiteRedirectLocation = std::forward<WebsiteRedirectLocationT>(value);
489 }
490 template <typename WebsiteRedirectLocationT = Aws::String>
491 GetObjectResult& WithWebsiteRedirectLocation(WebsiteRedirectLocationT&& value) {
492 SetWebsiteRedirectLocation(std::forward<WebsiteRedirectLocationT>(value));
493 return *this;
494 }
496
498
504 inline ServerSideEncryption GetServerSideEncryption() const { return m_serverSideEncryption; }
506 m_serverSideEncryptionHasBeenSet = true;
507 m_serverSideEncryption = value;
508 }
511 return *this;
512 }
514
516
519 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const { return m_metadata; }
520 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
521 void SetMetadata(MetadataT&& value) {
522 m_metadataHasBeenSet = true;
523 m_metadata = std::forward<MetadataT>(value);
524 }
525 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
526 GetObjectResult& WithMetadata(MetadataT&& value) {
527 SetMetadata(std::forward<MetadataT>(value));
528 return *this;
529 }
530 template <typename MetadataKeyT = Aws::String, typename MetadataValueT = Aws::String>
531 GetObjectResult& AddMetadata(MetadataKeyT&& key, MetadataValueT&& value) {
532 m_metadataHasBeenSet = true;
533 m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value));
534 return *this;
535 }
537
539
545 inline const Aws::String& GetSSECustomerAlgorithm() const { return m_sSECustomerAlgorithm; }
546 template <typename SSECustomerAlgorithmT = Aws::String>
547 void SetSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) {
548 m_sSECustomerAlgorithmHasBeenSet = true;
549 m_sSECustomerAlgorithm = std::forward<SSECustomerAlgorithmT>(value);
550 }
551 template <typename SSECustomerAlgorithmT = Aws::String>
552 GetObjectResult& WithSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) {
553 SetSSECustomerAlgorithm(std::forward<SSECustomerAlgorithmT>(value));
554 return *this;
555 }
557
559
565 inline const Aws::String& GetSSECustomerKeyMD5() const { return m_sSECustomerKeyMD5; }
566 template <typename SSECustomerKeyMD5T = Aws::String>
567 void SetSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) {
568 m_sSECustomerKeyMD5HasBeenSet = true;
569 m_sSECustomerKeyMD5 = std::forward<SSECustomerKeyMD5T>(value);
570 }
571 template <typename SSECustomerKeyMD5T = Aws::String>
572 GetObjectResult& WithSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) {
573 SetSSECustomerKeyMD5(std::forward<SSECustomerKeyMD5T>(value));
574 return *this;
575 }
577
579
583 inline const Aws::String& GetSSEKMSKeyId() const { return m_sSEKMSKeyId; }
584 template <typename SSEKMSKeyIdT = Aws::String>
585 void SetSSEKMSKeyId(SSEKMSKeyIdT&& value) {
586 m_sSEKMSKeyIdHasBeenSet = true;
587 m_sSEKMSKeyId = std::forward<SSEKMSKeyIdT>(value);
588 }
589 template <typename SSEKMSKeyIdT = Aws::String>
590 GetObjectResult& WithSSEKMSKeyId(SSEKMSKeyIdT&& value) {
591 SetSSEKMSKeyId(std::forward<SSEKMSKeyIdT>(value));
592 return *this;
593 }
595
597
601 inline bool GetBucketKeyEnabled() const { return m_bucketKeyEnabled; }
602 inline void SetBucketKeyEnabled(bool value) {
603 m_bucketKeyEnabledHasBeenSet = true;
604 m_bucketKeyEnabled = value;
605 }
607 SetBucketKeyEnabled(value);
608 return *this;
609 }
611
613
621 inline StorageClass GetStorageClass() const { return m_storageClass; }
622 inline void SetStorageClass(StorageClass value) {
623 m_storageClassHasBeenSet = true;
624 m_storageClass = value;
625 }
627 SetStorageClass(value);
628 return *this;
629 }
631
633
634 inline RequestCharged GetRequestCharged() const { return m_requestCharged; }
636 m_requestChargedHasBeenSet = true;
637 m_requestCharged = value;
638 }
640 SetRequestCharged(value);
641 return *this;
642 }
644
646
651 inline ReplicationStatus GetReplicationStatus() const { return m_replicationStatus; }
653 m_replicationStatusHasBeenSet = true;
654 m_replicationStatus = value;
655 }
658 return *this;
659 }
661
663
668 inline int GetPartsCount() const { return m_partsCount; }
669 inline void SetPartsCount(int value) {
670 m_partsCountHasBeenSet = true;
671 m_partsCount = value;
672 }
673 inline GetObjectResult& WithPartsCount(int value) {
674 SetPartsCount(value);
675 return *this;
676 }
678
680
687 inline int GetTagCount() const { return m_tagCount; }
688 inline void SetTagCount(int value) {
689 m_tagCountHasBeenSet = true;
690 m_tagCount = value;
691 }
692 inline GetObjectResult& WithTagCount(int value) {
693 SetTagCount(value);
694 return *this;
695 }
697
699
703 inline ObjectLockMode GetObjectLockMode() const { return m_objectLockMode; }
705 m_objectLockModeHasBeenSet = true;
706 m_objectLockMode = value;
707 }
709 SetObjectLockMode(value);
710 return *this;
711 }
713
715
719 inline const Aws::Utils::DateTime& GetObjectLockRetainUntilDate() const { return m_objectLockRetainUntilDate; }
720 template <typename ObjectLockRetainUntilDateT = Aws::Utils::DateTime>
721 void SetObjectLockRetainUntilDate(ObjectLockRetainUntilDateT&& value) {
722 m_objectLockRetainUntilDateHasBeenSet = true;
723 m_objectLockRetainUntilDate = std::forward<ObjectLockRetainUntilDateT>(value);
724 }
725 template <typename ObjectLockRetainUntilDateT = Aws::Utils::DateTime>
726 GetObjectResult& WithObjectLockRetainUntilDate(ObjectLockRetainUntilDateT&& value) {
727 SetObjectLockRetainUntilDate(std::forward<ObjectLockRetainUntilDateT>(value));
728 return *this;
729 }
731
733
738 inline ObjectLockLegalHoldStatus GetObjectLockLegalHoldStatus() const { return m_objectLockLegalHoldStatus; }
740 m_objectLockLegalHoldStatusHasBeenSet = true;
741 m_objectLockLegalHoldStatus = value;
742 }
745 return *this;
746 }
748
750
751 inline const Aws::String& GetId2() const { return m_id2; }
752 template <typename Id2T = Aws::String>
753 void SetId2(Id2T&& value) {
754 m_id2HasBeenSet = true;
755 m_id2 = std::forward<Id2T>(value);
756 }
757 template <typename Id2T = Aws::String>
758 GetObjectResult& WithId2(Id2T&& value) {
759 SetId2(std::forward<Id2T>(value));
760 return *this;
761 }
763
765
766 inline const Aws::String& GetRequestId() const { return m_requestId; }
767 template <typename RequestIdT = Aws::String>
768 void SetRequestId(RequestIdT&& value) {
769 m_requestIdHasBeenSet = true;
770 m_requestId = std::forward<RequestIdT>(value);
771 }
772 template <typename RequestIdT = Aws::String>
773 GetObjectResult& WithRequestId(RequestIdT&& value) {
774 SetRequestId(std::forward<RequestIdT>(value));
775 return *this;
776 }
778
780
783 inline const Aws::String& GetExpiresString() const { return m_expiresString; }
784 template <typename ExpiresStringT = Aws::String>
785 void SetExpiresString(ExpiresStringT&& value) {
786 m_expiresStringHasBeenSet = true;
787 m_expiresString = std::forward<ExpiresStringT>(value);
788 }
789 template <typename ExpiresStringT = Aws::String>
790 GetObjectResult& WithExpiresString(ExpiresStringT&& value) {
791 SetExpiresString(std::forward<ExpiresStringT>(value));
792 return *this;
793 }
795 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
796
797 private:
799
800 bool m_deleteMarker{false};
801
802 Aws::String m_acceptRanges;
803
804 Aws::String m_expiration;
805
806 Aws::String m_restore;
807
808 Aws::Utils::DateTime m_lastModified{};
809
810 long long m_contentLength{0};
811
812 Aws::String m_eTag;
813
814 Aws::String m_checksumCRC32;
815
816 Aws::String m_checksumCRC32C;
817
818 Aws::String m_checksumCRC64NVME;
819
820 Aws::String m_checksumSHA1;
821
822 Aws::String m_checksumSHA256;
823
824 ChecksumType m_checksumType{ChecksumType::NOT_SET};
825
826 int m_missingMeta{0};
827
828 Aws::String m_versionId;
829
830 Aws::String m_cacheControl;
831
832 Aws::String m_contentDisposition;
833
834 Aws::String m_contentEncoding;
835
836 Aws::String m_contentLanguage;
837
838 Aws::String m_contentRange;
839
840 Aws::String m_contentType;
841
842 Aws::Utils::DateTime m_expires{};
843
844 Aws::String m_websiteRedirectLocation;
845
847
849
850 Aws::String m_sSECustomerAlgorithm;
851
852 Aws::String m_sSECustomerKeyMD5;
853
854 Aws::String m_sSEKMSKeyId;
855
856 bool m_bucketKeyEnabled{false};
857
858 StorageClass m_storageClass{StorageClass::NOT_SET};
859
860 RequestCharged m_requestCharged{RequestCharged::NOT_SET};
861
863
864 int m_partsCount{0};
865
866 int m_tagCount{0};
867
868 ObjectLockMode m_objectLockMode{ObjectLockMode::NOT_SET};
869
870 Aws::Utils::DateTime m_objectLockRetainUntilDate{};
871
873
874 Aws::String m_id2;
875
876 Aws::String m_requestId;
877
878 Aws::String m_expiresString;
879 Aws::Http::HttpResponseCode m_HttpResponseCode;
880 bool m_bodyHasBeenSet = false;
881 bool m_deleteMarkerHasBeenSet = false;
882 bool m_acceptRangesHasBeenSet = false;
883 bool m_expirationHasBeenSet = false;
884 bool m_restoreHasBeenSet = false;
885 bool m_lastModifiedHasBeenSet = false;
886 bool m_contentLengthHasBeenSet = false;
887 bool m_eTagHasBeenSet = false;
888 bool m_checksumCRC32HasBeenSet = false;
889 bool m_checksumCRC32CHasBeenSet = false;
890 bool m_checksumCRC64NVMEHasBeenSet = false;
891 bool m_checksumSHA1HasBeenSet = false;
892 bool m_checksumSHA256HasBeenSet = false;
893 bool m_checksumTypeHasBeenSet = false;
894 bool m_missingMetaHasBeenSet = false;
895 bool m_versionIdHasBeenSet = false;
896 bool m_cacheControlHasBeenSet = false;
897 bool m_contentDispositionHasBeenSet = false;
898 bool m_contentEncodingHasBeenSet = false;
899 bool m_contentLanguageHasBeenSet = false;
900 bool m_contentRangeHasBeenSet = false;
901 bool m_contentTypeHasBeenSet = false;
902 bool m_expiresHasBeenSet = false;
903 bool m_websiteRedirectLocationHasBeenSet = false;
904 bool m_serverSideEncryptionHasBeenSet = false;
905 bool m_metadataHasBeenSet = false;
906 bool m_sSECustomerAlgorithmHasBeenSet = false;
907 bool m_sSECustomerKeyMD5HasBeenSet = false;
908 bool m_sSEKMSKeyIdHasBeenSet = false;
909 bool m_bucketKeyEnabledHasBeenSet = false;
910 bool m_storageClassHasBeenSet = false;
911 bool m_requestChargedHasBeenSet = false;
912 bool m_replicationStatusHasBeenSet = false;
913 bool m_partsCountHasBeenSet = false;
914 bool m_tagCountHasBeenSet = false;
915 bool m_objectLockModeHasBeenSet = false;
916 bool m_objectLockRetainUntilDateHasBeenSet = false;
917 bool m_objectLockLegalHoldStatusHasBeenSet = false;
918 bool m_id2HasBeenSet = false;
919 bool m_requestIdHasBeenSet = false;
920 bool m_expiresStringHasBeenSet = false;
921};
922
923} // namespace Model
924} // namespace S3Crt
925} // namespace Aws
GetObjectResult & WithAcceptRanges(AcceptRangesT &&value)
GetObjectResult & WithChecksumCRC32C(ChecksumCRC32CT &&value)
GetObjectResult & WithSSEKMSKeyId(SSEKMSKeyIdT &&value)
void SetContentEncoding(ContentEncodingT &&value)
void SetVersionId(VersionIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetObjectResult & WithWebsiteRedirectLocation(WebsiteRedirectLocationT &&value)
const Aws::String & GetCacheControl() const
void SetSSECustomerKeyMD5(SSECustomerKeyMD5T &&value)
GetObjectResult & WithMissingMeta(int value)
GetObjectResult & WithETag(ETagT &&value)
void ReplaceBody(Aws::IOStream *body)
GetObjectResult & WithContentEncoding(ContentEncodingT &&value)
void SetChecksumCRC32C(ChecksumCRC32CT &&value)
void SetSSECustomerAlgorithm(SSECustomerAlgorithmT &&value)
const Aws::String & GetWebsiteRedirectLocation() const
const Aws::String & GetSSECustomerAlgorithm() const
GetObjectResult & WithExpiresString(ExpiresStringT &&value)
GetObjectResult & WithDeleteMarker(bool value)
void SetWebsiteRedirectLocation(WebsiteRedirectLocationT &&value)
void SetSSEKMSKeyId(SSEKMSKeyIdT &&value)
ObjectLockLegalHoldStatus GetObjectLockLegalHoldStatus() const
void SetObjectLockRetainUntilDate(ObjectLockRetainUntilDateT &&value)
GetObjectResult & WithStorageClass(StorageClass value)
GetObjectResult & operator=(const GetObjectResult &)=delete
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
GetObjectResult & WithVersionId(VersionIdT &&value)
GetObjectResult & WithContentDisposition(ContentDispositionT &&value)
GetObjectResult & WithChecksumType(ChecksumType value)
ObjectLockMode GetObjectLockMode() const
GetObjectResult & WithObjectLockRetainUntilDate(ObjectLockRetainUntilDateT &&value)
void SetContentRange(ContentRangeT &&value)
const Aws::String & GetContentLanguage() const
ServerSideEncryption GetServerSideEncryption() const
void SetStorageClass(StorageClass value)
const Aws::String & GetETag() const
AWS_S3CRT_API GetObjectResult()=default
const Aws::String & GetContentEncoding() const
AWS_S3CRT_API GetObjectResult & operator=(GetObjectResult &&)=default
const Aws::String & GetAcceptRanges() const
const Aws::String & GetRestore() const
GetObjectResult & WithContentType(ContentTypeT &&value)
GetObjectResult & WithObjectLockLegalHoldStatus(ObjectLockLegalHoldStatus value)
const Aws::String & GetContentDisposition() const
GetObjectResult & WithChecksumCRC32(ChecksumCRC32T &&value)
AWS_S3CRT_API GetObjectResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
GetObjectResult & WithChecksumSHA1(ChecksumSHA1T &&value)
GetObjectResult & WithServerSideEncryption(ServerSideEncryption value)
const Aws::String & GetContentRange() const
GetObjectResult & WithObjectLockMode(ObjectLockMode value)
GetObjectResult & WithLastModified(LastModifiedT &&value)
void SetObjectLockLegalHoldStatus(ObjectLockLegalHoldStatus value)
GetObjectResult & WithMetadata(MetadataT &&value)
void SetChecksumSHA1(ChecksumSHA1T &&value)
void SetChecksumSHA256(ChecksumSHA256T &&value)
const Aws::String & GetExpiresString() const
const Aws::String & GetChecksumCRC64NVME() const
void SetCacheControl(CacheControlT &&value)
void SetChecksumCRC64NVME(ChecksumCRC64NVMET &&value)
ReplicationStatus GetReplicationStatus() const
const Aws::String & GetChecksumSHA1() const
GetObjectResult & WithExpiration(ExpirationT &&value)
void SetExpiresString(ExpiresStringT &&value)
const Aws::String & GetContentType() const
GetObjectResult & WithContentLanguage(ContentLanguageT &&value)
const Aws::String & GetChecksumCRC32C() const
GetObjectResult & WithChecksumSHA256(ChecksumSHA256T &&value)
void SetLastModified(LastModifiedT &&value)
GetObjectResult & WithExpires(ExpiresT &&value)
GetObjectResult & WithSSECustomerAlgorithm(SSECustomerAlgorithmT &&value)
const Aws::String & GetRequestId() const
void SetContentLength(long long value)
const Aws::Utils::DateTime & GetExpires() const
const Aws::String & GetSSEKMSKeyId() const
GetObjectResult & WithSSECustomerKeyMD5(SSECustomerKeyMD5T &&value)
const Aws::String & GetId2() const
void SetObjectLockMode(ObjectLockMode value)
void SetRequestId(RequestIdT &&value)
GetObjectResult & WithContentLength(long long value)
GetObjectResult & WithPartsCount(int value)
void SetReplicationStatus(ReplicationStatus value)
void SetChecksumCRC32(ChecksumCRC32T &&value)
void SetChecksumType(ChecksumType value)
void SetContentType(ContentTypeT &&value)
void SetAcceptRanges(AcceptRangesT &&value)
GetObjectResult(const GetObjectResult &)=delete
void SetExpiration(ExpirationT &&value)
GetObjectResult & WithReplicationStatus(ReplicationStatus value)
void SetServerSideEncryption(ServerSideEncryption value)
const Aws::Utils::DateTime & GetLastModified() const
GetObjectResult & WithRequestCharged(RequestCharged value)
GetObjectResult & WithRequestId(RequestIdT &&value)
GetObjectResult & WithContentRange(ContentRangeT &&value)
GetObjectResult & AddMetadata(MetadataKeyT &&key, MetadataValueT &&value)
GetObjectResult & WithTagCount(int value)
const Aws::Utils::DateTime & GetObjectLockRetainUntilDate() const
void SetContentLanguage(ContentLanguageT &&value)
GetObjectResult & WithBucketKeyEnabled(bool value)
const Aws::String & GetVersionId() const
void SetRequestCharged(RequestCharged value)
const Aws::String & GetChecksumCRC32() const
const Aws::String & GetSSECustomerKeyMD5() const
void SetMetadata(MetadataT &&value)
GetObjectResult & WithRestore(RestoreT &&value)
AWS_S3CRT_API GetObjectResult(GetObjectResult &&)=default
void SetContentDisposition(ContentDispositionT &&value)
RequestCharged GetRequestCharged() const
GetObjectResult & WithId2(Id2T &&value)
Aws::IOStream & GetBody() const
AWS_S3CRT_API GetObjectResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
const Aws::String & GetChecksumSHA256() const
GetObjectResult & WithCacheControl(CacheControlT &&value)
GetObjectResult & WithChecksumCRC64NVME(ChecksumCRC64NVMET &&value)
const Aws::String & GetExpiration() const
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