AWS SDK for C++

AWS SDK for C++ Version 1.11.812

Loading...
Searching...
No Matches
HeadObjectResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.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/s3/S3_EXPORTS.h>
12#include <aws/s3/model/ArchiveStatus.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 Utils {
28namespace Xml {
29class XmlDocument;
30} // namespace Xml
31} // namespace Utils
32namespace S3 {
33namespace Model {
35 public:
36 AWS_S3_API HeadObjectResult() = default;
39
41
46 inline bool GetDeleteMarker() const { return m_deleteMarker; }
47 inline void SetDeleteMarker(bool value) {
48 m_deleteMarkerHasBeenSet = true;
49 m_deleteMarker = value;
50 }
51 inline HeadObjectResult& WithDeleteMarker(bool value) {
52 SetDeleteMarker(value);
53 return *this;
54 }
56
58
61 inline const Aws::String& GetAcceptRanges() const { return m_acceptRanges; }
62 template <typename AcceptRangesT = Aws::String>
63 void SetAcceptRanges(AcceptRangesT&& value) {
64 m_acceptRangesHasBeenSet = true;
65 m_acceptRanges = std::forward<AcceptRangesT>(value);
66 }
67 template <typename AcceptRangesT = Aws::String>
68 HeadObjectResult& WithAcceptRanges(AcceptRangesT&& value) {
69 SetAcceptRanges(std::forward<AcceptRangesT>(value));
70 return *this;
71 }
73
75
86 inline const Aws::String& GetExpiration() const { return m_expiration; }
87 template <typename ExpirationT = Aws::String>
88 void SetExpiration(ExpirationT&& value) {
89 m_expirationHasBeenSet = true;
90 m_expiration = std::forward<ExpirationT>(value);
91 }
92 template <typename ExpirationT = Aws::String>
93 HeadObjectResult& WithExpiration(ExpirationT&& value) {
94 SetExpiration(std::forward<ExpirationT>(value));
95 return *this;
96 }
98
100
119 inline const Aws::String& GetRestore() const { return m_restore; }
120 template <typename RestoreT = Aws::String>
121 void SetRestore(RestoreT&& value) {
122 m_restoreHasBeenSet = true;
123 m_restore = std::forward<RestoreT>(value);
124 }
125 template <typename RestoreT = Aws::String>
126 HeadObjectResult& WithRestore(RestoreT&& value) {
127 SetRestore(std::forward<RestoreT>(value));
128 return *this;
129 }
131
133
137 inline ArchiveStatus GetArchiveStatus() const { return m_archiveStatus; }
138 inline void SetArchiveStatus(ArchiveStatus value) {
139 m_archiveStatusHasBeenSet = true;
140 m_archiveStatus = value;
141 }
143 SetArchiveStatus(value);
144 return *this;
145 }
147
149
152 inline const Aws::Utils::DateTime& GetLastModified() const { return m_lastModified; }
153 template <typename LastModifiedT = Aws::Utils::DateTime>
154 void SetLastModified(LastModifiedT&& value) {
155 m_lastModifiedHasBeenSet = true;
156 m_lastModified = std::forward<LastModifiedT>(value);
157 }
158 template <typename LastModifiedT = Aws::Utils::DateTime>
159 HeadObjectResult& WithLastModified(LastModifiedT&& value) {
160 SetLastModified(std::forward<LastModifiedT>(value));
161 return *this;
162 }
164
166
169 inline long long GetContentLength() const { return m_contentLength; }
170 inline void SetContentLength(long long value) {
171 m_contentLengthHasBeenSet = true;
172 m_contentLength = value;
173 }
174 inline HeadObjectResult& WithContentLength(long long value) {
175 SetContentLength(value);
176 return *this;
177 }
179
181
191 inline const Aws::String& GetChecksumCRC32() const { return m_checksumCRC32; }
192 template <typename ChecksumCRC32T = Aws::String>
193 void SetChecksumCRC32(ChecksumCRC32T&& value) {
194 m_checksumCRC32HasBeenSet = true;
195 m_checksumCRC32 = std::forward<ChecksumCRC32T>(value);
196 }
197 template <typename ChecksumCRC32T = Aws::String>
198 HeadObjectResult& WithChecksumCRC32(ChecksumCRC32T&& value) {
199 SetChecksumCRC32(std::forward<ChecksumCRC32T>(value));
200 return *this;
201 }
203
205
215 inline const Aws::String& GetChecksumCRC32C() const { return m_checksumCRC32C; }
216 template <typename ChecksumCRC32CT = Aws::String>
217 void SetChecksumCRC32C(ChecksumCRC32CT&& value) {
218 m_checksumCRC32CHasBeenSet = true;
219 m_checksumCRC32C = std::forward<ChecksumCRC32CT>(value);
220 }
221 template <typename ChecksumCRC32CT = Aws::String>
222 HeadObjectResult& WithChecksumCRC32C(ChecksumCRC32CT&& value) {
223 SetChecksumCRC32C(std::forward<ChecksumCRC32CT>(value));
224 return *this;
225 }
227
229
235 inline const Aws::String& GetChecksumCRC64NVME() const { return m_checksumCRC64NVME; }
236 template <typename ChecksumCRC64NVMET = Aws::String>
237 void SetChecksumCRC64NVME(ChecksumCRC64NVMET&& value) {
238 m_checksumCRC64NVMEHasBeenSet = true;
239 m_checksumCRC64NVME = std::forward<ChecksumCRC64NVMET>(value);
240 }
241 template <typename ChecksumCRC64NVMET = Aws::String>
242 HeadObjectResult& WithChecksumCRC64NVME(ChecksumCRC64NVMET&& value) {
243 SetChecksumCRC64NVME(std::forward<ChecksumCRC64NVMET>(value));
244 return *this;
245 }
247
249
259 inline const Aws::String& GetChecksumSHA1() const { return m_checksumSHA1; }
260 template <typename ChecksumSHA1T = Aws::String>
261 void SetChecksumSHA1(ChecksumSHA1T&& value) {
262 m_checksumSHA1HasBeenSet = true;
263 m_checksumSHA1 = std::forward<ChecksumSHA1T>(value);
264 }
265 template <typename ChecksumSHA1T = Aws::String>
266 HeadObjectResult& WithChecksumSHA1(ChecksumSHA1T&& value) {
267 SetChecksumSHA1(std::forward<ChecksumSHA1T>(value));
268 return *this;
269 }
271
273
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 HeadObjectResult& 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 HeadObjectResult& 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 HeadObjectResult& 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 HeadObjectResult& 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 HeadObjectResult& 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 HeadObjectResult& 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
422 inline const Aws::String& GetETag() const { return m_eTag; }
423 template <typename ETagT = Aws::String>
424 void SetETag(ETagT&& value) {
425 m_eTagHasBeenSet = true;
426 m_eTag = std::forward<ETagT>(value);
427 }
428 template <typename ETagT = Aws::String>
429 HeadObjectResult& WithETag(ETagT&& value) {
430 SetETag(std::forward<ETagT>(value));
431 return *this;
432 }
434
436
444 inline int GetMissingMeta() const { return m_missingMeta; }
445 inline void SetMissingMeta(int value) {
446 m_missingMetaHasBeenSet = true;
447 m_missingMeta = value;
448 }
450 SetMissingMeta(value);
451 return *this;
452 }
454
456
460 inline const Aws::String& GetVersionId() const { return m_versionId; }
461 template <typename VersionIdT = Aws::String>
462 void SetVersionId(VersionIdT&& value) {
463 m_versionIdHasBeenSet = true;
464 m_versionId = std::forward<VersionIdT>(value);
465 }
466 template <typename VersionIdT = Aws::String>
467 HeadObjectResult& WithVersionId(VersionIdT&& value) {
468 SetVersionId(std::forward<VersionIdT>(value));
469 return *this;
470 }
472
474
477 inline const Aws::String& GetCacheControl() const { return m_cacheControl; }
478 template <typename CacheControlT = Aws::String>
479 void SetCacheControl(CacheControlT&& value) {
480 m_cacheControlHasBeenSet = true;
481 m_cacheControl = std::forward<CacheControlT>(value);
482 }
483 template <typename CacheControlT = Aws::String>
484 HeadObjectResult& WithCacheControl(CacheControlT&& value) {
485 SetCacheControl(std::forward<CacheControlT>(value));
486 return *this;
487 }
489
491
494 inline const Aws::String& GetContentDisposition() const { return m_contentDisposition; }
495 template <typename ContentDispositionT = Aws::String>
496 void SetContentDisposition(ContentDispositionT&& value) {
497 m_contentDispositionHasBeenSet = true;
498 m_contentDisposition = std::forward<ContentDispositionT>(value);
499 }
500 template <typename ContentDispositionT = Aws::String>
501 HeadObjectResult& WithContentDisposition(ContentDispositionT&& value) {
502 SetContentDisposition(std::forward<ContentDispositionT>(value));
503 return *this;
504 }
506
508
513 inline const Aws::String& GetContentEncoding() const { return m_contentEncoding; }
514 template <typename ContentEncodingT = Aws::String>
515 void SetContentEncoding(ContentEncodingT&& value) {
516 m_contentEncodingHasBeenSet = true;
517 m_contentEncoding = std::forward<ContentEncodingT>(value);
518 }
519 template <typename ContentEncodingT = Aws::String>
520 HeadObjectResult& WithContentEncoding(ContentEncodingT&& value) {
521 SetContentEncoding(std::forward<ContentEncodingT>(value));
522 return *this;
523 }
525
527
530 inline const Aws::String& GetContentLanguage() const { return m_contentLanguage; }
531 template <typename ContentLanguageT = Aws::String>
532 void SetContentLanguage(ContentLanguageT&& value) {
533 m_contentLanguageHasBeenSet = true;
534 m_contentLanguage = std::forward<ContentLanguageT>(value);
535 }
536 template <typename ContentLanguageT = Aws::String>
537 HeadObjectResult& WithContentLanguage(ContentLanguageT&& value) {
538 SetContentLanguage(std::forward<ContentLanguageT>(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 HeadObjectResult& WithContentType(ContentTypeT&& value) {
555 SetContentType(std::forward<ContentTypeT>(value));
556 return *this;
557 }
559
561
565 inline const Aws::String& GetContentRange() const { return m_contentRange; }
566 template <typename ContentRangeT = Aws::String>
567 void SetContentRange(ContentRangeT&& value) {
568 m_contentRangeHasBeenSet = true;
569 m_contentRange = std::forward<ContentRangeT>(value);
570 }
571 template <typename ContentRangeT = Aws::String>
572 HeadObjectResult& WithContentRange(ContentRangeT&& value) {
573 SetContentRange(std::forward<ContentRangeT>(value));
574 return *this;
575 }
577
579
582 inline const Aws::Utils::DateTime& GetExpires() const { return m_expires; }
583 template <typename ExpiresT = Aws::Utils::DateTime>
584 void SetExpires(ExpiresT&& value) {
585 m_expiresHasBeenSet = true;
586 m_expires = std::forward<ExpiresT>(value);
587 }
588 template <typename ExpiresT = Aws::Utils::DateTime>
589 HeadObjectResult& WithExpires(ExpiresT&& value) {
590 SetExpires(std::forward<ExpiresT>(value));
591 return *this;
592 }
594
596
602 inline const Aws::String& GetWebsiteRedirectLocation() const { return m_websiteRedirectLocation; }
603 template <typename WebsiteRedirectLocationT = Aws::String>
604 void SetWebsiteRedirectLocation(WebsiteRedirectLocationT&& value) {
605 m_websiteRedirectLocationHasBeenSet = true;
606 m_websiteRedirectLocation = std::forward<WebsiteRedirectLocationT>(value);
607 }
608 template <typename WebsiteRedirectLocationT = Aws::String>
609 HeadObjectResult& WithWebsiteRedirectLocation(WebsiteRedirectLocationT&& value) {
610 SetWebsiteRedirectLocation(std::forward<WebsiteRedirectLocationT>(value));
611 return *this;
612 }
614
616
622 inline ServerSideEncryption GetServerSideEncryption() const { return m_serverSideEncryption; }
624 m_serverSideEncryptionHasBeenSet = true;
625 m_serverSideEncryption = value;
626 }
629 return *this;
630 }
632
634
637 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const { return m_metadata; }
638 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
639 void SetMetadata(MetadataT&& value) {
640 m_metadataHasBeenSet = true;
641 m_metadata = std::forward<MetadataT>(value);
642 }
643 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
644 HeadObjectResult& WithMetadata(MetadataT&& value) {
645 SetMetadata(std::forward<MetadataT>(value));
646 return *this;
647 }
648 template <typename MetadataKeyT = Aws::String, typename MetadataValueT = Aws::String>
649 HeadObjectResult& AddMetadata(MetadataKeyT&& key, MetadataValueT&& value) {
650 m_metadataHasBeenSet = true;
651 m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value));
652 return *this;
653 }
655
657
663 inline const Aws::String& GetSSECustomerAlgorithm() const { return m_sSECustomerAlgorithm; }
664 template <typename SSECustomerAlgorithmT = Aws::String>
665 void SetSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) {
666 m_sSECustomerAlgorithmHasBeenSet = true;
667 m_sSECustomerAlgorithm = std::forward<SSECustomerAlgorithmT>(value);
668 }
669 template <typename SSECustomerAlgorithmT = Aws::String>
670 HeadObjectResult& WithSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) {
671 SetSSECustomerAlgorithm(std::forward<SSECustomerAlgorithmT>(value));
672 return *this;
673 }
675
677
683 inline const Aws::String& GetSSECustomerKeyMD5() const { return m_sSECustomerKeyMD5; }
684 template <typename SSECustomerKeyMD5T = Aws::String>
685 void SetSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) {
686 m_sSECustomerKeyMD5HasBeenSet = true;
687 m_sSECustomerKeyMD5 = std::forward<SSECustomerKeyMD5T>(value);
688 }
689 template <typename SSECustomerKeyMD5T = Aws::String>
690 HeadObjectResult& WithSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) {
691 SetSSECustomerKeyMD5(std::forward<SSECustomerKeyMD5T>(value));
692 return *this;
693 }
695
697
701 inline const Aws::String& GetSSEKMSKeyId() const { return m_sSEKMSKeyId; }
702 template <typename SSEKMSKeyIdT = Aws::String>
703 void SetSSEKMSKeyId(SSEKMSKeyIdT&& value) {
704 m_sSEKMSKeyIdHasBeenSet = true;
705 m_sSEKMSKeyId = std::forward<SSEKMSKeyIdT>(value);
706 }
707 template <typename SSEKMSKeyIdT = Aws::String>
708 HeadObjectResult& WithSSEKMSKeyId(SSEKMSKeyIdT&& value) {
709 SetSSEKMSKeyId(std::forward<SSEKMSKeyIdT>(value));
710 return *this;
711 }
713
715
719 inline bool GetBucketKeyEnabled() const { return m_bucketKeyEnabled; }
720 inline void SetBucketKeyEnabled(bool value) {
721 m_bucketKeyEnabledHasBeenSet = true;
722 m_bucketKeyEnabled = value;
723 }
725 SetBucketKeyEnabled(value);
726 return *this;
727 }
729
731
741 inline StorageClass GetStorageClass() const { return m_storageClass; }
742 inline void SetStorageClass(StorageClass value) {
743 m_storageClassHasBeenSet = true;
744 m_storageClass = value;
745 }
747 SetStorageClass(value);
748 return *this;
749 }
751
753
754 inline RequestCharged GetRequestCharged() const { return m_requestCharged; }
756 m_requestChargedHasBeenSet = true;
757 m_requestCharged = value;
758 }
760 SetRequestCharged(value);
761 return *this;
762 }
764
766
798 inline ReplicationStatus GetReplicationStatus() const { return m_replicationStatus; }
800 m_replicationStatusHasBeenSet = true;
801 m_replicationStatus = value;
802 }
805 return *this;
806 }
808
810
815 inline int GetPartsCount() const { return m_partsCount; }
816 inline void SetPartsCount(int value) {
817 m_partsCountHasBeenSet = true;
818 m_partsCount = value;
819 }
820 inline HeadObjectResult& WithPartsCount(int value) {
821 SetPartsCount(value);
822 return *this;
823 }
825
827
834 inline int GetTagCount() const { return m_tagCount; }
835 inline void SetTagCount(int value) {
836 m_tagCountHasBeenSet = true;
837 m_tagCount = value;
838 }
839 inline HeadObjectResult& WithTagCount(int value) {
840 SetTagCount(value);
841 return *this;
842 }
844
846
854 inline ObjectLockMode GetObjectLockMode() const { return m_objectLockMode; }
856 m_objectLockModeHasBeenSet = true;
857 m_objectLockMode = value;
858 }
860 SetObjectLockMode(value);
861 return *this;
862 }
864
866
872 inline const Aws::Utils::DateTime& GetObjectLockRetainUntilDate() const { return m_objectLockRetainUntilDate; }
873 template <typename ObjectLockRetainUntilDateT = Aws::Utils::DateTime>
874 void SetObjectLockRetainUntilDate(ObjectLockRetainUntilDateT&& value) {
875 m_objectLockRetainUntilDateHasBeenSet = true;
876 m_objectLockRetainUntilDate = std::forward<ObjectLockRetainUntilDateT>(value);
877 }
878 template <typename ObjectLockRetainUntilDateT = Aws::Utils::DateTime>
879 HeadObjectResult& WithObjectLockRetainUntilDate(ObjectLockRetainUntilDateT&& value) {
880 SetObjectLockRetainUntilDate(std::forward<ObjectLockRetainUntilDateT>(value));
881 return *this;
882 }
884
886
896 inline ObjectLockLegalHoldStatus GetObjectLockLegalHoldStatus() const { return m_objectLockLegalHoldStatus; }
898 m_objectLockLegalHoldStatusHasBeenSet = true;
899 m_objectLockLegalHoldStatus = value;
900 }
903 return *this;
904 }
906
908
911 inline const Aws::String& GetExpiresString() const { return m_expiresString; }
912 template <typename ExpiresStringT = Aws::String>
913 void SetExpiresString(ExpiresStringT&& value) {
914 m_expiresStringHasBeenSet = true;
915 m_expiresString = std::forward<ExpiresStringT>(value);
916 }
917 template <typename ExpiresStringT = Aws::String>
918 HeadObjectResult& WithExpiresString(ExpiresStringT&& value) {
919 SetExpiresString(std::forward<ExpiresStringT>(value));
920 return *this;
921 }
923
925
926 inline const Aws::String& GetRequestId() const { return m_requestId; }
927 template <typename RequestIdT = Aws::String>
928 void SetRequestId(RequestIdT&& value) {
929 m_requestIdHasBeenSet = true;
930 m_requestId = std::forward<RequestIdT>(value);
931 }
932 template <typename RequestIdT = Aws::String>
933 HeadObjectResult& WithRequestId(RequestIdT&& value) {
934 SetRequestId(std::forward<RequestIdT>(value));
935 return *this;
936 }
938 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
939
940 private:
941 bool m_deleteMarker{false};
942
943 Aws::String m_acceptRanges;
944
945 Aws::String m_expiration;
946
947 Aws::String m_restore;
948
949 ArchiveStatus m_archiveStatus{ArchiveStatus::NOT_SET};
950
951 Aws::Utils::DateTime m_lastModified{};
952
953 long long m_contentLength{0};
954
955 Aws::String m_checksumCRC32;
956
957 Aws::String m_checksumCRC32C;
958
959 Aws::String m_checksumCRC64NVME;
960
961 Aws::String m_checksumSHA1;
962
963 Aws::String m_checksumSHA256;
964
965 Aws::String m_checksumSHA512;
966
967 Aws::String m_checksumMD5;
968
969 Aws::String m_checksumXXHASH64;
970
971 Aws::String m_checksumXXHASH3;
972
973 Aws::String m_checksumXXHASH128;
974
975 ChecksumType m_checksumType{ChecksumType::NOT_SET};
976
977 Aws::String m_eTag;
978
979 int m_missingMeta{0};
980
981 Aws::String m_versionId;
982
983 Aws::String m_cacheControl;
984
985 Aws::String m_contentDisposition;
986
987 Aws::String m_contentEncoding;
988
989 Aws::String m_contentLanguage;
990
991 Aws::String m_contentType;
992
993 Aws::String m_contentRange;
994
995 Aws::Utils::DateTime m_expires{};
996
997 Aws::String m_websiteRedirectLocation;
998
1000
1002
1003 Aws::String m_sSECustomerAlgorithm;
1004
1005 Aws::String m_sSECustomerKeyMD5;
1006
1007 Aws::String m_sSEKMSKeyId;
1008
1009 bool m_bucketKeyEnabled{false};
1010
1011 StorageClass m_storageClass{StorageClass::NOT_SET};
1012
1013 RequestCharged m_requestCharged{RequestCharged::NOT_SET};
1014
1015 ReplicationStatus m_replicationStatus{ReplicationStatus::NOT_SET};
1016
1017 int m_partsCount{0};
1018
1019 int m_tagCount{0};
1020
1021 ObjectLockMode m_objectLockMode{ObjectLockMode::NOT_SET};
1022
1023 Aws::Utils::DateTime m_objectLockRetainUntilDate{};
1024
1026
1027 Aws::String m_expiresString;
1028
1029 Aws::String m_requestId;
1030 Aws::Http::HttpResponseCode m_HttpResponseCode;
1031 bool m_deleteMarkerHasBeenSet = false;
1032 bool m_acceptRangesHasBeenSet = false;
1033 bool m_expirationHasBeenSet = false;
1034 bool m_restoreHasBeenSet = false;
1035 bool m_archiveStatusHasBeenSet = false;
1036 bool m_lastModifiedHasBeenSet = false;
1037 bool m_contentLengthHasBeenSet = false;
1038 bool m_checksumCRC32HasBeenSet = false;
1039 bool m_checksumCRC32CHasBeenSet = false;
1040 bool m_checksumCRC64NVMEHasBeenSet = false;
1041 bool m_checksumSHA1HasBeenSet = false;
1042 bool m_checksumSHA256HasBeenSet = false;
1043 bool m_checksumSHA512HasBeenSet = false;
1044 bool m_checksumMD5HasBeenSet = false;
1045 bool m_checksumXXHASH64HasBeenSet = false;
1046 bool m_checksumXXHASH3HasBeenSet = false;
1047 bool m_checksumXXHASH128HasBeenSet = false;
1048 bool m_checksumTypeHasBeenSet = false;
1049 bool m_eTagHasBeenSet = false;
1050 bool m_missingMetaHasBeenSet = false;
1051 bool m_versionIdHasBeenSet = false;
1052 bool m_cacheControlHasBeenSet = false;
1053 bool m_contentDispositionHasBeenSet = false;
1054 bool m_contentEncodingHasBeenSet = false;
1055 bool m_contentLanguageHasBeenSet = false;
1056 bool m_contentTypeHasBeenSet = false;
1057 bool m_contentRangeHasBeenSet = false;
1058 bool m_expiresHasBeenSet = false;
1059 bool m_websiteRedirectLocationHasBeenSet = false;
1060 bool m_serverSideEncryptionHasBeenSet = false;
1061 bool m_metadataHasBeenSet = false;
1062 bool m_sSECustomerAlgorithmHasBeenSet = false;
1063 bool m_sSECustomerKeyMD5HasBeenSet = false;
1064 bool m_sSEKMSKeyIdHasBeenSet = false;
1065 bool m_bucketKeyEnabledHasBeenSet = false;
1066 bool m_storageClassHasBeenSet = false;
1067 bool m_requestChargedHasBeenSet = false;
1068 bool m_replicationStatusHasBeenSet = false;
1069 bool m_partsCountHasBeenSet = false;
1070 bool m_tagCountHasBeenSet = false;
1071 bool m_objectLockModeHasBeenSet = false;
1072 bool m_objectLockRetainUntilDateHasBeenSet = false;
1073 bool m_objectLockLegalHoldStatusHasBeenSet = false;
1074 bool m_expiresStringHasBeenSet = false;
1075 bool m_requestIdHasBeenSet = false;
1076};
1077
1078} // namespace Model
1079} // namespace S3
1080} // namespace Aws
void SetChecksumCRC32C(ChecksumCRC32CT &&value)
const Aws::String & GetChecksumSHA512() const
HeadObjectResult & WithWebsiteRedirectLocation(WebsiteRedirectLocationT &&value)
void SetContentType(ContentTypeT &&value)
HeadObjectResult & WithChecksumMD5(ChecksumMD5T &&value)
void SetChecksumXXHASH64(ChecksumXXHASH64T &&value)
void SetContentEncoding(ContentEncodingT &&value)
void SetCacheControl(CacheControlT &&value)
void SetChecksumCRC32(ChecksumCRC32T &&value)
const Aws::String & GetSSECustomerKeyMD5() const
HeadObjectResult & WithContentLanguage(ContentLanguageT &&value)
HeadObjectResult & WithMissingMeta(int value)
HeadObjectResult & WithObjectLockLegalHoldStatus(ObjectLockLegalHoldStatus value)
HeadObjectResult & WithDeleteMarker(bool value)
const Aws::String & GetChecksumXXHASH128() const
void SetExpiresString(ExpiresStringT &&value)
void SetServerSideEncryption(ServerSideEncryption value)
HeadObjectResult & WithContentEncoding(ContentEncodingT &&value)
const Aws::String & GetContentRange() const
HeadObjectResult & WithPartsCount(int value)
void SetObjectLockMode(ObjectLockMode value)
HeadObjectResult & WithMetadata(MetadataT &&value)
HeadObjectResult & WithArchiveStatus(ArchiveStatus value)
AWS_S3_API HeadObjectResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const Aws::String & GetChecksumCRC64NVME() const
const Aws::String & GetETag() const
HeadObjectResult & AddMetadata(MetadataKeyT &&key, MetadataValueT &&value)
ArchiveStatus GetArchiveStatus() const
void SetExpiration(ExpirationT &&value)
const Aws::Utils::DateTime & GetLastModified() const
HeadObjectResult & WithRestore(RestoreT &&value)
HeadObjectResult & WithChecksumXXHASH3(ChecksumXXHASH3T &&value)
const Aws::String & GetContentLanguage() const
HeadObjectResult & WithContentType(ContentTypeT &&value)
HeadObjectResult & WithTagCount(int value)
const Aws::String & GetSSECustomerAlgorithm() const
HeadObjectResult & WithContentRange(ContentRangeT &&value)
HeadObjectResult & WithContentLength(long long value)
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
HeadObjectResult & WithStorageClass(StorageClass value)
void SetAcceptRanges(AcceptRangesT &&value)
void SetRequestCharged(RequestCharged value)
void SetReplicationStatus(ReplicationStatus value)
void SetSSEKMSKeyId(SSEKMSKeyIdT &&value)
const Aws::String & GetChecksumXXHASH64() const
const Aws::String & GetContentEncoding() const
void SetStorageClass(StorageClass value)
void SetChecksumSHA1(ChecksumSHA1T &&value)
HeadObjectResult & WithETag(ETagT &&value)
HeadObjectResult & WithChecksumSHA512(ChecksumSHA512T &&value)
HeadObjectResult & WithSSEKMSKeyId(SSEKMSKeyIdT &&value)
const Aws::String & GetContentType() const
HeadObjectResult & WithSSECustomerAlgorithm(SSECustomerAlgorithmT &&value)
void SetContentRange(ContentRangeT &&value)
HeadObjectResult & WithChecksumSHA256(ChecksumSHA256T &&value)
HeadObjectResult & WithReplicationStatus(ReplicationStatus value)
const Aws::String & GetChecksumMD5() const
ServerSideEncryption GetServerSideEncryption() const
void SetChecksumSHA512(ChecksumSHA512T &&value)
void SetExpires(ExpiresT &&value)
HeadObjectResult & WithObjectLockRetainUntilDate(ObjectLockRetainUntilDateT &&value)
void SetChecksumXXHASH128(ChecksumXXHASH128T &&value)
void SetChecksumCRC64NVME(ChecksumCRC64NVMET &&value)
AWS_S3_API HeadObjectResult()=default
HeadObjectResult & WithChecksumXXHASH128(ChecksumXXHASH128T &&value)
HeadObjectResult & WithChecksumCRC32C(ChecksumCRC32CT &&value)
void SetChecksumType(ChecksumType value)
const Aws::String & GetExpiration() const
ObjectLockLegalHoldStatus GetObjectLockLegalHoldStatus() const
HeadObjectResult & WithObjectLockMode(ObjectLockMode value)
void SetArchiveStatus(ArchiveStatus value)
const Aws::String & GetChecksumSHA256() const
RequestCharged GetRequestCharged() const
void SetObjectLockRetainUntilDate(ObjectLockRetainUntilDateT &&value)
HeadObjectResult & WithCacheControl(CacheControlT &&value)
HeadObjectResult & WithServerSideEncryption(ServerSideEncryption value)
const Aws::Utils::DateTime & GetExpires() const
HeadObjectResult & WithChecksumType(ChecksumType value)
void SetContentLanguage(ContentLanguageT &&value)
void SetRequestId(RequestIdT &&value)
void SetLastModified(LastModifiedT &&value)
const Aws::String & GetChecksumCRC32() const
HeadObjectResult & WithExpiresString(ExpiresStringT &&value)
HeadObjectResult & WithChecksumSHA1(ChecksumSHA1T &&value)
void SetContentLength(long long value)
HeadObjectResult & WithRequestId(RequestIdT &&value)
HeadObjectResult & WithAcceptRanges(AcceptRangesT &&value)
const Aws::Utils::DateTime & GetObjectLockRetainUntilDate() const
const Aws::String & GetChecksumXXHASH3() const
HeadObjectResult & WithExpiration(ExpirationT &&value)
const Aws::String & GetRequestId() const
void SetSSECustomerAlgorithm(SSECustomerAlgorithmT &&value)
const Aws::String & GetVersionId() const
const Aws::String & GetWebsiteRedirectLocation() const
const Aws::String & GetSSEKMSKeyId() const
void SetChecksumMD5(ChecksumMD5T &&value)
void SetMetadata(MetadataT &&value)
const Aws::String & GetRestore() const
void SetContentDisposition(ContentDispositionT &&value)
HeadObjectResult & WithBucketKeyEnabled(bool value)
void SetObjectLockLegalHoldStatus(ObjectLockLegalHoldStatus value)
HeadObjectResult & WithLastModified(LastModifiedT &&value)
HeadObjectResult & WithChecksumCRC32(ChecksumCRC32T &&value)
void SetChecksumXXHASH3(ChecksumXXHASH3T &&value)
const Aws::String & GetChecksumSHA1() const
ObjectLockMode GetObjectLockMode() const
HeadObjectResult & WithExpires(ExpiresT &&value)
HeadObjectResult & WithRequestCharged(RequestCharged value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
void SetSSECustomerKeyMD5(SSECustomerKeyMD5T &&value)
HeadObjectResult & WithChecksumXXHASH64(ChecksumXXHASH64T &&value)
HeadObjectResult & WithVersionId(VersionIdT &&value)
const Aws::String & GetAcceptRanges() const
const Aws::String & GetExpiresString() const
void SetRestore(RestoreT &&value)
const Aws::String & GetContentDisposition() const
void SetWebsiteRedirectLocation(WebsiteRedirectLocationT &&value)
ReplicationStatus GetReplicationStatus() const
const Aws::String & GetCacheControl() const
HeadObjectResult & WithContentDisposition(ContentDispositionT &&value)
HeadObjectResult & WithChecksumCRC64NVME(ChecksumCRC64NVMET &&value)
const Aws::String & GetChecksumCRC32C() const
void SetVersionId(VersionIdT &&value)
AWS_S3_API HeadObjectResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetChecksumSHA256(ChecksumSHA256T &&value)
HeadObjectResult & WithSSECustomerKeyMD5(SSECustomerKeyMD5T &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument