aws_sdk_s3/operation/create_multipart_upload/
builders.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::create_multipart_upload::_create_multipart_upload_output::CreateMultipartUploadOutputBuilder;
3
4pub use crate::operation::create_multipart_upload::_create_multipart_upload_input::CreateMultipartUploadInputBuilder;
5
6impl crate::operation::create_multipart_upload::builders::CreateMultipartUploadInputBuilder {
7    /// Sends a request with this input using the given client.
8    pub async fn send_with(
9        self,
10        client: &crate::Client,
11    ) -> ::std::result::Result<
12        crate::operation::create_multipart_upload::CreateMultipartUploadOutput,
13        ::aws_smithy_runtime_api::client::result::SdkError<
14            crate::operation::create_multipart_upload::CreateMultipartUploadError,
15            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16        >,
17    > {
18        let mut fluent_builder = client.create_multipart_upload();
19        fluent_builder.inner = self;
20        fluent_builder.send().await
21    }
22}
23/// Fluent builder constructing a request to `CreateMultipartUpload`.
24///
25/// <p>This action initiates a multipart upload and returns an upload ID. This upload ID is used to associate all of the parts in the specific multipart upload. You specify this upload ID in each of your subsequent upload part requests (see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html">UploadPart</a>). You also include this upload ID in the final request to either complete or abort the multipart upload request. For more information about multipart uploads, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html">Multipart Upload Overview</a> in the <i>Amazon S3 User Guide</i>.</p><note>
26/// <p>After you initiate a multipart upload and upload one or more parts, to stop being charged for storing the uploaded parts, you must either complete or abort the multipart upload. Amazon S3 frees up the space used to store the parts and stops charging you for storing them only after you either complete or abort a multipart upload.</p>
27/// </note>
28/// <p>If you have configured a lifecycle rule to abort incomplete multipart uploads, the created multipart upload must be completed within the number of days specified in the bucket lifecycle configuration. Otherwise, the incomplete multipart upload becomes eligible for an abort action and Amazon S3 aborts the multipart upload. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html#mpu-abort-incomplete-mpu-lifecycle-config">Aborting Incomplete Multipart Uploads Using a Bucket Lifecycle Configuration</a>.</p><note>
29/// <ul>
30/// <li>
31/// <p><b>Directory buckets </b> - S3 Lifecycle is not supported by directory buckets.</p></li>
32/// <li>
33/// <p><b>Directory buckets </b> - For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format <code>https://<i>amzn-s3-demo-bucket</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com/<i>key-name</i> </code>. Path-style requests are not supported. For more information about endpoints in Availability Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html">Regional and Zonal endpoints for directory buckets in Availability Zones</a> in the <i>Amazon S3 User Guide</i>. For more information about endpoints in Local Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html">Concepts for directory buckets in Local Zones</a> in the <i>Amazon S3 User Guide</i>.</p></li>
34/// </ul>
35/// </note>
36/// <dl>
37/// <dt>
38/// Request signing
39/// </dt>
40/// <dd>
41/// <p>For request signing, multipart upload is just a series of regular requests. You initiate a multipart upload, send one or more requests to upload parts, and then complete the multipart upload process. You sign each request individually. There is nothing special about signing multipart upload requests. For more information about signing, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html">Authenticating Requests (Amazon Web Services Signature Version 4)</a> in the <i>Amazon S3 User Guide</i>.</p>
42/// </dd>
43/// <dt>
44/// Permissions
45/// </dt>
46/// <dd>
47/// <ul>
48/// <li>
49/// <p><b>General purpose bucket permissions</b> - To perform a multipart upload with encryption using an Key Management Service (KMS) KMS key, the requester must have permission to the <code>kms:Decrypt</code> and <code>kms:GenerateDataKey</code> actions on the key. The requester must also have permissions for the <code>kms:GenerateDataKey</code> action for the <code>CreateMultipartUpload</code> API. Then, the requester needs permissions for the <code>kms:Decrypt</code> action on the <code>UploadPart</code> and <code>UploadPartCopy</code> APIs. These permissions are required because Amazon S3 must decrypt and read data from the encrypted file parts before it completes the multipart upload. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html#mpuAndPermissions">Multipart upload API and permissions</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html">Protecting data using server-side encryption with Amazon Web Services KMS</a> in the <i>Amazon S3 User Guide</i>.</p></li>
50/// <li>
51/// <p><b>Directory bucket permissions</b> - To grant access to this API operation on a directory bucket, we recommend that you use the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html"> <code>CreateSession</code> </a> API operation for session-based authorization. Specifically, you grant the <code>s3express:CreateSession</code> permission to the directory bucket in a bucket policy or an IAM identity-based policy. Then, you make the <code>CreateSession</code> API call on the bucket to obtain a session token. With the session token in your request header, you can make API requests to this operation. After the session token expires, you make another <code>CreateSession</code> API call to generate a new session token for use. Amazon Web Services CLI or SDKs create session and refresh the session token automatically to avoid service interruptions when a session expires. For more information about authorization, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html"> <code>CreateSession</code> </a>.</p></li>
52/// </ul>
53/// </dd>
54/// <dt>
55/// Encryption
56/// </dt>
57/// <dd>
58/// <ul>
59/// <li>
60/// <p><b>General purpose buckets</b> - Server-side encryption is for data encryption at rest. Amazon S3 encrypts your data as it writes it to disks in its data centers and decrypts it when you access it. Amazon S3 automatically encrypts all new objects that are uploaded to an S3 bucket. When doing a multipart upload, if you don't specify encryption information in your request, the encryption setting of the uploaded parts is set to the default encryption configuration of the destination bucket. By default, all buckets have a base level of encryption configuration that uses server-side encryption with Amazon S3 managed keys (SSE-S3). If the destination bucket has a default encryption configuration that uses server-side encryption with an Key Management Service (KMS) key (SSE-KMS), or a customer-provided encryption key (SSE-C), Amazon S3 uses the corresponding KMS key, or a customer-provided key to encrypt the uploaded parts. When you perform a CreateMultipartUpload operation, if you want to use a different type of encryption setting for the uploaded parts, you can request that Amazon S3 encrypts the object with a different encryption key (such as an Amazon S3 managed key, a KMS key, or a customer-provided key). When the encryption setting in your request is different from the default encryption configuration of the destination bucket, the encryption setting in your request takes precedence. If you choose to provide your own encryption key, the request headers you provide in <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html">UploadPart</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html">UploadPartCopy</a> requests must match the headers you used in the <code>CreateMultipartUpload</code> request.</p>
61/// <ul>
62/// <li>
63/// <p>Use KMS keys (SSE-KMS) that include the Amazon Web Services managed key (<code>aws/s3</code>) and KMS customer managed keys stored in Key Management Service (KMS) – If you want Amazon Web Services to manage the keys used to encrypt data, specify the following headers in the request.</p>
64/// <ul>
65/// <li>
66/// <p><code>x-amz-server-side-encryption</code></p></li>
67/// <li>
68/// <p><code>x-amz-server-side-encryption-aws-kms-key-id</code></p></li>
69/// <li>
70/// <p><code>x-amz-server-side-encryption-context</code></p></li>
71/// </ul><note>
72/// <ul>
73/// <li>
74/// <p>If you specify <code>x-amz-server-side-encryption:aws:kms</code>, but don't provide <code>x-amz-server-side-encryption-aws-kms-key-id</code>, Amazon S3 uses the Amazon Web Services managed key (<code>aws/s3</code> key) in KMS to protect the data.</p></li>
75/// <li>
76/// <p>To perform a multipart upload with encryption by using an Amazon Web Services KMS key, the requester must have permission to the <code>kms:Decrypt</code> and <code>kms:GenerateDataKey*</code> actions on the key. These permissions are required because Amazon S3 must decrypt and read data from the encrypted file parts before it completes the multipart upload. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html#mpuAndPermissions">Multipart upload API and permissions</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html">Protecting data using server-side encryption with Amazon Web Services KMS</a> in the <i>Amazon S3 User Guide</i>.</p></li>
77/// <li>
78/// <p>If your Identity and Access Management (IAM) user or role is in the same Amazon Web Services account as the KMS key, then you must have these permissions on the key policy. If your IAM user or role is in a different account from the key, then you must have the permissions on both the key policy and your IAM user or role.</p></li>
79/// <li>
80/// <p>All <code>GET</code> and <code>PUT</code> requests for an object protected by KMS fail if you don't make them by using Secure Sockets Layer (SSL), Transport Layer Security (TLS), or Signature Version 4. For information about configuring any of the officially supported Amazon Web Services SDKs and Amazon Web Services CLI, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify-signature-version">Specifying the Signature Version in Request Authentication</a> in the <i>Amazon S3 User Guide</i>.</p></li>
81/// </ul>
82/// </note>
83/// <p>For more information about server-side encryption with KMS keys (SSE-KMS), see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html">Protecting Data Using Server-Side Encryption with KMS keys</a> in the <i>Amazon S3 User Guide</i>.</p></li>
84/// <li>
85/// <p>Use customer-provided encryption keys (SSE-C) – If you want to manage your own encryption keys, provide all the following headers in the request.</p>
86/// <ul>
87/// <li>
88/// <p><code>x-amz-server-side-encryption-customer-algorithm</code></p></li>
89/// <li>
90/// <p><code>x-amz-server-side-encryption-customer-key</code></p></li>
91/// <li>
92/// <p><code>x-amz-server-side-encryption-customer-key-MD5</code></p></li>
93/// </ul>
94/// <p>For more information about server-side encryption with customer-provided encryption keys (SSE-C), see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerSideEncryptionCustomerKeys.html"> Protecting data using server-side encryption with customer-provided encryption keys (SSE-C)</a> in the <i>Amazon S3 User Guide</i>.</p></li>
95/// </ul></li>
96/// <li>
97/// <p><b>Directory buckets</b> - For directory buckets, there are only two supported options for server-side encryption: server-side encryption with Amazon S3 managed keys (SSE-S3) (<code>AES256</code>) and server-side encryption with KMS keys (SSE-KMS) (<code>aws:kms</code>). We recommend that the bucket's default encryption uses the desired encryption configuration and you don't override the bucket default encryption in your <code>CreateSession</code> requests or <code>PUT</code> object requests. Then, new objects are automatically encrypted with the desired encryption settings. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-serv-side-encryption.html">Protecting data with server-side encryption</a> in the <i>Amazon S3 User Guide</i>. For more information about the encryption overriding behaviors in directory buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-specifying-kms-encryption.html">Specifying server-side encryption with KMS for new object uploads</a>.</p>
98/// <p>In the Zonal endpoint API calls (except <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html">CopyObject</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html">UploadPartCopy</a>) using the REST API, the encryption request headers must match the encryption settings that are specified in the <code>CreateSession</code> request. You can't override the values of the encryption settings (<code>x-amz-server-side-encryption</code>, <code>x-amz-server-side-encryption-aws-kms-key-id</code>, <code>x-amz-server-side-encryption-context</code>, and <code>x-amz-server-side-encryption-bucket-key-enabled</code>) that are specified in the <code>CreateSession</code> request. You don't need to explicitly specify these encryption settings values in Zonal endpoint API calls, and Amazon S3 will use the encryption settings values from the <code>CreateSession</code> request to protect new objects in the directory bucket.</p><note>
99/// <p>When you use the CLI or the Amazon Web Services SDKs, for <code>CreateSession</code>, the session token refreshes automatically to avoid service interruptions when a session expires. The CLI or the Amazon Web Services SDKs use the bucket's default encryption configuration for the <code>CreateSession</code> request. It's not supported to override the encryption settings values in the <code>CreateSession</code> request. So in the Zonal endpoint API calls (except <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html">CopyObject</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html">UploadPartCopy</a>), the encryption request headers must match the default encryption configuration of the directory bucket.</p>
100/// </note> <note>
101/// <p>For directory buckets, when you perform a <code>CreateMultipartUpload</code> operation and an <code>UploadPartCopy</code> operation, the request headers you provide in the <code>CreateMultipartUpload</code> request must match the default encryption configuration of the destination bucket.</p>
102/// </note></li>
103/// </ul>
104/// </dd>
105/// <dt>
106/// HTTP Host header syntax
107/// </dt>
108/// <dd>
109/// <p><b>Directory buckets </b> - The HTTP Host header syntax is <code> <i>Bucket-name</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com</code>.</p>
110/// </dd>
111/// </dl>
112/// <p>The following operations are related to <code>CreateMultipartUpload</code>:</p>
113/// <ul>
114/// <li>
115/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html">UploadPart</a></p></li>
116/// <li>
117/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CompleteMultipartUpload.html">CompleteMultipartUpload</a></p></li>
118/// <li>
119/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_AbortMultipartUpload.html">AbortMultipartUpload</a></p></li>
120/// <li>
121/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListParts.html">ListParts</a></p></li>
122/// <li>
123/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListMultipartUploads.html">ListMultipartUploads</a></p></li>
124/// </ul>
125#[derive(::std::clone::Clone, ::std::fmt::Debug)]
126pub struct CreateMultipartUploadFluentBuilder {
127    handle: ::std::sync::Arc<crate::client::Handle>,
128    inner: crate::operation::create_multipart_upload::builders::CreateMultipartUploadInputBuilder,
129    config_override: ::std::option::Option<crate::config::Builder>,
130}
131impl
132    crate::client::customize::internal::CustomizableSend<
133        crate::operation::create_multipart_upload::CreateMultipartUploadOutput,
134        crate::operation::create_multipart_upload::CreateMultipartUploadError,
135    > for CreateMultipartUploadFluentBuilder
136{
137    fn send(
138        self,
139        config_override: crate::config::Builder,
140    ) -> crate::client::customize::internal::BoxFuture<
141        crate::client::customize::internal::SendResult<
142            crate::operation::create_multipart_upload::CreateMultipartUploadOutput,
143            crate::operation::create_multipart_upload::CreateMultipartUploadError,
144        >,
145    > {
146        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
147    }
148}
149impl CreateMultipartUploadFluentBuilder {
150    /// Creates a new `CreateMultipartUploadFluentBuilder`.
151    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
152        Self {
153            handle,
154            inner: ::std::default::Default::default(),
155            config_override: ::std::option::Option::None,
156        }
157    }
158    /// Access the CreateMultipartUpload as a reference.
159    pub fn as_input(&self) -> &crate::operation::create_multipart_upload::builders::CreateMultipartUploadInputBuilder {
160        &self.inner
161    }
162    /// Sends the request and returns the response.
163    ///
164    /// If an error occurs, an `SdkError` will be returned with additional details that
165    /// can be matched against.
166    ///
167    /// By default, any retryable failures will be retried twice. Retry behavior
168    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
169    /// set when configuring the client.
170    pub async fn send(
171        self,
172    ) -> ::std::result::Result<
173        crate::operation::create_multipart_upload::CreateMultipartUploadOutput,
174        ::aws_smithy_runtime_api::client::result::SdkError<
175            crate::operation::create_multipart_upload::CreateMultipartUploadError,
176            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
177        >,
178    > {
179        let input = self
180            .inner
181            .build()
182            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
183        let runtime_plugins = crate::operation::create_multipart_upload::CreateMultipartUpload::operation_runtime_plugins(
184            self.handle.runtime_plugins.clone(),
185            &self.handle.conf,
186            self.config_override,
187        );
188        crate::operation::create_multipart_upload::CreateMultipartUpload::orchestrate(&runtime_plugins, input).await
189    }
190
191    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
192    pub fn customize(
193        self,
194    ) -> crate::client::customize::CustomizableOperation<
195        crate::operation::create_multipart_upload::CreateMultipartUploadOutput,
196        crate::operation::create_multipart_upload::CreateMultipartUploadError,
197        Self,
198    > {
199        crate::client::customize::CustomizableOperation::new(self)
200    }
201    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
202        self.set_config_override(::std::option::Option::Some(config_override.into()));
203        self
204    }
205
206    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
207        self.config_override = config_override;
208        self
209    }
210    /// <p>The canned ACL to apply to the object. Amazon S3 supports a set of predefined ACLs, known as <i>canned ACLs</i>. Each canned ACL has a predefined set of grantees and permissions. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#CannedACL">Canned ACL</a> in the <i>Amazon S3 User Guide</i>.</p>
211    /// <p>By default, all objects are private. Only the owner has full access control. When uploading an object, you can grant access permissions to individual Amazon Web Services accounts or to predefined groups defined by Amazon S3. These permissions are then added to the access control list (ACL) on the new object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/S3_ACLs_UsingACLs.html">Using ACLs</a>. One way to grant the permissions using the request headers is to specify a canned ACL with the <code>x-amz-acl</code> request header.</p><note>
212    /// <ul>
213    /// <li>
214    /// <p>This functionality is not supported for directory buckets.</p></li>
215    /// <li>
216    /// <p>This functionality is not supported for Amazon S3 on Outposts.</p></li>
217    /// </ul>
218    /// </note>
219    pub fn acl(mut self, input: crate::types::ObjectCannedAcl) -> Self {
220        self.inner = self.inner.acl(input);
221        self
222    }
223    /// <p>The canned ACL to apply to the object. Amazon S3 supports a set of predefined ACLs, known as <i>canned ACLs</i>. Each canned ACL has a predefined set of grantees and permissions. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#CannedACL">Canned ACL</a> in the <i>Amazon S3 User Guide</i>.</p>
224    /// <p>By default, all objects are private. Only the owner has full access control. When uploading an object, you can grant access permissions to individual Amazon Web Services accounts or to predefined groups defined by Amazon S3. These permissions are then added to the access control list (ACL) on the new object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/S3_ACLs_UsingACLs.html">Using ACLs</a>. One way to grant the permissions using the request headers is to specify a canned ACL with the <code>x-amz-acl</code> request header.</p><note>
225    /// <ul>
226    /// <li>
227    /// <p>This functionality is not supported for directory buckets.</p></li>
228    /// <li>
229    /// <p>This functionality is not supported for Amazon S3 on Outposts.</p></li>
230    /// </ul>
231    /// </note>
232    pub fn set_acl(mut self, input: ::std::option::Option<crate::types::ObjectCannedAcl>) -> Self {
233        self.inner = self.inner.set_acl(input);
234        self
235    }
236    /// <p>The canned ACL to apply to the object. Amazon S3 supports a set of predefined ACLs, known as <i>canned ACLs</i>. Each canned ACL has a predefined set of grantees and permissions. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#CannedACL">Canned ACL</a> in the <i>Amazon S3 User Guide</i>.</p>
237    /// <p>By default, all objects are private. Only the owner has full access control. When uploading an object, you can grant access permissions to individual Amazon Web Services accounts or to predefined groups defined by Amazon S3. These permissions are then added to the access control list (ACL) on the new object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/S3_ACLs_UsingACLs.html">Using ACLs</a>. One way to grant the permissions using the request headers is to specify a canned ACL with the <code>x-amz-acl</code> request header.</p><note>
238    /// <ul>
239    /// <li>
240    /// <p>This functionality is not supported for directory buckets.</p></li>
241    /// <li>
242    /// <p>This functionality is not supported for Amazon S3 on Outposts.</p></li>
243    /// </ul>
244    /// </note>
245    pub fn get_acl(&self) -> &::std::option::Option<crate::types::ObjectCannedAcl> {
246        self.inner.get_acl()
247    }
248    /// <p>The name of the bucket where the multipart upload is initiated and where the object is uploaded.</p>
249    /// <p><b>Directory buckets</b> - When you use this operation with a directory bucket, you must use virtual-hosted-style requests in the format <code> <i>Bucket-name</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com</code>. Path-style requests are not supported. Directory bucket names must be unique in the chosen Zone (Availability Zone or Local Zone). Bucket names must follow the format <code> <i>bucket-base-name</i>--<i>zone-id</i>--x-s3</code> (for example, <code> <i>amzn-s3-demo-bucket</i>--<i>usw2-az1</i>--x-s3</code>). For information about bucket naming restrictions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html">Directory bucket naming rules</a> in the <i>Amazon S3 User Guide</i>.</p>
250    /// <p><b>Access points</b> - When you use this action with an access point, you must provide the alias of the access point in place of the bucket name or specify the access point ARN. When using the access point ARN, you must direct requests to the access point hostname. The access point hostname takes the form <i>AccessPointName</i>-<i>AccountId</i>.s3-accesspoint.<i>Region</i>.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 <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html">Using access points</a> in the <i>Amazon S3 User Guide</i>.</p><note>
251    /// <p>Access points and Object Lambda access points are not supported by directory buckets.</p>
252    /// </note>
253    /// <p><b>S3 on Outposts</b> - When you use this action with S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form <code> <i>AccessPointName</i>-<i>AccountId</i>.<i>outpostID</i>.s3-outposts.<i>Region</i>.amazonaws.com</code>. When you use this action with S3 on Outposts, the destination bucket must be the Outposts access point ARN or the access point alias. For more information about S3 on Outposts, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html">What is S3 on Outposts?</a> in the <i>Amazon S3 User Guide</i>.</p>
254    pub fn bucket(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
255        self.inner = self.inner.bucket(input.into());
256        self
257    }
258    /// <p>The name of the bucket where the multipart upload is initiated and where the object is uploaded.</p>
259    /// <p><b>Directory buckets</b> - When you use this operation with a directory bucket, you must use virtual-hosted-style requests in the format <code> <i>Bucket-name</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com</code>. Path-style requests are not supported. Directory bucket names must be unique in the chosen Zone (Availability Zone or Local Zone). Bucket names must follow the format <code> <i>bucket-base-name</i>--<i>zone-id</i>--x-s3</code> (for example, <code> <i>amzn-s3-demo-bucket</i>--<i>usw2-az1</i>--x-s3</code>). For information about bucket naming restrictions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html">Directory bucket naming rules</a> in the <i>Amazon S3 User Guide</i>.</p>
260    /// <p><b>Access points</b> - When you use this action with an access point, you must provide the alias of the access point in place of the bucket name or specify the access point ARN. When using the access point ARN, you must direct requests to the access point hostname. The access point hostname takes the form <i>AccessPointName</i>-<i>AccountId</i>.s3-accesspoint.<i>Region</i>.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 <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html">Using access points</a> in the <i>Amazon S3 User Guide</i>.</p><note>
261    /// <p>Access points and Object Lambda access points are not supported by directory buckets.</p>
262    /// </note>
263    /// <p><b>S3 on Outposts</b> - When you use this action with S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form <code> <i>AccessPointName</i>-<i>AccountId</i>.<i>outpostID</i>.s3-outposts.<i>Region</i>.amazonaws.com</code>. When you use this action with S3 on Outposts, the destination bucket must be the Outposts access point ARN or the access point alias. For more information about S3 on Outposts, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html">What is S3 on Outposts?</a> in the <i>Amazon S3 User Guide</i>.</p>
264    pub fn set_bucket(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
265        self.inner = self.inner.set_bucket(input);
266        self
267    }
268    /// <p>The name of the bucket where the multipart upload is initiated and where the object is uploaded.</p>
269    /// <p><b>Directory buckets</b> - When you use this operation with a directory bucket, you must use virtual-hosted-style requests in the format <code> <i>Bucket-name</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com</code>. Path-style requests are not supported. Directory bucket names must be unique in the chosen Zone (Availability Zone or Local Zone). Bucket names must follow the format <code> <i>bucket-base-name</i>--<i>zone-id</i>--x-s3</code> (for example, <code> <i>amzn-s3-demo-bucket</i>--<i>usw2-az1</i>--x-s3</code>). For information about bucket naming restrictions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html">Directory bucket naming rules</a> in the <i>Amazon S3 User Guide</i>.</p>
270    /// <p><b>Access points</b> - When you use this action with an access point, you must provide the alias of the access point in place of the bucket name or specify the access point ARN. When using the access point ARN, you must direct requests to the access point hostname. The access point hostname takes the form <i>AccessPointName</i>-<i>AccountId</i>.s3-accesspoint.<i>Region</i>.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 <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html">Using access points</a> in the <i>Amazon S3 User Guide</i>.</p><note>
271    /// <p>Access points and Object Lambda access points are not supported by directory buckets.</p>
272    /// </note>
273    /// <p><b>S3 on Outposts</b> - When you use this action with S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form <code> <i>AccessPointName</i>-<i>AccountId</i>.<i>outpostID</i>.s3-outposts.<i>Region</i>.amazonaws.com</code>. When you use this action with S3 on Outposts, the destination bucket must be the Outposts access point ARN or the access point alias. For more information about S3 on Outposts, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html">What is S3 on Outposts?</a> in the <i>Amazon S3 User Guide</i>.</p>
274    pub fn get_bucket(&self) -> &::std::option::Option<::std::string::String> {
275        self.inner.get_bucket()
276    }
277    /// <p>Specifies caching behavior along the request/reply chain.</p>
278    pub fn cache_control(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
279        self.inner = self.inner.cache_control(input.into());
280        self
281    }
282    /// <p>Specifies caching behavior along the request/reply chain.</p>
283    pub fn set_cache_control(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
284        self.inner = self.inner.set_cache_control(input);
285        self
286    }
287    /// <p>Specifies caching behavior along the request/reply chain.</p>
288    pub fn get_cache_control(&self) -> &::std::option::Option<::std::string::String> {
289        self.inner.get_cache_control()
290    }
291    /// <p>Specifies presentational information for the object.</p>
292    pub fn content_disposition(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
293        self.inner = self.inner.content_disposition(input.into());
294        self
295    }
296    /// <p>Specifies presentational information for the object.</p>
297    pub fn set_content_disposition(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
298        self.inner = self.inner.set_content_disposition(input);
299        self
300    }
301    /// <p>Specifies presentational information for the object.</p>
302    pub fn get_content_disposition(&self) -> &::std::option::Option<::std::string::String> {
303        self.inner.get_content_disposition()
304    }
305    /// <p>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.</p><note>
306    /// <p>For directory buckets, only the <code>aws-chunked</code> value is supported in this header field.</p>
307    /// </note>
308    pub fn content_encoding(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
309        self.inner = self.inner.content_encoding(input.into());
310        self
311    }
312    /// <p>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.</p><note>
313    /// <p>For directory buckets, only the <code>aws-chunked</code> value is supported in this header field.</p>
314    /// </note>
315    pub fn set_content_encoding(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
316        self.inner = self.inner.set_content_encoding(input);
317        self
318    }
319    /// <p>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.</p><note>
320    /// <p>For directory buckets, only the <code>aws-chunked</code> value is supported in this header field.</p>
321    /// </note>
322    pub fn get_content_encoding(&self) -> &::std::option::Option<::std::string::String> {
323        self.inner.get_content_encoding()
324    }
325    /// <p>The language that the content is in.</p>
326    pub fn content_language(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
327        self.inner = self.inner.content_language(input.into());
328        self
329    }
330    /// <p>The language that the content is in.</p>
331    pub fn set_content_language(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
332        self.inner = self.inner.set_content_language(input);
333        self
334    }
335    /// <p>The language that the content is in.</p>
336    pub fn get_content_language(&self) -> &::std::option::Option<::std::string::String> {
337        self.inner.get_content_language()
338    }
339    /// <p>A standard MIME type describing the format of the object data.</p>
340    pub fn content_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
341        self.inner = self.inner.content_type(input.into());
342        self
343    }
344    /// <p>A standard MIME type describing the format of the object data.</p>
345    pub fn set_content_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
346        self.inner = self.inner.set_content_type(input);
347        self
348    }
349    /// <p>A standard MIME type describing the format of the object data.</p>
350    pub fn get_content_type(&self) -> &::std::option::Option<::std::string::String> {
351        self.inner.get_content_type()
352    }
353    /// <p>The date and time at which the object is no longer cacheable.</p>
354    pub fn expires(mut self, input: ::aws_smithy_types::DateTime) -> Self {
355        self.inner = self.inner.expires(input);
356        self
357    }
358    /// <p>The date and time at which the object is no longer cacheable.</p>
359    pub fn set_expires(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
360        self.inner = self.inner.set_expires(input);
361        self
362    }
363    /// <p>The date and time at which the object is no longer cacheable.</p>
364    pub fn get_expires(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
365        self.inner.get_expires()
366    }
367    /// <p>Specify access permissions explicitly to give the grantee READ, READ_ACP, and WRITE_ACP permissions on the object.</p>
368    /// <p>By default, all objects are private. Only the owner has full access control. When uploading an object, you can use this header to explicitly grant access permissions to specific Amazon Web Services accounts or groups. This header maps to specific permissions that Amazon S3 supports in an ACL. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html">Access Control List (ACL) Overview</a> in the <i>Amazon S3 User Guide</i>.</p>
369    /// <p>You specify each grantee as a type=value pair, where the type is one of the following:</p>
370    /// <ul>
371    /// <li>
372    /// <p><code>id</code> – if the value specified is the canonical user ID of an Amazon Web Services account</p></li>
373    /// <li>
374    /// <p><code>uri</code> – if you are granting permissions to a predefined group</p></li>
375    /// <li>
376    /// <p><code>emailAddress</code> – if the value specified is the email address of an Amazon Web Services account</p><note>
377    /// <p>Using email addresses to specify a grantee is only supported in the following Amazon Web Services Regions:</p>
378    /// <ul>
379    /// <li>
380    /// <p>US East (N. Virginia)</p></li>
381    /// <li>
382    /// <p>US West (N. California)</p></li>
383    /// <li>
384    /// <p>US West (Oregon)</p></li>
385    /// <li>
386    /// <p>Asia Pacific (Singapore)</p></li>
387    /// <li>
388    /// <p>Asia Pacific (Sydney)</p></li>
389    /// <li>
390    /// <p>Asia Pacific (Tokyo)</p></li>
391    /// <li>
392    /// <p>Europe (Ireland)</p></li>
393    /// <li>
394    /// <p>South America (São Paulo)</p></li>
395    /// </ul>
396    /// <p>For a list of all the Amazon S3 supported Regions and endpoints, see <a href="https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region">Regions and Endpoints</a> in the Amazon Web Services General Reference.</p>
397    /// </note></li>
398    /// </ul>
399    /// <p>For example, the following <code>x-amz-grant-read</code> header grants the Amazon Web Services accounts identified by account IDs permissions to read object data and its metadata:</p>
400    /// <p><code>x-amz-grant-read: id="11112222333", id="444455556666" </code></p><note>
401    /// <ul>
402    /// <li>
403    /// <p>This functionality is not supported for directory buckets.</p></li>
404    /// <li>
405    /// <p>This functionality is not supported for Amazon S3 on Outposts.</p></li>
406    /// </ul>
407    /// </note>
408    pub fn grant_full_control(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
409        self.inner = self.inner.grant_full_control(input.into());
410        self
411    }
412    /// <p>Specify access permissions explicitly to give the grantee READ, READ_ACP, and WRITE_ACP permissions on the object.</p>
413    /// <p>By default, all objects are private. Only the owner has full access control. When uploading an object, you can use this header to explicitly grant access permissions to specific Amazon Web Services accounts or groups. This header maps to specific permissions that Amazon S3 supports in an ACL. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html">Access Control List (ACL) Overview</a> in the <i>Amazon S3 User Guide</i>.</p>
414    /// <p>You specify each grantee as a type=value pair, where the type is one of the following:</p>
415    /// <ul>
416    /// <li>
417    /// <p><code>id</code> – if the value specified is the canonical user ID of an Amazon Web Services account</p></li>
418    /// <li>
419    /// <p><code>uri</code> – if you are granting permissions to a predefined group</p></li>
420    /// <li>
421    /// <p><code>emailAddress</code> – if the value specified is the email address of an Amazon Web Services account</p><note>
422    /// <p>Using email addresses to specify a grantee is only supported in the following Amazon Web Services Regions:</p>
423    /// <ul>
424    /// <li>
425    /// <p>US East (N. Virginia)</p></li>
426    /// <li>
427    /// <p>US West (N. California)</p></li>
428    /// <li>
429    /// <p>US West (Oregon)</p></li>
430    /// <li>
431    /// <p>Asia Pacific (Singapore)</p></li>
432    /// <li>
433    /// <p>Asia Pacific (Sydney)</p></li>
434    /// <li>
435    /// <p>Asia Pacific (Tokyo)</p></li>
436    /// <li>
437    /// <p>Europe (Ireland)</p></li>
438    /// <li>
439    /// <p>South America (São Paulo)</p></li>
440    /// </ul>
441    /// <p>For a list of all the Amazon S3 supported Regions and endpoints, see <a href="https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region">Regions and Endpoints</a> in the Amazon Web Services General Reference.</p>
442    /// </note></li>
443    /// </ul>
444    /// <p>For example, the following <code>x-amz-grant-read</code> header grants the Amazon Web Services accounts identified by account IDs permissions to read object data and its metadata:</p>
445    /// <p><code>x-amz-grant-read: id="11112222333", id="444455556666" </code></p><note>
446    /// <ul>
447    /// <li>
448    /// <p>This functionality is not supported for directory buckets.</p></li>
449    /// <li>
450    /// <p>This functionality is not supported for Amazon S3 on Outposts.</p></li>
451    /// </ul>
452    /// </note>
453    pub fn set_grant_full_control(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
454        self.inner = self.inner.set_grant_full_control(input);
455        self
456    }
457    /// <p>Specify access permissions explicitly to give the grantee READ, READ_ACP, and WRITE_ACP permissions on the object.</p>
458    /// <p>By default, all objects are private. Only the owner has full access control. When uploading an object, you can use this header to explicitly grant access permissions to specific Amazon Web Services accounts or groups. This header maps to specific permissions that Amazon S3 supports in an ACL. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html">Access Control List (ACL) Overview</a> in the <i>Amazon S3 User Guide</i>.</p>
459    /// <p>You specify each grantee as a type=value pair, where the type is one of the following:</p>
460    /// <ul>
461    /// <li>
462    /// <p><code>id</code> – if the value specified is the canonical user ID of an Amazon Web Services account</p></li>
463    /// <li>
464    /// <p><code>uri</code> – if you are granting permissions to a predefined group</p></li>
465    /// <li>
466    /// <p><code>emailAddress</code> – if the value specified is the email address of an Amazon Web Services account</p><note>
467    /// <p>Using email addresses to specify a grantee is only supported in the following Amazon Web Services Regions:</p>
468    /// <ul>
469    /// <li>
470    /// <p>US East (N. Virginia)</p></li>
471    /// <li>
472    /// <p>US West (N. California)</p></li>
473    /// <li>
474    /// <p>US West (Oregon)</p></li>
475    /// <li>
476    /// <p>Asia Pacific (Singapore)</p></li>
477    /// <li>
478    /// <p>Asia Pacific (Sydney)</p></li>
479    /// <li>
480    /// <p>Asia Pacific (Tokyo)</p></li>
481    /// <li>
482    /// <p>Europe (Ireland)</p></li>
483    /// <li>
484    /// <p>South America (São Paulo)</p></li>
485    /// </ul>
486    /// <p>For a list of all the Amazon S3 supported Regions and endpoints, see <a href="https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region">Regions and Endpoints</a> in the Amazon Web Services General Reference.</p>
487    /// </note></li>
488    /// </ul>
489    /// <p>For example, the following <code>x-amz-grant-read</code> header grants the Amazon Web Services accounts identified by account IDs permissions to read object data and its metadata:</p>
490    /// <p><code>x-amz-grant-read: id="11112222333", id="444455556666" </code></p><note>
491    /// <ul>
492    /// <li>
493    /// <p>This functionality is not supported for directory buckets.</p></li>
494    /// <li>
495    /// <p>This functionality is not supported for Amazon S3 on Outposts.</p></li>
496    /// </ul>
497    /// </note>
498    pub fn get_grant_full_control(&self) -> &::std::option::Option<::std::string::String> {
499        self.inner.get_grant_full_control()
500    }
501    /// <p>Specify access permissions explicitly to allow grantee to read the object data and its metadata.</p>
502    /// <p>By default, all objects are private. Only the owner has full access control. When uploading an object, you can use this header to explicitly grant access permissions to specific Amazon Web Services accounts or groups. This header maps to specific permissions that Amazon S3 supports in an ACL. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html">Access Control List (ACL) Overview</a> in the <i>Amazon S3 User Guide</i>.</p>
503    /// <p>You specify each grantee as a type=value pair, where the type is one of the following:</p>
504    /// <ul>
505    /// <li>
506    /// <p><code>id</code> – if the value specified is the canonical user ID of an Amazon Web Services account</p></li>
507    /// <li>
508    /// <p><code>uri</code> – if you are granting permissions to a predefined group</p></li>
509    /// <li>
510    /// <p><code>emailAddress</code> – if the value specified is the email address of an Amazon Web Services account</p><note>
511    /// <p>Using email addresses to specify a grantee is only supported in the following Amazon Web Services Regions:</p>
512    /// <ul>
513    /// <li>
514    /// <p>US East (N. Virginia)</p></li>
515    /// <li>
516    /// <p>US West (N. California)</p></li>
517    /// <li>
518    /// <p>US West (Oregon)</p></li>
519    /// <li>
520    /// <p>Asia Pacific (Singapore)</p></li>
521    /// <li>
522    /// <p>Asia Pacific (Sydney)</p></li>
523    /// <li>
524    /// <p>Asia Pacific (Tokyo)</p></li>
525    /// <li>
526    /// <p>Europe (Ireland)</p></li>
527    /// <li>
528    /// <p>South America (São Paulo)</p></li>
529    /// </ul>
530    /// <p>For a list of all the Amazon S3 supported Regions and endpoints, see <a href="https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region">Regions and Endpoints</a> in the Amazon Web Services General Reference.</p>
531    /// </note></li>
532    /// </ul>
533    /// <p>For example, the following <code>x-amz-grant-read</code> header grants the Amazon Web Services accounts identified by account IDs permissions to read object data and its metadata:</p>
534    /// <p><code>x-amz-grant-read: id="11112222333", id="444455556666" </code></p><note>
535    /// <ul>
536    /// <li>
537    /// <p>This functionality is not supported for directory buckets.</p></li>
538    /// <li>
539    /// <p>This functionality is not supported for Amazon S3 on Outposts.</p></li>
540    /// </ul>
541    /// </note>
542    pub fn grant_read(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
543        self.inner = self.inner.grant_read(input.into());
544        self
545    }
546    /// <p>Specify access permissions explicitly to allow grantee to read the object data and its metadata.</p>
547    /// <p>By default, all objects are private. Only the owner has full access control. When uploading an object, you can use this header to explicitly grant access permissions to specific Amazon Web Services accounts or groups. This header maps to specific permissions that Amazon S3 supports in an ACL. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html">Access Control List (ACL) Overview</a> in the <i>Amazon S3 User Guide</i>.</p>
548    /// <p>You specify each grantee as a type=value pair, where the type is one of the following:</p>
549    /// <ul>
550    /// <li>
551    /// <p><code>id</code> – if the value specified is the canonical user ID of an Amazon Web Services account</p></li>
552    /// <li>
553    /// <p><code>uri</code> – if you are granting permissions to a predefined group</p></li>
554    /// <li>
555    /// <p><code>emailAddress</code> – if the value specified is the email address of an Amazon Web Services account</p><note>
556    /// <p>Using email addresses to specify a grantee is only supported in the following Amazon Web Services Regions:</p>
557    /// <ul>
558    /// <li>
559    /// <p>US East (N. Virginia)</p></li>
560    /// <li>
561    /// <p>US West (N. California)</p></li>
562    /// <li>
563    /// <p>US West (Oregon)</p></li>
564    /// <li>
565    /// <p>Asia Pacific (Singapore)</p></li>
566    /// <li>
567    /// <p>Asia Pacific (Sydney)</p></li>
568    /// <li>
569    /// <p>Asia Pacific (Tokyo)</p></li>
570    /// <li>
571    /// <p>Europe (Ireland)</p></li>
572    /// <li>
573    /// <p>South America (São Paulo)</p></li>
574    /// </ul>
575    /// <p>For a list of all the Amazon S3 supported Regions and endpoints, see <a href="https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region">Regions and Endpoints</a> in the Amazon Web Services General Reference.</p>
576    /// </note></li>
577    /// </ul>
578    /// <p>For example, the following <code>x-amz-grant-read</code> header grants the Amazon Web Services accounts identified by account IDs permissions to read object data and its metadata:</p>
579    /// <p><code>x-amz-grant-read: id="11112222333", id="444455556666" </code></p><note>
580    /// <ul>
581    /// <li>
582    /// <p>This functionality is not supported for directory buckets.</p></li>
583    /// <li>
584    /// <p>This functionality is not supported for Amazon S3 on Outposts.</p></li>
585    /// </ul>
586    /// </note>
587    pub fn set_grant_read(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
588        self.inner = self.inner.set_grant_read(input);
589        self
590    }
591    /// <p>Specify access permissions explicitly to allow grantee to read the object data and its metadata.</p>
592    /// <p>By default, all objects are private. Only the owner has full access control. When uploading an object, you can use this header to explicitly grant access permissions to specific Amazon Web Services accounts or groups. This header maps to specific permissions that Amazon S3 supports in an ACL. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html">Access Control List (ACL) Overview</a> in the <i>Amazon S3 User Guide</i>.</p>
593    /// <p>You specify each grantee as a type=value pair, where the type is one of the following:</p>
594    /// <ul>
595    /// <li>
596    /// <p><code>id</code> – if the value specified is the canonical user ID of an Amazon Web Services account</p></li>
597    /// <li>
598    /// <p><code>uri</code> – if you are granting permissions to a predefined group</p></li>
599    /// <li>
600    /// <p><code>emailAddress</code> – if the value specified is the email address of an Amazon Web Services account</p><note>
601    /// <p>Using email addresses to specify a grantee is only supported in the following Amazon Web Services Regions:</p>
602    /// <ul>
603    /// <li>
604    /// <p>US East (N. Virginia)</p></li>
605    /// <li>
606    /// <p>US West (N. California)</p></li>
607    /// <li>
608    /// <p>US West (Oregon)</p></li>
609    /// <li>
610    /// <p>Asia Pacific (Singapore)</p></li>
611    /// <li>
612    /// <p>Asia Pacific (Sydney)</p></li>
613    /// <li>
614    /// <p>Asia Pacific (Tokyo)</p></li>
615    /// <li>
616    /// <p>Europe (Ireland)</p></li>
617    /// <li>
618    /// <p>South America (São Paulo)</p></li>
619    /// </ul>
620    /// <p>For a list of all the Amazon S3 supported Regions and endpoints, see <a href="https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region">Regions and Endpoints</a> in the Amazon Web Services General Reference.</p>
621    /// </note></li>
622    /// </ul>
623    /// <p>For example, the following <code>x-amz-grant-read</code> header grants the Amazon Web Services accounts identified by account IDs permissions to read object data and its metadata:</p>
624    /// <p><code>x-amz-grant-read: id="11112222333", id="444455556666" </code></p><note>
625    /// <ul>
626    /// <li>
627    /// <p>This functionality is not supported for directory buckets.</p></li>
628    /// <li>
629    /// <p>This functionality is not supported for Amazon S3 on Outposts.</p></li>
630    /// </ul>
631    /// </note>
632    pub fn get_grant_read(&self) -> &::std::option::Option<::std::string::String> {
633        self.inner.get_grant_read()
634    }
635    /// <p>Specify access permissions explicitly to allows grantee to read the object ACL.</p>
636    /// <p>By default, all objects are private. Only the owner has full access control. When uploading an object, you can use this header to explicitly grant access permissions to specific Amazon Web Services accounts or groups. This header maps to specific permissions that Amazon S3 supports in an ACL. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html">Access Control List (ACL) Overview</a> in the <i>Amazon S3 User Guide</i>.</p>
637    /// <p>You specify each grantee as a type=value pair, where the type is one of the following:</p>
638    /// <ul>
639    /// <li>
640    /// <p><code>id</code> – if the value specified is the canonical user ID of an Amazon Web Services account</p></li>
641    /// <li>
642    /// <p><code>uri</code> – if you are granting permissions to a predefined group</p></li>
643    /// <li>
644    /// <p><code>emailAddress</code> – if the value specified is the email address of an Amazon Web Services account</p><note>
645    /// <p>Using email addresses to specify a grantee is only supported in the following Amazon Web Services Regions:</p>
646    /// <ul>
647    /// <li>
648    /// <p>US East (N. Virginia)</p></li>
649    /// <li>
650    /// <p>US West (N. California)</p></li>
651    /// <li>
652    /// <p>US West (Oregon)</p></li>
653    /// <li>
654    /// <p>Asia Pacific (Singapore)</p></li>
655    /// <li>
656    /// <p>Asia Pacific (Sydney)</p></li>
657    /// <li>
658    /// <p>Asia Pacific (Tokyo)</p></li>
659    /// <li>
660    /// <p>Europe (Ireland)</p></li>
661    /// <li>
662    /// <p>South America (São Paulo)</p></li>
663    /// </ul>
664    /// <p>For a list of all the Amazon S3 supported Regions and endpoints, see <a href="https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region">Regions and Endpoints</a> in the Amazon Web Services General Reference.</p>
665    /// </note></li>
666    /// </ul>
667    /// <p>For example, the following <code>x-amz-grant-read</code> header grants the Amazon Web Services accounts identified by account IDs permissions to read object data and its metadata:</p>
668    /// <p><code>x-amz-grant-read: id="11112222333", id="444455556666" </code></p><note>
669    /// <ul>
670    /// <li>
671    /// <p>This functionality is not supported for directory buckets.</p></li>
672    /// <li>
673    /// <p>This functionality is not supported for Amazon S3 on Outposts.</p></li>
674    /// </ul>
675    /// </note>
676    pub fn grant_read_acp(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
677        self.inner = self.inner.grant_read_acp(input.into());
678        self
679    }
680    /// <p>Specify access permissions explicitly to allows grantee to read the object ACL.</p>
681    /// <p>By default, all objects are private. Only the owner has full access control. When uploading an object, you can use this header to explicitly grant access permissions to specific Amazon Web Services accounts or groups. This header maps to specific permissions that Amazon S3 supports in an ACL. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html">Access Control List (ACL) Overview</a> in the <i>Amazon S3 User Guide</i>.</p>
682    /// <p>You specify each grantee as a type=value pair, where the type is one of the following:</p>
683    /// <ul>
684    /// <li>
685    /// <p><code>id</code> – if the value specified is the canonical user ID of an Amazon Web Services account</p></li>
686    /// <li>
687    /// <p><code>uri</code> – if you are granting permissions to a predefined group</p></li>
688    /// <li>
689    /// <p><code>emailAddress</code> – if the value specified is the email address of an Amazon Web Services account</p><note>
690    /// <p>Using email addresses to specify a grantee is only supported in the following Amazon Web Services Regions:</p>
691    /// <ul>
692    /// <li>
693    /// <p>US East (N. Virginia)</p></li>
694    /// <li>
695    /// <p>US West (N. California)</p></li>
696    /// <li>
697    /// <p>US West (Oregon)</p></li>
698    /// <li>
699    /// <p>Asia Pacific (Singapore)</p></li>
700    /// <li>
701    /// <p>Asia Pacific (Sydney)</p></li>
702    /// <li>
703    /// <p>Asia Pacific (Tokyo)</p></li>
704    /// <li>
705    /// <p>Europe (Ireland)</p></li>
706    /// <li>
707    /// <p>South America (São Paulo)</p></li>
708    /// </ul>
709    /// <p>For a list of all the Amazon S3 supported Regions and endpoints, see <a href="https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region">Regions and Endpoints</a> in the Amazon Web Services General Reference.</p>
710    /// </note></li>
711    /// </ul>
712    /// <p>For example, the following <code>x-amz-grant-read</code> header grants the Amazon Web Services accounts identified by account IDs permissions to read object data and its metadata:</p>
713    /// <p><code>x-amz-grant-read: id="11112222333", id="444455556666" </code></p><note>
714    /// <ul>
715    /// <li>
716    /// <p>This functionality is not supported for directory buckets.</p></li>
717    /// <li>
718    /// <p>This functionality is not supported for Amazon S3 on Outposts.</p></li>
719    /// </ul>
720    /// </note>
721    pub fn set_grant_read_acp(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
722        self.inner = self.inner.set_grant_read_acp(input);
723        self
724    }
725    /// <p>Specify access permissions explicitly to allows grantee to read the object ACL.</p>
726    /// <p>By default, all objects are private. Only the owner has full access control. When uploading an object, you can use this header to explicitly grant access permissions to specific Amazon Web Services accounts or groups. This header maps to specific permissions that Amazon S3 supports in an ACL. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html">Access Control List (ACL) Overview</a> in the <i>Amazon S3 User Guide</i>.</p>
727    /// <p>You specify each grantee as a type=value pair, where the type is one of the following:</p>
728    /// <ul>
729    /// <li>
730    /// <p><code>id</code> – if the value specified is the canonical user ID of an Amazon Web Services account</p></li>
731    /// <li>
732    /// <p><code>uri</code> – if you are granting permissions to a predefined group</p></li>
733    /// <li>
734    /// <p><code>emailAddress</code> – if the value specified is the email address of an Amazon Web Services account</p><note>
735    /// <p>Using email addresses to specify a grantee is only supported in the following Amazon Web Services Regions:</p>
736    /// <ul>
737    /// <li>
738    /// <p>US East (N. Virginia)</p></li>
739    /// <li>
740    /// <p>US West (N. California)</p></li>
741    /// <li>
742    /// <p>US West (Oregon)</p></li>
743    /// <li>
744    /// <p>Asia Pacific (Singapore)</p></li>
745    /// <li>
746    /// <p>Asia Pacific (Sydney)</p></li>
747    /// <li>
748    /// <p>Asia Pacific (Tokyo)</p></li>
749    /// <li>
750    /// <p>Europe (Ireland)</p></li>
751    /// <li>
752    /// <p>South America (São Paulo)</p></li>
753    /// </ul>
754    /// <p>For a list of all the Amazon S3 supported Regions and endpoints, see <a href="https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region">Regions and Endpoints</a> in the Amazon Web Services General Reference.</p>
755    /// </note></li>
756    /// </ul>
757    /// <p>For example, the following <code>x-amz-grant-read</code> header grants the Amazon Web Services accounts identified by account IDs permissions to read object data and its metadata:</p>
758    /// <p><code>x-amz-grant-read: id="11112222333", id="444455556666" </code></p><note>
759    /// <ul>
760    /// <li>
761    /// <p>This functionality is not supported for directory buckets.</p></li>
762    /// <li>
763    /// <p>This functionality is not supported for Amazon S3 on Outposts.</p></li>
764    /// </ul>
765    /// </note>
766    pub fn get_grant_read_acp(&self) -> &::std::option::Option<::std::string::String> {
767        self.inner.get_grant_read_acp()
768    }
769    /// <p>Specify access permissions explicitly to allows grantee to allow grantee to write the ACL for the applicable object.</p>
770    /// <p>By default, all objects are private. Only the owner has full access control. When uploading an object, you can use this header to explicitly grant access permissions to specific Amazon Web Services accounts or groups. This header maps to specific permissions that Amazon S3 supports in an ACL. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html">Access Control List (ACL) Overview</a> in the <i>Amazon S3 User Guide</i>.</p>
771    /// <p>You specify each grantee as a type=value pair, where the type is one of the following:</p>
772    /// <ul>
773    /// <li>
774    /// <p><code>id</code> – if the value specified is the canonical user ID of an Amazon Web Services account</p></li>
775    /// <li>
776    /// <p><code>uri</code> – if you are granting permissions to a predefined group</p></li>
777    /// <li>
778    /// <p><code>emailAddress</code> – if the value specified is the email address of an Amazon Web Services account</p><note>
779    /// <p>Using email addresses to specify a grantee is only supported in the following Amazon Web Services Regions:</p>
780    /// <ul>
781    /// <li>
782    /// <p>US East (N. Virginia)</p></li>
783    /// <li>
784    /// <p>US West (N. California)</p></li>
785    /// <li>
786    /// <p>US West (Oregon)</p></li>
787    /// <li>
788    /// <p>Asia Pacific (Singapore)</p></li>
789    /// <li>
790    /// <p>Asia Pacific (Sydney)</p></li>
791    /// <li>
792    /// <p>Asia Pacific (Tokyo)</p></li>
793    /// <li>
794    /// <p>Europe (Ireland)</p></li>
795    /// <li>
796    /// <p>South America (São Paulo)</p></li>
797    /// </ul>
798    /// <p>For a list of all the Amazon S3 supported Regions and endpoints, see <a href="https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region">Regions and Endpoints</a> in the Amazon Web Services General Reference.</p>
799    /// </note></li>
800    /// </ul>
801    /// <p>For example, the following <code>x-amz-grant-read</code> header grants the Amazon Web Services accounts identified by account IDs permissions to read object data and its metadata:</p>
802    /// <p><code>x-amz-grant-read: id="11112222333", id="444455556666" </code></p><note>
803    /// <ul>
804    /// <li>
805    /// <p>This functionality is not supported for directory buckets.</p></li>
806    /// <li>
807    /// <p>This functionality is not supported for Amazon S3 on Outposts.</p></li>
808    /// </ul>
809    /// </note>
810    pub fn grant_write_acp(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
811        self.inner = self.inner.grant_write_acp(input.into());
812        self
813    }
814    /// <p>Specify access permissions explicitly to allows grantee to allow grantee to write the ACL for the applicable object.</p>
815    /// <p>By default, all objects are private. Only the owner has full access control. When uploading an object, you can use this header to explicitly grant access permissions to specific Amazon Web Services accounts or groups. This header maps to specific permissions that Amazon S3 supports in an ACL. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html">Access Control List (ACL) Overview</a> in the <i>Amazon S3 User Guide</i>.</p>
816    /// <p>You specify each grantee as a type=value pair, where the type is one of the following:</p>
817    /// <ul>
818    /// <li>
819    /// <p><code>id</code> – if the value specified is the canonical user ID of an Amazon Web Services account</p></li>
820    /// <li>
821    /// <p><code>uri</code> – if you are granting permissions to a predefined group</p></li>
822    /// <li>
823    /// <p><code>emailAddress</code> – if the value specified is the email address of an Amazon Web Services account</p><note>
824    /// <p>Using email addresses to specify a grantee is only supported in the following Amazon Web Services Regions:</p>
825    /// <ul>
826    /// <li>
827    /// <p>US East (N. Virginia)</p></li>
828    /// <li>
829    /// <p>US West (N. California)</p></li>
830    /// <li>
831    /// <p>US West (Oregon)</p></li>
832    /// <li>
833    /// <p>Asia Pacific (Singapore)</p></li>
834    /// <li>
835    /// <p>Asia Pacific (Sydney)</p></li>
836    /// <li>
837    /// <p>Asia Pacific (Tokyo)</p></li>
838    /// <li>
839    /// <p>Europe (Ireland)</p></li>
840    /// <li>
841    /// <p>South America (São Paulo)</p></li>
842    /// </ul>
843    /// <p>For a list of all the Amazon S3 supported Regions and endpoints, see <a href="https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region">Regions and Endpoints</a> in the Amazon Web Services General Reference.</p>
844    /// </note></li>
845    /// </ul>
846    /// <p>For example, the following <code>x-amz-grant-read</code> header grants the Amazon Web Services accounts identified by account IDs permissions to read object data and its metadata:</p>
847    /// <p><code>x-amz-grant-read: id="11112222333", id="444455556666" </code></p><note>
848    /// <ul>
849    /// <li>
850    /// <p>This functionality is not supported for directory buckets.</p></li>
851    /// <li>
852    /// <p>This functionality is not supported for Amazon S3 on Outposts.</p></li>
853    /// </ul>
854    /// </note>
855    pub fn set_grant_write_acp(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
856        self.inner = self.inner.set_grant_write_acp(input);
857        self
858    }
859    /// <p>Specify access permissions explicitly to allows grantee to allow grantee to write the ACL for the applicable object.</p>
860    /// <p>By default, all objects are private. Only the owner has full access control. When uploading an object, you can use this header to explicitly grant access permissions to specific Amazon Web Services accounts or groups. This header maps to specific permissions that Amazon S3 supports in an ACL. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html">Access Control List (ACL) Overview</a> in the <i>Amazon S3 User Guide</i>.</p>
861    /// <p>You specify each grantee as a type=value pair, where the type is one of the following:</p>
862    /// <ul>
863    /// <li>
864    /// <p><code>id</code> – if the value specified is the canonical user ID of an Amazon Web Services account</p></li>
865    /// <li>
866    /// <p><code>uri</code> – if you are granting permissions to a predefined group</p></li>
867    /// <li>
868    /// <p><code>emailAddress</code> – if the value specified is the email address of an Amazon Web Services account</p><note>
869    /// <p>Using email addresses to specify a grantee is only supported in the following Amazon Web Services Regions:</p>
870    /// <ul>
871    /// <li>
872    /// <p>US East (N. Virginia)</p></li>
873    /// <li>
874    /// <p>US West (N. California)</p></li>
875    /// <li>
876    /// <p>US West (Oregon)</p></li>
877    /// <li>
878    /// <p>Asia Pacific (Singapore)</p></li>
879    /// <li>
880    /// <p>Asia Pacific (Sydney)</p></li>
881    /// <li>
882    /// <p>Asia Pacific (Tokyo)</p></li>
883    /// <li>
884    /// <p>Europe (Ireland)</p></li>
885    /// <li>
886    /// <p>South America (São Paulo)</p></li>
887    /// </ul>
888    /// <p>For a list of all the Amazon S3 supported Regions and endpoints, see <a href="https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region">Regions and Endpoints</a> in the Amazon Web Services General Reference.</p>
889    /// </note></li>
890    /// </ul>
891    /// <p>For example, the following <code>x-amz-grant-read</code> header grants the Amazon Web Services accounts identified by account IDs permissions to read object data and its metadata:</p>
892    /// <p><code>x-amz-grant-read: id="11112222333", id="444455556666" </code></p><note>
893    /// <ul>
894    /// <li>
895    /// <p>This functionality is not supported for directory buckets.</p></li>
896    /// <li>
897    /// <p>This functionality is not supported for Amazon S3 on Outposts.</p></li>
898    /// </ul>
899    /// </note>
900    pub fn get_grant_write_acp(&self) -> &::std::option::Option<::std::string::String> {
901        self.inner.get_grant_write_acp()
902    }
903    /// <p>Object key for which the multipart upload is to be initiated.</p>
904    pub fn key(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
905        self.inner = self.inner.key(input.into());
906        self
907    }
908    /// <p>Object key for which the multipart upload is to be initiated.</p>
909    pub fn set_key(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
910        self.inner = self.inner.set_key(input);
911        self
912    }
913    /// <p>Object key for which the multipart upload is to be initiated.</p>
914    pub fn get_key(&self) -> &::std::option::Option<::std::string::String> {
915        self.inner.get_key()
916    }
917    ///
918    /// Adds a key-value pair to `Metadata`.
919    ///
920    /// To override the contents of this collection use [`set_metadata`](Self::set_metadata).
921    ///
922    /// <p>A map of metadata to store with the object in S3.</p>
923    pub fn metadata(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
924        self.inner = self.inner.metadata(k.into(), v.into());
925        self
926    }
927    /// <p>A map of metadata to store with the object in S3.</p>
928    pub fn set_metadata(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
929        self.inner = self.inner.set_metadata(input);
930        self
931    }
932    /// <p>A map of metadata to store with the object in S3.</p>
933    pub fn get_metadata(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
934        self.inner.get_metadata()
935    }
936    /// <p>The server-side encryption algorithm used when you store this object in Amazon S3 (for example, <code>AES256</code>, <code>aws:kms</code>).</p>
937    /// <ul>
938    /// <li>
939    /// <p><b>Directory buckets </b> - For directory buckets, there are only two supported options for server-side encryption: server-side encryption with Amazon S3 managed keys (SSE-S3) (<code>AES256</code>) and server-side encryption with KMS keys (SSE-KMS) (<code>aws:kms</code>). We recommend that the bucket's default encryption uses the desired encryption configuration and you don't override the bucket default encryption in your <code>CreateSession</code> requests or <code>PUT</code> object requests. Then, new objects are automatically encrypted with the desired encryption settings. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-serv-side-encryption.html">Protecting data with server-side encryption</a> in the <i>Amazon S3 User Guide</i>. For more information about the encryption overriding behaviors in directory buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-specifying-kms-encryption.html">Specifying server-side encryption with KMS for new object uploads</a>.</p>
940    /// <p>In the Zonal endpoint API calls (except <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html">CopyObject</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html">UploadPartCopy</a>) using the REST API, the encryption request headers must match the encryption settings that are specified in the <code>CreateSession</code> request. You can't override the values of the encryption settings (<code>x-amz-server-side-encryption</code>, <code>x-amz-server-side-encryption-aws-kms-key-id</code>, <code>x-amz-server-side-encryption-context</code>, and <code>x-amz-server-side-encryption-bucket-key-enabled</code>) that are specified in the <code>CreateSession</code> request. You don't need to explicitly specify these encryption settings values in Zonal endpoint API calls, and Amazon S3 will use the encryption settings values from the <code>CreateSession</code> request to protect new objects in the directory bucket.</p><note>
941    /// <p>When you use the CLI or the Amazon Web Services SDKs, for <code>CreateSession</code>, the session token refreshes automatically to avoid service interruptions when a session expires. The CLI or the Amazon Web Services SDKs use the bucket's default encryption configuration for the <code>CreateSession</code> request. It's not supported to override the encryption settings values in the <code>CreateSession</code> request. So in the Zonal endpoint API calls (except <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html">CopyObject</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html">UploadPartCopy</a>), the encryption request headers must match the default encryption configuration of the directory bucket.</p>
942    /// </note></li>
943    /// </ul>
944    pub fn server_side_encryption(mut self, input: crate::types::ServerSideEncryption) -> Self {
945        self.inner = self.inner.server_side_encryption(input);
946        self
947    }
948    /// <p>The server-side encryption algorithm used when you store this object in Amazon S3 (for example, <code>AES256</code>, <code>aws:kms</code>).</p>
949    /// <ul>
950    /// <li>
951    /// <p><b>Directory buckets </b> - For directory buckets, there are only two supported options for server-side encryption: server-side encryption with Amazon S3 managed keys (SSE-S3) (<code>AES256</code>) and server-side encryption with KMS keys (SSE-KMS) (<code>aws:kms</code>). We recommend that the bucket's default encryption uses the desired encryption configuration and you don't override the bucket default encryption in your <code>CreateSession</code> requests or <code>PUT</code> object requests. Then, new objects are automatically encrypted with the desired encryption settings. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-serv-side-encryption.html">Protecting data with server-side encryption</a> in the <i>Amazon S3 User Guide</i>. For more information about the encryption overriding behaviors in directory buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-specifying-kms-encryption.html">Specifying server-side encryption with KMS for new object uploads</a>.</p>
952    /// <p>In the Zonal endpoint API calls (except <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html">CopyObject</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html">UploadPartCopy</a>) using the REST API, the encryption request headers must match the encryption settings that are specified in the <code>CreateSession</code> request. You can't override the values of the encryption settings (<code>x-amz-server-side-encryption</code>, <code>x-amz-server-side-encryption-aws-kms-key-id</code>, <code>x-amz-server-side-encryption-context</code>, and <code>x-amz-server-side-encryption-bucket-key-enabled</code>) that are specified in the <code>CreateSession</code> request. You don't need to explicitly specify these encryption settings values in Zonal endpoint API calls, and Amazon S3 will use the encryption settings values from the <code>CreateSession</code> request to protect new objects in the directory bucket.</p><note>
953    /// <p>When you use the CLI or the Amazon Web Services SDKs, for <code>CreateSession</code>, the session token refreshes automatically to avoid service interruptions when a session expires. The CLI or the Amazon Web Services SDKs use the bucket's default encryption configuration for the <code>CreateSession</code> request. It's not supported to override the encryption settings values in the <code>CreateSession</code> request. So in the Zonal endpoint API calls (except <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html">CopyObject</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html">UploadPartCopy</a>), the encryption request headers must match the default encryption configuration of the directory bucket.</p>
954    /// </note></li>
955    /// </ul>
956    pub fn set_server_side_encryption(mut self, input: ::std::option::Option<crate::types::ServerSideEncryption>) -> Self {
957        self.inner = self.inner.set_server_side_encryption(input);
958        self
959    }
960    /// <p>The server-side encryption algorithm used when you store this object in Amazon S3 (for example, <code>AES256</code>, <code>aws:kms</code>).</p>
961    /// <ul>
962    /// <li>
963    /// <p><b>Directory buckets </b> - For directory buckets, there are only two supported options for server-side encryption: server-side encryption with Amazon S3 managed keys (SSE-S3) (<code>AES256</code>) and server-side encryption with KMS keys (SSE-KMS) (<code>aws:kms</code>). We recommend that the bucket's default encryption uses the desired encryption configuration and you don't override the bucket default encryption in your <code>CreateSession</code> requests or <code>PUT</code> object requests. Then, new objects are automatically encrypted with the desired encryption settings. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-serv-side-encryption.html">Protecting data with server-side encryption</a> in the <i>Amazon S3 User Guide</i>. For more information about the encryption overriding behaviors in directory buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-specifying-kms-encryption.html">Specifying server-side encryption with KMS for new object uploads</a>.</p>
964    /// <p>In the Zonal endpoint API calls (except <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html">CopyObject</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html">UploadPartCopy</a>) using the REST API, the encryption request headers must match the encryption settings that are specified in the <code>CreateSession</code> request. You can't override the values of the encryption settings (<code>x-amz-server-side-encryption</code>, <code>x-amz-server-side-encryption-aws-kms-key-id</code>, <code>x-amz-server-side-encryption-context</code>, and <code>x-amz-server-side-encryption-bucket-key-enabled</code>) that are specified in the <code>CreateSession</code> request. You don't need to explicitly specify these encryption settings values in Zonal endpoint API calls, and Amazon S3 will use the encryption settings values from the <code>CreateSession</code> request to protect new objects in the directory bucket.</p><note>
965    /// <p>When you use the CLI or the Amazon Web Services SDKs, for <code>CreateSession</code>, the session token refreshes automatically to avoid service interruptions when a session expires. The CLI or the Amazon Web Services SDKs use the bucket's default encryption configuration for the <code>CreateSession</code> request. It's not supported to override the encryption settings values in the <code>CreateSession</code> request. So in the Zonal endpoint API calls (except <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html">CopyObject</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html">UploadPartCopy</a>), the encryption request headers must match the default encryption configuration of the directory bucket.</p>
966    /// </note></li>
967    /// </ul>
968    pub fn get_server_side_encryption(&self) -> &::std::option::Option<crate::types::ServerSideEncryption> {
969        self.inner.get_server_side_encryption()
970    }
971    /// <p>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. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html">Storage Classes</a> in the <i>Amazon S3 User Guide</i>.</p><note>
972    /// <ul>
973    /// <li>
974    /// <p>For directory buckets, only the S3 Express One Zone storage class is supported to store newly created objects.</p></li>
975    /// <li>
976    /// <p>Amazon S3 on Outposts only uses the OUTPOSTS Storage Class.</p></li>
977    /// </ul>
978    /// </note>
979    pub fn storage_class(mut self, input: crate::types::StorageClass) -> Self {
980        self.inner = self.inner.storage_class(input);
981        self
982    }
983    /// <p>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. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html">Storage Classes</a> in the <i>Amazon S3 User Guide</i>.</p><note>
984    /// <ul>
985    /// <li>
986    /// <p>For directory buckets, only the S3 Express One Zone storage class is supported to store newly created objects.</p></li>
987    /// <li>
988    /// <p>Amazon S3 on Outposts only uses the OUTPOSTS Storage Class.</p></li>
989    /// </ul>
990    /// </note>
991    pub fn set_storage_class(mut self, input: ::std::option::Option<crate::types::StorageClass>) -> Self {
992        self.inner = self.inner.set_storage_class(input);
993        self
994    }
995    /// <p>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. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html">Storage Classes</a> in the <i>Amazon S3 User Guide</i>.</p><note>
996    /// <ul>
997    /// <li>
998    /// <p>For directory buckets, only the S3 Express One Zone storage class is supported to store newly created objects.</p></li>
999    /// <li>
1000    /// <p>Amazon S3 on Outposts only uses the OUTPOSTS Storage Class.</p></li>
1001    /// </ul>
1002    /// </note>
1003    pub fn get_storage_class(&self) -> &::std::option::Option<crate::types::StorageClass> {
1004        self.inner.get_storage_class()
1005    }
1006    /// <p>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.</p><note>
1007    /// <p>This functionality is not supported for directory buckets.</p>
1008    /// </note>
1009    pub fn website_redirect_location(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1010        self.inner = self.inner.website_redirect_location(input.into());
1011        self
1012    }
1013    /// <p>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.</p><note>
1014    /// <p>This functionality is not supported for directory buckets.</p>
1015    /// </note>
1016    pub fn set_website_redirect_location(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1017        self.inner = self.inner.set_website_redirect_location(input);
1018        self
1019    }
1020    /// <p>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.</p><note>
1021    /// <p>This functionality is not supported for directory buckets.</p>
1022    /// </note>
1023    pub fn get_website_redirect_location(&self) -> &::std::option::Option<::std::string::String> {
1024        self.inner.get_website_redirect_location()
1025    }
1026    /// <p>Specifies the algorithm to use when encrypting the object (for example, AES256).</p><note>
1027    /// <p>This functionality is not supported for directory buckets.</p>
1028    /// </note>
1029    pub fn sse_customer_algorithm(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1030        self.inner = self.inner.sse_customer_algorithm(input.into());
1031        self
1032    }
1033    /// <p>Specifies the algorithm to use when encrypting the object (for example, AES256).</p><note>
1034    /// <p>This functionality is not supported for directory buckets.</p>
1035    /// </note>
1036    pub fn set_sse_customer_algorithm(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1037        self.inner = self.inner.set_sse_customer_algorithm(input);
1038        self
1039    }
1040    /// <p>Specifies the algorithm to use when encrypting the object (for example, AES256).</p><note>
1041    /// <p>This functionality is not supported for directory buckets.</p>
1042    /// </note>
1043    pub fn get_sse_customer_algorithm(&self) -> &::std::option::Option<::std::string::String> {
1044        self.inner.get_sse_customer_algorithm()
1045    }
1046    /// <p>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 <code>x-amz-server-side-encryption-customer-algorithm</code> header.</p><note>
1047    /// <p>This functionality is not supported for directory buckets.</p>
1048    /// </note>
1049    pub fn sse_customer_key(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1050        self.inner = self.inner.sse_customer_key(input.into());
1051        self
1052    }
1053    /// <p>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 <code>x-amz-server-side-encryption-customer-algorithm</code> header.</p><note>
1054    /// <p>This functionality is not supported for directory buckets.</p>
1055    /// </note>
1056    pub fn set_sse_customer_key(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1057        self.inner = self.inner.set_sse_customer_key(input);
1058        self
1059    }
1060    /// <p>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 <code>x-amz-server-side-encryption-customer-algorithm</code> header.</p><note>
1061    /// <p>This functionality is not supported for directory buckets.</p>
1062    /// </note>
1063    pub fn get_sse_customer_key(&self) -> &::std::option::Option<::std::string::String> {
1064        self.inner.get_sse_customer_key()
1065    }
1066    /// <p>Specifies the 128-bit MD5 digest of the customer-provided 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.</p><note>
1067    /// <p>This functionality is not supported for directory buckets.</p>
1068    /// </note>
1069    pub fn sse_customer_key_md5(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1070        self.inner = self.inner.sse_customer_key_md5(input.into());
1071        self
1072    }
1073    /// <p>Specifies the 128-bit MD5 digest of the customer-provided 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.</p><note>
1074    /// <p>This functionality is not supported for directory buckets.</p>
1075    /// </note>
1076    pub fn set_sse_customer_key_md5(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1077        self.inner = self.inner.set_sse_customer_key_md5(input);
1078        self
1079    }
1080    /// <p>Specifies the 128-bit MD5 digest of the customer-provided 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.</p><note>
1081    /// <p>This functionality is not supported for directory buckets.</p>
1082    /// </note>
1083    pub fn get_sse_customer_key_md5(&self) -> &::std::option::Option<::std::string::String> {
1084        self.inner.get_sse_customer_key_md5()
1085    }
1086    /// <p>Specifies the KMS key ID (Key ID, Key ARN, or Key Alias) to use for object encryption. If the KMS key doesn't exist in the same account that's issuing the command, you must use the full Key ARN not the Key ID.</p>
1087    /// <p><b>General purpose buckets</b> - If you specify <code>x-amz-server-side-encryption</code> with <code>aws:kms</code> or <code>aws:kms:dsse</code>, this header specifies the ID (Key ID, Key ARN, or Key Alias) of the KMS key to use. If you specify <code>x-amz-server-side-encryption:aws:kms</code> or <code>x-amz-server-side-encryption:aws:kms:dsse</code>, but do not provide <code>x-amz-server-side-encryption-aws-kms-key-id</code>, Amazon S3 uses the Amazon Web Services managed key (<code>aws/s3</code>) to protect the data.</p>
1088    /// <p><b>Directory buckets</b> - To encrypt data using SSE-KMS, it's recommended to specify the <code>x-amz-server-side-encryption</code> header to <code>aws:kms</code>. Then, the <code>x-amz-server-side-encryption-aws-kms-key-id</code> header implicitly uses the bucket's default KMS customer managed key ID. If you want to explicitly set the <code> x-amz-server-side-encryption-aws-kms-key-id</code> header, it must match the bucket's default customer managed key (using key ID or ARN, not alias). Your SSE-KMS configuration can only support 1 <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed key</a> per directory bucket's lifetime. The <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services managed key</a> (<code>aws/s3</code>) isn't supported. Incorrect key specification results in an HTTP <code>400 Bad Request</code> error.</p>
1089    pub fn ssekms_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1090        self.inner = self.inner.ssekms_key_id(input.into());
1091        self
1092    }
1093    /// <p>Specifies the KMS key ID (Key ID, Key ARN, or Key Alias) to use for object encryption. If the KMS key doesn't exist in the same account that's issuing the command, you must use the full Key ARN not the Key ID.</p>
1094    /// <p><b>General purpose buckets</b> - If you specify <code>x-amz-server-side-encryption</code> with <code>aws:kms</code> or <code>aws:kms:dsse</code>, this header specifies the ID (Key ID, Key ARN, or Key Alias) of the KMS key to use. If you specify <code>x-amz-server-side-encryption:aws:kms</code> or <code>x-amz-server-side-encryption:aws:kms:dsse</code>, but do not provide <code>x-amz-server-side-encryption-aws-kms-key-id</code>, Amazon S3 uses the Amazon Web Services managed key (<code>aws/s3</code>) to protect the data.</p>
1095    /// <p><b>Directory buckets</b> - To encrypt data using SSE-KMS, it's recommended to specify the <code>x-amz-server-side-encryption</code> header to <code>aws:kms</code>. Then, the <code>x-amz-server-side-encryption-aws-kms-key-id</code> header implicitly uses the bucket's default KMS customer managed key ID. If you want to explicitly set the <code> x-amz-server-side-encryption-aws-kms-key-id</code> header, it must match the bucket's default customer managed key (using key ID or ARN, not alias). Your SSE-KMS configuration can only support 1 <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed key</a> per directory bucket's lifetime. The <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services managed key</a> (<code>aws/s3</code>) isn't supported. Incorrect key specification results in an HTTP <code>400 Bad Request</code> error.</p>
1096    pub fn set_ssekms_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1097        self.inner = self.inner.set_ssekms_key_id(input);
1098        self
1099    }
1100    /// <p>Specifies the KMS key ID (Key ID, Key ARN, or Key Alias) to use for object encryption. If the KMS key doesn't exist in the same account that's issuing the command, you must use the full Key ARN not the Key ID.</p>
1101    /// <p><b>General purpose buckets</b> - If you specify <code>x-amz-server-side-encryption</code> with <code>aws:kms</code> or <code>aws:kms:dsse</code>, this header specifies the ID (Key ID, Key ARN, or Key Alias) of the KMS key to use. If you specify <code>x-amz-server-side-encryption:aws:kms</code> or <code>x-amz-server-side-encryption:aws:kms:dsse</code>, but do not provide <code>x-amz-server-side-encryption-aws-kms-key-id</code>, Amazon S3 uses the Amazon Web Services managed key (<code>aws/s3</code>) to protect the data.</p>
1102    /// <p><b>Directory buckets</b> - To encrypt data using SSE-KMS, it's recommended to specify the <code>x-amz-server-side-encryption</code> header to <code>aws:kms</code>. Then, the <code>x-amz-server-side-encryption-aws-kms-key-id</code> header implicitly uses the bucket's default KMS customer managed key ID. If you want to explicitly set the <code> x-amz-server-side-encryption-aws-kms-key-id</code> header, it must match the bucket's default customer managed key (using key ID or ARN, not alias). Your SSE-KMS configuration can only support 1 <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed key</a> per directory bucket's lifetime. The <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services managed key</a> (<code>aws/s3</code>) isn't supported. Incorrect key specification results in an HTTP <code>400 Bad Request</code> error.</p>
1103    pub fn get_ssekms_key_id(&self) -> &::std::option::Option<::std::string::String> {
1104        self.inner.get_ssekms_key_id()
1105    }
1106    /// <p>Specifies the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs.</p>
1107    /// <p><b>Directory buckets</b> - You can optionally provide an explicit encryption context value. The value must match the default encryption context - the bucket Amazon Resource Name (ARN). An additional encryption context value is not supported.</p>
1108    pub fn ssekms_encryption_context(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1109        self.inner = self.inner.ssekms_encryption_context(input.into());
1110        self
1111    }
1112    /// <p>Specifies the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs.</p>
1113    /// <p><b>Directory buckets</b> - You can optionally provide an explicit encryption context value. The value must match the default encryption context - the bucket Amazon Resource Name (ARN). An additional encryption context value is not supported.</p>
1114    pub fn set_ssekms_encryption_context(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1115        self.inner = self.inner.set_ssekms_encryption_context(input);
1116        self
1117    }
1118    /// <p>Specifies the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs.</p>
1119    /// <p><b>Directory buckets</b> - You can optionally provide an explicit encryption context value. The value must match the default encryption context - the bucket Amazon Resource Name (ARN). An additional encryption context value is not supported.</p>
1120    pub fn get_ssekms_encryption_context(&self) -> &::std::option::Option<::std::string::String> {
1121        self.inner.get_ssekms_encryption_context()
1122    }
1123    /// <p>Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption with server-side encryption using Key Management Service (KMS) keys (SSE-KMS).</p>
1124    /// <p><b>General purpose buckets</b> - Setting this header to <code>true</code> causes Amazon S3 to use an S3 Bucket Key for object encryption with SSE-KMS. Also, specifying this header with a PUT action doesn't affect bucket-level settings for S3 Bucket Key.</p>
1125    /// <p><b>Directory buckets</b> - S3 Bucket Keys are always enabled for <code>GET</code> and <code>PUT</code> operations in a directory bucket and can’t be disabled. S3 Bucket Keys aren't supported, when you copy SSE-KMS encrypted objects from general purpose buckets to directory buckets, from directory buckets to general purpose buckets, or between directory buckets, through <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html">CopyObject</a>, <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html">UploadPartCopy</a>, <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-objects-Batch-Ops">the Copy operation in Batch Operations</a>, or <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/create-import-job">the import jobs</a>. In this case, Amazon S3 makes a call to KMS every time a copy request is made for a KMS-encrypted object.</p>
1126    pub fn bucket_key_enabled(mut self, input: bool) -> Self {
1127        self.inner = self.inner.bucket_key_enabled(input);
1128        self
1129    }
1130    /// <p>Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption with server-side encryption using Key Management Service (KMS) keys (SSE-KMS).</p>
1131    /// <p><b>General purpose buckets</b> - Setting this header to <code>true</code> causes Amazon S3 to use an S3 Bucket Key for object encryption with SSE-KMS. Also, specifying this header with a PUT action doesn't affect bucket-level settings for S3 Bucket Key.</p>
1132    /// <p><b>Directory buckets</b> - S3 Bucket Keys are always enabled for <code>GET</code> and <code>PUT</code> operations in a directory bucket and can’t be disabled. S3 Bucket Keys aren't supported, when you copy SSE-KMS encrypted objects from general purpose buckets to directory buckets, from directory buckets to general purpose buckets, or between directory buckets, through <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html">CopyObject</a>, <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html">UploadPartCopy</a>, <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-objects-Batch-Ops">the Copy operation in Batch Operations</a>, or <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/create-import-job">the import jobs</a>. In this case, Amazon S3 makes a call to KMS every time a copy request is made for a KMS-encrypted object.</p>
1133    pub fn set_bucket_key_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
1134        self.inner = self.inner.set_bucket_key_enabled(input);
1135        self
1136    }
1137    /// <p>Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption with server-side encryption using Key Management Service (KMS) keys (SSE-KMS).</p>
1138    /// <p><b>General purpose buckets</b> - Setting this header to <code>true</code> causes Amazon S3 to use an S3 Bucket Key for object encryption with SSE-KMS. Also, specifying this header with a PUT action doesn't affect bucket-level settings for S3 Bucket Key.</p>
1139    /// <p><b>Directory buckets</b> - S3 Bucket Keys are always enabled for <code>GET</code> and <code>PUT</code> operations in a directory bucket and can’t be disabled. S3 Bucket Keys aren't supported, when you copy SSE-KMS encrypted objects from general purpose buckets to directory buckets, from directory buckets to general purpose buckets, or between directory buckets, through <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html">CopyObject</a>, <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html">UploadPartCopy</a>, <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-objects-Batch-Ops">the Copy operation in Batch Operations</a>, or <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/create-import-job">the import jobs</a>. In this case, Amazon S3 makes a call to KMS every time a copy request is made for a KMS-encrypted object.</p>
1140    pub fn get_bucket_key_enabled(&self) -> &::std::option::Option<bool> {
1141        self.inner.get_bucket_key_enabled()
1142    }
1143    /// <p>Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. If either the source or destination S3 bucket has Requester Pays enabled, the requester will pay for corresponding charges to copy the object. For information about downloading objects from Requester Pays buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html">Downloading Objects in Requester Pays Buckets</a> in the <i>Amazon S3 User Guide</i>.</p><note>
1144    /// <p>This functionality is not supported for directory buckets.</p>
1145    /// </note>
1146    pub fn request_payer(mut self, input: crate::types::RequestPayer) -> Self {
1147        self.inner = self.inner.request_payer(input);
1148        self
1149    }
1150    /// <p>Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. If either the source or destination S3 bucket has Requester Pays enabled, the requester will pay for corresponding charges to copy the object. For information about downloading objects from Requester Pays buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html">Downloading Objects in Requester Pays Buckets</a> in the <i>Amazon S3 User Guide</i>.</p><note>
1151    /// <p>This functionality is not supported for directory buckets.</p>
1152    /// </note>
1153    pub fn set_request_payer(mut self, input: ::std::option::Option<crate::types::RequestPayer>) -> Self {
1154        self.inner = self.inner.set_request_payer(input);
1155        self
1156    }
1157    /// <p>Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. If either the source or destination S3 bucket has Requester Pays enabled, the requester will pay for corresponding charges to copy the object. For information about downloading objects from Requester Pays buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html">Downloading Objects in Requester Pays Buckets</a> in the <i>Amazon S3 User Guide</i>.</p><note>
1158    /// <p>This functionality is not supported for directory buckets.</p>
1159    /// </note>
1160    pub fn get_request_payer(&self) -> &::std::option::Option<crate::types::RequestPayer> {
1161        self.inner.get_request_payer()
1162    }
1163    /// <p>The tag-set for the object. The tag-set must be encoded as URL Query parameters.</p><note>
1164    /// <p>This functionality is not supported for directory buckets.</p>
1165    /// </note>
1166    pub fn tagging(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1167        self.inner = self.inner.tagging(input.into());
1168        self
1169    }
1170    /// <p>The tag-set for the object. The tag-set must be encoded as URL Query parameters.</p><note>
1171    /// <p>This functionality is not supported for directory buckets.</p>
1172    /// </note>
1173    pub fn set_tagging(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1174        self.inner = self.inner.set_tagging(input);
1175        self
1176    }
1177    /// <p>The tag-set for the object. The tag-set must be encoded as URL Query parameters.</p><note>
1178    /// <p>This functionality is not supported for directory buckets.</p>
1179    /// </note>
1180    pub fn get_tagging(&self) -> &::std::option::Option<::std::string::String> {
1181        self.inner.get_tagging()
1182    }
1183    /// <p>Specifies the Object Lock mode that you want to apply to the uploaded object.</p><note>
1184    /// <p>This functionality is not supported for directory buckets.</p>
1185    /// </note>
1186    pub fn object_lock_mode(mut self, input: crate::types::ObjectLockMode) -> Self {
1187        self.inner = self.inner.object_lock_mode(input);
1188        self
1189    }
1190    /// <p>Specifies the Object Lock mode that you want to apply to the uploaded object.</p><note>
1191    /// <p>This functionality is not supported for directory buckets.</p>
1192    /// </note>
1193    pub fn set_object_lock_mode(mut self, input: ::std::option::Option<crate::types::ObjectLockMode>) -> Self {
1194        self.inner = self.inner.set_object_lock_mode(input);
1195        self
1196    }
1197    /// <p>Specifies the Object Lock mode that you want to apply to the uploaded object.</p><note>
1198    /// <p>This functionality is not supported for directory buckets.</p>
1199    /// </note>
1200    pub fn get_object_lock_mode(&self) -> &::std::option::Option<crate::types::ObjectLockMode> {
1201        self.inner.get_object_lock_mode()
1202    }
1203    /// <p>Specifies the date and time when you want the Object Lock to expire.</p><note>
1204    /// <p>This functionality is not supported for directory buckets.</p>
1205    /// </note>
1206    pub fn object_lock_retain_until_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
1207        self.inner = self.inner.object_lock_retain_until_date(input);
1208        self
1209    }
1210    /// <p>Specifies the date and time when you want the Object Lock to expire.</p><note>
1211    /// <p>This functionality is not supported for directory buckets.</p>
1212    /// </note>
1213    pub fn set_object_lock_retain_until_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
1214        self.inner = self.inner.set_object_lock_retain_until_date(input);
1215        self
1216    }
1217    /// <p>Specifies the date and time when you want the Object Lock to expire.</p><note>
1218    /// <p>This functionality is not supported for directory buckets.</p>
1219    /// </note>
1220    pub fn get_object_lock_retain_until_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
1221        self.inner.get_object_lock_retain_until_date()
1222    }
1223    /// <p>Specifies whether you want to apply a legal hold to the uploaded object.</p><note>
1224    /// <p>This functionality is not supported for directory buckets.</p>
1225    /// </note>
1226    pub fn object_lock_legal_hold_status(mut self, input: crate::types::ObjectLockLegalHoldStatus) -> Self {
1227        self.inner = self.inner.object_lock_legal_hold_status(input);
1228        self
1229    }
1230    /// <p>Specifies whether you want to apply a legal hold to the uploaded object.</p><note>
1231    /// <p>This functionality is not supported for directory buckets.</p>
1232    /// </note>
1233    pub fn set_object_lock_legal_hold_status(mut self, input: ::std::option::Option<crate::types::ObjectLockLegalHoldStatus>) -> Self {
1234        self.inner = self.inner.set_object_lock_legal_hold_status(input);
1235        self
1236    }
1237    /// <p>Specifies whether you want to apply a legal hold to the uploaded object.</p><note>
1238    /// <p>This functionality is not supported for directory buckets.</p>
1239    /// </note>
1240    pub fn get_object_lock_legal_hold_status(&self) -> &::std::option::Option<crate::types::ObjectLockLegalHoldStatus> {
1241        self.inner.get_object_lock_legal_hold_status()
1242    }
1243    /// <p>The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code <code>403 Forbidden</code> (access denied).</p>
1244    pub fn expected_bucket_owner(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1245        self.inner = self.inner.expected_bucket_owner(input.into());
1246        self
1247    }
1248    /// <p>The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code <code>403 Forbidden</code> (access denied).</p>
1249    pub fn set_expected_bucket_owner(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1250        self.inner = self.inner.set_expected_bucket_owner(input);
1251        self
1252    }
1253    /// <p>The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code <code>403 Forbidden</code> (access denied).</p>
1254    pub fn get_expected_bucket_owner(&self) -> &::std::option::Option<::std::string::String> {
1255        self.inner.get_expected_bucket_owner()
1256    }
1257    /// <p>Indicates the algorithm that you want Amazon S3 to use to create the checksum for the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
1258    pub fn checksum_algorithm(mut self, input: crate::types::ChecksumAlgorithm) -> Self {
1259        self.inner = self.inner.checksum_algorithm(input);
1260        self
1261    }
1262    /// <p>Indicates the algorithm that you want Amazon S3 to use to create the checksum for the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
1263    pub fn set_checksum_algorithm(mut self, input: ::std::option::Option<crate::types::ChecksumAlgorithm>) -> Self {
1264        self.inner = self.inner.set_checksum_algorithm(input);
1265        self
1266    }
1267    /// <p>Indicates the algorithm that you want Amazon S3 to use to create the checksum for the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
1268    pub fn get_checksum_algorithm(&self) -> &::std::option::Option<crate::types::ChecksumAlgorithm> {
1269        self.inner.get_checksum_algorithm()
1270    }
1271    /// <p>Indicates the checksum type that you want Amazon S3 to use to calculate the object’s checksum value. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity in the Amazon S3 User Guide</a>.</p>
1272    pub fn checksum_type(mut self, input: crate::types::ChecksumType) -> Self {
1273        self.inner = self.inner.checksum_type(input);
1274        self
1275    }
1276    /// <p>Indicates the checksum type that you want Amazon S3 to use to calculate the object’s checksum value. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity in the Amazon S3 User Guide</a>.</p>
1277    pub fn set_checksum_type(mut self, input: ::std::option::Option<crate::types::ChecksumType>) -> Self {
1278        self.inner = self.inner.set_checksum_type(input);
1279        self
1280    }
1281    /// <p>Indicates the checksum type that you want Amazon S3 to use to calculate the object’s checksum value. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity in the Amazon S3 User Guide</a>.</p>
1282    pub fn get_checksum_type(&self) -> &::std::option::Option<crate::types::ChecksumType> {
1283        self.inner.get_checksum_type()
1284    }
1285}