7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/s3/S3Request.h>
9#include <aws/s3/model/ObjectCannedACL.h>
10#include <aws/core/utils/Array.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/s3/model/ChecksumAlgorithm.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/s3/model/ServerSideEncryption.h>
16#include <aws/s3/model/StorageClass.h>
17#include <aws/s3/model/RequestPayer.h>
18#include <aws/s3/model/ObjectLockMode.h>
19#include <aws/s3/model/ObjectLockLegalHoldStatus.h>
132 inline void SetBucket(
const char* value) { m_bucketHasBeenSet =
true; m_bucket.assign(value); }
148 inline void SetCacheControl(
const char* value) { m_cacheControlHasBeenSet =
true; m_cacheControl.assign(value); }
164 inline void SetContentDisposition(
const char* value) { m_contentDispositionHasBeenSet =
true; m_contentDisposition.assign(value); }
181 inline void SetContentEncoding(
const char* value) { m_contentEncodingHasBeenSet =
true; m_contentEncoding.assign(value); }
195 inline void SetContentLanguage(
const char* value) { m_contentLanguageHasBeenSet =
true; m_contentLanguage.assign(value); }
209 inline void SetContentLength(
long long value) { m_contentLengthHasBeenSet =
true; m_contentLength = value; }
234 inline void SetContentMD5(
const char* value) { m_contentMD5HasBeenSet =
true; m_contentMD5.assign(value); }
383 inline void SetIfNoneMatch(
const char* value) { m_ifNoneMatchHasBeenSet =
true; m_ifNoneMatch.assign(value); }
400 inline void SetGrantFullControl(
const char* value) { m_grantFullControlHasBeenSet =
true; m_grantFullControl.assign(value); }
417 inline void SetGrantRead(
const char* value) { m_grantReadHasBeenSet =
true; m_grantRead.assign(value); }
434 inline void SetGrantReadACP(
const char* value) { m_grantReadACPHasBeenSet =
true; m_grantReadACP.assign(value); }
451 inline void SetGrantWriteACP(
const char* value) { m_grantWriteACPHasBeenSet =
true; m_grantWriteACP.assign(value); }
465 inline void SetKey(
const char* value) { m_keyHasBeenSet =
true; m_key.assign(value); }
487 inline PutObjectRequest&
AddMetadata(
const char* key,
const char* value) { m_metadataHasBeenSet =
true; m_metadata.emplace(key, value);
return *
this; }
600 inline void SetWebsiteRedirectLocation(
const char* value) { m_websiteRedirectLocationHasBeenSet =
true; m_websiteRedirectLocation.assign(value); }
616 inline void SetSSECustomerAlgorithm(
const char* value) { m_sSECustomerAlgorithmHasBeenSet =
true; m_sSECustomerAlgorithm.assign(value); }
635 inline void SetSSECustomerKey(
const char* value) { m_sSECustomerKeyHasBeenSet =
true; m_sSECustomerKey.assign(value); }
652 inline void SetSSECustomerKeyMD5(
const char* value) { m_sSECustomerKeyMD5HasBeenSet =
true; m_sSECustomerKeyMD5.assign(value); }
690 inline void SetSSEKMSKeyId(
const char* value) { m_sSEKMSKeyIdHasBeenSet =
true; m_sSEKMSKeyId.assign(value); }
717 inline void SetSSEKMSEncryptionContext(
const char* value) { m_sSEKMSEncryptionContextHasBeenSet =
true; m_sSEKMSEncryptionContext.assign(value); }
748 inline void SetBucketKeyEnabled(
bool value) { m_bucketKeyEnabledHasBeenSet =
true; m_bucketKeyEnabled = value; }
772 inline void SetTagging(
const char* value) { m_taggingHasBeenSet =
true; m_tagging.assign(value); }
831 inline void SetExpectedBucketOwner(
const char* value) { m_expectedBucketOwnerHasBeenSet =
true; m_expectedBucketOwner.assign(value); }
856 bool m_aCLHasBeenSet =
false;
860 bool m_bucketHasBeenSet =
false;
863 bool m_cacheControlHasBeenSet =
false;
866 bool m_contentDispositionHasBeenSet =
false;
869 bool m_contentEncodingHasBeenSet =
false;
872 bool m_contentLanguageHasBeenSet =
false;
874 long long m_contentLength;
875 bool m_contentLengthHasBeenSet =
false;
878 bool m_contentMD5HasBeenSet =
false;
881 bool m_checksumAlgorithmHasBeenSet =
false;
884 bool m_checksumCRC32HasBeenSet =
false;
887 bool m_checksumCRC32CHasBeenSet =
false;
890 bool m_checksumSHA1HasBeenSet =
false;
893 bool m_checksumSHA256HasBeenSet =
false;
896 bool m_expiresHasBeenSet =
false;
899 bool m_ifNoneMatchHasBeenSet =
false;
902 bool m_grantFullControlHasBeenSet =
false;
905 bool m_grantReadHasBeenSet =
false;
908 bool m_grantReadACPHasBeenSet =
false;
911 bool m_grantWriteACPHasBeenSet =
false;
914 bool m_keyHasBeenSet =
false;
917 bool m_metadataHasBeenSet =
false;
920 bool m_serverSideEncryptionHasBeenSet =
false;
923 bool m_storageClassHasBeenSet =
false;
926 bool m_websiteRedirectLocationHasBeenSet =
false;
929 bool m_sSECustomerAlgorithmHasBeenSet =
false;
932 bool m_sSECustomerKeyHasBeenSet =
false;
935 bool m_sSECustomerKeyMD5HasBeenSet =
false;
938 bool m_sSEKMSKeyIdHasBeenSet =
false;
941 bool m_sSEKMSEncryptionContextHasBeenSet =
false;
943 bool m_bucketKeyEnabled;
944 bool m_bucketKeyEnabledHasBeenSet =
false;
947 bool m_requestPayerHasBeenSet =
false;
950 bool m_taggingHasBeenSet =
false;
953 bool m_objectLockModeHasBeenSet =
false;
956 bool m_objectLockRetainUntilDateHasBeenSet =
false;
959 bool m_objectLockLegalHoldStatusHasBeenSet =
false;
962 bool m_expectedBucketOwnerHasBeenSet =
false;
965 bool m_customizedAccessLogTagHasBeenSet =
false;
Aws::Vector< Aws::Endpoint::EndpointParameter > EndpointParameters
bool StorageClassHasBeenSet() const
PutObjectRequest & WithContentLanguage(const char *value)
PutObjectRequest & WithChecksumCRC32(Aws::String &&value)
PutObjectRequest & WithChecksumCRC32C(const Aws::String &value)
PutObjectRequest & WithExpectedBucketOwner(const char *value)
PutObjectRequest & WithObjectLockMode(const ObjectLockMode &value)
const Aws::String & GetSSEKMSKeyId() const
void SetIfNoneMatch(const Aws::String &value)
void SetSSECustomerKey(Aws::String &&value)
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutObjectRequest & WithSSECustomerKey(Aws::String &&value)
void SetGrantWriteACP(Aws::String &&value)
PutObjectRequest & WithTagging(const Aws::String &value)
void SetSSEKMSEncryptionContext(const char *value)
void SetChecksumCRC32C(const char *value)
PutObjectRequest & WithGrantRead(const Aws::String &value)
bool CacheControlHasBeenSet() const
PutObjectRequest & WithChecksumCRC32(const Aws::String &value)
bool RequestPayerHasBeenSet() const
PutObjectRequest & WithSSECustomerKey(const Aws::String &value)
PutObjectRequest & WithExpectedBucketOwner(Aws::String &&value)
PutObjectRequest & WithContentEncoding(Aws::String &&value)
void SetCacheControl(const Aws::String &value)
void SetSSECustomerKeyMD5(Aws::String &&value)
PutObjectRequest & WithChecksumCRC32C(const char *value)
PutObjectRequest & WithChecksumSHA256(const char *value)
PutObjectRequest & WithChecksumSHA1(const Aws::String &value)
PutObjectRequest & WithContentMD5(Aws::String &&value)
PutObjectRequest & AddMetadata(Aws::String &&key, const char *value)
PutObjectRequest & WithContentLanguage(Aws::String &&value)
PutObjectRequest & WithContentDisposition(const Aws::String &value)
PutObjectRequest & WithObjectLockLegalHoldStatus(const ObjectLockLegalHoldStatus &value)
PutObjectRequest & WithExpires(Aws::Utils::DateTime &&value)
PutObjectRequest & WithMetadata(const Aws::Map< Aws::String, Aws::String > &value)
PutObjectRequest & WithGrantWriteACP(const Aws::String &value)
const ObjectLockMode & GetObjectLockMode() const
void SetChecksumSHA1(const char *value)
bool GrantFullControlHasBeenSet() const
void SetChecksumCRC32C(Aws::String &&value)
const Aws::String & GetChecksumCRC32C() const
void SetBucketKeyEnabled(bool value)
void SetIfNoneMatch(const char *value)
PutObjectRequest & AddMetadata(Aws::String &&key, const Aws::String &value)
PutObjectRequest & WithIfNoneMatch(Aws::String &&value)
void SetServerSideEncryption(const ServerSideEncryption &value)
virtual const char * GetServiceRequestName() const override
PutObjectRequest & WithBucket(Aws::String &&value)
void SetGrantWriteACP(const char *value)
void SetExpires(const Aws::Utils::DateTime &value)
void SetWebsiteRedirectLocation(Aws::String &&value)
PutObjectRequest & WithRequestPayer(RequestPayer &&value)
PutObjectRequest & WithContentDisposition(Aws::String &&value)
void SetChecksumSHA256(Aws::String &&value)
void SetGrantRead(const Aws::String &value)
void SetKey(const Aws::String &value)
void SetContentMD5(Aws::String &&value)
PutObjectRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
const Aws::String & GetExpectedBucketOwner() const
PutObjectRequest & WithGrantRead(const char *value)
PutObjectRequest & WithBucket(const Aws::String &value)
PutObjectRequest & WithBucket(const char *value)
const ObjectLockLegalHoldStatus & GetObjectLockLegalHoldStatus() const
void SetSSECustomerAlgorithm(const char *value)
bool SSECustomerKeyHasBeenSet() const
PutObjectRequest & WithGrantWriteACP(Aws::String &&value)
bool SSECustomerAlgorithmHasBeenSet() const
PutObjectRequest & AddMetadata(Aws::String &&key, Aws::String &&value)
const Aws::String & GetGrantRead() const
PutObjectRequest & WithKey(const char *value)
PutObjectRequest & WithSSECustomerKey(const char *value)
PutObjectRequest & WithMetadata(Aws::Map< Aws::String, Aws::String > &&value)
void SetSSEKMSEncryptionContext(const Aws::String &value)
void SetStorageClass(StorageClass &&value)
void SetGrantReadACP(Aws::String &&value)
void SetTagging(const char *value)
bool CustomizedAccessLogTagHasBeenSet() const
PutObjectRequest & WithWebsiteRedirectLocation(const char *value)
PutObjectRequest & WithWebsiteRedirectLocation(const Aws::String &value)
PutObjectRequest & WithBucketKeyEnabled(bool value)
void SetWebsiteRedirectLocation(const char *value)
void SetContentMD5(const char *value)
const Aws::String & GetIfNoneMatch() const
bool ContentLanguageHasBeenSet() const
bool ContentLengthHasBeenSet() const
PutObjectRequest & WithRequestPayer(const RequestPayer &value)
PutObjectRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
void SetServerSideEncryption(ServerSideEncryption &&value)
bool IfNoneMatchHasBeenSet() const
const Aws::String & GetContentLanguage() const
PutObjectRequest & WithContentEncoding(const Aws::String &value)
PutObjectRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
void SetMetadata(Aws::Map< Aws::String, Aws::String > &&value)
PutObjectRequest & WithServerSideEncryption(const ServerSideEncryption &value)
PutObjectRequest & WithSSEKMSKeyId(Aws::String &&value)
void SetSSECustomerKeyMD5(const char *value)
void SetACL(const ObjectCannedACL &value)
long long GetContentLength() const
PutObjectRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
void SetContentLanguage(const char *value)
bool ExpiresHasBeenSet() const
const Aws::String & GetContentEncoding() const
bool ChecksumSHA1HasBeenSet() const
void SetRequestPayer(const RequestPayer &value)
bool GetBucketKeyEnabled() const
PutObjectRequest & WithSSEKMSEncryptionContext(const char *value)
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
void SetSSEKMSKeyId(const char *value)
PutObjectRequest & WithGrantReadACP(const Aws::String &value)
void SetChecksumSHA256(const char *value)
void SetObjectLockLegalHoldStatus(const ObjectLockLegalHoldStatus &value)
const Aws::String & GetTagging() const
void SetGrantRead(Aws::String &&value)
void SetObjectLockRetainUntilDate(Aws::Utils::DateTime &&value)
PutObjectRequest & WithChecksumCRC32(const char *value)
PutObjectRequest & AddMetadata(const Aws::String &key, Aws::String &&value)
void SetChecksumCRC32(const Aws::String &value)
PutObjectRequest & WithSSECustomerKeyMD5(Aws::String &&value)
PutObjectRequest & WithExpectedBucketOwner(const Aws::String &value)
void SetStorageClass(const StorageClass &value)
bool ContentEncodingHasBeenSet() const
void SetContentLanguage(const Aws::String &value)
void SetContentDisposition(const Aws::String &value)
void SetChecksumCRC32(Aws::String &&value)
void SetExpectedBucketOwner(Aws::String &&value)
void SetSSEKMSKeyId(Aws::String &&value)
PutObjectRequest & WithSSEKMSEncryptionContext(const Aws::String &value)
PutObjectRequest & AddMetadata(const char *key, const char *value)
void SetObjectLockMode(ObjectLockMode &&value)
void SetContentMD5(const Aws::String &value)
void SetGrantFullControl(const char *value)
AWS_S3_API Aws::String GetChecksumAlgorithmName() const override
PutObjectRequest & WithChecksumCRC32C(Aws::String &&value)
void SetChecksumAlgorithm(ChecksumAlgorithm &&value)
bool SSECustomerKeyMD5HasBeenSet() const
PutObjectRequest & WithGrantRead(Aws::String &&value)
void SetWebsiteRedirectLocation(const Aws::String &value)
bool TaggingHasBeenSet() const
void SetChecksumCRC32C(const Aws::String &value)
PutObjectRequest & AddMetadata(const char *key, Aws::String &&value)
PutObjectRequest & WithObjectLockRetainUntilDate(const Aws::Utils::DateTime &value)
bool ACLHasBeenSet() const
PutObjectRequest & WithIfNoneMatch(const Aws::String &value)
PutObjectRequest & WithContentMD5(const char *value)
bool GrantWriteACPHasBeenSet() const
void SetRequestPayer(RequestPayer &&value)
const Aws::String & GetSSECustomerKey() const
void SetObjectLockMode(const ObjectLockMode &value)
void SetBucket(const Aws::String &value)
const Aws::String & GetContentMD5() const
const Aws::String & GetSSECustomerAlgorithm() const
PutObjectRequest & WithTagging(const char *value)
AWS_S3_API PutObjectRequest()
const Aws::String & GetGrantFullControl() const
bool ObjectLockRetainUntilDateHasBeenSet() const
bool BucketKeyEnabledHasBeenSet() const
const ServerSideEncryption & GetServerSideEncryption() const
PutObjectRequest & WithSSEKMSKeyId(const Aws::String &value)
void SetContentLength(long long value)
PutObjectRequest & WithObjectLockLegalHoldStatus(ObjectLockLegalHoldStatus &&value)
PutObjectRequest & WithGrantFullControl(const char *value)
PutObjectRequest & WithContentEncoding(const char *value)
bool ObjectLockLegalHoldStatusHasBeenSet() const
void SetSSECustomerKey(const Aws::String &value)
const Aws::Utils::DateTime & GetExpires() const
PutObjectRequest & WithStorageClass(StorageClass &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
bool ExpectedBucketOwnerHasBeenSet() const
bool GrantReadHasBeenSet() const
PutObjectRequest & AddMetadata(const Aws::String &key, const Aws::String &value)
void SetExpectedBucketOwner(const Aws::String &value)
PutObjectRequest & WithServerSideEncryption(ServerSideEncryption &&value)
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
PutObjectRequest & WithSSECustomerKeyMD5(const Aws::String &value)
PutObjectRequest & WithCacheControl(Aws::String &&value)
PutObjectRequest & WithCacheControl(const char *value)
void SetTagging(const Aws::String &value)
void SetSSECustomerAlgorithm(Aws::String &&value)
void SetContentEncoding(const Aws::String &value)
void SetGrantReadACP(const Aws::String &value)
void SetBucket(Aws::String &&value)
const Aws::String & GetGrantReadACP() const
PutObjectRequest & WithChecksumSHA256(Aws::String &&value)
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
bool ChecksumSHA256HasBeenSet() const
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Utils::DateTime & GetObjectLockRetainUntilDate() const
void SetChecksumSHA256(const Aws::String &value)
PutObjectRequest & WithTagging(Aws::String &&value)
PutObjectRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
PutObjectRequest & WithGrantReadACP(const char *value)
void SetIfNoneMatch(Aws::String &&value)
bool MetadataHasBeenSet() const
const Aws::String & GetChecksumCRC32() const
AWS_S3_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
bool ChecksumCRC32CHasBeenSet() const
bool GrantReadACPHasBeenSet() const
const Aws::String & GetChecksumSHA1() const
PutObjectRequest & WithContentLanguage(const Aws::String &value)
void SetGrantFullControl(const Aws::String &value)
PutObjectRequest & WithObjectLockRetainUntilDate(Aws::Utils::DateTime &&value)
PutObjectRequest & WithWebsiteRedirectLocation(Aws::String &&value)
PutObjectRequest & WithGrantReadACP(Aws::String &&value)
const StorageClass & GetStorageClass() const
PutObjectRequest & WithChecksumSHA1(Aws::String &&value)
const Aws::String & GetKey() const
PutObjectRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
PutObjectRequest & WithChecksumAlgorithm(const ChecksumAlgorithm &value)
const Aws::String & GetGrantWriteACP() const
PutObjectRequest & WithStorageClass(const StorageClass &value)
const Aws::String & GetBucket() const
void SetChecksumCRC32(const char *value)
bool BucketHasBeenSet() const
void SetSSEKMSKeyId(const Aws::String &value)
const Aws::String & GetChecksumSHA256() const
void SetObjectLockLegalHoldStatus(ObjectLockLegalHoldStatus &&value)
PutObjectRequest & WithSSECustomerAlgorithm(const char *value)
PutObjectRequest & WithSSEKMSEncryptionContext(Aws::String &&value)
void SetSSECustomerAlgorithm(const Aws::String &value)
const Aws::String & GetWebsiteRedirectLocation() const
bool ContentDispositionHasBeenSet() const
bool ChecksumCRC32HasBeenSet() const
void SetKey(const char *value)
const Aws::String & GetSSECustomerKeyMD5() const
void SetSSECustomerKey(const char *value)
PutObjectRequest & WithSSECustomerAlgorithm(const Aws::String &value)
PutObjectRequest & WithContentDisposition(const char *value)
bool SSEKMSKeyIdHasBeenSet() const
PutObjectRequest & WithChecksumSHA1(const char *value)
void SetTagging(Aws::String &&value)
void SetGrantWriteACP(const Aws::String &value)
PutObjectRequest & WithACL(const ObjectCannedACL &value)
bool ServerSideEncryptionHasBeenSet() const
PutObjectRequest & WithKey(Aws::String &&value)
void SetGrantReadACP(const char *value)
void SetMetadata(const Aws::Map< Aws::String, Aws::String > &value)
PutObjectRequest & WithSSECustomerAlgorithm(Aws::String &&value)
PutObjectRequest & WithSSECustomerKeyMD5(const char *value)
PutObjectRequest & WithGrantFullControl(Aws::String &&value)
bool ContentMD5HasBeenSet() const
const Aws::String & GetSSEKMSEncryptionContext() const
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
void SetACL(ObjectCannedACL &&value)
PutObjectRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
void SetCacheControl(Aws::String &&value)
bool SSEKMSEncryptionContextHasBeenSet() const
void SetGrantRead(const char *value)
void SetGrantFullControl(Aws::String &&value)
bool KeyHasBeenSet() const
PutObjectRequest & WithKey(const Aws::String &value)
void SetChecksumAlgorithm(const ChecksumAlgorithm &value)
void SetContentDisposition(Aws::String &&value)
void SetCacheControl(const char *value)
void SetContentLanguage(Aws::String &&value)
void SetKey(Aws::String &&value)
PutObjectRequest & WithContentMD5(const Aws::String &value)
void SetContentDisposition(const char *value)
PutObjectRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
const RequestPayer & GetRequestPayer() const
bool WebsiteRedirectLocationHasBeenSet() const
bool ObjectLockModeHasBeenSet() const
PutObjectRequest & WithObjectLockMode(ObjectLockMode &&value)
PutObjectRequest & WithChecksumAlgorithm(ChecksumAlgorithm &&value)
PutObjectRequest & WithExpires(const Aws::Utils::DateTime &value)
PutObjectRequest & WithIfNoneMatch(const char *value)
const Aws::String & GetCacheControl() const
const ChecksumAlgorithm & GetChecksumAlgorithm() const
PutObjectRequest & WithGrantWriteACP(const char *value)
PutObjectRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
PutObjectRequest & WithCacheControl(const Aws::String &value)
const Aws::String & GetContentDisposition() const
bool ChecksumAlgorithmHasBeenSet() const
void SetChecksumSHA1(const Aws::String &value)
void SetSSECustomerKeyMD5(const Aws::String &value)
PutObjectRequest & WithGrantFullControl(const Aws::String &value)
void SetBucket(const char *value)
const ObjectCannedACL & GetACL() const
void SetContentEncoding(const char *value)
PutObjectRequest & WithACL(ObjectCannedACL &&value)
void SetExpectedBucketOwner(const char *value)
void SetChecksumSHA1(Aws::String &&value)
PutObjectRequest & WithChecksumSHA256(const Aws::String &value)
void SetExpires(Aws::Utils::DateTime &&value)
PutObjectRequest & WithSSEKMSKeyId(const char *value)
void SetObjectLockRetainUntilDate(const Aws::Utils::DateTime &value)
void SetSSEKMSEncryptionContext(Aws::String &&value)
void SetContentEncoding(Aws::String &&value)
PutObjectRequest & WithContentLength(long long value)
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