7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/s3/model/ArchiveStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/s3/model/ChecksumType.h>
12#include <aws/s3/model/ServerSideEncryption.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/s3/model/StorageClass.h>
15#include <aws/s3/model/RequestCharged.h>
16#include <aws/s3/model/ReplicationStatus.h>
17#include <aws/s3/model/ObjectLockMode.h>
18#include <aws/s3/model/ObjectLockLegalHoldStatus.h>
23template<
typename RESULT_TYPE>
24class AmazonWebServiceResult;
52 inline void SetDeleteMarker(
bool value) { m_deleteMarkerHasBeenSet =
true; m_deleteMarker = value; }
61 template<
typename AcceptRangesT = Aws::String>
62 void SetAcceptRanges(AcceptRangesT&& value) { m_acceptRangesHasBeenSet =
true; m_acceptRanges = std::forward<AcceptRangesT>(value); }
63 template<
typename AcceptRangesT = Aws::String>
80 template<
typename ExpirationT = Aws::String>
81 void SetExpiration(ExpirationT&& value) { m_expirationHasBeenSet =
true; m_expiration = std::forward<ExpirationT>(value); }
82 template<
typename ExpirationT = Aws::String>
107 template<
typename RestoreT = Aws::String>
108 void SetRestore(RestoreT&& value) { m_restoreHasBeenSet =
true; m_restore = std::forward<RestoreT>(value); }
109 template<
typename RestoreT = Aws::String>
128 template<
typename LastModifiedT = Aws::Utils::DateTime>
129 void SetLastModified(LastModifiedT&& value) { m_lastModifiedHasBeenSet =
true; m_lastModified = std::forward<LastModifiedT>(value); }
130 template<
typename LastModifiedT = Aws::Utils::DateTime>
139 inline void SetContentLength(
long long value) { m_contentLengthHasBeenSet =
true; m_contentLength = value; }
155 template<
typename ChecksumCRC32T = Aws::String>
156 void SetChecksumCRC32(ChecksumCRC32T&& value) { m_checksumCRC32HasBeenSet =
true; m_checksumCRC32 = std::forward<ChecksumCRC32T>(value); }
157 template<
typename ChecksumCRC32T = Aws::String>
173 template<
typename ChecksumCRC32CT = Aws::String>
174 void SetChecksumCRC32C(ChecksumCRC32CT&& value) { m_checksumCRC32CHasBeenSet =
true; m_checksumCRC32C = std::forward<ChecksumCRC32CT>(value); }
175 template<
typename ChecksumCRC32CT = Aws::String>
187 template<
typename ChecksumCRC64NVMET = Aws::String>
188 void SetChecksumCRC64NVME(ChecksumCRC64NVMET&& value) { m_checksumCRC64NVMEHasBeenSet =
true; m_checksumCRC64NVME = std::forward<ChecksumCRC64NVMET>(value); }
189 template<
typename ChecksumCRC64NVMET = Aws::String>
205 template<
typename ChecksumSHA1T = Aws::String>
206 void SetChecksumSHA1(ChecksumSHA1T&& value) { m_checksumSHA1HasBeenSet =
true; m_checksumSHA1 = std::forward<ChecksumSHA1T>(value); }
207 template<
typename ChecksumSHA1T = Aws::String>
223 template<
typename ChecksumSHA256T = Aws::String>
224 void SetChecksumSHA256(ChecksumSHA256T&& value) { m_checksumSHA256HasBeenSet =
true; m_checksumSHA256 = std::forward<ChecksumSHA256T>(value); }
225 template<
typename ChecksumSHA256T = Aws::String>
250 template<
typename ETagT = Aws::String>
251 void SetETag(ETagT&& value) { m_eTagHasBeenSet =
true; m_eTag = std::forward<ETagT>(value); }
252 template<
typename ETagT = Aws::String>
266 inline void SetMissingMeta(
int value) { m_missingMetaHasBeenSet =
true; m_missingMeta = value; }
276 template<
typename VersionIdT = Aws::String>
277 void SetVersionId(VersionIdT&& value) { m_versionIdHasBeenSet =
true; m_versionId = std::forward<VersionIdT>(value); }
278 template<
typename VersionIdT = Aws::String>
287 template<
typename CacheControlT = Aws::String>
288 void SetCacheControl(CacheControlT&& value) { m_cacheControlHasBeenSet =
true; m_cacheControl = std::forward<CacheControlT>(value); }
289 template<
typename CacheControlT = Aws::String>
298 template<
typename ContentDispositionT = Aws::String>
299 void SetContentDisposition(ContentDispositionT&& value) { m_contentDispositionHasBeenSet =
true; m_contentDisposition = std::forward<ContentDispositionT>(value); }
300 template<
typename ContentDispositionT = Aws::String>
311 template<
typename ContentEncodingT = Aws::String>
312 void SetContentEncoding(ContentEncodingT&& value) { m_contentEncodingHasBeenSet =
true; m_contentEncoding = std::forward<ContentEncodingT>(value); }
313 template<
typename ContentEncodingT = Aws::String>
322 template<
typename ContentLanguageT = Aws::String>
323 void SetContentLanguage(ContentLanguageT&& value) { m_contentLanguageHasBeenSet =
true; m_contentLanguage = std::forward<ContentLanguageT>(value); }
324 template<
typename ContentLanguageT = Aws::String>
333 template<
typename ContentTypeT = Aws::String>
334 void SetContentType(ContentTypeT&& value) { m_contentTypeHasBeenSet =
true; m_contentType = std::forward<ContentTypeT>(value); }
335 template<
typename ContentTypeT = Aws::String>
345 template<
typename ContentRangeT = Aws::String>
346 void SetContentRange(ContentRangeT&& value) { m_contentRangeHasBeenSet =
true; m_contentRange = std::forward<ContentRangeT>(value); }
347 template<
typename ContentRangeT = Aws::String>
356 template<
typename ExpiresT = Aws::Utils::DateTime>
357 void SetExpires(ExpiresT&& value) { m_expiresHasBeenSet =
true; m_expires = std::forward<ExpiresT>(value); }
358 template<
typename ExpiresT = Aws::Utils::DateTime>
370 template<
typename WebsiteRedirectLocationT = Aws::String>
371 void SetWebsiteRedirectLocation(WebsiteRedirectLocationT&& value) { m_websiteRedirectLocationHasBeenSet =
true; m_websiteRedirectLocation = std::forward<WebsiteRedirectLocationT>(value); }
372 template<
typename WebsiteRedirectLocationT = Aws::String>
393 template<
typename MetadataT = Aws::Map<Aws::String, Aws::String>>
394 void SetMetadata(MetadataT&& value) { m_metadataHasBeenSet =
true; m_metadata = std::forward<MetadataT>(value); }
395 template<
typename MetadataT = Aws::Map<Aws::String, Aws::String>>
397 template<
typename MetadataKeyT = Aws::String,
typename MetadataValueT = Aws::String>
399 m_metadataHasBeenSet =
true; m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value));
return *
this;
411 template<
typename SSECustomerAlgorithmT = Aws::String>
412 void SetSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) { m_sSECustomerAlgorithmHasBeenSet =
true; m_sSECustomerAlgorithm = std::forward<SSECustomerAlgorithmT>(value); }
413 template<
typename SSECustomerAlgorithmT = Aws::String>
425 template<
typename SSECustomerKeyMD5T = Aws::String>
426 void SetSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) { m_sSECustomerKeyMD5HasBeenSet =
true; m_sSECustomerKeyMD5 = std::forward<SSECustomerKeyMD5T>(value); }
427 template<
typename SSECustomerKeyMD5T = Aws::String>
437 template<
typename SSEKMSKeyIdT = Aws::String>
438 void SetSSEKMSKeyId(SSEKMSKeyIdT&& value) { m_sSEKMSKeyIdHasBeenSet =
true; m_sSEKMSKeyId = std::forward<SSEKMSKeyIdT>(value); }
439 template<
typename SSEKMSKeyIdT = Aws::String>
449 inline void SetBucketKeyEnabled(
bool value) { m_bucketKeyEnabledHasBeenSet =
true; m_bucketKeyEnabled = value; }
521 inline void SetPartsCount(
int value) { m_partsCountHasBeenSet =
true; m_partsCount = value; }
534 inline void SetTagCount(
int value) { m_tagCountHasBeenSet =
true; m_tagCount = value; }
560 template<
typename ObjectLockRetainUntilDateT = Aws::Utils::DateTime>
561 void SetObjectLockRetainUntilDate(ObjectLockRetainUntilDateT&& value) { m_objectLockRetainUntilDateHasBeenSet =
true; m_objectLockRetainUntilDate = std::forward<ObjectLockRetainUntilDateT>(value); }
562 template<
typename ObjectLockRetainUntilDateT = Aws::Utils::DateTime>
587 template<
typename ExpiresStringT = Aws::String>
588 void SetExpiresString(ExpiresStringT&& value) { m_expiresStringHasBeenSet =
true; m_expiresString = std::forward<ExpiresStringT>(value); }
589 template<
typename ExpiresStringT = Aws::String>
596 template<
typename RequestIdT = Aws::String>
597 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet =
true; m_requestId = std::forward<RequestIdT>(value); }
598 template<
typename RequestIdT = Aws::String>
603 bool m_deleteMarker{
false};
604 bool m_deleteMarkerHasBeenSet =
false;
607 bool m_acceptRangesHasBeenSet =
false;
610 bool m_expirationHasBeenSet =
false;
613 bool m_restoreHasBeenSet =
false;
616 bool m_archiveStatusHasBeenSet =
false;
619 bool m_lastModifiedHasBeenSet =
false;
621 long long m_contentLength{0};
622 bool m_contentLengthHasBeenSet =
false;
625 bool m_checksumCRC32HasBeenSet =
false;
628 bool m_checksumCRC32CHasBeenSet =
false;
631 bool m_checksumCRC64NVMEHasBeenSet =
false;
634 bool m_checksumSHA1HasBeenSet =
false;
637 bool m_checksumSHA256HasBeenSet =
false;
640 bool m_checksumTypeHasBeenSet =
false;
643 bool m_eTagHasBeenSet =
false;
645 int m_missingMeta{0};
646 bool m_missingMetaHasBeenSet =
false;
649 bool m_versionIdHasBeenSet =
false;
652 bool m_cacheControlHasBeenSet =
false;
655 bool m_contentDispositionHasBeenSet =
false;
658 bool m_contentEncodingHasBeenSet =
false;
661 bool m_contentLanguageHasBeenSet =
false;
664 bool m_contentTypeHasBeenSet =
false;
667 bool m_contentRangeHasBeenSet =
false;
670 bool m_expiresHasBeenSet =
false;
673 bool m_websiteRedirectLocationHasBeenSet =
false;
676 bool m_serverSideEncryptionHasBeenSet =
false;
679 bool m_metadataHasBeenSet =
false;
682 bool m_sSECustomerAlgorithmHasBeenSet =
false;
685 bool m_sSECustomerKeyMD5HasBeenSet =
false;
688 bool m_sSEKMSKeyIdHasBeenSet =
false;
690 bool m_bucketKeyEnabled{
false};
691 bool m_bucketKeyEnabledHasBeenSet =
false;
694 bool m_storageClassHasBeenSet =
false;
697 bool m_requestChargedHasBeenSet =
false;
700 bool m_replicationStatusHasBeenSet =
false;
703 bool m_partsCountHasBeenSet =
false;
706 bool m_tagCountHasBeenSet =
false;
709 bool m_objectLockModeHasBeenSet =
false;
712 bool m_objectLockRetainUntilDateHasBeenSet =
false;
715 bool m_objectLockLegalHoldStatusHasBeenSet =
false;
718 bool m_expiresStringHasBeenSet =
false;
721 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