AWS SDK for C++

AWS SDK for C++ Version 1.11.812

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/ObjectLockLegalHoldStatus.h>
16#include <aws/s3/model/ObjectLockMode.h>
17#include <aws/s3/model/ReplicationStatus.h>
18#include <aws/s3/model/RequestCharged.h>
19#include <aws/s3/model/ServerSideEncryption.h>
20#include <aws/s3/model/StorageClass.h>
21
22#include <utility>
23
24namespace Aws {
25template <typename RESULT_TYPE>
26class AmazonWebServiceResult;
27
28namespace S3 {
29namespace Model {
31 public:
32 AWS_S3_API GetObjectResult() = default;
33 AWS_S3_API GetObjectResult(GetObjectResult&&) = default;
34 AWS_S3_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
303 inline const Aws::String& GetChecksumSHA512() const { return m_checksumSHA512; }
304 template <typename ChecksumSHA512T = Aws::String>
305 void SetChecksumSHA512(ChecksumSHA512T&& value) {
306 m_checksumSHA512HasBeenSet = true;
307 m_checksumSHA512 = std::forward<ChecksumSHA512T>(value);
308 }
309 template <typename ChecksumSHA512T = Aws::String>
310 GetObjectResult& WithChecksumSHA512(ChecksumSHA512T&& value) {
311 SetChecksumSHA512(std::forward<ChecksumSHA512T>(value));
312 return *this;
313 }
315
317
323 inline const Aws::String& GetChecksumMD5() const { return m_checksumMD5; }
324 template <typename ChecksumMD5T = Aws::String>
325 void SetChecksumMD5(ChecksumMD5T&& value) {
326 m_checksumMD5HasBeenSet = true;
327 m_checksumMD5 = std::forward<ChecksumMD5T>(value);
328 }
329 template <typename ChecksumMD5T = Aws::String>
330 GetObjectResult& WithChecksumMD5(ChecksumMD5T&& value) {
331 SetChecksumMD5(std::forward<ChecksumMD5T>(value));
332 return *this;
333 }
335
337
343 inline const Aws::String& GetChecksumXXHASH64() const { return m_checksumXXHASH64; }
344 template <typename ChecksumXXHASH64T = Aws::String>
345 void SetChecksumXXHASH64(ChecksumXXHASH64T&& value) {
346 m_checksumXXHASH64HasBeenSet = true;
347 m_checksumXXHASH64 = std::forward<ChecksumXXHASH64T>(value);
348 }
349 template <typename ChecksumXXHASH64T = Aws::String>
350 GetObjectResult& WithChecksumXXHASH64(ChecksumXXHASH64T&& value) {
351 SetChecksumXXHASH64(std::forward<ChecksumXXHASH64T>(value));
352 return *this;
353 }
355
357
363 inline const Aws::String& GetChecksumXXHASH3() const { return m_checksumXXHASH3; }
364 template <typename ChecksumXXHASH3T = Aws::String>
365 void SetChecksumXXHASH3(ChecksumXXHASH3T&& value) {
366 m_checksumXXHASH3HasBeenSet = true;
367 m_checksumXXHASH3 = std::forward<ChecksumXXHASH3T>(value);
368 }
369 template <typename ChecksumXXHASH3T = Aws::String>
370 GetObjectResult& WithChecksumXXHASH3(ChecksumXXHASH3T&& value) {
371 SetChecksumXXHASH3(std::forward<ChecksumXXHASH3T>(value));
372 return *this;
373 }
375
377
383 inline const Aws::String& GetChecksumXXHASH128() const { return m_checksumXXHASH128; }
384 template <typename ChecksumXXHASH128T = Aws::String>
385 void SetChecksumXXHASH128(ChecksumXXHASH128T&& value) {
386 m_checksumXXHASH128HasBeenSet = true;
387 m_checksumXXHASH128 = std::forward<ChecksumXXHASH128T>(value);
388 }
389 template <typename ChecksumXXHASH128T = Aws::String>
390 GetObjectResult& WithChecksumXXHASH128(ChecksumXXHASH128T&& value) {
391 SetChecksumXXHASH128(std::forward<ChecksumXXHASH128T>(value));
392 return *this;
393 }
395
397
406 inline ChecksumType GetChecksumType() const { return m_checksumType; }
407 inline void SetChecksumType(ChecksumType value) {
408 m_checksumTypeHasBeenSet = true;
409 m_checksumType = value;
410 }
412 SetChecksumType(value);
413 return *this;
414 }
416
418
426 inline int GetMissingMeta() const { return m_missingMeta; }
427 inline void SetMissingMeta(int value) {
428 m_missingMetaHasBeenSet = true;
429 m_missingMeta = value;
430 }
431 inline GetObjectResult& WithMissingMeta(int value) {
432 SetMissingMeta(value);
433 return *this;
434 }
436
438
442 inline const Aws::String& GetVersionId() const { return m_versionId; }
443 template <typename VersionIdT = Aws::String>
444 void SetVersionId(VersionIdT&& value) {
445 m_versionIdHasBeenSet = true;
446 m_versionId = std::forward<VersionIdT>(value);
447 }
448 template <typename VersionIdT = Aws::String>
449 GetObjectResult& WithVersionId(VersionIdT&& value) {
450 SetVersionId(std::forward<VersionIdT>(value));
451 return *this;
452 }
454
456
459 inline const Aws::String& GetCacheControl() const { return m_cacheControl; }
460 template <typename CacheControlT = Aws::String>
461 void SetCacheControl(CacheControlT&& value) {
462 m_cacheControlHasBeenSet = true;
463 m_cacheControl = std::forward<CacheControlT>(value);
464 }
465 template <typename CacheControlT = Aws::String>
466 GetObjectResult& WithCacheControl(CacheControlT&& value) {
467 SetCacheControl(std::forward<CacheControlT>(value));
468 return *this;
469 }
471
473
476 inline const Aws::String& GetContentDisposition() const { return m_contentDisposition; }
477 template <typename ContentDispositionT = Aws::String>
478 void SetContentDisposition(ContentDispositionT&& value) {
479 m_contentDispositionHasBeenSet = true;
480 m_contentDisposition = std::forward<ContentDispositionT>(value);
481 }
482 template <typename ContentDispositionT = Aws::String>
483 GetObjectResult& WithContentDisposition(ContentDispositionT&& value) {
484 SetContentDisposition(std::forward<ContentDispositionT>(value));
485 return *this;
486 }
488
490
495 inline const Aws::String& GetContentEncoding() const { return m_contentEncoding; }
496 template <typename ContentEncodingT = Aws::String>
497 void SetContentEncoding(ContentEncodingT&& value) {
498 m_contentEncodingHasBeenSet = true;
499 m_contentEncoding = std::forward<ContentEncodingT>(value);
500 }
501 template <typename ContentEncodingT = Aws::String>
502 GetObjectResult& WithContentEncoding(ContentEncodingT&& value) {
503 SetContentEncoding(std::forward<ContentEncodingT>(value));
504 return *this;
505 }
507
509
512 inline const Aws::String& GetContentLanguage() const { return m_contentLanguage; }
513 template <typename ContentLanguageT = Aws::String>
514 void SetContentLanguage(ContentLanguageT&& value) {
515 m_contentLanguageHasBeenSet = true;
516 m_contentLanguage = std::forward<ContentLanguageT>(value);
517 }
518 template <typename ContentLanguageT = Aws::String>
519 GetObjectResult& WithContentLanguage(ContentLanguageT&& value) {
520 SetContentLanguage(std::forward<ContentLanguageT>(value));
521 return *this;
522 }
524
526
529 inline const Aws::String& GetContentRange() const { return m_contentRange; }
530 template <typename ContentRangeT = Aws::String>
531 void SetContentRange(ContentRangeT&& value) {
532 m_contentRangeHasBeenSet = true;
533 m_contentRange = std::forward<ContentRangeT>(value);
534 }
535 template <typename ContentRangeT = Aws::String>
536 GetObjectResult& WithContentRange(ContentRangeT&& value) {
537 SetContentRange(std::forward<ContentRangeT>(value));
538 return *this;
539 }
541
543
546 inline const Aws::String& GetContentType() const { return m_contentType; }
547 template <typename ContentTypeT = Aws::String>
548 void SetContentType(ContentTypeT&& value) {
549 m_contentTypeHasBeenSet = true;
550 m_contentType = std::forward<ContentTypeT>(value);
551 }
552 template <typename ContentTypeT = Aws::String>
553 GetObjectResult& WithContentType(ContentTypeT&& value) {
554 SetContentType(std::forward<ContentTypeT>(value));
555 return *this;
556 }
558
560
564 inline const Aws::Utils::DateTime& GetExpires() const { return m_expires; }
565 template <typename ExpiresT = Aws::Utils::DateTime>
566 void SetExpires(ExpiresT&& value) {
567 m_expiresHasBeenSet = true;
568 m_expires = std::forward<ExpiresT>(value);
569 }
570 template <typename ExpiresT = Aws::Utils::DateTime>
571 GetObjectResult& WithExpires(ExpiresT&& value) {
572 SetExpires(std::forward<ExpiresT>(value));
573 return *this;
574 }
576
578
584 inline const Aws::String& GetWebsiteRedirectLocation() const { return m_websiteRedirectLocation; }
585 template <typename WebsiteRedirectLocationT = Aws::String>
586 void SetWebsiteRedirectLocation(WebsiteRedirectLocationT&& value) {
587 m_websiteRedirectLocationHasBeenSet = true;
588 m_websiteRedirectLocation = std::forward<WebsiteRedirectLocationT>(value);
589 }
590 template <typename WebsiteRedirectLocationT = Aws::String>
591 GetObjectResult& WithWebsiteRedirectLocation(WebsiteRedirectLocationT&& value) {
592 SetWebsiteRedirectLocation(std::forward<WebsiteRedirectLocationT>(value));
593 return *this;
594 }
596
598
604 inline ServerSideEncryption GetServerSideEncryption() const { return m_serverSideEncryption; }
606 m_serverSideEncryptionHasBeenSet = true;
607 m_serverSideEncryption = value;
608 }
611 return *this;
612 }
614
616
619 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const { return m_metadata; }
620 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
621 void SetMetadata(MetadataT&& value) {
622 m_metadataHasBeenSet = true;
623 m_metadata = std::forward<MetadataT>(value);
624 }
625 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
626 GetObjectResult& WithMetadata(MetadataT&& value) {
627 SetMetadata(std::forward<MetadataT>(value));
628 return *this;
629 }
630 template <typename MetadataKeyT = Aws::String, typename MetadataValueT = Aws::String>
631 GetObjectResult& AddMetadata(MetadataKeyT&& key, MetadataValueT&& value) {
632 m_metadataHasBeenSet = true;
633 m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value));
634 return *this;
635 }
637
639
645 inline const Aws::String& GetSSECustomerAlgorithm() const { return m_sSECustomerAlgorithm; }
646 template <typename SSECustomerAlgorithmT = Aws::String>
647 void SetSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) {
648 m_sSECustomerAlgorithmHasBeenSet = true;
649 m_sSECustomerAlgorithm = std::forward<SSECustomerAlgorithmT>(value);
650 }
651 template <typename SSECustomerAlgorithmT = Aws::String>
652 GetObjectResult& WithSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) {
653 SetSSECustomerAlgorithm(std::forward<SSECustomerAlgorithmT>(value));
654 return *this;
655 }
657
659
665 inline const Aws::String& GetSSECustomerKeyMD5() const { return m_sSECustomerKeyMD5; }
666 template <typename SSECustomerKeyMD5T = Aws::String>
667 void SetSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) {
668 m_sSECustomerKeyMD5HasBeenSet = true;
669 m_sSECustomerKeyMD5 = std::forward<SSECustomerKeyMD5T>(value);
670 }
671 template <typename SSECustomerKeyMD5T = Aws::String>
672 GetObjectResult& WithSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) {
673 SetSSECustomerKeyMD5(std::forward<SSECustomerKeyMD5T>(value));
674 return *this;
675 }
677
679
683 inline const Aws::String& GetSSEKMSKeyId() const { return m_sSEKMSKeyId; }
684 template <typename SSEKMSKeyIdT = Aws::String>
685 void SetSSEKMSKeyId(SSEKMSKeyIdT&& value) {
686 m_sSEKMSKeyIdHasBeenSet = true;
687 m_sSEKMSKeyId = std::forward<SSEKMSKeyIdT>(value);
688 }
689 template <typename SSEKMSKeyIdT = Aws::String>
690 GetObjectResult& WithSSEKMSKeyId(SSEKMSKeyIdT&& value) {
691 SetSSEKMSKeyId(std::forward<SSEKMSKeyIdT>(value));
692 return *this;
693 }
695
697
701 inline bool GetBucketKeyEnabled() const { return m_bucketKeyEnabled; }
702 inline void SetBucketKeyEnabled(bool value) {
703 m_bucketKeyEnabledHasBeenSet = true;
704 m_bucketKeyEnabled = value;
705 }
707 SetBucketKeyEnabled(value);
708 return *this;
709 }
711
713
721 inline StorageClass GetStorageClass() const { return m_storageClass; }
722 inline void SetStorageClass(StorageClass value) {
723 m_storageClassHasBeenSet = true;
724 m_storageClass = value;
725 }
727 SetStorageClass(value);
728 return *this;
729 }
731
733
734 inline RequestCharged GetRequestCharged() const { return m_requestCharged; }
736 m_requestChargedHasBeenSet = true;
737 m_requestCharged = value;
738 }
740 SetRequestCharged(value);
741 return *this;
742 }
744
746
751 inline ReplicationStatus GetReplicationStatus() const { return m_replicationStatus; }
753 m_replicationStatusHasBeenSet = true;
754 m_replicationStatus = value;
755 }
758 return *this;
759 }
761
763
768 inline int GetPartsCount() const { return m_partsCount; }
769 inline void SetPartsCount(int value) {
770 m_partsCountHasBeenSet = true;
771 m_partsCount = value;
772 }
773 inline GetObjectResult& WithPartsCount(int value) {
774 SetPartsCount(value);
775 return *this;
776 }
778
780
787 inline int GetTagCount() const { return m_tagCount; }
788 inline void SetTagCount(int value) {
789 m_tagCountHasBeenSet = true;
790 m_tagCount = value;
791 }
792 inline GetObjectResult& WithTagCount(int value) {
793 SetTagCount(value);
794 return *this;
795 }
797
799
803 inline ObjectLockMode GetObjectLockMode() const { return m_objectLockMode; }
805 m_objectLockModeHasBeenSet = true;
806 m_objectLockMode = value;
807 }
809 SetObjectLockMode(value);
810 return *this;
811 }
813
815
819 inline const Aws::Utils::DateTime& GetObjectLockRetainUntilDate() const { return m_objectLockRetainUntilDate; }
820 template <typename ObjectLockRetainUntilDateT = Aws::Utils::DateTime>
821 void SetObjectLockRetainUntilDate(ObjectLockRetainUntilDateT&& value) {
822 m_objectLockRetainUntilDateHasBeenSet = true;
823 m_objectLockRetainUntilDate = std::forward<ObjectLockRetainUntilDateT>(value);
824 }
825 template <typename ObjectLockRetainUntilDateT = Aws::Utils::DateTime>
826 GetObjectResult& WithObjectLockRetainUntilDate(ObjectLockRetainUntilDateT&& value) {
827 SetObjectLockRetainUntilDate(std::forward<ObjectLockRetainUntilDateT>(value));
828 return *this;
829 }
831
833
838 inline ObjectLockLegalHoldStatus GetObjectLockLegalHoldStatus() const { return m_objectLockLegalHoldStatus; }
840 m_objectLockLegalHoldStatusHasBeenSet = true;
841 m_objectLockLegalHoldStatus = value;
842 }
845 return *this;
846 }
848
850
851 inline const Aws::String& GetId2() const { return m_id2; }
852 template <typename Id2T = Aws::String>
853 void SetId2(Id2T&& value) {
854 m_id2HasBeenSet = true;
855 m_id2 = std::forward<Id2T>(value);
856 }
857 template <typename Id2T = Aws::String>
858 GetObjectResult& WithId2(Id2T&& value) {
859 SetId2(std::forward<Id2T>(value));
860 return *this;
861 }
863
865
866 inline const Aws::String& GetRequestId() const { return m_requestId; }
867 template <typename RequestIdT = Aws::String>
868 void SetRequestId(RequestIdT&& value) {
869 m_requestIdHasBeenSet = true;
870 m_requestId = std::forward<RequestIdT>(value);
871 }
872 template <typename RequestIdT = Aws::String>
873 GetObjectResult& WithRequestId(RequestIdT&& value) {
874 SetRequestId(std::forward<RequestIdT>(value));
875 return *this;
876 }
878
880
883 inline const Aws::String& GetExpiresString() const { return m_expiresString; }
884 template <typename ExpiresStringT = Aws::String>
885 void SetExpiresString(ExpiresStringT&& value) {
886 m_expiresStringHasBeenSet = true;
887 m_expiresString = std::forward<ExpiresStringT>(value);
888 }
889 template <typename ExpiresStringT = Aws::String>
890 GetObjectResult& WithExpiresString(ExpiresStringT&& value) {
891 SetExpiresString(std::forward<ExpiresStringT>(value));
892 return *this;
893 }
895 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
896
897 private:
899
900 bool m_deleteMarker{false};
901
902 Aws::String m_acceptRanges;
903
904 Aws::String m_expiration;
905
906 Aws::String m_restore;
907
908 Aws::Utils::DateTime m_lastModified{};
909
910 long long m_contentLength{0};
911
912 Aws::String m_eTag;
913
914 Aws::String m_checksumCRC32;
915
916 Aws::String m_checksumCRC32C;
917
918 Aws::String m_checksumCRC64NVME;
919
920 Aws::String m_checksumSHA1;
921
922 Aws::String m_checksumSHA256;
923
924 Aws::String m_checksumSHA512;
925
926 Aws::String m_checksumMD5;
927
928 Aws::String m_checksumXXHASH64;
929
930 Aws::String m_checksumXXHASH3;
931
932 Aws::String m_checksumXXHASH128;
933
934 ChecksumType m_checksumType{ChecksumType::NOT_SET};
935
936 int m_missingMeta{0};
937
938 Aws::String m_versionId;
939
940 Aws::String m_cacheControl;
941
942 Aws::String m_contentDisposition;
943
944 Aws::String m_contentEncoding;
945
946 Aws::String m_contentLanguage;
947
948 Aws::String m_contentRange;
949
950 Aws::String m_contentType;
951
952 Aws::Utils::DateTime m_expires{};
953
954 Aws::String m_websiteRedirectLocation;
955
957
959
960 Aws::String m_sSECustomerAlgorithm;
961
962 Aws::String m_sSECustomerKeyMD5;
963
964 Aws::String m_sSEKMSKeyId;
965
966 bool m_bucketKeyEnabled{false};
967
968 StorageClass m_storageClass{StorageClass::NOT_SET};
969
970 RequestCharged m_requestCharged{RequestCharged::NOT_SET};
971
973
974 int m_partsCount{0};
975
976 int m_tagCount{0};
977
978 ObjectLockMode m_objectLockMode{ObjectLockMode::NOT_SET};
979
980 Aws::Utils::DateTime m_objectLockRetainUntilDate{};
981
983
984 Aws::String m_id2;
985
986 Aws::String m_requestId;
987
988 Aws::String m_expiresString;
989 Aws::Http::HttpResponseCode m_HttpResponseCode;
990 bool m_bodyHasBeenSet = false;
991 bool m_deleteMarkerHasBeenSet = false;
992 bool m_acceptRangesHasBeenSet = false;
993 bool m_expirationHasBeenSet = false;
994 bool m_restoreHasBeenSet = false;
995 bool m_lastModifiedHasBeenSet = false;
996 bool m_contentLengthHasBeenSet = false;
997 bool m_eTagHasBeenSet = false;
998 bool m_checksumCRC32HasBeenSet = false;
999 bool m_checksumCRC32CHasBeenSet = false;
1000 bool m_checksumCRC64NVMEHasBeenSet = false;
1001 bool m_checksumSHA1HasBeenSet = false;
1002 bool m_checksumSHA256HasBeenSet = false;
1003 bool m_checksumSHA512HasBeenSet = false;
1004 bool m_checksumMD5HasBeenSet = false;
1005 bool m_checksumXXHASH64HasBeenSet = false;
1006 bool m_checksumXXHASH3HasBeenSet = false;
1007 bool m_checksumXXHASH128HasBeenSet = false;
1008 bool m_checksumTypeHasBeenSet = false;
1009 bool m_missingMetaHasBeenSet = false;
1010 bool m_versionIdHasBeenSet = false;
1011 bool m_cacheControlHasBeenSet = false;
1012 bool m_contentDispositionHasBeenSet = false;
1013 bool m_contentEncodingHasBeenSet = false;
1014 bool m_contentLanguageHasBeenSet = false;
1015 bool m_contentRangeHasBeenSet = false;
1016 bool m_contentTypeHasBeenSet = false;
1017 bool m_expiresHasBeenSet = false;
1018 bool m_websiteRedirectLocationHasBeenSet = false;
1019 bool m_serverSideEncryptionHasBeenSet = false;
1020 bool m_metadataHasBeenSet = false;
1021 bool m_sSECustomerAlgorithmHasBeenSet = false;
1022 bool m_sSECustomerKeyMD5HasBeenSet = false;
1023 bool m_sSEKMSKeyIdHasBeenSet = false;
1024 bool m_bucketKeyEnabledHasBeenSet = false;
1025 bool m_storageClassHasBeenSet = false;
1026 bool m_requestChargedHasBeenSet = false;
1027 bool m_replicationStatusHasBeenSet = false;
1028 bool m_partsCountHasBeenSet = false;
1029 bool m_tagCountHasBeenSet = false;
1030 bool m_objectLockModeHasBeenSet = false;
1031 bool m_objectLockRetainUntilDateHasBeenSet = false;
1032 bool m_objectLockLegalHoldStatusHasBeenSet = false;
1033 bool m_id2HasBeenSet = false;
1034 bool m_requestIdHasBeenSet = false;
1035 bool m_expiresStringHasBeenSet = false;
1036};
1037
1038} // namespace Model
1039} // namespace S3
1040} // 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 & 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 & 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)
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)
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)
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 & 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