AWS SDK for C++

AWS SDK for C++ Version 1.11.891

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/ObjectLockEventHold.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 Utils {
29namespace Xml {
30class XmlDocument;
31} // namespace Xml
32} // namespace Utils
33namespace S3 {
34namespace Model {
36 public:
37 AWS_S3_API HeadObjectResult() = default;
40
42
47 inline bool GetDeleteMarker() const { return m_deleteMarker; }
48 inline void SetDeleteMarker(bool value) {
49 m_deleteMarkerHasBeenSet = true;
50 m_deleteMarker = value;
51 }
52 inline HeadObjectResult& WithDeleteMarker(bool value) {
53 SetDeleteMarker(value);
54 return *this;
55 }
57
59
62 inline const Aws::String& GetAcceptRanges() const { return m_acceptRanges; }
63 template <typename AcceptRangesT = Aws::String>
64 void SetAcceptRanges(AcceptRangesT&& value) {
65 m_acceptRangesHasBeenSet = true;
66 m_acceptRanges = std::forward<AcceptRangesT>(value);
67 }
68 template <typename AcceptRangesT = Aws::String>
69 HeadObjectResult& WithAcceptRanges(AcceptRangesT&& value) {
70 SetAcceptRanges(std::forward<AcceptRangesT>(value));
71 return *this;
72 }
74
76
87 inline const Aws::String& GetExpiration() const { return m_expiration; }
88 template <typename ExpirationT = Aws::String>
89 void SetExpiration(ExpirationT&& value) {
90 m_expirationHasBeenSet = true;
91 m_expiration = std::forward<ExpirationT>(value);
92 }
93 template <typename ExpirationT = Aws::String>
94 HeadObjectResult& WithExpiration(ExpirationT&& value) {
95 SetExpiration(std::forward<ExpirationT>(value));
96 return *this;
97 }
99
101
120 inline const Aws::String& GetRestore() const { return m_restore; }
121 template <typename RestoreT = Aws::String>
122 void SetRestore(RestoreT&& value) {
123 m_restoreHasBeenSet = true;
124 m_restore = std::forward<RestoreT>(value);
125 }
126 template <typename RestoreT = Aws::String>
127 HeadObjectResult& WithRestore(RestoreT&& value) {
128 SetRestore(std::forward<RestoreT>(value));
129 return *this;
130 }
132
134
138 inline ArchiveStatus GetArchiveStatus() const { return m_archiveStatus; }
139 inline void SetArchiveStatus(ArchiveStatus value) {
140 m_archiveStatusHasBeenSet = true;
141 m_archiveStatus = value;
142 }
144 SetArchiveStatus(value);
145 return *this;
146 }
148
150
153 inline const Aws::Utils::DateTime& GetLastModified() const { return m_lastModified; }
154 template <typename LastModifiedT = Aws::Utils::DateTime>
155 void SetLastModified(LastModifiedT&& value) {
156 m_lastModifiedHasBeenSet = true;
157 m_lastModified = std::forward<LastModifiedT>(value);
158 }
159 template <typename LastModifiedT = Aws::Utils::DateTime>
160 HeadObjectResult& WithLastModified(LastModifiedT&& value) {
161 SetLastModified(std::forward<LastModifiedT>(value));
162 return *this;
163 }
165
167
170 inline long long GetContentLength() const { return m_contentLength; }
171 inline void SetContentLength(long long value) {
172 m_contentLengthHasBeenSet = true;
173 m_contentLength = value;
174 }
175 inline HeadObjectResult& WithContentLength(long long value) {
176 SetContentLength(value);
177 return *this;
178 }
180
182
192 inline const Aws::String& GetChecksumCRC32() const { return m_checksumCRC32; }
193 template <typename ChecksumCRC32T = Aws::String>
194 void SetChecksumCRC32(ChecksumCRC32T&& value) {
195 m_checksumCRC32HasBeenSet = true;
196 m_checksumCRC32 = std::forward<ChecksumCRC32T>(value);
197 }
198 template <typename ChecksumCRC32T = Aws::String>
199 HeadObjectResult& WithChecksumCRC32(ChecksumCRC32T&& value) {
200 SetChecksumCRC32(std::forward<ChecksumCRC32T>(value));
201 return *this;
202 }
204
206
216 inline const Aws::String& GetChecksumCRC32C() const { return m_checksumCRC32C; }
217 template <typename ChecksumCRC32CT = Aws::String>
218 void SetChecksumCRC32C(ChecksumCRC32CT&& value) {
219 m_checksumCRC32CHasBeenSet = true;
220 m_checksumCRC32C = std::forward<ChecksumCRC32CT>(value);
221 }
222 template <typename ChecksumCRC32CT = Aws::String>
223 HeadObjectResult& WithChecksumCRC32C(ChecksumCRC32CT&& value) {
224 SetChecksumCRC32C(std::forward<ChecksumCRC32CT>(value));
225 return *this;
226 }
228
230
236 inline const Aws::String& GetChecksumCRC64NVME() const { return m_checksumCRC64NVME; }
237 template <typename ChecksumCRC64NVMET = Aws::String>
238 void SetChecksumCRC64NVME(ChecksumCRC64NVMET&& value) {
239 m_checksumCRC64NVMEHasBeenSet = true;
240 m_checksumCRC64NVME = std::forward<ChecksumCRC64NVMET>(value);
241 }
242 template <typename ChecksumCRC64NVMET = Aws::String>
243 HeadObjectResult& WithChecksumCRC64NVME(ChecksumCRC64NVMET&& value) {
244 SetChecksumCRC64NVME(std::forward<ChecksumCRC64NVMET>(value));
245 return *this;
246 }
248
250
260 inline const Aws::String& GetChecksumSHA1() const { return m_checksumSHA1; }
261 template <typename ChecksumSHA1T = Aws::String>
262 void SetChecksumSHA1(ChecksumSHA1T&& value) {
263 m_checksumSHA1HasBeenSet = true;
264 m_checksumSHA1 = std::forward<ChecksumSHA1T>(value);
265 }
266 template <typename ChecksumSHA1T = Aws::String>
267 HeadObjectResult& WithChecksumSHA1(ChecksumSHA1T&& value) {
268 SetChecksumSHA1(std::forward<ChecksumSHA1T>(value));
269 return *this;
270 }
272
274
284 inline const Aws::String& GetChecksumSHA256() const { return m_checksumSHA256; }
285 template <typename ChecksumSHA256T = Aws::String>
286 void SetChecksumSHA256(ChecksumSHA256T&& value) {
287 m_checksumSHA256HasBeenSet = true;
288 m_checksumSHA256 = std::forward<ChecksumSHA256T>(value);
289 }
290 template <typename ChecksumSHA256T = Aws::String>
291 HeadObjectResult& WithChecksumSHA256(ChecksumSHA256T&& value) {
292 SetChecksumSHA256(std::forward<ChecksumSHA256T>(value));
293 return *this;
294 }
296
298
304 inline const Aws::String& GetChecksumSHA512() const { return m_checksumSHA512; }
305 template <typename ChecksumSHA512T = Aws::String>
306 void SetChecksumSHA512(ChecksumSHA512T&& value) {
307 m_checksumSHA512HasBeenSet = true;
308 m_checksumSHA512 = std::forward<ChecksumSHA512T>(value);
309 }
310 template <typename ChecksumSHA512T = Aws::String>
311 HeadObjectResult& WithChecksumSHA512(ChecksumSHA512T&& value) {
312 SetChecksumSHA512(std::forward<ChecksumSHA512T>(value));
313 return *this;
314 }
316
318
324 inline const Aws::String& GetChecksumMD5() const { return m_checksumMD5; }
325 template <typename ChecksumMD5T = Aws::String>
326 void SetChecksumMD5(ChecksumMD5T&& value) {
327 m_checksumMD5HasBeenSet = true;
328 m_checksumMD5 = std::forward<ChecksumMD5T>(value);
329 }
330 template <typename ChecksumMD5T = Aws::String>
331 HeadObjectResult& WithChecksumMD5(ChecksumMD5T&& value) {
332 SetChecksumMD5(std::forward<ChecksumMD5T>(value));
333 return *this;
334 }
336
338
344 inline const Aws::String& GetChecksumXXHASH64() const { return m_checksumXXHASH64; }
345 template <typename ChecksumXXHASH64T = Aws::String>
346 void SetChecksumXXHASH64(ChecksumXXHASH64T&& value) {
347 m_checksumXXHASH64HasBeenSet = true;
348 m_checksumXXHASH64 = std::forward<ChecksumXXHASH64T>(value);
349 }
350 template <typename ChecksumXXHASH64T = Aws::String>
351 HeadObjectResult& WithChecksumXXHASH64(ChecksumXXHASH64T&& value) {
352 SetChecksumXXHASH64(std::forward<ChecksumXXHASH64T>(value));
353 return *this;
354 }
356
358
364 inline const Aws::String& GetChecksumXXHASH3() const { return m_checksumXXHASH3; }
365 template <typename ChecksumXXHASH3T = Aws::String>
366 void SetChecksumXXHASH3(ChecksumXXHASH3T&& value) {
367 m_checksumXXHASH3HasBeenSet = true;
368 m_checksumXXHASH3 = std::forward<ChecksumXXHASH3T>(value);
369 }
370 template <typename ChecksumXXHASH3T = Aws::String>
371 HeadObjectResult& WithChecksumXXHASH3(ChecksumXXHASH3T&& value) {
372 SetChecksumXXHASH3(std::forward<ChecksumXXHASH3T>(value));
373 return *this;
374 }
376
378
384 inline const Aws::String& GetChecksumXXHASH128() const { return m_checksumXXHASH128; }
385 template <typename ChecksumXXHASH128T = Aws::String>
386 void SetChecksumXXHASH128(ChecksumXXHASH128T&& value) {
387 m_checksumXXHASH128HasBeenSet = true;
388 m_checksumXXHASH128 = std::forward<ChecksumXXHASH128T>(value);
389 }
390 template <typename ChecksumXXHASH128T = Aws::String>
391 HeadObjectResult& WithChecksumXXHASH128(ChecksumXXHASH128T&& value) {
392 SetChecksumXXHASH128(std::forward<ChecksumXXHASH128T>(value));
393 return *this;
394 }
396
398
407 inline ChecksumType GetChecksumType() const { return m_checksumType; }
408 inline void SetChecksumType(ChecksumType value) {
409 m_checksumTypeHasBeenSet = true;
410 m_checksumType = value;
411 }
413 SetChecksumType(value);
414 return *this;
415 }
417
419
423 inline const Aws::String& GetETag() const { return m_eTag; }
424 template <typename ETagT = Aws::String>
425 void SetETag(ETagT&& value) {
426 m_eTagHasBeenSet = true;
427 m_eTag = std::forward<ETagT>(value);
428 }
429 template <typename ETagT = Aws::String>
430 HeadObjectResult& WithETag(ETagT&& value) {
431 SetETag(std::forward<ETagT>(value));
432 return *this;
433 }
435
437
445 inline int GetMissingMeta() const { return m_missingMeta; }
446 inline void SetMissingMeta(int value) {
447 m_missingMetaHasBeenSet = true;
448 m_missingMeta = value;
449 }
451 SetMissingMeta(value);
452 return *this;
453 }
455
457
461 inline const Aws::String& GetVersionId() const { return m_versionId; }
462 template <typename VersionIdT = Aws::String>
463 void SetVersionId(VersionIdT&& value) {
464 m_versionIdHasBeenSet = true;
465 m_versionId = std::forward<VersionIdT>(value);
466 }
467 template <typename VersionIdT = Aws::String>
468 HeadObjectResult& WithVersionId(VersionIdT&& value) {
469 SetVersionId(std::forward<VersionIdT>(value));
470 return *this;
471 }
473
475
478 inline const Aws::String& GetCacheControl() const { return m_cacheControl; }
479 template <typename CacheControlT = Aws::String>
480 void SetCacheControl(CacheControlT&& value) {
481 m_cacheControlHasBeenSet = true;
482 m_cacheControl = std::forward<CacheControlT>(value);
483 }
484 template <typename CacheControlT = Aws::String>
485 HeadObjectResult& WithCacheControl(CacheControlT&& value) {
486 SetCacheControl(std::forward<CacheControlT>(value));
487 return *this;
488 }
490
492
495 inline const Aws::String& GetContentDisposition() const { return m_contentDisposition; }
496 template <typename ContentDispositionT = Aws::String>
497 void SetContentDisposition(ContentDispositionT&& value) {
498 m_contentDispositionHasBeenSet = true;
499 m_contentDisposition = std::forward<ContentDispositionT>(value);
500 }
501 template <typename ContentDispositionT = Aws::String>
502 HeadObjectResult& WithContentDisposition(ContentDispositionT&& value) {
503 SetContentDisposition(std::forward<ContentDispositionT>(value));
504 return *this;
505 }
507
509
514 inline const Aws::String& GetContentEncoding() const { return m_contentEncoding; }
515 template <typename ContentEncodingT = Aws::String>
516 void SetContentEncoding(ContentEncodingT&& value) {
517 m_contentEncodingHasBeenSet = true;
518 m_contentEncoding = std::forward<ContentEncodingT>(value);
519 }
520 template <typename ContentEncodingT = Aws::String>
521 HeadObjectResult& WithContentEncoding(ContentEncodingT&& value) {
522 SetContentEncoding(std::forward<ContentEncodingT>(value));
523 return *this;
524 }
526
528
531 inline const Aws::String& GetContentLanguage() const { return m_contentLanguage; }
532 template <typename ContentLanguageT = Aws::String>
533 void SetContentLanguage(ContentLanguageT&& value) {
534 m_contentLanguageHasBeenSet = true;
535 m_contentLanguage = std::forward<ContentLanguageT>(value);
536 }
537 template <typename ContentLanguageT = Aws::String>
538 HeadObjectResult& WithContentLanguage(ContentLanguageT&& value) {
539 SetContentLanguage(std::forward<ContentLanguageT>(value));
540 return *this;
541 }
543
545
548 inline const Aws::String& GetContentType() const { return m_contentType; }
549 template <typename ContentTypeT = Aws::String>
550 void SetContentType(ContentTypeT&& value) {
551 m_contentTypeHasBeenSet = true;
552 m_contentType = std::forward<ContentTypeT>(value);
553 }
554 template <typename ContentTypeT = Aws::String>
555 HeadObjectResult& WithContentType(ContentTypeT&& value) {
556 SetContentType(std::forward<ContentTypeT>(value));
557 return *this;
558 }
560
562
566 inline const Aws::String& GetContentRange() const { return m_contentRange; }
567 template <typename ContentRangeT = Aws::String>
568 void SetContentRange(ContentRangeT&& value) {
569 m_contentRangeHasBeenSet = true;
570 m_contentRange = std::forward<ContentRangeT>(value);
571 }
572 template <typename ContentRangeT = Aws::String>
573 HeadObjectResult& WithContentRange(ContentRangeT&& value) {
574 SetContentRange(std::forward<ContentRangeT>(value));
575 return *this;
576 }
578
580
583 inline const Aws::Utils::DateTime& GetExpires() const { return m_expires; }
584 template <typename ExpiresT = Aws::Utils::DateTime>
585 void SetExpires(ExpiresT&& value) {
586 m_expiresHasBeenSet = true;
587 m_expires = std::forward<ExpiresT>(value);
588 }
589 template <typename ExpiresT = Aws::Utils::DateTime>
590 HeadObjectResult& WithExpires(ExpiresT&& value) {
591 SetExpires(std::forward<ExpiresT>(value));
592 return *this;
593 }
595
597
603 inline const Aws::String& GetWebsiteRedirectLocation() const { return m_websiteRedirectLocation; }
604 template <typename WebsiteRedirectLocationT = Aws::String>
605 void SetWebsiteRedirectLocation(WebsiteRedirectLocationT&& value) {
606 m_websiteRedirectLocationHasBeenSet = true;
607 m_websiteRedirectLocation = std::forward<WebsiteRedirectLocationT>(value);
608 }
609 template <typename WebsiteRedirectLocationT = Aws::String>
610 HeadObjectResult& WithWebsiteRedirectLocation(WebsiteRedirectLocationT&& value) {
611 SetWebsiteRedirectLocation(std::forward<WebsiteRedirectLocationT>(value));
612 return *this;
613 }
615
617
623 inline ServerSideEncryption GetServerSideEncryption() const { return m_serverSideEncryption; }
625 m_serverSideEncryptionHasBeenSet = true;
626 m_serverSideEncryption = value;
627 }
630 return *this;
631 }
633
635
638 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const { return m_metadata; }
639 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
640 void SetMetadata(MetadataT&& value) {
641 m_metadataHasBeenSet = true;
642 m_metadata = std::forward<MetadataT>(value);
643 }
644 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
645 HeadObjectResult& WithMetadata(MetadataT&& value) {
646 SetMetadata(std::forward<MetadataT>(value));
647 return *this;
648 }
649 template <typename MetadataKeyT = Aws::String, typename MetadataValueT = Aws::String>
650 HeadObjectResult& AddMetadata(MetadataKeyT&& key, MetadataValueT&& value) {
651 m_metadataHasBeenSet = true;
652 m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value));
653 return *this;
654 }
656
658
664 inline const Aws::String& GetSSECustomerAlgorithm() const { return m_sSECustomerAlgorithm; }
665 template <typename SSECustomerAlgorithmT = Aws::String>
666 void SetSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) {
667 m_sSECustomerAlgorithmHasBeenSet = true;
668 m_sSECustomerAlgorithm = std::forward<SSECustomerAlgorithmT>(value);
669 }
670 template <typename SSECustomerAlgorithmT = Aws::String>
671 HeadObjectResult& WithSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) {
672 SetSSECustomerAlgorithm(std::forward<SSECustomerAlgorithmT>(value));
673 return *this;
674 }
676
678
684 inline const Aws::String& GetSSECustomerKeyMD5() const { return m_sSECustomerKeyMD5; }
685 template <typename SSECustomerKeyMD5T = Aws::String>
686 void SetSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) {
687 m_sSECustomerKeyMD5HasBeenSet = true;
688 m_sSECustomerKeyMD5 = std::forward<SSECustomerKeyMD5T>(value);
689 }
690 template <typename SSECustomerKeyMD5T = Aws::String>
691 HeadObjectResult& WithSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) {
692 SetSSECustomerKeyMD5(std::forward<SSECustomerKeyMD5T>(value));
693 return *this;
694 }
696
698
702 inline const Aws::String& GetSSEKMSKeyId() const { return m_sSEKMSKeyId; }
703 template <typename SSEKMSKeyIdT = Aws::String>
704 void SetSSEKMSKeyId(SSEKMSKeyIdT&& value) {
705 m_sSEKMSKeyIdHasBeenSet = true;
706 m_sSEKMSKeyId = std::forward<SSEKMSKeyIdT>(value);
707 }
708 template <typename SSEKMSKeyIdT = Aws::String>
709 HeadObjectResult& WithSSEKMSKeyId(SSEKMSKeyIdT&& value) {
710 SetSSEKMSKeyId(std::forward<SSEKMSKeyIdT>(value));
711 return *this;
712 }
714
716
720 inline bool GetBucketKeyEnabled() const { return m_bucketKeyEnabled; }
721 inline void SetBucketKeyEnabled(bool value) {
722 m_bucketKeyEnabledHasBeenSet = true;
723 m_bucketKeyEnabled = value;
724 }
726 SetBucketKeyEnabled(value);
727 return *this;
728 }
730
732
742 inline StorageClass GetStorageClass() const { return m_storageClass; }
743 inline void SetStorageClass(StorageClass value) {
744 m_storageClassHasBeenSet = true;
745 m_storageClass = value;
746 }
748 SetStorageClass(value);
749 return *this;
750 }
752
754
755 inline RequestCharged GetRequestCharged() const { return m_requestCharged; }
757 m_requestChargedHasBeenSet = true;
758 m_requestCharged = value;
759 }
761 SetRequestCharged(value);
762 return *this;
763 }
765
767
799 inline ReplicationStatus GetReplicationStatus() const { return m_replicationStatus; }
801 m_replicationStatusHasBeenSet = true;
802 m_replicationStatus = value;
803 }
806 return *this;
807 }
809
811
816 inline int GetPartsCount() const { return m_partsCount; }
817 inline void SetPartsCount(int value) {
818 m_partsCountHasBeenSet = true;
819 m_partsCount = value;
820 }
821 inline HeadObjectResult& WithPartsCount(int value) {
822 SetPartsCount(value);
823 return *this;
824 }
826
828
835 inline int GetTagCount() const { return m_tagCount; }
836 inline void SetTagCount(int value) {
837 m_tagCountHasBeenSet = true;
838 m_tagCount = value;
839 }
840 inline HeadObjectResult& WithTagCount(int value) {
841 SetTagCount(value);
842 return *this;
843 }
845
847
855 inline ObjectLockMode GetObjectLockMode() const { return m_objectLockMode; }
857 m_objectLockModeHasBeenSet = true;
858 m_objectLockMode = value;
859 }
861 SetObjectLockMode(value);
862 return *this;
863 }
865
867
873 inline const Aws::Utils::DateTime& GetObjectLockRetainUntilDate() const { return m_objectLockRetainUntilDate; }
874 template <typename ObjectLockRetainUntilDateT = Aws::Utils::DateTime>
875 void SetObjectLockRetainUntilDate(ObjectLockRetainUntilDateT&& value) {
876 m_objectLockRetainUntilDateHasBeenSet = true;
877 m_objectLockRetainUntilDate = std::forward<ObjectLockRetainUntilDateT>(value);
878 }
879 template <typename ObjectLockRetainUntilDateT = Aws::Utils::DateTime>
880 HeadObjectResult& WithObjectLockRetainUntilDate(ObjectLockRetainUntilDateT&& value) {
881 SetObjectLockRetainUntilDate(std::forward<ObjectLockRetainUntilDateT>(value));
882 return *this;
883 }
885
887
897 inline ObjectLockLegalHoldStatus GetObjectLockLegalHoldStatus() const { return m_objectLockLegalHoldStatus; }
899 m_objectLockLegalHoldStatusHasBeenSet = true;
900 m_objectLockLegalHoldStatus = value;
901 }
904 return *this;
905 }
907
909
914 inline ObjectLockEventHold GetObjectLockEventHold() const { return m_objectLockEventHold; }
916 m_objectLockEventHoldHasBeenSet = true;
917 m_objectLockEventHold = value;
918 }
921 return *this;
922 }
924
926
931 inline int GetObjectLockEventHoldDurationDays() const { return m_objectLockEventHoldDurationDays; }
932 inline void SetObjectLockEventHoldDurationDays(int value) {
933 m_objectLockEventHoldDurationDaysHasBeenSet = true;
934 m_objectLockEventHoldDurationDays = value;
935 }
938 return *this;
939 }
941
943
948 inline int GetObjectLockEventHoldDurationYears() const { return m_objectLockEventHoldDurationYears; }
949 inline void SetObjectLockEventHoldDurationYears(int value) {
950 m_objectLockEventHoldDurationYearsHasBeenSet = true;
951 m_objectLockEventHoldDurationYears = value;
952 }
955 return *this;
956 }
958
960
963 inline const Aws::String& GetExpiresString() const { return m_expiresString; }
964 template <typename ExpiresStringT = Aws::String>
965 void SetExpiresString(ExpiresStringT&& value) {
966 m_expiresStringHasBeenSet = true;
967 m_expiresString = std::forward<ExpiresStringT>(value);
968 }
969 template <typename ExpiresStringT = Aws::String>
970 HeadObjectResult& WithExpiresString(ExpiresStringT&& value) {
971 SetExpiresString(std::forward<ExpiresStringT>(value));
972 return *this;
973 }
975
977
978 inline const Aws::String& GetRequestId() const { return m_requestId; }
979 template <typename RequestIdT = Aws::String>
980 void SetRequestId(RequestIdT&& value) {
981 m_requestIdHasBeenSet = true;
982 m_requestId = std::forward<RequestIdT>(value);
983 }
984 template <typename RequestIdT = Aws::String>
985 HeadObjectResult& WithRequestId(RequestIdT&& value) {
986 SetRequestId(std::forward<RequestIdT>(value));
987 return *this;
988 }
990 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
991
992 private:
993 bool m_deleteMarker{false};
994
995 Aws::String m_acceptRanges;
996
997 Aws::String m_expiration;
998
999 Aws::String m_restore;
1000
1001 ArchiveStatus m_archiveStatus{ArchiveStatus::NOT_SET};
1002
1003 Aws::Utils::DateTime m_lastModified{};
1004
1005 long long m_contentLength{0};
1006
1007 Aws::String m_checksumCRC32;
1008
1009 Aws::String m_checksumCRC32C;
1010
1011 Aws::String m_checksumCRC64NVME;
1012
1013 Aws::String m_checksumSHA1;
1014
1015 Aws::String m_checksumSHA256;
1016
1017 Aws::String m_checksumSHA512;
1018
1019 Aws::String m_checksumMD5;
1020
1021 Aws::String m_checksumXXHASH64;
1022
1023 Aws::String m_checksumXXHASH3;
1024
1025 Aws::String m_checksumXXHASH128;
1026
1027 ChecksumType m_checksumType{ChecksumType::NOT_SET};
1028
1029 Aws::String m_eTag;
1030
1031 int m_missingMeta{0};
1032
1033 Aws::String m_versionId;
1034
1035 Aws::String m_cacheControl;
1036
1037 Aws::String m_contentDisposition;
1038
1039 Aws::String m_contentEncoding;
1040
1041 Aws::String m_contentLanguage;
1042
1043 Aws::String m_contentType;
1044
1045 Aws::String m_contentRange;
1046
1047 Aws::Utils::DateTime m_expires{};
1048
1049 Aws::String m_websiteRedirectLocation;
1050
1052
1054
1055 Aws::String m_sSECustomerAlgorithm;
1056
1057 Aws::String m_sSECustomerKeyMD5;
1058
1059 Aws::String m_sSEKMSKeyId;
1060
1061 bool m_bucketKeyEnabled{false};
1062
1063 StorageClass m_storageClass{StorageClass::NOT_SET};
1064
1065 RequestCharged m_requestCharged{RequestCharged::NOT_SET};
1066
1067 ReplicationStatus m_replicationStatus{ReplicationStatus::NOT_SET};
1068
1069 int m_partsCount{0};
1070
1071 int m_tagCount{0};
1072
1073 ObjectLockMode m_objectLockMode{ObjectLockMode::NOT_SET};
1074
1075 Aws::Utils::DateTime m_objectLockRetainUntilDate{};
1076
1078
1080
1081 int m_objectLockEventHoldDurationDays{0};
1082
1083 int m_objectLockEventHoldDurationYears{0};
1084
1085 Aws::String m_expiresString;
1086
1087 Aws::String m_requestId;
1088 Aws::Http::HttpResponseCode m_HttpResponseCode;
1089 bool m_deleteMarkerHasBeenSet = false;
1090 bool m_acceptRangesHasBeenSet = false;
1091 bool m_expirationHasBeenSet = false;
1092 bool m_restoreHasBeenSet = false;
1093 bool m_archiveStatusHasBeenSet = false;
1094 bool m_lastModifiedHasBeenSet = false;
1095 bool m_contentLengthHasBeenSet = false;
1096 bool m_checksumCRC32HasBeenSet = false;
1097 bool m_checksumCRC32CHasBeenSet = false;
1098 bool m_checksumCRC64NVMEHasBeenSet = false;
1099 bool m_checksumSHA1HasBeenSet = false;
1100 bool m_checksumSHA256HasBeenSet = false;
1101 bool m_checksumSHA512HasBeenSet = false;
1102 bool m_checksumMD5HasBeenSet = false;
1103 bool m_checksumXXHASH64HasBeenSet = false;
1104 bool m_checksumXXHASH3HasBeenSet = false;
1105 bool m_checksumXXHASH128HasBeenSet = false;
1106 bool m_checksumTypeHasBeenSet = false;
1107 bool m_eTagHasBeenSet = false;
1108 bool m_missingMetaHasBeenSet = false;
1109 bool m_versionIdHasBeenSet = false;
1110 bool m_cacheControlHasBeenSet = false;
1111 bool m_contentDispositionHasBeenSet = false;
1112 bool m_contentEncodingHasBeenSet = false;
1113 bool m_contentLanguageHasBeenSet = false;
1114 bool m_contentTypeHasBeenSet = false;
1115 bool m_contentRangeHasBeenSet = false;
1116 bool m_expiresHasBeenSet = false;
1117 bool m_websiteRedirectLocationHasBeenSet = false;
1118 bool m_serverSideEncryptionHasBeenSet = false;
1119 bool m_metadataHasBeenSet = false;
1120 bool m_sSECustomerAlgorithmHasBeenSet = false;
1121 bool m_sSECustomerKeyMD5HasBeenSet = false;
1122 bool m_sSEKMSKeyIdHasBeenSet = false;
1123 bool m_bucketKeyEnabledHasBeenSet = false;
1124 bool m_storageClassHasBeenSet = false;
1125 bool m_requestChargedHasBeenSet = false;
1126 bool m_replicationStatusHasBeenSet = false;
1127 bool m_partsCountHasBeenSet = false;
1128 bool m_tagCountHasBeenSet = false;
1129 bool m_objectLockModeHasBeenSet = false;
1130 bool m_objectLockRetainUntilDateHasBeenSet = false;
1131 bool m_objectLockLegalHoldStatusHasBeenSet = false;
1132 bool m_objectLockEventHoldHasBeenSet = false;
1133 bool m_objectLockEventHoldDurationDaysHasBeenSet = false;
1134 bool m_objectLockEventHoldDurationYearsHasBeenSet = false;
1135 bool m_expiresStringHasBeenSet = false;
1136 bool m_requestIdHasBeenSet = false;
1137};
1138
1139} // namespace Model
1140} // namespace S3
1141} // 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)
HeadObjectResult & WithObjectLockEventHoldDurationYears(int value)
const Aws::String & GetContentRange() const
HeadObjectResult & WithPartsCount(int value)
void SetObjectLockEventHoldDurationDays(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)
HeadObjectResult & WithObjectLockEventHoldDurationDays(int 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)
ObjectLockEventHold GetObjectLockEventHold() const
void SetArchiveStatus(ArchiveStatus value)
const Aws::String & GetChecksumSHA256() const
RequestCharged GetRequestCharged() const
void SetObjectLockRetainUntilDate(ObjectLockRetainUntilDateT &&value)
HeadObjectResult & WithObjectLockEventHold(ObjectLockEventHold 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)
void SetObjectLockEventHoldDurationYears(int 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)
void SetObjectLockEventHold(ObjectLockEventHold 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