7#include <aws/core/utils/Array.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/core/utils/stream/ResponseStream.h>
12#include <aws/s3/S3_EXPORTS.h>
13#include <aws/s3/model/ChecksumType.h>
14#include <aws/s3/model/ObjectLockLegalHoldStatus.h>
15#include <aws/s3/model/ObjectLockMode.h>
16#include <aws/s3/model/ReplicationStatus.h>
17#include <aws/s3/model/RequestCharged.h>
18#include <aws/s3/model/ServerSideEncryption.h>
19#include <aws/s3/model/StorageClass.h>
24template <
typename RESULT_TYPE>
25class AmazonWebServiceResult;
64 m_deleteMarkerHasBeenSet =
true;
65 m_deleteMarker = value;
78 template <
typename AcceptRangesT = Aws::String>
80 m_acceptRangesHasBeenSet =
true;
81 m_acceptRanges = std::forward<AcceptRangesT>(value);
83 template <
typename AcceptRangesT = Aws::String>
103 template <
typename ExpirationT = Aws::String>
105 m_expirationHasBeenSet =
true;
106 m_expiration = std::forward<ExpirationT>(value);
108 template <
typename ExpirationT = Aws::String>
125 template <
typename RestoreT = Aws::String>
127 m_restoreHasBeenSet =
true;
128 m_restore = std::forward<RestoreT>(value);
130 template <
typename RestoreT = Aws::String>
146 template <
typename LastModifiedT = Aws::Utils::DateTime>
148 m_lastModifiedHasBeenSet =
true;
149 m_lastModified = std::forward<LastModifiedT>(value);
151 template <
typename LastModifiedT = Aws::Utils::DateTime>
164 m_contentLengthHasBeenSet =
true;
165 m_contentLength = value;
179 template <
typename ETagT = Aws::String>
181 m_eTagHasBeenSet =
true;
182 m_eTag = std::forward<ETagT>(value);
184 template <
typename ETagT = Aws::String>
186 SetETag(std::forward<ETagT>(value));
200 template <
typename ChecksumCRC32T = Aws::String>
202 m_checksumCRC32HasBeenSet =
true;
203 m_checksumCRC32 = std::forward<ChecksumCRC32T>(value);
205 template <
typename ChecksumCRC32T = Aws::String>
221 template <
typename ChecksumCRC32CT = Aws::String>
223 m_checksumCRC32CHasBeenSet =
true;
224 m_checksumCRC32C = std::forward<ChecksumCRC32CT>(value);
226 template <
typename ChecksumCRC32CT = Aws::String>
241 template <
typename ChecksumCRC64NVMET = Aws::String>
243 m_checksumCRC64NVMEHasBeenSet =
true;
244 m_checksumCRC64NVME = std::forward<ChecksumCRC64NVMET>(value);
246 template <
typename ChecksumCRC64NVMET = Aws::String>
262 template <
typename ChecksumSHA1T = Aws::String>
264 m_checksumSHA1HasBeenSet =
true;
265 m_checksumSHA1 = std::forward<ChecksumSHA1T>(value);
267 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;
327 m_missingMetaHasBeenSet =
true;
328 m_missingMeta = value;
342 template <
typename VersionIdT = Aws::String>
344 m_versionIdHasBeenSet =
true;
345 m_versionId = std::forward<VersionIdT>(value);
347 template <
typename VersionIdT = Aws::String>
359 template <
typename CacheControlT = Aws::String>
361 m_cacheControlHasBeenSet =
true;
362 m_cacheControl = std::forward<CacheControlT>(value);
364 template <
typename CacheControlT = Aws::String>
376 template <
typename ContentDispositionT = Aws::String>
378 m_contentDispositionHasBeenSet =
true;
379 m_contentDisposition = std::forward<ContentDispositionT>(value);
381 template <
typename ContentDispositionT = Aws::String>
395 template <
typename ContentEncodingT = Aws::String>
397 m_contentEncodingHasBeenSet =
true;
398 m_contentEncoding = std::forward<ContentEncodingT>(value);
400 template <
typename ContentEncodingT = Aws::String>
412 template <
typename ContentLanguageT = Aws::String>
414 m_contentLanguageHasBeenSet =
true;
415 m_contentLanguage = std::forward<ContentLanguageT>(value);
417 template <
typename ContentLanguageT = Aws::String>
429 template <
typename ContentRangeT = Aws::String>
431 m_contentRangeHasBeenSet =
true;
432 m_contentRange = std::forward<ContentRangeT>(value);
434 template <
typename ContentRangeT = Aws::String>
446 template <
typename ContentTypeT = Aws::String>
448 m_contentTypeHasBeenSet =
true;
449 m_contentType = std::forward<ContentTypeT>(value);
451 template <
typename ContentTypeT = Aws::String>
464 template <
typename ExpiresT = Aws::Utils::DateTime>
466 m_expiresHasBeenSet =
true;
467 m_expires = std::forward<ExpiresT>(value);
469 template <
typename ExpiresT = Aws::Utils::DateTime>
484 template <
typename WebsiteRedirectLocationT = Aws::String>
486 m_websiteRedirectLocationHasBeenSet =
true;
487 m_websiteRedirectLocation = std::forward<WebsiteRedirectLocationT>(value);
489 template <
typename WebsiteRedirectLocationT = Aws::String>
505 m_serverSideEncryptionHasBeenSet =
true;
506 m_serverSideEncryption = value;
519 template <
typename MetadataT = Aws::Map<Aws::String, Aws::String>>
521 m_metadataHasBeenSet =
true;
522 m_metadata = std::forward<MetadataT>(value);
524 template <
typename MetadataT = Aws::Map<Aws::String, Aws::String>>
529 template <
typename MetadataKeyT = Aws::String,
typename MetadataValueT = Aws::String>
531 m_metadataHasBeenSet =
true;
532 m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value));
545 template <
typename SSECustomerAlgorithmT = Aws::String>
547 m_sSECustomerAlgorithmHasBeenSet =
true;
548 m_sSECustomerAlgorithm = std::forward<SSECustomerAlgorithmT>(value);
550 template <
typename SSECustomerAlgorithmT = Aws::String>
565 template <
typename SSECustomerKeyMD5T = Aws::String>
567 m_sSECustomerKeyMD5HasBeenSet =
true;
568 m_sSECustomerKeyMD5 = std::forward<SSECustomerKeyMD5T>(value);
570 template <
typename SSECustomerKeyMD5T = Aws::String>
583 template <
typename SSEKMSKeyIdT = Aws::String>
585 m_sSEKMSKeyIdHasBeenSet =
true;
586 m_sSEKMSKeyId = std::forward<SSEKMSKeyIdT>(value);
588 template <
typename SSEKMSKeyIdT = Aws::String>
602 m_bucketKeyEnabledHasBeenSet =
true;
603 m_bucketKeyEnabled = value;
622 m_storageClassHasBeenSet =
true;
623 m_storageClass = value;
635 m_requestChargedHasBeenSet =
true;
636 m_requestCharged = value;
652 m_replicationStatusHasBeenSet =
true;
653 m_replicationStatus = value;
669 m_partsCountHasBeenSet =
true;
670 m_partsCount = value;
688 m_tagCountHasBeenSet =
true;
704 m_objectLockModeHasBeenSet =
true;
705 m_objectLockMode = value;
719 template <
typename ObjectLockRetainUntilDateT = Aws::Utils::DateTime>
721 m_objectLockRetainUntilDateHasBeenSet =
true;
722 m_objectLockRetainUntilDate = std::forward<ObjectLockRetainUntilDateT>(value);
724 template <
typename ObjectLockRetainUntilDateT = Aws::Utils::DateTime>
739 m_objectLockLegalHoldStatusHasBeenSet =
true;
740 m_objectLockLegalHoldStatus = value;
751 template <
typename Id2T = Aws::String>
753 m_id2HasBeenSet =
true;
754 m_id2 = std::forward<Id2T>(value);
756 template <
typename Id2T = Aws::String>
758 SetId2(std::forward<Id2T>(value));
766 template <
typename RequestIdT = Aws::String>
768 m_requestIdHasBeenSet =
true;
769 m_requestId = std::forward<RequestIdT>(value);
771 template <
typename RequestIdT = Aws::String>
783 template <
typename ExpiresStringT = Aws::String>
785 m_expiresStringHasBeenSet =
true;
786 m_expiresString = std::forward<ExpiresStringT>(value);
788 template <
typename ExpiresStringT = Aws::String>
797 bool m_deleteMarker{
false};
807 long long m_contentLength{0};
823 int m_missingMeta{0};
853 bool m_bucketKeyEnabled{
false};
876 bool m_bodyHasBeenSet =
false;
877 bool m_deleteMarkerHasBeenSet =
false;
878 bool m_acceptRangesHasBeenSet =
false;
879 bool m_expirationHasBeenSet =
false;
880 bool m_restoreHasBeenSet =
false;
881 bool m_lastModifiedHasBeenSet =
false;
882 bool m_contentLengthHasBeenSet =
false;
883 bool m_eTagHasBeenSet =
false;
884 bool m_checksumCRC32HasBeenSet =
false;
885 bool m_checksumCRC32CHasBeenSet =
false;
886 bool m_checksumCRC64NVMEHasBeenSet =
false;
887 bool m_checksumSHA1HasBeenSet =
false;
888 bool m_checksumSHA256HasBeenSet =
false;
889 bool m_checksumTypeHasBeenSet =
false;
890 bool m_missingMetaHasBeenSet =
false;
891 bool m_versionIdHasBeenSet =
false;
892 bool m_cacheControlHasBeenSet =
false;
893 bool m_contentDispositionHasBeenSet =
false;
894 bool m_contentEncodingHasBeenSet =
false;
895 bool m_contentLanguageHasBeenSet =
false;
896 bool m_contentRangeHasBeenSet =
false;
897 bool m_contentTypeHasBeenSet =
false;
898 bool m_expiresHasBeenSet =
false;
899 bool m_websiteRedirectLocationHasBeenSet =
false;
900 bool m_serverSideEncryptionHasBeenSet =
false;
901 bool m_metadataHasBeenSet =
false;
902 bool m_sSECustomerAlgorithmHasBeenSet =
false;
903 bool m_sSECustomerKeyMD5HasBeenSet =
false;
904 bool m_sSEKMSKeyIdHasBeenSet =
false;
905 bool m_bucketKeyEnabledHasBeenSet =
false;
906 bool m_storageClassHasBeenSet =
false;
907 bool m_requestChargedHasBeenSet =
false;
908 bool m_replicationStatusHasBeenSet =
false;
909 bool m_partsCountHasBeenSet =
false;
910 bool m_tagCountHasBeenSet =
false;
911 bool m_objectLockModeHasBeenSet =
false;
912 bool m_objectLockRetainUntilDateHasBeenSet =
false;
913 bool m_objectLockLegalHoldStatusHasBeenSet =
false;
914 bool m_id2HasBeenSet =
false;
915 bool m_requestIdHasBeenSet =
false;
916 bool m_expiresStringHasBeenSet =
false;
void SetAcceptRanges(AcceptRangesT &&value)
void SetContentType(ContentTypeT &&value)
ChecksumType GetChecksumType() const
void SetExpires(ExpiresT &&value)
GetObjectResult & WithPartsCount(int value)
GetObjectResult & WithId2(Id2T &&value)
void SetRestore(RestoreT &&value)
Aws::IOStream & GetBody() const
void SetReplicationStatus(ReplicationStatus value)
void SetChecksumType(ChecksumType value)
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
const Aws::String & GetCacheControl() const
const Aws::String & GetAcceptRanges() const
const Aws::String & GetChecksumSHA256() const
const Aws::String & GetContentRange() const
void SetChecksumCRC32(ChecksumCRC32T &&value)
const Aws::String & GetContentEncoding() const
RequestCharged GetRequestCharged() const
const Aws::String & GetChecksumCRC32C() const
void SetETag(ETagT &&value)
GetObjectResult & WithRequestId(RequestIdT &&value)
AWS_S3_API GetObjectResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
GetObjectResult & WithMissingMeta(int value)
bool GetDeleteMarker() const
void SetContentRange(ContentRangeT &&value)
GetObjectResult & WithChecksumType(ChecksumType value)
ObjectLockLegalHoldStatus GetObjectLockLegalHoldStatus() const
const Aws::String & GetSSECustomerKeyMD5() const
const Aws::String & GetRequestId() const
GetObjectResult & operator=(const GetObjectResult &)=delete
GetObjectResult & WithDeleteMarker(bool value)
GetObjectResult & WithRestore(RestoreT &&value)
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)
GetObjectResult & WithChecksumSHA256(ChecksumSHA256T &&value)
void SetContentLength(long long value)
GetObjectResult & WithLastModified(LastModifiedT &&value)
void SetSSECustomerAlgorithm(SSECustomerAlgorithmT &&value)
const Aws::String & GetSSECustomerAlgorithm() const
void SetChecksumSHA256(ChecksumSHA256T &&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)
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)
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 & 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