7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/s3/S3_EXPORTS.h>
11#include <aws/s3/model/ArchiveStatus.h>
12#include <aws/s3/model/ChecksumType.h>
13#include <aws/s3/model/ObjectLockLegalHoldStatus.h>
14#include <aws/s3/model/ObjectLockMode.h>
15#include <aws/s3/model/ReplicationStatus.h>
16#include <aws/s3/model/RequestCharged.h>
17#include <aws/s3/model/ServerSideEncryption.h>
18#include <aws/s3/model/StorageClass.h>
23template <
typename RESULT_TYPE>
24class AmazonWebServiceResult;
47 m_deleteMarkerHasBeenSet =
true;
48 m_deleteMarker = value;
61 template <
typename AcceptRangesT = Aws::String>
63 m_acceptRangesHasBeenSet =
true;
64 m_acceptRanges = std::forward<AcceptRangesT>(value);
66 template <
typename AcceptRangesT = Aws::String>
86 template <
typename ExpirationT = Aws::String>
88 m_expirationHasBeenSet =
true;
89 m_expiration = std::forward<ExpirationT>(value);
91 template <
typename ExpirationT = Aws::String>
119 template <
typename RestoreT = Aws::String>
121 m_restoreHasBeenSet =
true;
122 m_restore = std::forward<RestoreT>(value);
124 template <
typename RestoreT = Aws::String>
138 m_archiveStatusHasBeenSet =
true;
139 m_archiveStatus = value;
152 template <
typename LastModifiedT = Aws::Utils::DateTime>
154 m_lastModifiedHasBeenSet =
true;
155 m_lastModified = std::forward<LastModifiedT>(value);
157 template <
typename LastModifiedT = Aws::Utils::DateTime>
170 m_contentLengthHasBeenSet =
true;
171 m_contentLength = value;
191 template <
typename ChecksumCRC32T = Aws::String>
193 m_checksumCRC32HasBeenSet =
true;
194 m_checksumCRC32 = std::forward<ChecksumCRC32T>(value);
196 template <
typename ChecksumCRC32T = Aws::String>
215 template <
typename ChecksumCRC32CT = Aws::String>
217 m_checksumCRC32CHasBeenSet =
true;
218 m_checksumCRC32C = std::forward<ChecksumCRC32CT>(value);
220 template <
typename ChecksumCRC32CT = Aws::String>
235 template <
typename ChecksumCRC64NVMET = Aws::String>
237 m_checksumCRC64NVMEHasBeenSet =
true;
238 m_checksumCRC64NVME = std::forward<ChecksumCRC64NVMET>(value);
240 template <
typename ChecksumCRC64NVMET = Aws::String>
259 template <
typename ChecksumSHA1T = Aws::String>
261 m_checksumSHA1HasBeenSet =
true;
262 m_checksumSHA1 = std::forward<ChecksumSHA1T>(value);
264 template <
typename ChecksumSHA1T = Aws::String>
283 template <
typename ChecksumSHA256T = Aws::String>
285 m_checksumSHA256HasBeenSet =
true;
286 m_checksumSHA256 = std::forward<ChecksumSHA256T>(value);
288 template <
typename ChecksumSHA256T = Aws::String>
307 m_checksumTypeHasBeenSet =
true;
308 m_checksumType = value;
322 template <
typename ETagT = Aws::String>
324 m_eTagHasBeenSet =
true;
325 m_eTag = std::forward<ETagT>(value);
327 template <
typename ETagT = Aws::String>
329 SetETag(std::forward<ETagT>(value));
345 m_missingMetaHasBeenSet =
true;
346 m_missingMeta = value;
360 template <
typename VersionIdT = Aws::String>
362 m_versionIdHasBeenSet =
true;
363 m_versionId = std::forward<VersionIdT>(value);
365 template <
typename VersionIdT = Aws::String>
377 template <
typename CacheControlT = Aws::String>
379 m_cacheControlHasBeenSet =
true;
380 m_cacheControl = std::forward<CacheControlT>(value);
382 template <
typename CacheControlT = Aws::String>
394 template <
typename ContentDispositionT = Aws::String>
396 m_contentDispositionHasBeenSet =
true;
397 m_contentDisposition = std::forward<ContentDispositionT>(value);
399 template <
typename ContentDispositionT = Aws::String>
413 template <
typename ContentEncodingT = Aws::String>
415 m_contentEncodingHasBeenSet =
true;
416 m_contentEncoding = std::forward<ContentEncodingT>(value);
418 template <
typename ContentEncodingT = Aws::String>
430 template <
typename ContentLanguageT = Aws::String>
432 m_contentLanguageHasBeenSet =
true;
433 m_contentLanguage = std::forward<ContentLanguageT>(value);
435 template <
typename ContentLanguageT = Aws::String>
447 template <
typename ContentTypeT = Aws::String>
449 m_contentTypeHasBeenSet =
true;
450 m_contentType = std::forward<ContentTypeT>(value);
452 template <
typename ContentTypeT = Aws::String>
465 template <
typename ContentRangeT = Aws::String>
467 m_contentRangeHasBeenSet =
true;
468 m_contentRange = std::forward<ContentRangeT>(value);
470 template <
typename ContentRangeT = Aws::String>
482 template <
typename ExpiresT = Aws::Utils::DateTime>
484 m_expiresHasBeenSet =
true;
485 m_expires = std::forward<ExpiresT>(value);
487 template <
typename ExpiresT = Aws::Utils::DateTime>
502 template <
typename WebsiteRedirectLocationT = Aws::String>
504 m_websiteRedirectLocationHasBeenSet =
true;
505 m_websiteRedirectLocation = std::forward<WebsiteRedirectLocationT>(value);
507 template <
typename WebsiteRedirectLocationT = Aws::String>
523 m_serverSideEncryptionHasBeenSet =
true;
524 m_serverSideEncryption = value;
537 template <
typename MetadataT = Aws::Map<Aws::String, Aws::String>>
539 m_metadataHasBeenSet =
true;
540 m_metadata = std::forward<MetadataT>(value);
542 template <
typename MetadataT = Aws::Map<Aws::String, Aws::String>>
547 template <
typename MetadataKeyT = Aws::String,
typename MetadataValueT = Aws::String>
549 m_metadataHasBeenSet =
true;
550 m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value));
563 template <
typename SSECustomerAlgorithmT = Aws::String>
565 m_sSECustomerAlgorithmHasBeenSet =
true;
566 m_sSECustomerAlgorithm = std::forward<SSECustomerAlgorithmT>(value);
568 template <
typename SSECustomerAlgorithmT = Aws::String>
583 template <
typename SSECustomerKeyMD5T = Aws::String>
585 m_sSECustomerKeyMD5HasBeenSet =
true;
586 m_sSECustomerKeyMD5 = std::forward<SSECustomerKeyMD5T>(value);
588 template <
typename SSECustomerKeyMD5T = Aws::String>
601 template <
typename SSEKMSKeyIdT = Aws::String>
603 m_sSEKMSKeyIdHasBeenSet =
true;
604 m_sSEKMSKeyId = std::forward<SSEKMSKeyIdT>(value);
606 template <
typename SSEKMSKeyIdT = Aws::String>
620 m_bucketKeyEnabledHasBeenSet =
true;
621 m_bucketKeyEnabled = value;
642 m_storageClassHasBeenSet =
true;
643 m_storageClass = value;
655 m_requestChargedHasBeenSet =
true;
656 m_requestCharged = value;
699 m_replicationStatusHasBeenSet =
true;
700 m_replicationStatus = value;
716 m_partsCountHasBeenSet =
true;
717 m_partsCount = value;
735 m_tagCountHasBeenSet =
true;
755 m_objectLockModeHasBeenSet =
true;
756 m_objectLockMode = value;
772 template <
typename ObjectLockRetainUntilDateT = Aws::Utils::DateTime>
774 m_objectLockRetainUntilDateHasBeenSet =
true;
775 m_objectLockRetainUntilDate = std::forward<ObjectLockRetainUntilDateT>(value);
777 template <
typename ObjectLockRetainUntilDateT = Aws::Utils::DateTime>
797 m_objectLockLegalHoldStatusHasBeenSet =
true;
798 m_objectLockLegalHoldStatus = value;
811 template <
typename ExpiresStringT = Aws::String>
813 m_expiresStringHasBeenSet =
true;
814 m_expiresString = std::forward<ExpiresStringT>(value);
816 template <
typename ExpiresStringT = Aws::String>
826 template <
typename RequestIdT = Aws::String>
828 m_requestIdHasBeenSet =
true;
829 m_requestId = std::forward<RequestIdT>(value);
831 template <
typename RequestIdT = Aws::String>
838 bool m_deleteMarker{
false};
850 long long m_contentLength{0};
866 int m_missingMeta{0};
896 bool m_bucketKeyEnabled{
false};
917 bool m_deleteMarkerHasBeenSet =
false;
918 bool m_acceptRangesHasBeenSet =
false;
919 bool m_expirationHasBeenSet =
false;
920 bool m_restoreHasBeenSet =
false;
921 bool m_archiveStatusHasBeenSet =
false;
922 bool m_lastModifiedHasBeenSet =
false;
923 bool m_contentLengthHasBeenSet =
false;
924 bool m_checksumCRC32HasBeenSet =
false;
925 bool m_checksumCRC32CHasBeenSet =
false;
926 bool m_checksumCRC64NVMEHasBeenSet =
false;
927 bool m_checksumSHA1HasBeenSet =
false;
928 bool m_checksumSHA256HasBeenSet =
false;
929 bool m_checksumTypeHasBeenSet =
false;
930 bool m_eTagHasBeenSet =
false;
931 bool m_missingMetaHasBeenSet =
false;
932 bool m_versionIdHasBeenSet =
false;
933 bool m_cacheControlHasBeenSet =
false;
934 bool m_contentDispositionHasBeenSet =
false;
935 bool m_contentEncodingHasBeenSet =
false;
936 bool m_contentLanguageHasBeenSet =
false;
937 bool m_contentTypeHasBeenSet =
false;
938 bool m_contentRangeHasBeenSet =
false;
939 bool m_expiresHasBeenSet =
false;
940 bool m_websiteRedirectLocationHasBeenSet =
false;
941 bool m_serverSideEncryptionHasBeenSet =
false;
942 bool m_metadataHasBeenSet =
false;
943 bool m_sSECustomerAlgorithmHasBeenSet =
false;
944 bool m_sSECustomerKeyMD5HasBeenSet =
false;
945 bool m_sSEKMSKeyIdHasBeenSet =
false;
946 bool m_bucketKeyEnabledHasBeenSet =
false;
947 bool m_storageClassHasBeenSet =
false;
948 bool m_requestChargedHasBeenSet =
false;
949 bool m_replicationStatusHasBeenSet =
false;
950 bool m_partsCountHasBeenSet =
false;
951 bool m_tagCountHasBeenSet =
false;
952 bool m_objectLockModeHasBeenSet =
false;
953 bool m_objectLockRetainUntilDateHasBeenSet =
false;
954 bool m_objectLockLegalHoldStatusHasBeenSet =
false;
955 bool m_expiresStringHasBeenSet =
false;
956 bool m_requestIdHasBeenSet =
false;
void SetChecksumCRC32C(ChecksumCRC32CT &&value)
HeadObjectResult & WithWebsiteRedirectLocation(WebsiteRedirectLocationT &&value)
void SetContentType(ContentTypeT &&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)
void SetExpiresString(ExpiresStringT &&value)
int GetMissingMeta() const
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)
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)
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 & GetContentEncoding() const
void SetStorageClass(StorageClass value)
void SetChecksumSHA1(ChecksumSHA1T &&value)
HeadObjectResult & WithETag(ETagT &&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)
ServerSideEncryption GetServerSideEncryption() const
StorageClass GetStorageClass() const
void SetMissingMeta(int value)
void SetExpires(ExpiresT &&value)
HeadObjectResult & WithObjectLockRetainUntilDate(ObjectLockRetainUntilDateT &&value)
void SetChecksumCRC64NVME(ChecksumCRC64NVMET &&value)
AWS_S3_API HeadObjectResult()=default
HeadObjectResult & WithChecksumCRC32C(ChecksumCRC32CT &&value)
ChecksumType GetChecksumType() const
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 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)
const Aws::Utils::DateTime & GetObjectLockRetainUntilDate() 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 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)
const Aws::String & GetChecksumSHA1() const
ObjectLockMode GetObjectLockMode() const
HeadObjectResult & WithExpires(ExpiresT &&value)
HeadObjectResult & WithRequestCharged(RequestCharged value)
void SetSSECustomerKeyMD5(SSECustomerKeyMD5T &&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)
bool GetDeleteMarker() const
AWS_S3_API HeadObjectResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetChecksumSHA256(ChecksumSHA256T &&value)
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