/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include #include #include #include #include namespace Aws { namespace Http { class URI; } //namespace Http namespace S3 { namespace Model { /** */ class AWS_S3_API PutObjectRequest : public StreamingS3Request { public: PutObjectRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "PutObject"; } void AddQueryStringParameters(Aws::Http::URI& uri) const override; Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The canned ACL to apply to the object. For more information, see Canned * ACL.

This action is not supported by Amazon S3 on Outposts.

*/ inline const ObjectCannedACL& GetACL() const{ return m_aCL; } /** *

The canned ACL to apply to the object. For more information, see Canned * ACL.

This action is not supported by Amazon S3 on Outposts.

*/ inline bool ACLHasBeenSet() const { return m_aCLHasBeenSet; } /** *

The canned ACL to apply to the object. For more information, see Canned * ACL.

This action is not supported by Amazon S3 on Outposts.

*/ inline void SetACL(const ObjectCannedACL& value) { m_aCLHasBeenSet = true; m_aCL = value; } /** *

The canned ACL to apply to the object. For more information, see Canned * ACL.

This action is not supported by Amazon S3 on Outposts.

*/ inline void SetACL(ObjectCannedACL&& value) { m_aCLHasBeenSet = true; m_aCL = std::move(value); } /** *

The canned ACL to apply to the object. For more information, see Canned * ACL.

This action is not supported by Amazon S3 on Outposts.

*/ inline PutObjectRequest& WithACL(const ObjectCannedACL& value) { SetACL(value); return *this;} /** *

The canned ACL to apply to the object. For more information, see Canned * ACL.

This action is not supported by Amazon S3 on Outposts.

*/ inline PutObjectRequest& WithACL(ObjectCannedACL&& value) { SetACL(std::move(value)); return *this;} /** *

The bucket name to which the PUT action was initiated.

When using * this action with an access point, you must direct requests to the access point * hostname. The access point hostname takes the form * AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. * When using this action with an access point through the Amazon Web Services * SDKs, you provide the access point ARN in place of the bucket name. For more * information about access point ARNs, see Using * access points in the Amazon S3 User Guide.

When using this * action with Amazon S3 on Outposts, you must direct requests to the S3 on * Outposts hostname. The S3 on Outposts hostname takes the form * AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. * When using this action using S3 on Outposts through the Amazon Web Services * SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more * information about S3 on Outposts ARNs, see Using * S3 on Outposts in the Amazon S3 User Guide.

*/ inline const Aws::String& GetBucket() const{ return m_bucket; } /** *

The bucket name to which the PUT action was initiated.

When using * this action with an access point, you must direct requests to the access point * hostname. The access point hostname takes the form * AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. * When using this action with an access point through the Amazon Web Services * SDKs, you provide the access point ARN in place of the bucket name. For more * information about access point ARNs, see Using * access points in the Amazon S3 User Guide.

When using this * action with Amazon S3 on Outposts, you must direct requests to the S3 on * Outposts hostname. The S3 on Outposts hostname takes the form * AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. * When using this action using S3 on Outposts through the Amazon Web Services * SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more * information about S3 on Outposts ARNs, see Using * S3 on Outposts in the Amazon S3 User Guide.

*/ inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; } /** *

The bucket name to which the PUT action was initiated.

When using * this action with an access point, you must direct requests to the access point * hostname. The access point hostname takes the form * AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. * When using this action with an access point through the Amazon Web Services * SDKs, you provide the access point ARN in place of the bucket name. For more * information about access point ARNs, see Using * access points in the Amazon S3 User Guide.

When using this * action with Amazon S3 on Outposts, you must direct requests to the S3 on * Outposts hostname. The S3 on Outposts hostname takes the form * AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. * When using this action using S3 on Outposts through the Amazon Web Services * SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more * information about S3 on Outposts ARNs, see Using * S3 on Outposts in the Amazon S3 User Guide.

*/ inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; } /** *

The bucket name to which the PUT action was initiated.

When using * this action with an access point, you must direct requests to the access point * hostname. The access point hostname takes the form * AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. * When using this action with an access point through the Amazon Web Services * SDKs, you provide the access point ARN in place of the bucket name. For more * information about access point ARNs, see Using * access points in the Amazon S3 User Guide.

When using this * action with Amazon S3 on Outposts, you must direct requests to the S3 on * Outposts hostname. The S3 on Outposts hostname takes the form * AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. * When using this action using S3 on Outposts through the Amazon Web Services * SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more * information about S3 on Outposts ARNs, see Using * S3 on Outposts in the Amazon S3 User Guide.

*/ inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); } /** *

The bucket name to which the PUT action was initiated.

When using * this action with an access point, you must direct requests to the access point * hostname. The access point hostname takes the form * AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. * When using this action with an access point through the Amazon Web Services * SDKs, you provide the access point ARN in place of the bucket name. For more * information about access point ARNs, see Using * access points in the Amazon S3 User Guide.

When using this * action with Amazon S3 on Outposts, you must direct requests to the S3 on * Outposts hostname. The S3 on Outposts hostname takes the form * AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. * When using this action using S3 on Outposts through the Amazon Web Services * SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more * information about S3 on Outposts ARNs, see Using * S3 on Outposts in the Amazon S3 User Guide.

*/ inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); } /** *

The bucket name to which the PUT action was initiated.

When using * this action with an access point, you must direct requests to the access point * hostname. The access point hostname takes the form * AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. * When using this action with an access point through the Amazon Web Services * SDKs, you provide the access point ARN in place of the bucket name. For more * information about access point ARNs, see Using * access points in the Amazon S3 User Guide.

When using this * action with Amazon S3 on Outposts, you must direct requests to the S3 on * Outposts hostname. The S3 on Outposts hostname takes the form * AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. * When using this action using S3 on Outposts through the Amazon Web Services * SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more * information about S3 on Outposts ARNs, see Using * S3 on Outposts in the Amazon S3 User Guide.

*/ inline PutObjectRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;} /** *

The bucket name to which the PUT action was initiated.

When using * this action with an access point, you must direct requests to the access point * hostname. The access point hostname takes the form * AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. * When using this action with an access point through the Amazon Web Services * SDKs, you provide the access point ARN in place of the bucket name. For more * information about access point ARNs, see Using * access points in the Amazon S3 User Guide.

When using this * action with Amazon S3 on Outposts, you must direct requests to the S3 on * Outposts hostname. The S3 on Outposts hostname takes the form * AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. * When using this action using S3 on Outposts through the Amazon Web Services * SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more * information about S3 on Outposts ARNs, see Using * S3 on Outposts in the Amazon S3 User Guide.

*/ inline PutObjectRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;} /** *

The bucket name to which the PUT action was initiated.

When using * this action with an access point, you must direct requests to the access point * hostname. The access point hostname takes the form * AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. * When using this action with an access point through the Amazon Web Services * SDKs, you provide the access point ARN in place of the bucket name. For more * information about access point ARNs, see Using * access points in the Amazon S3 User Guide.

When using this * action with Amazon S3 on Outposts, you must direct requests to the S3 on * Outposts hostname. The S3 on Outposts hostname takes the form * AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. * When using this action using S3 on Outposts through the Amazon Web Services * SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more * information about S3 on Outposts ARNs, see Using * S3 on Outposts in the Amazon S3 User Guide.

*/ inline PutObjectRequest& WithBucket(const char* value) { SetBucket(value); return *this;} /** *

Can be used to specify caching behavior along the request/reply chain. For * more information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.

*/ inline const Aws::String& GetCacheControl() const{ return m_cacheControl; } /** *

Can be used to specify caching behavior along the request/reply chain. For * more information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.

*/ inline bool CacheControlHasBeenSet() const { return m_cacheControlHasBeenSet; } /** *

Can be used to specify caching behavior along the request/reply chain. For * more information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.

*/ inline void SetCacheControl(const Aws::String& value) { m_cacheControlHasBeenSet = true; m_cacheControl = value; } /** *

Can be used to specify caching behavior along the request/reply chain. For * more information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.

*/ inline void SetCacheControl(Aws::String&& value) { m_cacheControlHasBeenSet = true; m_cacheControl = std::move(value); } /** *

Can be used to specify caching behavior along the request/reply chain. For * more information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.

*/ inline void SetCacheControl(const char* value) { m_cacheControlHasBeenSet = true; m_cacheControl.assign(value); } /** *

Can be used to specify caching behavior along the request/reply chain. For * more information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.

*/ inline PutObjectRequest& WithCacheControl(const Aws::String& value) { SetCacheControl(value); return *this;} /** *

Can be used to specify caching behavior along the request/reply chain. For * more information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.

*/ inline PutObjectRequest& WithCacheControl(Aws::String&& value) { SetCacheControl(std::move(value)); return *this;} /** *

Can be used to specify caching behavior along the request/reply chain. For * more information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.

*/ inline PutObjectRequest& WithCacheControl(const char* value) { SetCacheControl(value); return *this;} /** *

Specifies presentational information for the object. For more information, * see http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html#sec19.5.1.

*/ inline const Aws::String& GetContentDisposition() const{ return m_contentDisposition; } /** *

Specifies presentational information for the object. For more information, * see http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html#sec19.5.1.

*/ inline bool ContentDispositionHasBeenSet() const { return m_contentDispositionHasBeenSet; } /** *

Specifies presentational information for the object. For more information, * see http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html#sec19.5.1.

*/ inline void SetContentDisposition(const Aws::String& value) { m_contentDispositionHasBeenSet = true; m_contentDisposition = value; } /** *

Specifies presentational information for the object. For more information, * see http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html#sec19.5.1.

*/ inline void SetContentDisposition(Aws::String&& value) { m_contentDispositionHasBeenSet = true; m_contentDisposition = std::move(value); } /** *

Specifies presentational information for the object. For more information, * see http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html#sec19.5.1.

*/ inline void SetContentDisposition(const char* value) { m_contentDispositionHasBeenSet = true; m_contentDisposition.assign(value); } /** *

Specifies presentational information for the object. For more information, * see http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html#sec19.5.1.

*/ inline PutObjectRequest& WithContentDisposition(const Aws::String& value) { SetContentDisposition(value); return *this;} /** *

Specifies presentational information for the object. For more information, * see http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html#sec19.5.1.

*/ inline PutObjectRequest& WithContentDisposition(Aws::String&& value) { SetContentDisposition(std::move(value)); return *this;} /** *

Specifies presentational information for the object. For more information, * see http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html#sec19.5.1.

*/ inline PutObjectRequest& WithContentDisposition(const char* value) { SetContentDisposition(value); return *this;} /** *

Specifies what content encodings have been applied to the object and thus * what decoding mechanisms must be applied to obtain the media-type referenced by * the Content-Type header field. For more information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.11.

*/ inline const Aws::String& GetContentEncoding() const{ return m_contentEncoding; } /** *

Specifies what content encodings have been applied to the object and thus * what decoding mechanisms must be applied to obtain the media-type referenced by * the Content-Type header field. For more information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.11.

*/ inline bool ContentEncodingHasBeenSet() const { return m_contentEncodingHasBeenSet; } /** *

Specifies what content encodings have been applied to the object and thus * what decoding mechanisms must be applied to obtain the media-type referenced by * the Content-Type header field. For more information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.11.

*/ inline void SetContentEncoding(const Aws::String& value) { m_contentEncodingHasBeenSet = true; m_contentEncoding = value; } /** *

Specifies what content encodings have been applied to the object and thus * what decoding mechanisms must be applied to obtain the media-type referenced by * the Content-Type header field. For more information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.11.

*/ inline void SetContentEncoding(Aws::String&& value) { m_contentEncodingHasBeenSet = true; m_contentEncoding = std::move(value); } /** *

Specifies what content encodings have been applied to the object and thus * what decoding mechanisms must be applied to obtain the media-type referenced by * the Content-Type header field. For more information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.11.

*/ inline void SetContentEncoding(const char* value) { m_contentEncodingHasBeenSet = true; m_contentEncoding.assign(value); } /** *

Specifies what content encodings have been applied to the object and thus * what decoding mechanisms must be applied to obtain the media-type referenced by * the Content-Type header field. For more information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.11.

*/ inline PutObjectRequest& WithContentEncoding(const Aws::String& value) { SetContentEncoding(value); return *this;} /** *

Specifies what content encodings have been applied to the object and thus * what decoding mechanisms must be applied to obtain the media-type referenced by * the Content-Type header field. For more information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.11.

*/ inline PutObjectRequest& WithContentEncoding(Aws::String&& value) { SetContentEncoding(std::move(value)); return *this;} /** *

Specifies what content encodings have been applied to the object and thus * what decoding mechanisms must be applied to obtain the media-type referenced by * the Content-Type header field. For more information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.11.

*/ inline PutObjectRequest& WithContentEncoding(const char* value) { SetContentEncoding(value); return *this;} /** *

The language the content is in.

*/ inline const Aws::String& GetContentLanguage() const{ return m_contentLanguage; } /** *

The language the content is in.

*/ inline bool ContentLanguageHasBeenSet() const { return m_contentLanguageHasBeenSet; } /** *

The language the content is in.

*/ inline void SetContentLanguage(const Aws::String& value) { m_contentLanguageHasBeenSet = true; m_contentLanguage = value; } /** *

The language the content is in.

*/ inline void SetContentLanguage(Aws::String&& value) { m_contentLanguageHasBeenSet = true; m_contentLanguage = std::move(value); } /** *

The language the content is in.

*/ inline void SetContentLanguage(const char* value) { m_contentLanguageHasBeenSet = true; m_contentLanguage.assign(value); } /** *

The language the content is in.

*/ inline PutObjectRequest& WithContentLanguage(const Aws::String& value) { SetContentLanguage(value); return *this;} /** *

The language the content is in.

*/ inline PutObjectRequest& WithContentLanguage(Aws::String&& value) { SetContentLanguage(std::move(value)); return *this;} /** *

The language the content is in.

*/ inline PutObjectRequest& WithContentLanguage(const char* value) { SetContentLanguage(value); return *this;} /** *

Size of the body in bytes. This parameter is useful when the size of the body * cannot be determined automatically. For more information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.13.

*/ inline long long GetContentLength() const{ return m_contentLength; } /** *

Size of the body in bytes. This parameter is useful when the size of the body * cannot be determined automatically. For more information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.13.

*/ inline bool ContentLengthHasBeenSet() const { return m_contentLengthHasBeenSet; } /** *

Size of the body in bytes. This parameter is useful when the size of the body * cannot be determined automatically. For more information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.13.

*/ inline void SetContentLength(long long value) { m_contentLengthHasBeenSet = true; m_contentLength = value; } /** *

Size of the body in bytes. This parameter is useful when the size of the body * cannot be determined automatically. For more information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.13.

*/ inline PutObjectRequest& WithContentLength(long long value) { SetContentLength(value); return *this;} /** *

The base64-encoded 128-bit MD5 digest of the message (without the headers) * according to RFC 1864. This header can be used as a message integrity check to * verify that the data is the same data that was originally sent. Although it is * optional, we recommend using the Content-MD5 mechanism as an end-to-end * integrity check. For more information about REST request authentication, see REST * Authentication.

*/ inline const Aws::String& GetContentMD5() const{ return m_contentMD5; } /** *

The base64-encoded 128-bit MD5 digest of the message (without the headers) * according to RFC 1864. This header can be used as a message integrity check to * verify that the data is the same data that was originally sent. Although it is * optional, we recommend using the Content-MD5 mechanism as an end-to-end * integrity check. For more information about REST request authentication, see REST * Authentication.

*/ inline bool ContentMD5HasBeenSet() const { return m_contentMD5HasBeenSet; } /** *

The base64-encoded 128-bit MD5 digest of the message (without the headers) * according to RFC 1864. This header can be used as a message integrity check to * verify that the data is the same data that was originally sent. Although it is * optional, we recommend using the Content-MD5 mechanism as an end-to-end * integrity check. For more information about REST request authentication, see REST * Authentication.

*/ inline void SetContentMD5(const Aws::String& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = value; } /** *

The base64-encoded 128-bit MD5 digest of the message (without the headers) * according to RFC 1864. This header can be used as a message integrity check to * verify that the data is the same data that was originally sent. Although it is * optional, we recommend using the Content-MD5 mechanism as an end-to-end * integrity check. For more information about REST request authentication, see REST * Authentication.

*/ inline void SetContentMD5(Aws::String&& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = std::move(value); } /** *

The base64-encoded 128-bit MD5 digest of the message (without the headers) * according to RFC 1864. This header can be used as a message integrity check to * verify that the data is the same data that was originally sent. Although it is * optional, we recommend using the Content-MD5 mechanism as an end-to-end * integrity check. For more information about REST request authentication, see REST * Authentication.

*/ inline void SetContentMD5(const char* value) { m_contentMD5HasBeenSet = true; m_contentMD5.assign(value); } /** *

The base64-encoded 128-bit MD5 digest of the message (without the headers) * according to RFC 1864. This header can be used as a message integrity check to * verify that the data is the same data that was originally sent. Although it is * optional, we recommend using the Content-MD5 mechanism as an end-to-end * integrity check. For more information about REST request authentication, see REST * Authentication.

*/ inline PutObjectRequest& WithContentMD5(const Aws::String& value) { SetContentMD5(value); return *this;} /** *

The base64-encoded 128-bit MD5 digest of the message (without the headers) * according to RFC 1864. This header can be used as a message integrity check to * verify that the data is the same data that was originally sent. Although it is * optional, we recommend using the Content-MD5 mechanism as an end-to-end * integrity check. For more information about REST request authentication, see REST * Authentication.

*/ inline PutObjectRequest& WithContentMD5(Aws::String&& value) { SetContentMD5(std::move(value)); return *this;} /** *

The base64-encoded 128-bit MD5 digest of the message (without the headers) * according to RFC 1864. This header can be used as a message integrity check to * verify that the data is the same data that was originally sent. Although it is * optional, we recommend using the Content-MD5 mechanism as an end-to-end * integrity check. For more information about REST request authentication, see REST * Authentication.

*/ inline PutObjectRequest& WithContentMD5(const char* value) { SetContentMD5(value); return *this;} /** *

The date and time at which the object is no longer cacheable. For more * information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.21.

*/ inline const Aws::Utils::DateTime& GetExpires() const{ return m_expires; } /** *

The date and time at which the object is no longer cacheable. For more * information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.21.

*/ inline bool ExpiresHasBeenSet() const { return m_expiresHasBeenSet; } /** *

The date and time at which the object is no longer cacheable. For more * information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.21.

*/ inline void SetExpires(const Aws::Utils::DateTime& value) { m_expiresHasBeenSet = true; m_expires = value; } /** *

The date and time at which the object is no longer cacheable. For more * information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.21.

*/ inline void SetExpires(Aws::Utils::DateTime&& value) { m_expiresHasBeenSet = true; m_expires = std::move(value); } /** *

The date and time at which the object is no longer cacheable. For more * information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.21.

*/ inline PutObjectRequest& WithExpires(const Aws::Utils::DateTime& value) { SetExpires(value); return *this;} /** *

The date and time at which the object is no longer cacheable. For more * information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.21.

*/ inline PutObjectRequest& WithExpires(Aws::Utils::DateTime&& value) { SetExpires(std::move(value)); return *this;} /** *

Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on the * object.

This action is not supported by Amazon S3 on Outposts.

*/ inline const Aws::String& GetGrantFullControl() const{ return m_grantFullControl; } /** *

Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on the * object.

This action is not supported by Amazon S3 on Outposts.

*/ inline bool GrantFullControlHasBeenSet() const { return m_grantFullControlHasBeenSet; } /** *

Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on the * object.

This action is not supported by Amazon S3 on Outposts.

*/ inline void SetGrantFullControl(const Aws::String& value) { m_grantFullControlHasBeenSet = true; m_grantFullControl = value; } /** *

Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on the * object.

This action is not supported by Amazon S3 on Outposts.

*/ inline void SetGrantFullControl(Aws::String&& value) { m_grantFullControlHasBeenSet = true; m_grantFullControl = std::move(value); } /** *

Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on the * object.

This action is not supported by Amazon S3 on Outposts.

*/ inline void SetGrantFullControl(const char* value) { m_grantFullControlHasBeenSet = true; m_grantFullControl.assign(value); } /** *

Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on the * object.

This action is not supported by Amazon S3 on Outposts.

*/ inline PutObjectRequest& WithGrantFullControl(const Aws::String& value) { SetGrantFullControl(value); return *this;} /** *

Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on the * object.

This action is not supported by Amazon S3 on Outposts.

*/ inline PutObjectRequest& WithGrantFullControl(Aws::String&& value) { SetGrantFullControl(std::move(value)); return *this;} /** *

Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on the * object.

This action is not supported by Amazon S3 on Outposts.

*/ inline PutObjectRequest& WithGrantFullControl(const char* value) { SetGrantFullControl(value); return *this;} /** *

Allows grantee to read the object data and its metadata.

This action * is not supported by Amazon S3 on Outposts.

*/ inline const Aws::String& GetGrantRead() const{ return m_grantRead; } /** *

Allows grantee to read the object data and its metadata.

This action * is not supported by Amazon S3 on Outposts.

*/ inline bool GrantReadHasBeenSet() const { return m_grantReadHasBeenSet; } /** *

Allows grantee to read the object data and its metadata.

This action * is not supported by Amazon S3 on Outposts.

*/ inline void SetGrantRead(const Aws::String& value) { m_grantReadHasBeenSet = true; m_grantRead = value; } /** *

Allows grantee to read the object data and its metadata.

This action * is not supported by Amazon S3 on Outposts.

*/ inline void SetGrantRead(Aws::String&& value) { m_grantReadHasBeenSet = true; m_grantRead = std::move(value); } /** *

Allows grantee to read the object data and its metadata.

This action * is not supported by Amazon S3 on Outposts.

*/ inline void SetGrantRead(const char* value) { m_grantReadHasBeenSet = true; m_grantRead.assign(value); } /** *

Allows grantee to read the object data and its metadata.

This action * is not supported by Amazon S3 on Outposts.

*/ inline PutObjectRequest& WithGrantRead(const Aws::String& value) { SetGrantRead(value); return *this;} /** *

Allows grantee to read the object data and its metadata.

This action * is not supported by Amazon S3 on Outposts.

*/ inline PutObjectRequest& WithGrantRead(Aws::String&& value) { SetGrantRead(std::move(value)); return *this;} /** *

Allows grantee to read the object data and its metadata.

This action * is not supported by Amazon S3 on Outposts.

*/ inline PutObjectRequest& WithGrantRead(const char* value) { SetGrantRead(value); return *this;} /** *

Allows grantee to read the object ACL.

This action is not supported by * Amazon S3 on Outposts.

*/ inline const Aws::String& GetGrantReadACP() const{ return m_grantReadACP; } /** *

Allows grantee to read the object ACL.

This action is not supported by * Amazon S3 on Outposts.

*/ inline bool GrantReadACPHasBeenSet() const { return m_grantReadACPHasBeenSet; } /** *

Allows grantee to read the object ACL.

This action is not supported by * Amazon S3 on Outposts.

*/ inline void SetGrantReadACP(const Aws::String& value) { m_grantReadACPHasBeenSet = true; m_grantReadACP = value; } /** *

Allows grantee to read the object ACL.

This action is not supported by * Amazon S3 on Outposts.

*/ inline void SetGrantReadACP(Aws::String&& value) { m_grantReadACPHasBeenSet = true; m_grantReadACP = std::move(value); } /** *

Allows grantee to read the object ACL.

This action is not supported by * Amazon S3 on Outposts.

*/ inline void SetGrantReadACP(const char* value) { m_grantReadACPHasBeenSet = true; m_grantReadACP.assign(value); } /** *

Allows grantee to read the object ACL.

This action is not supported by * Amazon S3 on Outposts.

*/ inline PutObjectRequest& WithGrantReadACP(const Aws::String& value) { SetGrantReadACP(value); return *this;} /** *

Allows grantee to read the object ACL.

This action is not supported by * Amazon S3 on Outposts.

*/ inline PutObjectRequest& WithGrantReadACP(Aws::String&& value) { SetGrantReadACP(std::move(value)); return *this;} /** *

Allows grantee to read the object ACL.

This action is not supported by * Amazon S3 on Outposts.

*/ inline PutObjectRequest& WithGrantReadACP(const char* value) { SetGrantReadACP(value); return *this;} /** *

Allows grantee to write the ACL for the applicable object.

This action * is not supported by Amazon S3 on Outposts.

*/ inline const Aws::String& GetGrantWriteACP() const{ return m_grantWriteACP; } /** *

Allows grantee to write the ACL for the applicable object.

This action * is not supported by Amazon S3 on Outposts.

*/ inline bool GrantWriteACPHasBeenSet() const { return m_grantWriteACPHasBeenSet; } /** *

Allows grantee to write the ACL for the applicable object.

This action * is not supported by Amazon S3 on Outposts.

*/ inline void SetGrantWriteACP(const Aws::String& value) { m_grantWriteACPHasBeenSet = true; m_grantWriteACP = value; } /** *

Allows grantee to write the ACL for the applicable object.

This action * is not supported by Amazon S3 on Outposts.

*/ inline void SetGrantWriteACP(Aws::String&& value) { m_grantWriteACPHasBeenSet = true; m_grantWriteACP = std::move(value); } /** *

Allows grantee to write the ACL for the applicable object.

This action * is not supported by Amazon S3 on Outposts.

*/ inline void SetGrantWriteACP(const char* value) { m_grantWriteACPHasBeenSet = true; m_grantWriteACP.assign(value); } /** *

Allows grantee to write the ACL for the applicable object.

This action * is not supported by Amazon S3 on Outposts.

*/ inline PutObjectRequest& WithGrantWriteACP(const Aws::String& value) { SetGrantWriteACP(value); return *this;} /** *

Allows grantee to write the ACL for the applicable object.

This action * is not supported by Amazon S3 on Outposts.

*/ inline PutObjectRequest& WithGrantWriteACP(Aws::String&& value) { SetGrantWriteACP(std::move(value)); return *this;} /** *

Allows grantee to write the ACL for the applicable object.

This action * is not supported by Amazon S3 on Outposts.

*/ inline PutObjectRequest& WithGrantWriteACP(const char* value) { SetGrantWriteACP(value); return *this;} /** *

Object key for which the PUT action was initiated.

*/ inline const Aws::String& GetKey() const{ return m_key; } /** *

Object key for which the PUT action was initiated.

*/ inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; } /** *

Object key for which the PUT action was initiated.

*/ inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; } /** *

Object key for which the PUT action was initiated.

*/ inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); } /** *

Object key for which the PUT action was initiated.

*/ inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); } /** *

Object key for which the PUT action was initiated.

*/ inline PutObjectRequest& WithKey(const Aws::String& value) { SetKey(value); return *this;} /** *

Object key for which the PUT action was initiated.

*/ inline PutObjectRequest& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;} /** *

Object key for which the PUT action was initiated.

*/ inline PutObjectRequest& WithKey(const char* value) { SetKey(value); return *this;} /** *

A map of metadata to store with the object in S3.

*/ inline const Aws::Map& GetMetadata() const{ return m_metadata; } /** *

A map of metadata to store with the object in S3.

*/ inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; } /** *

A map of metadata to store with the object in S3.

*/ inline void SetMetadata(const Aws::Map& value) { m_metadataHasBeenSet = true; m_metadata = value; } /** *

A map of metadata to store with the object in S3.

*/ inline void SetMetadata(Aws::Map&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); } /** *

A map of metadata to store with the object in S3.

*/ inline PutObjectRequest& WithMetadata(const Aws::Map& value) { SetMetadata(value); return *this;} /** *

A map of metadata to store with the object in S3.

*/ inline PutObjectRequest& WithMetadata(Aws::Map&& value) { SetMetadata(std::move(value)); return *this;} /** *

A map of metadata to store with the object in S3.

*/ inline PutObjectRequest& AddMetadata(const Aws::String& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; } /** *

A map of metadata to store with the object in S3.

*/ inline PutObjectRequest& AddMetadata(Aws::String&& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; } /** *

A map of metadata to store with the object in S3.

*/ inline PutObjectRequest& AddMetadata(const Aws::String& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; } /** *

A map of metadata to store with the object in S3.

*/ inline PutObjectRequest& AddMetadata(Aws::String&& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), std::move(value)); return *this; } /** *

A map of metadata to store with the object in S3.

*/ inline PutObjectRequest& AddMetadata(const char* key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; } /** *

A map of metadata to store with the object in S3.

*/ inline PutObjectRequest& AddMetadata(Aws::String&& key, const char* value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; } /** *

A map of metadata to store with the object in S3.

*/ inline PutObjectRequest& AddMetadata(const char* key, const char* value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; } /** *

The server-side encryption algorithm used when storing this object in Amazon * S3 (for example, AES256, aws:kms).

*/ inline const ServerSideEncryption& GetServerSideEncryption() const{ return m_serverSideEncryption; } /** *

The server-side encryption algorithm used when storing this object in Amazon * S3 (for example, AES256, aws:kms).

*/ inline bool ServerSideEncryptionHasBeenSet() const { return m_serverSideEncryptionHasBeenSet; } /** *

The server-side encryption algorithm used when storing this object in Amazon * S3 (for example, AES256, aws:kms).

*/ inline void SetServerSideEncryption(const ServerSideEncryption& value) { m_serverSideEncryptionHasBeenSet = true; m_serverSideEncryption = value; } /** *

The server-side encryption algorithm used when storing this object in Amazon * S3 (for example, AES256, aws:kms).

*/ inline void SetServerSideEncryption(ServerSideEncryption&& value) { m_serverSideEncryptionHasBeenSet = true; m_serverSideEncryption = std::move(value); } /** *

The server-side encryption algorithm used when storing this object in Amazon * S3 (for example, AES256, aws:kms).

*/ inline PutObjectRequest& WithServerSideEncryption(const ServerSideEncryption& value) { SetServerSideEncryption(value); return *this;} /** *

The server-side encryption algorithm used when storing this object in Amazon * S3 (for example, AES256, aws:kms).

*/ inline PutObjectRequest& WithServerSideEncryption(ServerSideEncryption&& value) { SetServerSideEncryption(std::move(value)); return *this;} /** *

By default, Amazon S3 uses the STANDARD Storage Class to store newly created * objects. The STANDARD storage class provides high durability and high * availability. Depending on performance needs, you can specify a different * Storage Class. Amazon S3 on Outposts only uses the OUTPOSTS Storage Class. For * more information, see Storage * Classes in the Amazon S3 User Guide.

*/ inline const StorageClass& GetStorageClass() const{ return m_storageClass; } /** *

By default, Amazon S3 uses the STANDARD Storage Class to store newly created * objects. The STANDARD storage class provides high durability and high * availability. Depending on performance needs, you can specify a different * Storage Class. Amazon S3 on Outposts only uses the OUTPOSTS Storage Class. For * more information, see Storage * Classes in the Amazon S3 User Guide.

*/ inline bool StorageClassHasBeenSet() const { return m_storageClassHasBeenSet; } /** *

By default, Amazon S3 uses the STANDARD Storage Class to store newly created * objects. The STANDARD storage class provides high durability and high * availability. Depending on performance needs, you can specify a different * Storage Class. Amazon S3 on Outposts only uses the OUTPOSTS Storage Class. For * more information, see Storage * Classes in the Amazon S3 User Guide.

*/ inline void SetStorageClass(const StorageClass& value) { m_storageClassHasBeenSet = true; m_storageClass = value; } /** *

By default, Amazon S3 uses the STANDARD Storage Class to store newly created * objects. The STANDARD storage class provides high durability and high * availability. Depending on performance needs, you can specify a different * Storage Class. Amazon S3 on Outposts only uses the OUTPOSTS Storage Class. For * more information, see Storage * Classes in the Amazon S3 User Guide.

*/ inline void SetStorageClass(StorageClass&& value) { m_storageClassHasBeenSet = true; m_storageClass = std::move(value); } /** *

By default, Amazon S3 uses the STANDARD Storage Class to store newly created * objects. The STANDARD storage class provides high durability and high * availability. Depending on performance needs, you can specify a different * Storage Class. Amazon S3 on Outposts only uses the OUTPOSTS Storage Class. For * more information, see Storage * Classes in the Amazon S3 User Guide.

*/ inline PutObjectRequest& WithStorageClass(const StorageClass& value) { SetStorageClass(value); return *this;} /** *

By default, Amazon S3 uses the STANDARD Storage Class to store newly created * objects. The STANDARD storage class provides high durability and high * availability. Depending on performance needs, you can specify a different * Storage Class. Amazon S3 on Outposts only uses the OUTPOSTS Storage Class. For * more information, see Storage * Classes in the Amazon S3 User Guide.

*/ inline PutObjectRequest& WithStorageClass(StorageClass&& value) { SetStorageClass(std::move(value)); return *this;} /** *

If the bucket is configured as a website, redirects requests for this object * to another object in the same bucket or to an external URL. Amazon S3 stores the * value of this header in the object metadata. For information about object * metadata, see Object * Key and Metadata.

In the following example, the request header sets * the redirect to an object (anotherPage.html) in the same bucket:

* x-amz-website-redirect-location: /anotherPage.html

In the * following example, the request header sets the object redirect to another * website:

x-amz-website-redirect-location: * http://www.example.com/

For more information about website * hosting in Amazon S3, see Hosting * Websites on Amazon S3 and How * to Configure Website Page Redirects.

*/ inline const Aws::String& GetWebsiteRedirectLocation() const{ return m_websiteRedirectLocation; } /** *

If the bucket is configured as a website, redirects requests for this object * to another object in the same bucket or to an external URL. Amazon S3 stores the * value of this header in the object metadata. For information about object * metadata, see Object * Key and Metadata.

In the following example, the request header sets * the redirect to an object (anotherPage.html) in the same bucket:

* x-amz-website-redirect-location: /anotherPage.html

In the * following example, the request header sets the object redirect to another * website:

x-amz-website-redirect-location: * http://www.example.com/

For more information about website * hosting in Amazon S3, see Hosting * Websites on Amazon S3 and How * to Configure Website Page Redirects.

*/ inline bool WebsiteRedirectLocationHasBeenSet() const { return m_websiteRedirectLocationHasBeenSet; } /** *

If the bucket is configured as a website, redirects requests for this object * to another object in the same bucket or to an external URL. Amazon S3 stores the * value of this header in the object metadata. For information about object * metadata, see Object * Key and Metadata.

In the following example, the request header sets * the redirect to an object (anotherPage.html) in the same bucket:

* x-amz-website-redirect-location: /anotherPage.html

In the * following example, the request header sets the object redirect to another * website:

x-amz-website-redirect-location: * http://www.example.com/

For more information about website * hosting in Amazon S3, see Hosting * Websites on Amazon S3 and How * to Configure Website Page Redirects.

*/ inline void SetWebsiteRedirectLocation(const Aws::String& value) { m_websiteRedirectLocationHasBeenSet = true; m_websiteRedirectLocation = value; } /** *

If the bucket is configured as a website, redirects requests for this object * to another object in the same bucket or to an external URL. Amazon S3 stores the * value of this header in the object metadata. For information about object * metadata, see Object * Key and Metadata.

In the following example, the request header sets * the redirect to an object (anotherPage.html) in the same bucket:

* x-amz-website-redirect-location: /anotherPage.html

In the * following example, the request header sets the object redirect to another * website:

x-amz-website-redirect-location: * http://www.example.com/

For more information about website * hosting in Amazon S3, see Hosting * Websites on Amazon S3 and How * to Configure Website Page Redirects.

*/ inline void SetWebsiteRedirectLocation(Aws::String&& value) { m_websiteRedirectLocationHasBeenSet = true; m_websiteRedirectLocation = std::move(value); } /** *

If the bucket is configured as a website, redirects requests for this object * to another object in the same bucket or to an external URL. Amazon S3 stores the * value of this header in the object metadata. For information about object * metadata, see Object * Key and Metadata.

In the following example, the request header sets * the redirect to an object (anotherPage.html) in the same bucket:

* x-amz-website-redirect-location: /anotherPage.html

In the * following example, the request header sets the object redirect to another * website:

x-amz-website-redirect-location: * http://www.example.com/

For more information about website * hosting in Amazon S3, see Hosting * Websites on Amazon S3 and How * to Configure Website Page Redirects.

*/ inline void SetWebsiteRedirectLocation(const char* value) { m_websiteRedirectLocationHasBeenSet = true; m_websiteRedirectLocation.assign(value); } /** *

If the bucket is configured as a website, redirects requests for this object * to another object in the same bucket or to an external URL. Amazon S3 stores the * value of this header in the object metadata. For information about object * metadata, see Object * Key and Metadata.

In the following example, the request header sets * the redirect to an object (anotherPage.html) in the same bucket:

* x-amz-website-redirect-location: /anotherPage.html

In the * following example, the request header sets the object redirect to another * website:

x-amz-website-redirect-location: * http://www.example.com/

For more information about website * hosting in Amazon S3, see Hosting * Websites on Amazon S3 and How * to Configure Website Page Redirects.

*/ inline PutObjectRequest& WithWebsiteRedirectLocation(const Aws::String& value) { SetWebsiteRedirectLocation(value); return *this;} /** *

If the bucket is configured as a website, redirects requests for this object * to another object in the same bucket or to an external URL. Amazon S3 stores the * value of this header in the object metadata. For information about object * metadata, see Object * Key and Metadata.

In the following example, the request header sets * the redirect to an object (anotherPage.html) in the same bucket:

* x-amz-website-redirect-location: /anotherPage.html

In the * following example, the request header sets the object redirect to another * website:

x-amz-website-redirect-location: * http://www.example.com/

For more information about website * hosting in Amazon S3, see Hosting * Websites on Amazon S3 and How * to Configure Website Page Redirects.

*/ inline PutObjectRequest& WithWebsiteRedirectLocation(Aws::String&& value) { SetWebsiteRedirectLocation(std::move(value)); return *this;} /** *

If the bucket is configured as a website, redirects requests for this object * to another object in the same bucket or to an external URL. Amazon S3 stores the * value of this header in the object metadata. For information about object * metadata, see Object * Key and Metadata.

In the following example, the request header sets * the redirect to an object (anotherPage.html) in the same bucket:

* x-amz-website-redirect-location: /anotherPage.html

In the * following example, the request header sets the object redirect to another * website:

x-amz-website-redirect-location: * http://www.example.com/

For more information about website * hosting in Amazon S3, see Hosting * Websites on Amazon S3 and How * to Configure Website Page Redirects.

*/ inline PutObjectRequest& WithWebsiteRedirectLocation(const char* value) { SetWebsiteRedirectLocation(value); return *this;} /** *

Specifies the algorithm to use to when encrypting the object (for example, * AES256).

*/ inline const Aws::String& GetSSECustomerAlgorithm() const{ return m_sSECustomerAlgorithm; } /** *

Specifies the algorithm to use to when encrypting the object (for example, * AES256).

*/ inline bool SSECustomerAlgorithmHasBeenSet() const { return m_sSECustomerAlgorithmHasBeenSet; } /** *

Specifies the algorithm to use to when encrypting the object (for example, * AES256).

*/ inline void SetSSECustomerAlgorithm(const Aws::String& value) { m_sSECustomerAlgorithmHasBeenSet = true; m_sSECustomerAlgorithm = value; } /** *

Specifies the algorithm to use to when encrypting the object (for example, * AES256).

*/ inline void SetSSECustomerAlgorithm(Aws::String&& value) { m_sSECustomerAlgorithmHasBeenSet = true; m_sSECustomerAlgorithm = std::move(value); } /** *

Specifies the algorithm to use to when encrypting the object (for example, * AES256).

*/ inline void SetSSECustomerAlgorithm(const char* value) { m_sSECustomerAlgorithmHasBeenSet = true; m_sSECustomerAlgorithm.assign(value); } /** *

Specifies the algorithm to use to when encrypting the object (for example, * AES256).

*/ inline PutObjectRequest& WithSSECustomerAlgorithm(const Aws::String& value) { SetSSECustomerAlgorithm(value); return *this;} /** *

Specifies the algorithm to use to when encrypting the object (for example, * AES256).

*/ inline PutObjectRequest& WithSSECustomerAlgorithm(Aws::String&& value) { SetSSECustomerAlgorithm(std::move(value)); return *this;} /** *

Specifies the algorithm to use to when encrypting the object (for example, * AES256).

*/ inline PutObjectRequest& WithSSECustomerAlgorithm(const char* value) { SetSSECustomerAlgorithm(value); return *this;} /** *

Specifies the customer-provided encryption key for Amazon S3 to use in * encrypting data. This value is used to store the object and then it is * discarded; Amazon S3 does not store the encryption key. The key must be * appropriate for use with the algorithm specified in the * x-amz-server-side-encryption-customer-algorithm header.

*/ inline const Aws::String& GetSSECustomerKey() const{ return m_sSECustomerKey; } /** *

Specifies the customer-provided encryption key for Amazon S3 to use in * encrypting data. This value is used to store the object and then it is * discarded; Amazon S3 does not store the encryption key. The key must be * appropriate for use with the algorithm specified in the * x-amz-server-side-encryption-customer-algorithm header.

*/ inline bool SSECustomerKeyHasBeenSet() const { return m_sSECustomerKeyHasBeenSet; } /** *

Specifies the customer-provided encryption key for Amazon S3 to use in * encrypting data. This value is used to store the object and then it is * discarded; Amazon S3 does not store the encryption key. The key must be * appropriate for use with the algorithm specified in the * x-amz-server-side-encryption-customer-algorithm header.

*/ inline void SetSSECustomerKey(const Aws::String& value) { m_sSECustomerKeyHasBeenSet = true; m_sSECustomerKey = value; } /** *

Specifies the customer-provided encryption key for Amazon S3 to use in * encrypting data. This value is used to store the object and then it is * discarded; Amazon S3 does not store the encryption key. The key must be * appropriate for use with the algorithm specified in the * x-amz-server-side-encryption-customer-algorithm header.

*/ inline void SetSSECustomerKey(Aws::String&& value) { m_sSECustomerKeyHasBeenSet = true; m_sSECustomerKey = std::move(value); } /** *

Specifies the customer-provided encryption key for Amazon S3 to use in * encrypting data. This value is used to store the object and then it is * discarded; Amazon S3 does not store the encryption key. The key must be * appropriate for use with the algorithm specified in the * x-amz-server-side-encryption-customer-algorithm header.

*/ inline void SetSSECustomerKey(const char* value) { m_sSECustomerKeyHasBeenSet = true; m_sSECustomerKey.assign(value); } /** *

Specifies the customer-provided encryption key for Amazon S3 to use in * encrypting data. This value is used to store the object and then it is * discarded; Amazon S3 does not store the encryption key. The key must be * appropriate for use with the algorithm specified in the * x-amz-server-side-encryption-customer-algorithm header.

*/ inline PutObjectRequest& WithSSECustomerKey(const Aws::String& value) { SetSSECustomerKey(value); return *this;} /** *

Specifies the customer-provided encryption key for Amazon S3 to use in * encrypting data. This value is used to store the object and then it is * discarded; Amazon S3 does not store the encryption key. The key must be * appropriate for use with the algorithm specified in the * x-amz-server-side-encryption-customer-algorithm header.

*/ inline PutObjectRequest& WithSSECustomerKey(Aws::String&& value) { SetSSECustomerKey(std::move(value)); return *this;} /** *

Specifies the customer-provided encryption key for Amazon S3 to use in * encrypting data. This value is used to store the object and then it is * discarded; Amazon S3 does not store the encryption key. The key must be * appropriate for use with the algorithm specified in the * x-amz-server-side-encryption-customer-algorithm header.

*/ inline PutObjectRequest& WithSSECustomerKey(const char* value) { SetSSECustomerKey(value); return *this;} /** *

Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. * Amazon S3 uses this header for a message integrity check to ensure that the * encryption key was transmitted without error.

*/ inline const Aws::String& GetSSECustomerKeyMD5() const{ return m_sSECustomerKeyMD5; } /** *

Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. * Amazon S3 uses this header for a message integrity check to ensure that the * encryption key was transmitted without error.

*/ inline bool SSECustomerKeyMD5HasBeenSet() const { return m_sSECustomerKeyMD5HasBeenSet; } /** *

Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. * Amazon S3 uses this header for a message integrity check to ensure that the * encryption key was transmitted without error.

*/ inline void SetSSECustomerKeyMD5(const Aws::String& value) { m_sSECustomerKeyMD5HasBeenSet = true; m_sSECustomerKeyMD5 = value; } /** *

Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. * Amazon S3 uses this header for a message integrity check to ensure that the * encryption key was transmitted without error.

*/ inline void SetSSECustomerKeyMD5(Aws::String&& value) { m_sSECustomerKeyMD5HasBeenSet = true; m_sSECustomerKeyMD5 = std::move(value); } /** *

Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. * Amazon S3 uses this header for a message integrity check to ensure that the * encryption key was transmitted without error.

*/ inline void SetSSECustomerKeyMD5(const char* value) { m_sSECustomerKeyMD5HasBeenSet = true; m_sSECustomerKeyMD5.assign(value); } /** *

Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. * Amazon S3 uses this header for a message integrity check to ensure that the * encryption key was transmitted without error.

*/ inline PutObjectRequest& WithSSECustomerKeyMD5(const Aws::String& value) { SetSSECustomerKeyMD5(value); return *this;} /** *

Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. * Amazon S3 uses this header for a message integrity check to ensure that the * encryption key was transmitted without error.

*/ inline PutObjectRequest& WithSSECustomerKeyMD5(Aws::String&& value) { SetSSECustomerKeyMD5(std::move(value)); return *this;} /** *

Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. * Amazon S3 uses this header for a message integrity check to ensure that the * encryption key was transmitted without error.

*/ inline PutObjectRequest& WithSSECustomerKeyMD5(const char* value) { SetSSECustomerKeyMD5(value); return *this;} /** *

If x-amz-server-side-encryption is present and has the value of * aws:kms, this header specifies the ID of the Amazon Web Services * Key Management Service (Amazon Web Services KMS) symmetrical customer managed * key that was used for the object. If you specify * x-amz-server-side-encryption:aws:kms, but do not provide * x-amz-server-side-encryption-aws-kms-key-id, Amazon S3 uses the Amazon * Web Services managed key to protect the data. If the KMS key does not exist in * the same account issuing the command, you must use the full ARN and not just the * ID.

*/ inline const Aws::String& GetSSEKMSKeyId() const{ return m_sSEKMSKeyId; } /** *

If x-amz-server-side-encryption is present and has the value of * aws:kms, this header specifies the ID of the Amazon Web Services * Key Management Service (Amazon Web Services KMS) symmetrical customer managed * key that was used for the object. If you specify * x-amz-server-side-encryption:aws:kms, but do not provide * x-amz-server-side-encryption-aws-kms-key-id, Amazon S3 uses the Amazon * Web Services managed key to protect the data. If the KMS key does not exist in * the same account issuing the command, you must use the full ARN and not just the * ID.

*/ inline bool SSEKMSKeyIdHasBeenSet() const { return m_sSEKMSKeyIdHasBeenSet; } /** *

If x-amz-server-side-encryption is present and has the value of * aws:kms, this header specifies the ID of the Amazon Web Services * Key Management Service (Amazon Web Services KMS) symmetrical customer managed * key that was used for the object. If you specify * x-amz-server-side-encryption:aws:kms, but do not provide * x-amz-server-side-encryption-aws-kms-key-id, Amazon S3 uses the Amazon * Web Services managed key to protect the data. If the KMS key does not exist in * the same account issuing the command, you must use the full ARN and not just the * ID.

*/ inline void SetSSEKMSKeyId(const Aws::String& value) { m_sSEKMSKeyIdHasBeenSet = true; m_sSEKMSKeyId = value; } /** *

If x-amz-server-side-encryption is present and has the value of * aws:kms, this header specifies the ID of the Amazon Web Services * Key Management Service (Amazon Web Services KMS) symmetrical customer managed * key that was used for the object. If you specify * x-amz-server-side-encryption:aws:kms, but do not provide * x-amz-server-side-encryption-aws-kms-key-id, Amazon S3 uses the Amazon * Web Services managed key to protect the data. If the KMS key does not exist in * the same account issuing the command, you must use the full ARN and not just the * ID.

*/ inline void SetSSEKMSKeyId(Aws::String&& value) { m_sSEKMSKeyIdHasBeenSet = true; m_sSEKMSKeyId = std::move(value); } /** *

If x-amz-server-side-encryption is present and has the value of * aws:kms, this header specifies the ID of the Amazon Web Services * Key Management Service (Amazon Web Services KMS) symmetrical customer managed * key that was used for the object. If you specify * x-amz-server-side-encryption:aws:kms, but do not provide * x-amz-server-side-encryption-aws-kms-key-id, Amazon S3 uses the Amazon * Web Services managed key to protect the data. If the KMS key does not exist in * the same account issuing the command, you must use the full ARN and not just the * ID.

*/ inline void SetSSEKMSKeyId(const char* value) { m_sSEKMSKeyIdHasBeenSet = true; m_sSEKMSKeyId.assign(value); } /** *

If x-amz-server-side-encryption is present and has the value of * aws:kms, this header specifies the ID of the Amazon Web Services * Key Management Service (Amazon Web Services KMS) symmetrical customer managed * key that was used for the object. If you specify * x-amz-server-side-encryption:aws:kms, but do not provide * x-amz-server-side-encryption-aws-kms-key-id, Amazon S3 uses the Amazon * Web Services managed key to protect the data. If the KMS key does not exist in * the same account issuing the command, you must use the full ARN and not just the * ID.

*/ inline PutObjectRequest& WithSSEKMSKeyId(const Aws::String& value) { SetSSEKMSKeyId(value); return *this;} /** *

If x-amz-server-side-encryption is present and has the value of * aws:kms, this header specifies the ID of the Amazon Web Services * Key Management Service (Amazon Web Services KMS) symmetrical customer managed * key that was used for the object. If you specify * x-amz-server-side-encryption:aws:kms, but do not provide * x-amz-server-side-encryption-aws-kms-key-id, Amazon S3 uses the Amazon * Web Services managed key to protect the data. If the KMS key does not exist in * the same account issuing the command, you must use the full ARN and not just the * ID.

*/ inline PutObjectRequest& WithSSEKMSKeyId(Aws::String&& value) { SetSSEKMSKeyId(std::move(value)); return *this;} /** *

If x-amz-server-side-encryption is present and has the value of * aws:kms, this header specifies the ID of the Amazon Web Services * Key Management Service (Amazon Web Services KMS) symmetrical customer managed * key that was used for the object. If you specify * x-amz-server-side-encryption:aws:kms, but do not provide * x-amz-server-side-encryption-aws-kms-key-id, Amazon S3 uses the Amazon * Web Services managed key to protect the data. If the KMS key does not exist in * the same account issuing the command, you must use the full ARN and not just the * ID.

*/ inline PutObjectRequest& WithSSEKMSKeyId(const char* value) { SetSSEKMSKeyId(value); return *this;} /** *

Specifies the Amazon Web Services KMS Encryption Context to use for object * encryption. The value of this header is a base64-encoded UTF-8 string holding * JSON with the encryption context key-value pairs.

*/ inline const Aws::String& GetSSEKMSEncryptionContext() const{ return m_sSEKMSEncryptionContext; } /** *

Specifies the Amazon Web Services KMS Encryption Context to use for object * encryption. The value of this header is a base64-encoded UTF-8 string holding * JSON with the encryption context key-value pairs.

*/ inline bool SSEKMSEncryptionContextHasBeenSet() const { return m_sSEKMSEncryptionContextHasBeenSet; } /** *

Specifies the Amazon Web Services KMS Encryption Context to use for object * encryption. The value of this header is a base64-encoded UTF-8 string holding * JSON with the encryption context key-value pairs.

*/ inline void SetSSEKMSEncryptionContext(const Aws::String& value) { m_sSEKMSEncryptionContextHasBeenSet = true; m_sSEKMSEncryptionContext = value; } /** *

Specifies the Amazon Web Services KMS Encryption Context to use for object * encryption. The value of this header is a base64-encoded UTF-8 string holding * JSON with the encryption context key-value pairs.

*/ inline void SetSSEKMSEncryptionContext(Aws::String&& value) { m_sSEKMSEncryptionContextHasBeenSet = true; m_sSEKMSEncryptionContext = std::move(value); } /** *

Specifies the Amazon Web Services KMS Encryption Context to use for object * encryption. The value of this header is a base64-encoded UTF-8 string holding * JSON with the encryption context key-value pairs.

*/ inline void SetSSEKMSEncryptionContext(const char* value) { m_sSEKMSEncryptionContextHasBeenSet = true; m_sSEKMSEncryptionContext.assign(value); } /** *

Specifies the Amazon Web Services KMS Encryption Context to use for object * encryption. The value of this header is a base64-encoded UTF-8 string holding * JSON with the encryption context key-value pairs.

*/ inline PutObjectRequest& WithSSEKMSEncryptionContext(const Aws::String& value) { SetSSEKMSEncryptionContext(value); return *this;} /** *

Specifies the Amazon Web Services KMS Encryption Context to use for object * encryption. The value of this header is a base64-encoded UTF-8 string holding * JSON with the encryption context key-value pairs.

*/ inline PutObjectRequest& WithSSEKMSEncryptionContext(Aws::String&& value) { SetSSEKMSEncryptionContext(std::move(value)); return *this;} /** *

Specifies the Amazon Web Services KMS Encryption Context to use for object * encryption. The value of this header is a base64-encoded UTF-8 string holding * JSON with the encryption context key-value pairs.

*/ inline PutObjectRequest& WithSSEKMSEncryptionContext(const char* value) { SetSSEKMSEncryptionContext(value); return *this;} /** *

Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption * with server-side encryption using AWS KMS (SSE-KMS). Setting this header to * true causes Amazon S3 to use an S3 Bucket Key for object encryption * with SSE-KMS.

Specifying this header with a PUT action doesn’t affect * bucket-level settings for S3 Bucket Key.

*/ inline bool GetBucketKeyEnabled() const{ return m_bucketKeyEnabled; } /** *

Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption * with server-side encryption using AWS KMS (SSE-KMS). Setting this header to * true causes Amazon S3 to use an S3 Bucket Key for object encryption * with SSE-KMS.

Specifying this header with a PUT action doesn’t affect * bucket-level settings for S3 Bucket Key.

*/ inline bool BucketKeyEnabledHasBeenSet() const { return m_bucketKeyEnabledHasBeenSet; } /** *

Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption * with server-side encryption using AWS KMS (SSE-KMS). Setting this header to * true causes Amazon S3 to use an S3 Bucket Key for object encryption * with SSE-KMS.

Specifying this header with a PUT action doesn’t affect * bucket-level settings for S3 Bucket Key.

*/ inline void SetBucketKeyEnabled(bool value) { m_bucketKeyEnabledHasBeenSet = true; m_bucketKeyEnabled = value; } /** *

Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption * with server-side encryption using AWS KMS (SSE-KMS). Setting this header to * true causes Amazon S3 to use an S3 Bucket Key for object encryption * with SSE-KMS.

Specifying this header with a PUT action doesn’t affect * bucket-level settings for S3 Bucket Key.

*/ inline PutObjectRequest& WithBucketKeyEnabled(bool value) { SetBucketKeyEnabled(value); return *this;} inline const RequestPayer& GetRequestPayer() const{ return m_requestPayer; } inline bool RequestPayerHasBeenSet() const { return m_requestPayerHasBeenSet; } inline void SetRequestPayer(const RequestPayer& value) { m_requestPayerHasBeenSet = true; m_requestPayer = value; } inline void SetRequestPayer(RequestPayer&& value) { m_requestPayerHasBeenSet = true; m_requestPayer = std::move(value); } inline PutObjectRequest& WithRequestPayer(const RequestPayer& value) { SetRequestPayer(value); return *this;} inline PutObjectRequest& WithRequestPayer(RequestPayer&& value) { SetRequestPayer(std::move(value)); return *this;} /** *

The tag-set for the object. The tag-set must be encoded as URL Query * parameters. (For example, "Key1=Value1")

*/ inline const Aws::String& GetTagging() const{ return m_tagging; } /** *

The tag-set for the object. The tag-set must be encoded as URL Query * parameters. (For example, "Key1=Value1")

*/ inline bool TaggingHasBeenSet() const { return m_taggingHasBeenSet; } /** *

The tag-set for the object. The tag-set must be encoded as URL Query * parameters. (For example, "Key1=Value1")

*/ inline void SetTagging(const Aws::String& value) { m_taggingHasBeenSet = true; m_tagging = value; } /** *

The tag-set for the object. The tag-set must be encoded as URL Query * parameters. (For example, "Key1=Value1")

*/ inline void SetTagging(Aws::String&& value) { m_taggingHasBeenSet = true; m_tagging = std::move(value); } /** *

The tag-set for the object. The tag-set must be encoded as URL Query * parameters. (For example, "Key1=Value1")

*/ inline void SetTagging(const char* value) { m_taggingHasBeenSet = true; m_tagging.assign(value); } /** *

The tag-set for the object. The tag-set must be encoded as URL Query * parameters. (For example, "Key1=Value1")

*/ inline PutObjectRequest& WithTagging(const Aws::String& value) { SetTagging(value); return *this;} /** *

The tag-set for the object. The tag-set must be encoded as URL Query * parameters. (For example, "Key1=Value1")

*/ inline PutObjectRequest& WithTagging(Aws::String&& value) { SetTagging(std::move(value)); return *this;} /** *

The tag-set for the object. The tag-set must be encoded as URL Query * parameters. (For example, "Key1=Value1")

*/ inline PutObjectRequest& WithTagging(const char* value) { SetTagging(value); return *this;} /** *

The Object Lock mode that you want to apply to this object.

*/ inline const ObjectLockMode& GetObjectLockMode() const{ return m_objectLockMode; } /** *

The Object Lock mode that you want to apply to this object.

*/ inline bool ObjectLockModeHasBeenSet() const { return m_objectLockModeHasBeenSet; } /** *

The Object Lock mode that you want to apply to this object.

*/ inline void SetObjectLockMode(const ObjectLockMode& value) { m_objectLockModeHasBeenSet = true; m_objectLockMode = value; } /** *

The Object Lock mode that you want to apply to this object.

*/ inline void SetObjectLockMode(ObjectLockMode&& value) { m_objectLockModeHasBeenSet = true; m_objectLockMode = std::move(value); } /** *

The Object Lock mode that you want to apply to this object.

*/ inline PutObjectRequest& WithObjectLockMode(const ObjectLockMode& value) { SetObjectLockMode(value); return *this;} /** *

The Object Lock mode that you want to apply to this object.

*/ inline PutObjectRequest& WithObjectLockMode(ObjectLockMode&& value) { SetObjectLockMode(std::move(value)); return *this;} /** *

The date and time when you want this object's Object Lock to expire. Must be * formatted as a timestamp parameter.

*/ inline const Aws::Utils::DateTime& GetObjectLockRetainUntilDate() const{ return m_objectLockRetainUntilDate; } /** *

The date and time when you want this object's Object Lock to expire. Must be * formatted as a timestamp parameter.

*/ inline bool ObjectLockRetainUntilDateHasBeenSet() const { return m_objectLockRetainUntilDateHasBeenSet; } /** *

The date and time when you want this object's Object Lock to expire. Must be * formatted as a timestamp parameter.

*/ inline void SetObjectLockRetainUntilDate(const Aws::Utils::DateTime& value) { m_objectLockRetainUntilDateHasBeenSet = true; m_objectLockRetainUntilDate = value; } /** *

The date and time when you want this object's Object Lock to expire. Must be * formatted as a timestamp parameter.

*/ inline void SetObjectLockRetainUntilDate(Aws::Utils::DateTime&& value) { m_objectLockRetainUntilDateHasBeenSet = true; m_objectLockRetainUntilDate = std::move(value); } /** *

The date and time when you want this object's Object Lock to expire. Must be * formatted as a timestamp parameter.

*/ inline PutObjectRequest& WithObjectLockRetainUntilDate(const Aws::Utils::DateTime& value) { SetObjectLockRetainUntilDate(value); return *this;} /** *

The date and time when you want this object's Object Lock to expire. Must be * formatted as a timestamp parameter.

*/ inline PutObjectRequest& WithObjectLockRetainUntilDate(Aws::Utils::DateTime&& value) { SetObjectLockRetainUntilDate(std::move(value)); return *this;} /** *

Specifies whether a legal hold will be applied to this object. For more * information about S3 Object Lock, see Object * Lock.

*/ inline const ObjectLockLegalHoldStatus& GetObjectLockLegalHoldStatus() const{ return m_objectLockLegalHoldStatus; } /** *

Specifies whether a legal hold will be applied to this object. For more * information about S3 Object Lock, see Object * Lock.

*/ inline bool ObjectLockLegalHoldStatusHasBeenSet() const { return m_objectLockLegalHoldStatusHasBeenSet; } /** *

Specifies whether a legal hold will be applied to this object. For more * information about S3 Object Lock, see Object * Lock.

*/ inline void SetObjectLockLegalHoldStatus(const ObjectLockLegalHoldStatus& value) { m_objectLockLegalHoldStatusHasBeenSet = true; m_objectLockLegalHoldStatus = value; } /** *

Specifies whether a legal hold will be applied to this object. For more * information about S3 Object Lock, see Object * Lock.

*/ inline void SetObjectLockLegalHoldStatus(ObjectLockLegalHoldStatus&& value) { m_objectLockLegalHoldStatusHasBeenSet = true; m_objectLockLegalHoldStatus = std::move(value); } /** *

Specifies whether a legal hold will be applied to this object. For more * information about S3 Object Lock, see Object * Lock.

*/ inline PutObjectRequest& WithObjectLockLegalHoldStatus(const ObjectLockLegalHoldStatus& value) { SetObjectLockLegalHoldStatus(value); return *this;} /** *

Specifies whether a legal hold will be applied to this object. For more * information about S3 Object Lock, see Object * Lock.

*/ inline PutObjectRequest& WithObjectLockLegalHoldStatus(ObjectLockLegalHoldStatus&& value) { SetObjectLockLegalHoldStatus(std::move(value)); return *this;} /** *

The account ID of the expected bucket owner. If the bucket is owned by a * different account, the request will fail with an HTTP 403 (Access * Denied) error.

*/ inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; } /** *

The account ID of the expected bucket owner. If the bucket is owned by a * different account, the request will fail with an HTTP 403 (Access * Denied) error.

*/ inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; } /** *

The account ID of the expected bucket owner. If the bucket is owned by a * different account, the request will fail with an HTTP 403 (Access * Denied) error.

*/ inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; } /** *

The account ID of the expected bucket owner. If the bucket is owned by a * different account, the request will fail with an HTTP 403 (Access * Denied) error.

*/ inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); } /** *

The account ID of the expected bucket owner. If the bucket is owned by a * different account, the request will fail with an HTTP 403 (Access * Denied) error.

*/ inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); } /** *

The account ID of the expected bucket owner. If the bucket is owned by a * different account, the request will fail with an HTTP 403 (Access * Denied) error.

*/ inline PutObjectRequest& WithExpectedBucketOwner(const Aws::String& value) { SetExpectedBucketOwner(value); return *this;} /** *

The account ID of the expected bucket owner. If the bucket is owned by a * different account, the request will fail with an HTTP 403 (Access * Denied) error.

*/ inline PutObjectRequest& WithExpectedBucketOwner(Aws::String&& value) { SetExpectedBucketOwner(std::move(value)); return *this;} /** *

The account ID of the expected bucket owner. If the bucket is owned by a * different account, the request will fail with an HTTP 403 (Access * Denied) error.

*/ inline PutObjectRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;} inline const Aws::Map& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; } inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; } inline void SetCustomizedAccessLogTag(const Aws::Map& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; } inline void SetCustomizedAccessLogTag(Aws::Map&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); } inline PutObjectRequest& WithCustomizedAccessLogTag(const Aws::Map& value) { SetCustomizedAccessLogTag(value); return *this;} inline PutObjectRequest& WithCustomizedAccessLogTag(Aws::Map&& value) { SetCustomizedAccessLogTag(std::move(value)); return *this;} inline PutObjectRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; } inline PutObjectRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; } inline PutObjectRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; } inline PutObjectRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; } inline PutObjectRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; } inline PutObjectRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; } inline PutObjectRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; } private: ObjectCannedACL m_aCL; bool m_aCLHasBeenSet; Aws::String m_bucket; bool m_bucketHasBeenSet; Aws::String m_cacheControl; bool m_cacheControlHasBeenSet; Aws::String m_contentDisposition; bool m_contentDispositionHasBeenSet; Aws::String m_contentEncoding; bool m_contentEncodingHasBeenSet; Aws::String m_contentLanguage; bool m_contentLanguageHasBeenSet; long long m_contentLength; bool m_contentLengthHasBeenSet; Aws::String m_contentMD5; bool m_contentMD5HasBeenSet; Aws::Utils::DateTime m_expires; bool m_expiresHasBeenSet; Aws::String m_grantFullControl; bool m_grantFullControlHasBeenSet; Aws::String m_grantRead; bool m_grantReadHasBeenSet; Aws::String m_grantReadACP; bool m_grantReadACPHasBeenSet; Aws::String m_grantWriteACP; bool m_grantWriteACPHasBeenSet; Aws::String m_key; bool m_keyHasBeenSet; Aws::Map m_metadata; bool m_metadataHasBeenSet; ServerSideEncryption m_serverSideEncryption; bool m_serverSideEncryptionHasBeenSet; StorageClass m_storageClass; bool m_storageClassHasBeenSet; Aws::String m_websiteRedirectLocation; bool m_websiteRedirectLocationHasBeenSet; Aws::String m_sSECustomerAlgorithm; bool m_sSECustomerAlgorithmHasBeenSet; Aws::String m_sSECustomerKey; bool m_sSECustomerKeyHasBeenSet; Aws::String m_sSECustomerKeyMD5; bool m_sSECustomerKeyMD5HasBeenSet; Aws::String m_sSEKMSKeyId; bool m_sSEKMSKeyIdHasBeenSet; Aws::String m_sSEKMSEncryptionContext; bool m_sSEKMSEncryptionContextHasBeenSet; bool m_bucketKeyEnabled; bool m_bucketKeyEnabledHasBeenSet; RequestPayer m_requestPayer; bool m_requestPayerHasBeenSet; Aws::String m_tagging; bool m_taggingHasBeenSet; ObjectLockMode m_objectLockMode; bool m_objectLockModeHasBeenSet; Aws::Utils::DateTime m_objectLockRetainUntilDate; bool m_objectLockRetainUntilDateHasBeenSet; ObjectLockLegalHoldStatus m_objectLockLegalHoldStatus; bool m_objectLockLegalHoldStatusHasBeenSet; Aws::String m_expectedBucketOwner; bool m_expectedBucketOwnerHasBeenSet; Aws::Map m_customizedAccessLogTag; bool m_customizedAccessLogTagHasBeenSet; }; } // namespace Model } // namespace S3 } // namespace Aws