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>
25template <
typename RESULT_TYPE>
26class AmazonWebServiceResult;
49 m_deleteMarkerHasBeenSet =
true;
50 m_deleteMarker = value;
63 template <
typename AcceptRangesT = Aws::String>
65 m_acceptRangesHasBeenSet =
true;
66 m_acceptRanges = std::forward<AcceptRangesT>(value);
68 template <
typename AcceptRangesT = Aws::String>
88 template <
typename ExpirationT = Aws::String>
90 m_expirationHasBeenSet =
true;
91 m_expiration = std::forward<ExpirationT>(value);
93 template <
typename ExpirationT = Aws::String>
121 template <
typename RestoreT = Aws::String>
123 m_restoreHasBeenSet =
true;
124 m_restore = std::forward<RestoreT>(value);
126 template <
typename RestoreT = Aws::String>
140 m_archiveStatusHasBeenSet =
true;
141 m_archiveStatus = value;
154 template <
typename LastModifiedT = Aws::Utils::DateTime>
156 m_lastModifiedHasBeenSet =
true;
157 m_lastModified = std::forward<LastModifiedT>(value);
159 template <
typename LastModifiedT = Aws::Utils::DateTime>
172 m_contentLengthHasBeenSet =
true;
173 m_contentLength = value;
193 template <
typename ChecksumCRC32T = Aws::String>
195 m_checksumCRC32HasBeenSet =
true;
196 m_checksumCRC32 = std::forward<ChecksumCRC32T>(value);
198 template <
typename ChecksumCRC32T = Aws::String>
217 template <
typename ChecksumCRC32CT = Aws::String>
219 m_checksumCRC32CHasBeenSet =
true;
220 m_checksumCRC32C = std::forward<ChecksumCRC32CT>(value);
222 template <
typename ChecksumCRC32CT = Aws::String>
237 template <
typename ChecksumCRC64NVMET = Aws::String>
239 m_checksumCRC64NVMEHasBeenSet =
true;
240 m_checksumCRC64NVME = std::forward<ChecksumCRC64NVMET>(value);
242 template <
typename ChecksumCRC64NVMET = Aws::String>
261 template <
typename ChecksumSHA1T = Aws::String>
263 m_checksumSHA1HasBeenSet =
true;
264 m_checksumSHA1 = std::forward<ChecksumSHA1T>(value);
266 template <
typename ChecksumSHA1T = Aws::String>
285 template <
typename ChecksumSHA256T = Aws::String>
287 m_checksumSHA256HasBeenSet =
true;
288 m_checksumSHA256 = std::forward<ChecksumSHA256T>(value);
290 template <
typename ChecksumSHA256T = Aws::String>
305 template <
typename ChecksumSHA512T = Aws::String>
307 m_checksumSHA512HasBeenSet =
true;
308 m_checksumSHA512 = std::forward<ChecksumSHA512T>(value);
310 template <
typename ChecksumSHA512T = Aws::String>
325 template <
typename ChecksumMD5T = Aws::String>
327 m_checksumMD5HasBeenSet =
true;
328 m_checksumMD5 = std::forward<ChecksumMD5T>(value);
330 template <
typename ChecksumMD5T = Aws::String>
345 template <
typename ChecksumXXHASH64T = Aws::String>
347 m_checksumXXHASH64HasBeenSet =
true;
348 m_checksumXXHASH64 = std::forward<ChecksumXXHASH64T>(value);
350 template <
typename ChecksumXXHASH64T = Aws::String>
365 template <
typename ChecksumXXHASH3T = Aws::String>
367 m_checksumXXHASH3HasBeenSet =
true;
368 m_checksumXXHASH3 = std::forward<ChecksumXXHASH3T>(value);
370 template <
typename ChecksumXXHASH3T = Aws::String>
385 template <
typename ChecksumXXHASH128T = Aws::String>
387 m_checksumXXHASH128HasBeenSet =
true;
388 m_checksumXXHASH128 = std::forward<ChecksumXXHASH128T>(value);
390 template <
typename ChecksumXXHASH128T = Aws::String>
409 m_checksumTypeHasBeenSet =
true;
410 m_checksumType = value;
424 template <
typename ETagT = Aws::String>
426 m_eTagHasBeenSet =
true;
427 m_eTag = std::forward<ETagT>(value);
429 template <
typename ETagT = Aws::String>
431 SetETag(std::forward<ETagT>(value));
447 m_missingMetaHasBeenSet =
true;
448 m_missingMeta = value;
462 template <
typename VersionIdT = Aws::String>
464 m_versionIdHasBeenSet =
true;
465 m_versionId = std::forward<VersionIdT>(value);
467 template <
typename VersionIdT = Aws::String>
479 template <
typename CacheControlT = Aws::String>
481 m_cacheControlHasBeenSet =
true;
482 m_cacheControl = std::forward<CacheControlT>(value);
484 template <
typename CacheControlT = Aws::String>
496 template <
typename ContentDispositionT = Aws::String>
498 m_contentDispositionHasBeenSet =
true;
499 m_contentDisposition = std::forward<ContentDispositionT>(value);
501 template <
typename ContentDispositionT = Aws::String>
515 template <
typename ContentEncodingT = Aws::String>
517 m_contentEncodingHasBeenSet =
true;
518 m_contentEncoding = std::forward<ContentEncodingT>(value);
520 template <
typename ContentEncodingT = Aws::String>
532 template <
typename ContentLanguageT = Aws::String>
534 m_contentLanguageHasBeenSet =
true;
535 m_contentLanguage = std::forward<ContentLanguageT>(value);
537 template <
typename ContentLanguageT = Aws::String>
549 template <
typename ContentTypeT = Aws::String>
551 m_contentTypeHasBeenSet =
true;
552 m_contentType = std::forward<ContentTypeT>(value);
554 template <
typename ContentTypeT = Aws::String>
567 template <
typename ContentRangeT = Aws::String>
569 m_contentRangeHasBeenSet =
true;
570 m_contentRange = std::forward<ContentRangeT>(value);
572 template <
typename ContentRangeT = Aws::String>
584 template <
typename ExpiresT = Aws::Utils::DateTime>
586 m_expiresHasBeenSet =
true;
587 m_expires = std::forward<ExpiresT>(value);
589 template <
typename ExpiresT = Aws::Utils::DateTime>
604 template <
typename WebsiteRedirectLocationT = Aws::String>
606 m_websiteRedirectLocationHasBeenSet =
true;
607 m_websiteRedirectLocation = std::forward<WebsiteRedirectLocationT>(value);
609 template <
typename WebsiteRedirectLocationT = Aws::String>
625 m_serverSideEncryptionHasBeenSet =
true;
626 m_serverSideEncryption = value;
639 template <
typename MetadataT = Aws::Map<Aws::String, Aws::String>>
641 m_metadataHasBeenSet =
true;
642 m_metadata = std::forward<MetadataT>(value);
644 template <
typename MetadataT = Aws::Map<Aws::String, Aws::String>>
649 template <
typename MetadataKeyT = Aws::String,
typename MetadataValueT = Aws::String>
651 m_metadataHasBeenSet =
true;
652 m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value));
665 template <
typename SSECustomerAlgorithmT = Aws::String>
667 m_sSECustomerAlgorithmHasBeenSet =
true;
668 m_sSECustomerAlgorithm = std::forward<SSECustomerAlgorithmT>(value);
670 template <
typename SSECustomerAlgorithmT = Aws::String>
685 template <
typename SSECustomerKeyMD5T = Aws::String>
687 m_sSECustomerKeyMD5HasBeenSet =
true;
688 m_sSECustomerKeyMD5 = std::forward<SSECustomerKeyMD5T>(value);
690 template <
typename SSECustomerKeyMD5T = Aws::String>
703 template <
typename SSEKMSKeyIdT = Aws::String>
705 m_sSEKMSKeyIdHasBeenSet =
true;
706 m_sSEKMSKeyId = std::forward<SSEKMSKeyIdT>(value);
708 template <
typename SSEKMSKeyIdT = Aws::String>
722 m_bucketKeyEnabledHasBeenSet =
true;
723 m_bucketKeyEnabled = value;
744 m_storageClassHasBeenSet =
true;
745 m_storageClass = value;
757 m_requestChargedHasBeenSet =
true;
758 m_requestCharged = value;
801 m_replicationStatusHasBeenSet =
true;
802 m_replicationStatus = value;
818 m_partsCountHasBeenSet =
true;
819 m_partsCount = value;
837 m_tagCountHasBeenSet =
true;
857 m_objectLockModeHasBeenSet =
true;
858 m_objectLockMode = value;
874 template <
typename ObjectLockRetainUntilDateT = Aws::Utils::DateTime>
876 m_objectLockRetainUntilDateHasBeenSet =
true;
877 m_objectLockRetainUntilDate = std::forward<ObjectLockRetainUntilDateT>(value);
879 template <
typename ObjectLockRetainUntilDateT = Aws::Utils::DateTime>
899 m_objectLockLegalHoldStatusHasBeenSet =
true;
900 m_objectLockLegalHoldStatus = value;
916 m_objectLockEventHoldHasBeenSet =
true;
917 m_objectLockEventHold = value;
933 m_objectLockEventHoldDurationDaysHasBeenSet =
true;
934 m_objectLockEventHoldDurationDays = value;
950 m_objectLockEventHoldDurationYearsHasBeenSet =
true;
951 m_objectLockEventHoldDurationYears = value;
964 template <
typename ExpiresStringT = Aws::String>
966 m_expiresStringHasBeenSet =
true;
967 m_expiresString = std::forward<ExpiresStringT>(value);
969 template <
typename ExpiresStringT = Aws::String>
979 template <
typename RequestIdT = Aws::String>
981 m_requestIdHasBeenSet =
true;
982 m_requestId = std::forward<RequestIdT>(value);
984 template <
typename RequestIdT = Aws::String>
993 bool m_deleteMarker{
false};
1005 long long m_contentLength{0};
1031 int m_missingMeta{0};
1061 bool m_bucketKeyEnabled{
false};
1069 int m_partsCount{0};
1081 int m_objectLockEventHoldDurationDays{0};
1083 int m_objectLockEventHoldDurationYears{0};
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;
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)
int GetPartsCount() const
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)
int GetMissingMeta() const
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)
bool GetBucketKeyEnabled() const
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)
void SetPartsCount(int 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
StorageClass GetStorageClass() const
void SetMissingMeta(int value)
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)
ChecksumType GetChecksumType() const
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)
int GetObjectLockEventHoldDurationYears() const
const Aws::Utils::DateTime & GetExpires() const
HeadObjectResult & WithChecksumType(ChecksumType value)
void SetContentLanguage(ContentLanguageT &&value)
void SetRequestId(RequestIdT &&value)
void SetBucketKeyEnabled(bool value)
void SetLastModified(LastModifiedT &&value)
const Aws::String & GetChecksumCRC32() const
HeadObjectResult & WithExpiresString(ExpiresStringT &&value)
HeadObjectResult & WithChecksumSHA1(ChecksumSHA1T &&value)
void SetDeleteMarker(bool 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
long long GetContentLength() const
void SetChecksumMD5(ChecksumMD5T &&value)
void SetMetadata(MetadataT &&value)
void SetETag(ETagT &&value)
const Aws::String & GetRestore() const
void SetContentDisposition(ContentDispositionT &&value)
HeadObjectResult & WithBucketKeyEnabled(bool value)
void SetObjectLockLegalHoldStatus(ObjectLockLegalHoldStatus value)
void SetTagCount(int 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)
bool GetDeleteMarker() const
AWS_S3_API HeadObjectResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetChecksumSHA256(ChecksumSHA256T &&value)
int GetObjectLockEventHoldDurationDays() const
HeadObjectResult & WithSSECustomerKeyMD5(SSECustomerKeyMD5T &&value)
ObjectLockLegalHoldStatus
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