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/s3/S3Request.h>
12#include <aws/s3/S3_EXPORTS.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>
46 AWS_S3_API
bool SignBody()
const override {
return false; }
48 AWS_S3_API
bool IsChunked()
const override {
return true; }
61 template <
typename RequestRouteT = Aws::String>
63 m_requestRouteHasBeenSet =
true;
64 m_requestRoute = std::forward<RequestRouteT>(value);
66 template <
typename RequestRouteT = Aws::String>
80 template <
typename RequestTokenT = Aws::String>
82 m_requestTokenHasBeenSet =
true;
83 m_requestToken = std::forward<RequestTokenT>(value);
85 template <
typename RequestTokenT = Aws::String>
110 m_statusCodeHasBeenSet =
true;
111 m_statusCode = value;
130 template <
typename ErrorCodeT = Aws::String>
132 m_errorCodeHasBeenSet =
true;
133 m_errorCode = std::forward<ErrorCodeT>(value);
135 template <
typename ErrorCodeT = Aws::String>
152 template <
typename ErrorMessageT = Aws::String>
154 m_errorMessageHasBeenSet =
true;
155 m_errorMessage = std::forward<ErrorMessageT>(value);
157 template <
typename ErrorMessageT = Aws::String>
170 template <
typename AcceptRangesT = Aws::String>
172 m_acceptRangesHasBeenSet =
true;
173 m_acceptRanges = std::forward<AcceptRangesT>(value);
175 template <
typename AcceptRangesT = Aws::String>
188 template <
typename CacheControlT = Aws::String>
190 m_cacheControlHasBeenSet =
true;
191 m_cacheControl = std::forward<CacheControlT>(value);
193 template <
typename CacheControlT = Aws::String>
206 template <
typename ContentDispositionT = Aws::String>
208 m_contentDispositionHasBeenSet =
true;
209 m_contentDisposition = std::forward<ContentDispositionT>(value);
211 template <
typename ContentDispositionT = Aws::String>
226 template <
typename ContentEncodingT = Aws::String>
228 m_contentEncodingHasBeenSet =
true;
229 m_contentEncoding = std::forward<ContentEncodingT>(value);
231 template <
typename ContentEncodingT = Aws::String>
244 template <
typename ContentLanguageT = Aws::String>
246 m_contentLanguageHasBeenSet =
true;
247 m_contentLanguage = std::forward<ContentLanguageT>(value);
249 template <
typename ContentLanguageT = Aws::String>
263 m_contentLengthHasBeenSet =
true;
264 m_contentLength = value;
278 template <
typename ContentRangeT = Aws::String>
280 m_contentRangeHasBeenSet =
true;
281 m_contentRange = std::forward<ContentRangeT>(value);
283 template <
typename ContentRangeT = Aws::String>
306 template <
typename ChecksumCRC32T = Aws::String>
308 m_checksumCRC32HasBeenSet =
true;
309 m_checksumCRC32 = std::forward<ChecksumCRC32T>(value);
311 template <
typename ChecksumCRC32T = Aws::String>
334 template <
typename ChecksumCRC32CT = Aws::String>
336 m_checksumCRC32CHasBeenSet =
true;
337 m_checksumCRC32C = std::forward<ChecksumCRC32CT>(value);
339 template <
typename ChecksumCRC32CT = Aws::String>
357 template <
typename ChecksumCRC64NVMET = Aws::String>
359 m_checksumCRC64NVMEHasBeenSet =
true;
360 m_checksumCRC64NVME = std::forward<ChecksumCRC64NVMET>(value);
362 template <
typename ChecksumCRC64NVMET = Aws::String>
385 template <
typename ChecksumSHA1T = Aws::String>
387 m_checksumSHA1HasBeenSet =
true;
388 m_checksumSHA1 = std::forward<ChecksumSHA1T>(value);
390 template <
typename ChecksumSHA1T = Aws::String>
413 template <
typename ChecksumSHA256T = Aws::String>
415 m_checksumSHA256HasBeenSet =
true;
416 m_checksumSHA256 = std::forward<ChecksumSHA256T>(value);
418 template <
typename ChecksumSHA256T = Aws::String>
436 m_deleteMarkerHasBeenSet =
true;
437 m_deleteMarker = value;
452 template <
typename ETagT = Aws::String>
454 m_eTagHasBeenSet =
true;
455 m_eTag = std::forward<ETagT>(value);
457 template <
typename ETagT = Aws::String>
459 SetETag(std::forward<ETagT>(value));
470 template <
typename ExpiresT = Aws::Utils::DateTime>
472 m_expiresHasBeenSet =
true;
473 m_expires = std::forward<ExpiresT>(value);
475 template <
typename ExpiresT = Aws::Utils::DateTime>
491 template <
typename ExpirationT = Aws::String>
493 m_expirationHasBeenSet =
true;
494 m_expiration = std::forward<ExpirationT>(value);
496 template <
typename ExpirationT = Aws::String>
509 template <
typename LastModifiedT = Aws::Utils::DateTime>
511 m_lastModifiedHasBeenSet =
true;
512 m_lastModified = std::forward<LastModifiedT>(value);
514 template <
typename LastModifiedT = Aws::Utils::DateTime>
531 m_missingMetaHasBeenSet =
true;
532 m_missingMeta = value;
546 template <
typename MetadataT = Aws::Map<Aws::String, Aws::String>>
548 m_metadataHasBeenSet =
true;
549 m_metadata = std::forward<MetadataT>(value);
551 template <
typename MetadataT = Aws::Map<Aws::String, Aws::String>>
556 template <
typename MetadataKeyT = Aws::String,
typename MetadataValueT = Aws::String>
558 m_metadataHasBeenSet =
true;
559 m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value));
574 m_objectLockModeHasBeenSet =
true;
575 m_objectLockMode = value;
590 m_objectLockLegalHoldStatusHasBeenSet =
true;
591 m_objectLockLegalHoldStatus = value;
605 template <
typename ObjectLockRetainUntilDateT = Aws::Utils::DateTime>
607 m_objectLockRetainUntilDateHasBeenSet =
true;
608 m_objectLockRetainUntilDate = std::forward<ObjectLockRetainUntilDateT>(value);
610 template <
typename ObjectLockRetainUntilDateT = Aws::Utils::DateTime>
624 m_partsCountHasBeenSet =
true;
625 m_partsCount = value;
642 m_replicationStatusHasBeenSet =
true;
643 m_replicationStatus = value;
656 m_requestChargedHasBeenSet =
true;
657 m_requestCharged = value;
672 template <
typename RestoreT = Aws::String>
674 m_restoreHasBeenSet =
true;
675 m_restore = std::forward<RestoreT>(value);
677 template <
typename RestoreT = Aws::String>
694 m_serverSideEncryptionHasBeenSet =
true;
695 m_serverSideEncryption = value;
710 template <
typename SSECustomerAlgorithmT = Aws::String>
712 m_sSECustomerAlgorithmHasBeenSet =
true;
713 m_sSECustomerAlgorithm = std::forward<SSECustomerAlgorithmT>(value);
715 template <
typename SSECustomerAlgorithmT = Aws::String>
731 template <
typename SSEKMSKeyIdT = Aws::String>
733 m_sSEKMSKeyIdHasBeenSet =
true;
734 m_sSEKMSKeyId = std::forward<SSEKMSKeyIdT>(value);
736 template <
typename SSEKMSKeyIdT = Aws::String>
753 template <
typename SSECustomerKeyMD5T = Aws::String>
755 m_sSECustomerKeyMD5HasBeenSet =
true;
756 m_sSECustomerKeyMD5 = std::forward<SSECustomerKeyMD5T>(value);
758 template <
typename SSECustomerKeyMD5T = Aws::String>
776 m_storageClassHasBeenSet =
true;
777 m_storageClass = value;
792 m_tagCountHasBeenSet =
true;
807 template <
typename VersionIdT = Aws::String>
809 m_versionIdHasBeenSet =
true;
810 m_versionId = std::forward<VersionIdT>(value);
812 template <
typename VersionIdT = Aws::String>
827 m_bucketKeyEnabledHasBeenSet =
true;
828 m_bucketKeyEnabled = value;
840 template <
typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
842 m_customizedAccessLogTagHasBeenSet =
true;
843 m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value);
845 template <
typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
850 template <
typename CustomizedAccessLogTagKeyT = Aws::String,
typename CustomizedAccessLogTagValueT = Aws::String>
852 m_customizedAccessLogTagHasBeenSet =
true;
853 m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value));
878 long long m_contentLength{0};
892 bool m_deleteMarker{
false};
902 int m_missingMeta{0};
934 bool m_bucketKeyEnabled{
false};
937 bool m_requestRouteHasBeenSet =
false;
938 bool m_requestTokenHasBeenSet =
false;
939 bool m_statusCodeHasBeenSet =
false;
940 bool m_errorCodeHasBeenSet =
false;
941 bool m_errorMessageHasBeenSet =
false;
942 bool m_acceptRangesHasBeenSet =
false;
943 bool m_cacheControlHasBeenSet =
false;
944 bool m_contentDispositionHasBeenSet =
false;
945 bool m_contentEncodingHasBeenSet =
false;
946 bool m_contentLanguageHasBeenSet =
false;
947 bool m_contentLengthHasBeenSet =
false;
948 bool m_contentRangeHasBeenSet =
false;
949 bool m_checksumCRC32HasBeenSet =
false;
950 bool m_checksumCRC32CHasBeenSet =
false;
951 bool m_checksumCRC64NVMEHasBeenSet =
false;
952 bool m_checksumSHA1HasBeenSet =
false;
953 bool m_checksumSHA256HasBeenSet =
false;
954 bool m_deleteMarkerHasBeenSet =
false;
955 bool m_eTagHasBeenSet =
false;
956 bool m_expiresHasBeenSet =
false;
957 bool m_expirationHasBeenSet =
false;
958 bool m_lastModifiedHasBeenSet =
false;
959 bool m_missingMetaHasBeenSet =
false;
960 bool m_metadataHasBeenSet =
false;
961 bool m_objectLockModeHasBeenSet =
false;
962 bool m_objectLockLegalHoldStatusHasBeenSet =
false;
963 bool m_objectLockRetainUntilDateHasBeenSet =
false;
964 bool m_partsCountHasBeenSet =
false;
965 bool m_replicationStatusHasBeenSet =
false;
966 bool m_requestChargedHasBeenSet =
false;
967 bool m_restoreHasBeenSet =
false;
968 bool m_serverSideEncryptionHasBeenSet =
false;
969 bool m_sSECustomerAlgorithmHasBeenSet =
false;
970 bool m_sSEKMSKeyIdHasBeenSet =
false;
971 bool m_sSECustomerKeyMD5HasBeenSet =
false;
972 bool m_storageClassHasBeenSet =
false;
973 bool m_tagCountHasBeenSet =
false;
974 bool m_versionIdHasBeenSet =
false;
975 bool m_bucketKeyEnabledHasBeenSet =
false;
976 bool m_customizedAccessLogTagHasBeenSet =
false;
Aws::Vector< Aws::Endpoint::EndpointParameter > EndpointParameters
void SetCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
bool DeleteMarkerHasBeenSet() const
void SetPartsCount(int value)
const Aws::String & GetContentLanguage() const
void SetErrorCode(ErrorCodeT &&value)
const Aws::String & GetETag() const
void SetReplicationStatus(ReplicationStatus value)
WriteGetObjectResponseRequest & WithChecksumSHA1(ChecksumSHA1T &&value)
bool ChecksumSHA1HasBeenSet() const
WriteGetObjectResponseRequest & WithMissingMeta(int value)
bool CacheControlHasBeenSet() const
void SetVersionId(VersionIdT &&value)
bool LastModifiedHasBeenSet() const
void SetChecksumCRC32C(ChecksumCRC32CT &&value)
WriteGetObjectResponseRequest & WithExpiration(ExpirationT &&value)
const Aws::String & GetErrorCode() const
void SetRequestRoute(RequestRouteT &&value)
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
bool VersionIdHasBeenSet() const
WriteGetObjectResponseRequest & WithLastModified(LastModifiedT &&value)
WriteGetObjectResponseRequest & WithRequestRoute(RequestRouteT &&value)
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
void SetChecksumSHA1(ChecksumSHA1T &&value)
bool ContentEncodingHasBeenSet() const
int GetPartsCount() const
bool SSECustomerAlgorithmHasBeenSet() const
bool ChecksumSHA256HasBeenSet() const
const Aws::String & GetRequestRoute() const
int GetStatusCode() const
long long GetContentLength() const
bool ContentLengthHasBeenSet() const
void SetChecksumCRC32(ChecksumCRC32T &&value)
void SetMetadata(MetadataT &&value)
void SetStatusCode(int value)
void SetSSEKMSKeyId(SSEKMSKeyIdT &&value)
const Aws::Utils::DateTime & GetLastModified() const
void SetAcceptRanges(AcceptRangesT &&value)
const Aws::String & GetExpiration() const
AWS_S3_API bool IsChunked() const override
bool RestoreHasBeenSet() const
const Aws::String & GetErrorMessage() const
WriteGetObjectResponseRequest & WithRequestCharged(RequestCharged value)
const Aws::String & GetCacheControl() const
const Aws::String & GetVersionId() const
StorageClass GetStorageClass() const
WriteGetObjectResponseRequest & WithBucketKeyEnabled(bool value)
bool ChecksumCRC32HasBeenSet() const
WriteGetObjectResponseRequest & WithErrorMessage(ErrorMessageT &&value)
void SetContentLength(long long value)
WriteGetObjectResponseRequest & WithReplicationStatus(ReplicationStatus value)
bool MissingMetaHasBeenSet() const
const Aws::String & GetChecksumCRC32C() const
bool ETagHasBeenSet() const
void SetCacheControl(CacheControlT &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
ServerSideEncryption GetServerSideEncryption() const
WriteGetObjectResponseRequest & WithContentLength(long long value)
bool ContentLanguageHasBeenSet() const
void SetBucketKeyEnabled(bool value)
const Aws::String & GetContentEncoding() const
bool ObjectLockLegalHoldStatusHasBeenSet() const
void SetChecksumCRC64NVME(ChecksumCRC64NVMET &&value)
WriteGetObjectResponseRequest & WithVersionId(VersionIdT &&value)
WriteGetObjectResponseRequest & WithChecksumCRC64NVME(ChecksumCRC64NVMET &&value)
void SetSSECustomerAlgorithm(SSECustomerAlgorithmT &&value)
bool ObjectLockRetainUntilDateHasBeenSet() const
const Aws::Utils::DateTime & GetExpires() const
int GetMissingMeta() const
bool ChecksumCRC64NVMEHasBeenSet() const
void SetStorageClass(StorageClass value)
WriteGetObjectResponseRequest & WithObjectLockLegalHoldStatus(ObjectLockLegalHoldStatus value)
AWS_S3_API WriteGetObjectResponseRequest()=default
RequestCharged GetRequestCharged() const
bool ObjectLockModeHasBeenSet() const
void SetContentLanguage(ContentLanguageT &&value)
const Aws::Utils::DateTime & GetObjectLockRetainUntilDate() const
bool BucketKeyEnabledHasBeenSet() const
const Aws::String & GetChecksumSHA1() const
WriteGetObjectResponseRequest & AddMetadata(MetadataKeyT &&key, MetadataValueT &&value)
void SetRestore(RestoreT &&value)
void SetObjectLockMode(ObjectLockMode value)
bool RequestRouteHasBeenSet() const
bool SSEKMSKeyIdHasBeenSet() const
void SetContentRange(ContentRangeT &&value)
WriteGetObjectResponseRequest & WithObjectLockMode(ObjectLockMode value)
bool ServerSideEncryptionHasBeenSet() const
bool CustomizedAccessLogTagHasBeenSet() const
bool TagCountHasBeenSet() const
ObjectLockLegalHoldStatus GetObjectLockLegalHoldStatus() const
void SetMissingMeta(int value)
void SetObjectLockRetainUntilDate(ObjectLockRetainUntilDateT &&value)
WriteGetObjectResponseRequest & WithRequestToken(RequestTokenT &&value)
WriteGetObjectResponseRequest & WithCacheControl(CacheControlT &&value)
void SetContentDisposition(ContentDispositionT &&value)
bool AcceptRangesHasBeenSet() const
WriteGetObjectResponseRequest & WithChecksumCRC32C(ChecksumCRC32CT &&value)
const Aws::String & GetAcceptRanges() const
void SetContentEncoding(ContentEncodingT &&value)
bool ChecksumCRC32CHasBeenSet() const
void SetExpiration(ExpirationT &&value)
ReplicationStatus GetReplicationStatus() const
WriteGetObjectResponseRequest & WithCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
WriteGetObjectResponseRequest & WithObjectLockRetainUntilDate(ObjectLockRetainUntilDateT &&value)
const Aws::String & GetChecksumSHA256() const
WriteGetObjectResponseRequest & WithAcceptRanges(AcceptRangesT &&value)
bool RequestChargedHasBeenSet() const
bool ErrorCodeHasBeenSet() const
bool StorageClassHasBeenSet() const
WriteGetObjectResponseRequest & WithErrorCode(ErrorCodeT &&value)
bool ExpirationHasBeenSet() const
bool MetadataHasBeenSet() const
virtual const char * GetServiceRequestName() const override
bool GetBucketKeyEnabled() const
bool ContentDispositionHasBeenSet() const
const Aws::String & GetRestore() const
void SetETag(ETagT &&value)
WriteGetObjectResponseRequest & WithPartsCount(int value)
WriteGetObjectResponseRequest & WithRestore(RestoreT &&value)
bool SSECustomerKeyMD5HasBeenSet() const
void SetTagCount(int value)
void SetRequestToken(RequestTokenT &&value)
const Aws::String & GetContentRange() const
WriteGetObjectResponseRequest & WithETag(ETagT &&value)
WriteGetObjectResponseRequest & WithDeleteMarker(bool value)
const Aws::String & GetChecksumCRC64NVME() const
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
WriteGetObjectResponseRequest & WithTagCount(int value)
const Aws::String & GetSSEKMSKeyId() const
void SetChecksumSHA256(ChecksumSHA256T &&value)
void SetObjectLockLegalHoldStatus(ObjectLockLegalHoldStatus value)
void SetServerSideEncryption(ServerSideEncryption value)
WriteGetObjectResponseRequest & WithSSECustomerAlgorithm(SSECustomerAlgorithmT &&value)
WriteGetObjectResponseRequest & WithContentEncoding(ContentEncodingT &&value)
WriteGetObjectResponseRequest & WithChecksumCRC32(ChecksumCRC32T &&value)
bool RequestTokenHasBeenSet() const
bool GetDeleteMarker() const
bool PartsCountHasBeenSet() const
WriteGetObjectResponseRequest & WithContentLanguage(ContentLanguageT &&value)
WriteGetObjectResponseRequest & WithStatusCode(int value)
AWS_S3_API bool SignBody() const override
bool ExpiresHasBeenSet() const
void SetExpires(ExpiresT &&value)
WriteGetObjectResponseRequest & WithStorageClass(StorageClass value)
void SetErrorMessage(ErrorMessageT &&value)
WriteGetObjectResponseRequest & WithContentDisposition(ContentDispositionT &&value)
const Aws::String & GetContentDisposition() const
const Aws::String & GetChecksumCRC32() const
bool ContentRangeHasBeenSet() const
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
void SetRequestCharged(RequestCharged value)
WriteGetObjectResponseRequest & WithExpires(ExpiresT &&value)
const Aws::String & GetSSECustomerKeyMD5() const
void SetLastModified(LastModifiedT &&value)
void SetSSECustomerKeyMD5(SSECustomerKeyMD5T &&value)
AWS_S3_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
WriteGetObjectResponseRequest & WithChecksumSHA256(ChecksumSHA256T &&value)
WriteGetObjectResponseRequest & WithSSECustomerKeyMD5(SSECustomerKeyMD5T &&value)
WriteGetObjectResponseRequest & AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT &&key, CustomizedAccessLogTagValueT &&value)
bool ErrorMessageHasBeenSet() const
const Aws::String & GetRequestToken() const
WriteGetObjectResponseRequest & WithMetadata(MetadataT &&value)
WriteGetObjectResponseRequest & WithServerSideEncryption(ServerSideEncryption value)
void SetDeleteMarker(bool value)
bool StatusCodeHasBeenSet() const
const Aws::String & GetSSECustomerAlgorithm() const
ObjectLockMode GetObjectLockMode() const
WriteGetObjectResponseRequest & WithSSEKMSKeyId(SSEKMSKeyIdT &&value)
WriteGetObjectResponseRequest & WithContentRange(ContentRangeT &&value)
bool ReplicationStatusHasBeenSet() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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