7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/Array.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/stream/ResponseStream.h>
13#include <aws/s3/S3_EXPORTS.h>
14#include <aws/s3/model/ChecksumType.h>
15#include <aws/s3/model/ObjectLockEventHold.h>
16#include <aws/s3/model/ObjectLockLegalHoldStatus.h>
17#include <aws/s3/model/ObjectLockMode.h>
18#include <aws/s3/model/ReplicationStatus.h>
19#include <aws/s3/model/RequestCharged.h>
20#include <aws/s3/model/ServerSideEncryption.h>
21#include <aws/s3/model/StorageClass.h>
26template <
typename RESULT_TYPE>
27class AmazonWebServiceResult;
66 m_deleteMarkerHasBeenSet =
true;
67 m_deleteMarker = value;
80 template <
typename AcceptRangesT = Aws::String>
82 m_acceptRangesHasBeenSet =
true;
83 m_acceptRanges = std::forward<AcceptRangesT>(value);
85 template <
typename AcceptRangesT = Aws::String>
105 template <
typename ExpirationT = Aws::String>
107 m_expirationHasBeenSet =
true;
108 m_expiration = std::forward<ExpirationT>(value);
110 template <
typename ExpirationT = Aws::String>
127 template <
typename RestoreT = Aws::String>
129 m_restoreHasBeenSet =
true;
130 m_restore = std::forward<RestoreT>(value);
132 template <
typename RestoreT = Aws::String>
148 template <
typename LastModifiedT = Aws::Utils::DateTime>
150 m_lastModifiedHasBeenSet =
true;
151 m_lastModified = std::forward<LastModifiedT>(value);
153 template <
typename LastModifiedT = Aws::Utils::DateTime>
166 m_contentLengthHasBeenSet =
true;
167 m_contentLength = value;
181 template <
typename ETagT = Aws::String>
183 m_eTagHasBeenSet =
true;
184 m_eTag = std::forward<ETagT>(value);
186 template <
typename ETagT = Aws::String>
188 SetETag(std::forward<ETagT>(value));
202 template <
typename ChecksumCRC32T = Aws::String>
204 m_checksumCRC32HasBeenSet =
true;
205 m_checksumCRC32 = std::forward<ChecksumCRC32T>(value);
207 template <
typename ChecksumCRC32T = Aws::String>
223 template <
typename ChecksumCRC32CT = Aws::String>
225 m_checksumCRC32CHasBeenSet =
true;
226 m_checksumCRC32C = std::forward<ChecksumCRC32CT>(value);
228 template <
typename ChecksumCRC32CT = Aws::String>
243 template <
typename ChecksumCRC64NVMET = Aws::String>
245 m_checksumCRC64NVMEHasBeenSet =
true;
246 m_checksumCRC64NVME = std::forward<ChecksumCRC64NVMET>(value);
248 template <
typename ChecksumCRC64NVMET = Aws::String>
264 template <
typename ChecksumSHA1T = Aws::String>
266 m_checksumSHA1HasBeenSet =
true;
267 m_checksumSHA1 = std::forward<ChecksumSHA1T>(value);
269 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;
429 m_missingMetaHasBeenSet =
true;
430 m_missingMeta = value;
444 template <
typename VersionIdT = Aws::String>
446 m_versionIdHasBeenSet =
true;
447 m_versionId = std::forward<VersionIdT>(value);
449 template <
typename VersionIdT = Aws::String>
461 template <
typename CacheControlT = Aws::String>
463 m_cacheControlHasBeenSet =
true;
464 m_cacheControl = std::forward<CacheControlT>(value);
466 template <
typename CacheControlT = Aws::String>
478 template <
typename ContentDispositionT = Aws::String>
480 m_contentDispositionHasBeenSet =
true;
481 m_contentDisposition = std::forward<ContentDispositionT>(value);
483 template <
typename ContentDispositionT = Aws::String>
497 template <
typename ContentEncodingT = Aws::String>
499 m_contentEncodingHasBeenSet =
true;
500 m_contentEncoding = std::forward<ContentEncodingT>(value);
502 template <
typename ContentEncodingT = Aws::String>
514 template <
typename ContentLanguageT = Aws::String>
516 m_contentLanguageHasBeenSet =
true;
517 m_contentLanguage = std::forward<ContentLanguageT>(value);
519 template <
typename ContentLanguageT = Aws::String>
531 template <
typename ContentRangeT = Aws::String>
533 m_contentRangeHasBeenSet =
true;
534 m_contentRange = std::forward<ContentRangeT>(value);
536 template <
typename ContentRangeT = Aws::String>
548 template <
typename ContentTypeT = Aws::String>
550 m_contentTypeHasBeenSet =
true;
551 m_contentType = std::forward<ContentTypeT>(value);
553 template <
typename ContentTypeT = Aws::String>
566 template <
typename ExpiresT = Aws::Utils::DateTime>
568 m_expiresHasBeenSet =
true;
569 m_expires = std::forward<ExpiresT>(value);
571 template <
typename ExpiresT = Aws::Utils::DateTime>
586 template <
typename WebsiteRedirectLocationT = Aws::String>
588 m_websiteRedirectLocationHasBeenSet =
true;
589 m_websiteRedirectLocation = std::forward<WebsiteRedirectLocationT>(value);
591 template <
typename WebsiteRedirectLocationT = Aws::String>
607 m_serverSideEncryptionHasBeenSet =
true;
608 m_serverSideEncryption = value;
621 template <
typename MetadataT = Aws::Map<Aws::String, Aws::String>>
623 m_metadataHasBeenSet =
true;
624 m_metadata = std::forward<MetadataT>(value);
626 template <
typename MetadataT = Aws::Map<Aws::String, Aws::String>>
631 template <
typename MetadataKeyT = Aws::String,
typename MetadataValueT = Aws::String>
633 m_metadataHasBeenSet =
true;
634 m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value));
647 template <
typename SSECustomerAlgorithmT = Aws::String>
649 m_sSECustomerAlgorithmHasBeenSet =
true;
650 m_sSECustomerAlgorithm = std::forward<SSECustomerAlgorithmT>(value);
652 template <
typename SSECustomerAlgorithmT = Aws::String>
667 template <
typename SSECustomerKeyMD5T = Aws::String>
669 m_sSECustomerKeyMD5HasBeenSet =
true;
670 m_sSECustomerKeyMD5 = std::forward<SSECustomerKeyMD5T>(value);
672 template <
typename SSECustomerKeyMD5T = Aws::String>
685 template <
typename SSEKMSKeyIdT = Aws::String>
687 m_sSEKMSKeyIdHasBeenSet =
true;
688 m_sSEKMSKeyId = std::forward<SSEKMSKeyIdT>(value);
690 template <
typename SSEKMSKeyIdT = Aws::String>
704 m_bucketKeyEnabledHasBeenSet =
true;
705 m_bucketKeyEnabled = value;
724 m_storageClassHasBeenSet =
true;
725 m_storageClass = value;
737 m_requestChargedHasBeenSet =
true;
738 m_requestCharged = value;
754 m_replicationStatusHasBeenSet =
true;
755 m_replicationStatus = value;
771 m_partsCountHasBeenSet =
true;
772 m_partsCount = value;
790 m_tagCountHasBeenSet =
true;
806 m_objectLockModeHasBeenSet =
true;
807 m_objectLockMode = value;
821 template <
typename ObjectLockRetainUntilDateT = Aws::Utils::DateTime>
823 m_objectLockRetainUntilDateHasBeenSet =
true;
824 m_objectLockRetainUntilDate = std::forward<ObjectLockRetainUntilDateT>(value);
826 template <
typename ObjectLockRetainUntilDateT = Aws::Utils::DateTime>
841 m_objectLockLegalHoldStatusHasBeenSet =
true;
842 m_objectLockLegalHoldStatus = value;
858 m_objectLockEventHoldHasBeenSet =
true;
859 m_objectLockEventHold = value;
875 m_objectLockEventHoldDurationDaysHasBeenSet =
true;
876 m_objectLockEventHoldDurationDays = value;
892 m_objectLockEventHoldDurationYearsHasBeenSet =
true;
893 m_objectLockEventHoldDurationYears = value;
904 template <
typename Id2T = Aws::String>
906 m_id2HasBeenSet =
true;
907 m_id2 = std::forward<Id2T>(value);
909 template <
typename Id2T = Aws::String>
911 SetId2(std::forward<Id2T>(value));
919 template <
typename RequestIdT = Aws::String>
921 m_requestIdHasBeenSet =
true;
922 m_requestId = std::forward<RequestIdT>(value);
924 template <
typename RequestIdT = Aws::String>
936 template <
typename ExpiresStringT = Aws::String>
938 m_expiresStringHasBeenSet =
true;
939 m_expiresString = std::forward<ExpiresStringT>(value);
941 template <
typename ExpiresStringT = Aws::String>
952 bool m_deleteMarker{
false};
962 long long m_contentLength{0};
988 int m_missingMeta{0};
1018 bool m_bucketKeyEnabled{
false};
1026 int m_partsCount{0};
1038 int m_objectLockEventHoldDurationDays{0};
1040 int m_objectLockEventHoldDurationYears{0};
1048 bool m_bodyHasBeenSet =
false;
1049 bool m_deleteMarkerHasBeenSet =
false;
1050 bool m_acceptRangesHasBeenSet =
false;
1051 bool m_expirationHasBeenSet =
false;
1052 bool m_restoreHasBeenSet =
false;
1053 bool m_lastModifiedHasBeenSet =
false;
1054 bool m_contentLengthHasBeenSet =
false;
1055 bool m_eTagHasBeenSet =
false;
1056 bool m_checksumCRC32HasBeenSet =
false;
1057 bool m_checksumCRC32CHasBeenSet =
false;
1058 bool m_checksumCRC64NVMEHasBeenSet =
false;
1059 bool m_checksumSHA1HasBeenSet =
false;
1060 bool m_checksumSHA256HasBeenSet =
false;
1061 bool m_checksumSHA512HasBeenSet =
false;
1062 bool m_checksumMD5HasBeenSet =
false;
1063 bool m_checksumXXHASH64HasBeenSet =
false;
1064 bool m_checksumXXHASH3HasBeenSet =
false;
1065 bool m_checksumXXHASH128HasBeenSet =
false;
1066 bool m_checksumTypeHasBeenSet =
false;
1067 bool m_missingMetaHasBeenSet =
false;
1068 bool m_versionIdHasBeenSet =
false;
1069 bool m_cacheControlHasBeenSet =
false;
1070 bool m_contentDispositionHasBeenSet =
false;
1071 bool m_contentEncodingHasBeenSet =
false;
1072 bool m_contentLanguageHasBeenSet =
false;
1073 bool m_contentRangeHasBeenSet =
false;
1074 bool m_contentTypeHasBeenSet =
false;
1075 bool m_expiresHasBeenSet =
false;
1076 bool m_websiteRedirectLocationHasBeenSet =
false;
1077 bool m_serverSideEncryptionHasBeenSet =
false;
1078 bool m_metadataHasBeenSet =
false;
1079 bool m_sSECustomerAlgorithmHasBeenSet =
false;
1080 bool m_sSECustomerKeyMD5HasBeenSet =
false;
1081 bool m_sSEKMSKeyIdHasBeenSet =
false;
1082 bool m_bucketKeyEnabledHasBeenSet =
false;
1083 bool m_storageClassHasBeenSet =
false;
1084 bool m_requestChargedHasBeenSet =
false;
1085 bool m_replicationStatusHasBeenSet =
false;
1086 bool m_partsCountHasBeenSet =
false;
1087 bool m_tagCountHasBeenSet =
false;
1088 bool m_objectLockModeHasBeenSet =
false;
1089 bool m_objectLockRetainUntilDateHasBeenSet =
false;
1090 bool m_objectLockLegalHoldStatusHasBeenSet =
false;
1091 bool m_objectLockEventHoldHasBeenSet =
false;
1092 bool m_objectLockEventHoldDurationDaysHasBeenSet =
false;
1093 bool m_objectLockEventHoldDurationYearsHasBeenSet =
false;
1094 bool m_id2HasBeenSet =
false;
1095 bool m_requestIdHasBeenSet =
false;
1096 bool m_expiresStringHasBeenSet =
false;
void SetAcceptRanges(AcceptRangesT &&value)
void SetContentType(ContentTypeT &&value)
ChecksumType GetChecksumType() const
void SetExpires(ExpiresT &&value)
GetObjectResult & WithPartsCount(int value)
void SetObjectLockEventHold(ObjectLockEventHold value)
GetObjectResult & WithId2(Id2T &&value)
void SetRestore(RestoreT &&value)
Aws::IOStream & GetBody() const
void SetReplicationStatus(ReplicationStatus value)
void SetChecksumType(ChecksumType value)
GetObjectResult & WithChecksumMD5(ChecksumMD5T &&value)
const Aws::String & GetChecksumXXHASH128() const
GetObjectResult & AddMetadata(MetadataKeyT &&key, MetadataValueT &&value)
void SetBucketKeyEnabled(bool value)
void SetPartsCount(int value)
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
const Aws::String & GetContentDisposition() const
bool GetBucketKeyEnabled() const
GetObjectResult & WithContentDisposition(ContentDispositionT &&value)
AWS_S3_API GetObjectResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
GetObjectResult & WithETag(ETagT &&value)
GetObjectResult & WithContentLanguage(ContentLanguageT &&value)
GetObjectResult & WithMetadata(MetadataT &&value)
const Aws::String & GetContentType() const
GetObjectResult & WithCacheControl(CacheControlT &&value)
void SetTagCount(int value)
GetObjectResult & WithStorageClass(StorageClass value)
void SetDeleteMarker(bool value)
const Aws::String & GetSSEKMSKeyId() const
const Aws::String & GetExpiration() const
GetObjectResult & WithChecksumCRC32C(ChecksumCRC32CT &&value)
GetObjectResult & WithChecksumCRC32(ChecksumCRC32T &&value)
const Aws::String & GetVersionId() const
long long GetContentLength() const
void SetSSECustomerKeyMD5(SSECustomerKeyMD5T &&value)
const Aws::String & GetContentLanguage() const
GetObjectResult & WithObjectLockMode(ObjectLockMode value)
void SetVersionId(VersionIdT &&value)
StorageClass GetStorageClass() const
GetObjectResult & WithChecksumSHA512(ChecksumSHA512T &&value)
int GetObjectLockEventHoldDurationDays() const
const Aws::String & GetCacheControl() const
const Aws::String & GetAcceptRanges() const
const Aws::String & GetChecksumSHA256() const
const Aws::String & GetContentRange() const
void SetChecksumCRC32(ChecksumCRC32T &&value)
GetObjectResult & WithChecksumXXHASH3(ChecksumXXHASH3T &&value)
const Aws::String & GetContentEncoding() const
void SetChecksumXXHASH64(ChecksumXXHASH64T &&value)
RequestCharged GetRequestCharged() const
void SetChecksumMD5(ChecksumMD5T &&value)
const Aws::String & GetChecksumCRC32C() const
void SetChecksumXXHASH3(ChecksumXXHASH3T &&value)
void SetETag(ETagT &&value)
GetObjectResult & WithRequestId(RequestIdT &&value)
GetObjectResult & WithChecksumXXHASH64(ChecksumXXHASH64T &&value)
AWS_S3_API GetObjectResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
GetObjectResult & WithMissingMeta(int value)
bool GetDeleteMarker() const
void SetContentRange(ContentRangeT &&value)
void SetChecksumXXHASH128(ChecksumXXHASH128T &&value)
GetObjectResult & WithObjectLockEventHoldDurationYears(int value)
GetObjectResult & WithChecksumType(ChecksumType value)
void SetChecksumSHA512(ChecksumSHA512T &&value)
ObjectLockLegalHoldStatus GetObjectLockLegalHoldStatus() const
const Aws::String & GetSSECustomerKeyMD5() const
const Aws::String & GetRequestId() const
GetObjectResult & operator=(const GetObjectResult &)=delete
GetObjectResult & WithDeleteMarker(bool value)
ObjectLockEventHold GetObjectLockEventHold() const
void SetObjectLockEventHoldDurationDays(int value)
GetObjectResult & WithRestore(RestoreT &&value)
const Aws::String & GetChecksumMD5() const
void SetChecksumCRC32C(ChecksumCRC32CT &&value)
int GetMissingMeta() const
int GetPartsCount() const
void SetContentLanguage(ContentLanguageT &&value)
GetObjectResult & WithContentRange(ContentRangeT &&value)
GetObjectResult & WithBucketKeyEnabled(bool value)
ReplicationStatus GetReplicationStatus() const
void SetExpiresString(ExpiresStringT &&value)
void SetMetadata(MetadataT &&value)
void SetId2(Id2T &&value)
const Aws::String & GetChecksumSHA512() const
GetObjectResult & WithChecksumXXHASH128(ChecksumXXHASH128T &&value)
GetObjectResult & WithChecksumSHA256(ChecksumSHA256T &&value)
GetObjectResult & WithObjectLockEventHold(ObjectLockEventHold value)
const Aws::String & GetChecksumXXHASH64() const
void SetContentLength(long long value)
GetObjectResult & WithLastModified(LastModifiedT &&value)
const Aws::String & GetChecksumXXHASH3() const
void SetSSECustomerAlgorithm(SSECustomerAlgorithmT &&value)
const Aws::String & GetSSECustomerAlgorithm() const
void SetChecksumSHA256(ChecksumSHA256T &&value)
void SetObjectLockEventHoldDurationYears(int value)
ServerSideEncryption GetServerSideEncryption() const
void SetChecksumCRC64NVME(ChecksumCRC64NVMET &&value)
const Aws::Utils::DateTime & GetExpires() const
GetObjectResult & WithExpires(ExpiresT &&value)
GetObjectResult & WithObjectLockLegalHoldStatus(ObjectLockLegalHoldStatus value)
const Aws::String & GetChecksumCRC32() const
void SetObjectLockRetainUntilDate(ObjectLockRetainUntilDateT &&value)
GetObjectResult & WithContentLength(long long value)
GetObjectResult & WithTagCount(int value)
GetObjectResult & WithObjectLockRetainUntilDate(ObjectLockRetainUntilDateT &&value)
void SetObjectLockLegalHoldStatus(ObjectLockLegalHoldStatus value)
const Aws::String & GetETag() const
GetObjectResult & WithChecksumSHA1(ChecksumSHA1T &&value)
void SetContentDisposition(ContentDispositionT &&value)
void SetServerSideEncryption(ServerSideEncryption value)
int GetObjectLockEventHoldDurationYears() const
const Aws::String & GetId2() const
const Aws::String & GetChecksumCRC64NVME() const
void SetWebsiteRedirectLocation(WebsiteRedirectLocationT &&value)
void SetChecksumSHA1(ChecksumSHA1T &&value)
void SetMissingMeta(int value)
void SetContentEncoding(ContentEncodingT &&value)
void SetRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetObjectLockRetainUntilDate() const
GetObjectResult & WithSSECustomerKeyMD5(SSECustomerKeyMD5T &&value)
ObjectLockMode GetObjectLockMode() const
const Aws::Utils::DateTime & GetLastModified() const
void SetCacheControl(CacheControlT &&value)
void SetObjectLockMode(ObjectLockMode value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetObjectResult & WithWebsiteRedirectLocation(WebsiteRedirectLocationT &&value)
GetObjectResult & WithServerSideEncryption(ServerSideEncryption value)
void SetSSEKMSKeyId(SSEKMSKeyIdT &&value)
void SetStorageClass(StorageClass value)
GetObjectResult & WithVersionId(VersionIdT &&value)
const Aws::String & GetChecksumSHA1() const
GetObjectResult & WithRequestCharged(RequestCharged value)
const Aws::String & GetExpiresString() const
GetObjectResult & WithSSECustomerAlgorithm(SSECustomerAlgorithmT &&value)
void SetExpiration(ExpirationT &&value)
GetObjectResult & WithContentEncoding(ContentEncodingT &&value)
void SetRequestCharged(RequestCharged value)
const Aws::String & GetRestore() const
GetObjectResult & WithExpiresString(ExpiresStringT &&value)
AWS_S3_API GetObjectResult()=default
GetObjectResult(const GetObjectResult &)=delete
AWS_S3_API GetObjectResult & operator=(GetObjectResult &&)=default
GetObjectResult & WithAcceptRanges(AcceptRangesT &&value)
GetObjectResult & WithSSEKMSKeyId(SSEKMSKeyIdT &&value)
void ReplaceBody(Aws::IOStream *body)
AWS_S3_API GetObjectResult(GetObjectResult &&)=default
GetObjectResult & WithChecksumCRC64NVME(ChecksumCRC64NVMET &&value)
const Aws::String & GetWebsiteRedirectLocation() const
GetObjectResult & WithExpiration(ExpirationT &&value)
void SetLastModified(LastModifiedT &&value)
GetObjectResult & WithContentType(ContentTypeT &&value)
GetObjectResult & WithObjectLockEventHoldDurationDays(int value)
GetObjectResult & WithReplicationStatus(ReplicationStatus value)
Aws::IOStream & GetUnderlyingStream() const
ObjectLockLegalHoldStatus
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_iostream< char, std::char_traits< char > > IOStream
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String