aws_sdk_s3/operation/list_parts/
builders.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::list_parts::_list_parts_output::ListPartsOutputBuilder;
3
4pub use crate::operation::list_parts::_list_parts_input::ListPartsInputBuilder;
5
6impl crate::operation::list_parts::builders::ListPartsInputBuilder {
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::list_parts::ListPartsOutput,
13        ::aws_smithy_runtime_api::client::result::SdkError<
14            crate::operation::list_parts::ListPartsError,
15            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16        >,
17    > {
18        let mut fluent_builder = client.list_parts();
19        fluent_builder.inner = self;
20        fluent_builder.send().await
21    }
22}
23/// Fluent builder constructing a request to `ListParts`.
24///
25/// <p>Lists the parts that have been uploaded for a specific multipart upload.</p>
26/// <p>To use this operation, you must provide the <code>upload ID</code> in the request. You obtain this uploadID by sending the initiate multipart upload request through <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateMultipartUpload.html">CreateMultipartUpload</a>.</p>
27/// <p>The <code>ListParts</code> request returns a maximum of 1,000 uploaded parts. The limit of 1,000 parts is also the default value. You can restrict the number of parts in a response by specifying the <code>max-parts</code> request parameter. If your multipart upload consists of more than 1,000 parts, the response returns an <code>IsTruncated</code> field with the value of <code>true</code>, and a <code>NextPartNumberMarker</code> element. To list remaining uploaded parts, in subsequent <code>ListParts</code> requests, include the <code>part-number-marker</code> query string parameter and set its value to the <code>NextPartNumberMarker</code> field value from the previous response.</p>
28/// <p>For more information on multipart uploads, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/uploadobjusingmpu.html">Uploading Objects Using Multipart Upload</a> in the <i>Amazon S3 User Guide</i>.</p><note>
29/// <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>
30/// </note>
31/// <dl>
32/// <dt>
33/// Permissions
34/// </dt>
35/// <dd>
36/// <ul>
37/// <li>
38/// <p><b>General purpose bucket permissions</b> - For information about permissions required to use the multipart upload API, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html">Multipart Upload and Permissions</a> in the <i>Amazon S3 User Guide</i>.</p>
39/// <p>If the upload was created using server-side encryption with Key Management Service (KMS) keys (SSE-KMS) or dual-layer server-side encryption with Amazon Web Services KMS keys (DSSE-KMS), you must have permission to the <code>kms:Decrypt</code> action for the <code>ListParts</code> request to succeed.</p></li>
40/// <li>
41/// <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>
42/// </ul>
43/// </dd>
44/// <dt>
45/// HTTP Host header syntax
46/// </dt>
47/// <dd>
48/// <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>
49/// </dd>
50/// </dl>
51/// <p>The following operations are related to <code>ListParts</code>:</p>
52/// <ul>
53/// <li>
54/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateMultipartUpload.html">CreateMultipartUpload</a></p></li>
55/// <li>
56/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html">UploadPart</a></p></li>
57/// <li>
58/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CompleteMultipartUpload.html">CompleteMultipartUpload</a></p></li>
59/// <li>
60/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_AbortMultipartUpload.html">AbortMultipartUpload</a></p></li>
61/// <li>
62/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectAttributes.html">GetObjectAttributes</a></p></li>
63/// <li>
64/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListMultipartUploads.html">ListMultipartUploads</a></p></li>
65/// </ul>
66#[derive(::std::clone::Clone, ::std::fmt::Debug)]
67pub struct ListPartsFluentBuilder {
68    handle: ::std::sync::Arc<crate::client::Handle>,
69    inner: crate::operation::list_parts::builders::ListPartsInputBuilder,
70    config_override: ::std::option::Option<crate::config::Builder>,
71}
72impl crate::client::customize::internal::CustomizableSend<crate::operation::list_parts::ListPartsOutput, crate::operation::list_parts::ListPartsError>
73    for ListPartsFluentBuilder
74{
75    fn send(
76        self,
77        config_override: crate::config::Builder,
78    ) -> crate::client::customize::internal::BoxFuture<
79        crate::client::customize::internal::SendResult<crate::operation::list_parts::ListPartsOutput, crate::operation::list_parts::ListPartsError>,
80    > {
81        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
82    }
83}
84impl ListPartsFluentBuilder {
85    /// Creates a new `ListPartsFluentBuilder`.
86    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
87        Self {
88            handle,
89            inner: ::std::default::Default::default(),
90            config_override: ::std::option::Option::None,
91        }
92    }
93    /// Access the ListParts as a reference.
94    pub fn as_input(&self) -> &crate::operation::list_parts::builders::ListPartsInputBuilder {
95        &self.inner
96    }
97    /// Sends the request and returns the response.
98    ///
99    /// If an error occurs, an `SdkError` will be returned with additional details that
100    /// can be matched against.
101    ///
102    /// By default, any retryable failures will be retried twice. Retry behavior
103    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
104    /// set when configuring the client.
105    pub async fn send(
106        self,
107    ) -> ::std::result::Result<
108        crate::operation::list_parts::ListPartsOutput,
109        ::aws_smithy_runtime_api::client::result::SdkError<
110            crate::operation::list_parts::ListPartsError,
111            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
112        >,
113    > {
114        let input = self
115            .inner
116            .build()
117            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
118        let runtime_plugins = crate::operation::list_parts::ListParts::operation_runtime_plugins(
119            self.handle.runtime_plugins.clone(),
120            &self.handle.conf,
121            self.config_override,
122        );
123        crate::operation::list_parts::ListParts::orchestrate(&runtime_plugins, input).await
124    }
125
126    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
127    pub fn customize(
128        self,
129    ) -> crate::client::customize::CustomizableOperation<
130        crate::operation::list_parts::ListPartsOutput,
131        crate::operation::list_parts::ListPartsError,
132        Self,
133    > {
134        crate::client::customize::CustomizableOperation::new(self)
135    }
136    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
137        self.set_config_override(::std::option::Option::Some(config_override.into()));
138        self
139    }
140
141    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
142        self.config_override = config_override;
143        self
144    }
145    /// Create a paginator for this request
146    ///
147    /// Paginators are used by calling [`send().await`](crate::operation::list_parts::paginator::ListPartsPaginator::send) which returns a [`PaginationStream`](aws_smithy_async::future::pagination_stream::PaginationStream).
148    pub fn into_paginator(self) -> crate::operation::list_parts::paginator::ListPartsPaginator {
149        crate::operation::list_parts::paginator::ListPartsPaginator::new(self.handle, self.inner)
150    }
151    /// <p>The name of the bucket to which the parts are being uploaded.</p>
152    /// <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>
153    /// <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>
154    /// <p>Access points and Object Lambda access points are not supported by directory buckets.</p>
155    /// </note>
156    /// <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>
157    pub fn bucket(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
158        self.inner = self.inner.bucket(input.into());
159        self
160    }
161    /// <p>The name of the bucket to which the parts are being uploaded.</p>
162    /// <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>
163    /// <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>
164    /// <p>Access points and Object Lambda access points are not supported by directory buckets.</p>
165    /// </note>
166    /// <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>
167    pub fn set_bucket(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
168        self.inner = self.inner.set_bucket(input);
169        self
170    }
171    /// <p>The name of the bucket to which the parts are being uploaded.</p>
172    /// <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>
173    /// <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>
174    /// <p>Access points and Object Lambda access points are not supported by directory buckets.</p>
175    /// </note>
176    /// <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>
177    pub fn get_bucket(&self) -> &::std::option::Option<::std::string::String> {
178        self.inner.get_bucket()
179    }
180    /// <p>Object key for which the multipart upload was initiated.</p>
181    pub fn key(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
182        self.inner = self.inner.key(input.into());
183        self
184    }
185    /// <p>Object key for which the multipart upload was initiated.</p>
186    pub fn set_key(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
187        self.inner = self.inner.set_key(input);
188        self
189    }
190    /// <p>Object key for which the multipart upload was initiated.</p>
191    pub fn get_key(&self) -> &::std::option::Option<::std::string::String> {
192        self.inner.get_key()
193    }
194    /// <p>Sets the maximum number of parts to return.</p>
195    pub fn max_parts(mut self, input: i32) -> Self {
196        self.inner = self.inner.max_parts(input);
197        self
198    }
199    /// <p>Sets the maximum number of parts to return.</p>
200    pub fn set_max_parts(mut self, input: ::std::option::Option<i32>) -> Self {
201        self.inner = self.inner.set_max_parts(input);
202        self
203    }
204    /// <p>Sets the maximum number of parts to return.</p>
205    pub fn get_max_parts(&self) -> &::std::option::Option<i32> {
206        self.inner.get_max_parts()
207    }
208    /// <p>Specifies the part after which listing should begin. Only parts with higher part numbers will be listed.</p>
209    pub fn part_number_marker(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
210        self.inner = self.inner.part_number_marker(input.into());
211        self
212    }
213    /// <p>Specifies the part after which listing should begin. Only parts with higher part numbers will be listed.</p>
214    pub fn set_part_number_marker(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
215        self.inner = self.inner.set_part_number_marker(input);
216        self
217    }
218    /// <p>Specifies the part after which listing should begin. Only parts with higher part numbers will be listed.</p>
219    pub fn get_part_number_marker(&self) -> &::std::option::Option<::std::string::String> {
220        self.inner.get_part_number_marker()
221    }
222    /// <p>Upload ID identifying the multipart upload whose parts are being listed.</p>
223    pub fn upload_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
224        self.inner = self.inner.upload_id(input.into());
225        self
226    }
227    /// <p>Upload ID identifying the multipart upload whose parts are being listed.</p>
228    pub fn set_upload_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
229        self.inner = self.inner.set_upload_id(input);
230        self
231    }
232    /// <p>Upload ID identifying the multipart upload whose parts are being listed.</p>
233    pub fn get_upload_id(&self) -> &::std::option::Option<::std::string::String> {
234        self.inner.get_upload_id()
235    }
236    /// <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>
237    /// <p>This functionality is not supported for directory buckets.</p>
238    /// </note>
239    pub fn request_payer(mut self, input: crate::types::RequestPayer) -> Self {
240        self.inner = self.inner.request_payer(input);
241        self
242    }
243    /// <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>
244    /// <p>This functionality is not supported for directory buckets.</p>
245    /// </note>
246    pub fn set_request_payer(mut self, input: ::std::option::Option<crate::types::RequestPayer>) -> Self {
247        self.inner = self.inner.set_request_payer(input);
248        self
249    }
250    /// <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>
251    /// <p>This functionality is not supported for directory buckets.</p>
252    /// </note>
253    pub fn get_request_payer(&self) -> &::std::option::Option<crate::types::RequestPayer> {
254        self.inner.get_request_payer()
255    }
256    /// <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>
257    pub fn expected_bucket_owner(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
258        self.inner = self.inner.expected_bucket_owner(input.into());
259        self
260    }
261    /// <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>
262    pub fn set_expected_bucket_owner(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
263        self.inner = self.inner.set_expected_bucket_owner(input);
264        self
265    }
266    /// <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>
267    pub fn get_expected_bucket_owner(&self) -> &::std::option::Option<::std::string::String> {
268        self.inner.get_expected_bucket_owner()
269    }
270    /// <p>The server-side encryption (SSE) algorithm used to encrypt the object. This parameter is needed only when the object was created using a checksum algorithm. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html">Protecting data using SSE-C keys</a> in the <i>Amazon S3 User Guide</i>.</p><note>
271    /// <p>This functionality is not supported for directory buckets.</p>
272    /// </note>
273    pub fn sse_customer_algorithm(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
274        self.inner = self.inner.sse_customer_algorithm(input.into());
275        self
276    }
277    /// <p>The server-side encryption (SSE) algorithm used to encrypt the object. This parameter is needed only when the object was created using a checksum algorithm. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html">Protecting data using SSE-C keys</a> in the <i>Amazon S3 User Guide</i>.</p><note>
278    /// <p>This functionality is not supported for directory buckets.</p>
279    /// </note>
280    pub fn set_sse_customer_algorithm(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
281        self.inner = self.inner.set_sse_customer_algorithm(input);
282        self
283    }
284    /// <p>The server-side encryption (SSE) algorithm used to encrypt the object. This parameter is needed only when the object was created using a checksum algorithm. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html">Protecting data using SSE-C keys</a> in the <i>Amazon S3 User Guide</i>.</p><note>
285    /// <p>This functionality is not supported for directory buckets.</p>
286    /// </note>
287    pub fn get_sse_customer_algorithm(&self) -> &::std::option::Option<::std::string::String> {
288        self.inner.get_sse_customer_algorithm()
289    }
290    /// <p>The server-side encryption (SSE) customer managed key. This parameter is needed only when the object was created using a checksum algorithm. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html">Protecting data using SSE-C keys</a> in the <i>Amazon S3 User Guide</i>.</p><note>
291    /// <p>This functionality is not supported for directory buckets.</p>
292    /// </note>
293    pub fn sse_customer_key(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
294        self.inner = self.inner.sse_customer_key(input.into());
295        self
296    }
297    /// <p>The server-side encryption (SSE) customer managed key. This parameter is needed only when the object was created using a checksum algorithm. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html">Protecting data using SSE-C keys</a> in the <i>Amazon S3 User Guide</i>.</p><note>
298    /// <p>This functionality is not supported for directory buckets.</p>
299    /// </note>
300    pub fn set_sse_customer_key(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
301        self.inner = self.inner.set_sse_customer_key(input);
302        self
303    }
304    /// <p>The server-side encryption (SSE) customer managed key. This parameter is needed only when the object was created using a checksum algorithm. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html">Protecting data using SSE-C keys</a> in the <i>Amazon S3 User Guide</i>.</p><note>
305    /// <p>This functionality is not supported for directory buckets.</p>
306    /// </note>
307    pub fn get_sse_customer_key(&self) -> &::std::option::Option<::std::string::String> {
308        self.inner.get_sse_customer_key()
309    }
310    /// <p>The MD5 server-side encryption (SSE) customer managed key. This parameter is needed only when the object was created using a checksum algorithm. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html">Protecting data using SSE-C keys</a> in the <i>Amazon S3 User Guide</i>.</p><note>
311    /// <p>This functionality is not supported for directory buckets.</p>
312    /// </note>
313    pub fn sse_customer_key_md5(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
314        self.inner = self.inner.sse_customer_key_md5(input.into());
315        self
316    }
317    /// <p>The MD5 server-side encryption (SSE) customer managed key. This parameter is needed only when the object was created using a checksum algorithm. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html">Protecting data using SSE-C keys</a> in the <i>Amazon S3 User Guide</i>.</p><note>
318    /// <p>This functionality is not supported for directory buckets.</p>
319    /// </note>
320    pub fn set_sse_customer_key_md5(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
321        self.inner = self.inner.set_sse_customer_key_md5(input);
322        self
323    }
324    /// <p>The MD5 server-side encryption (SSE) customer managed key. This parameter is needed only when the object was created using a checksum algorithm. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html">Protecting data using SSE-C keys</a> in the <i>Amazon S3 User Guide</i>.</p><note>
325    /// <p>This functionality is not supported for directory buckets.</p>
326    /// </note>
327    pub fn get_sse_customer_key_md5(&self) -> &::std::option::Option<::std::string::String> {
328        self.inner.get_sse_customer_key_md5()
329    }
330}