Skip to main content

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><important>
66/// <p>You must URL encode any signed header values that contain spaces. For example, if your header value is <code>my file.txt</code>, containing two spaces after <code>my</code>, you must URL encode this value to <code>my%20%20file.txt</code>.</p>
67/// </important>
68#[derive(::std::clone::Clone, ::std::fmt::Debug)]
69pub struct ListPartsFluentBuilder {
70    handle: ::std::sync::Arc<crate::client::Handle>,
71    inner: crate::operation::list_parts::builders::ListPartsInputBuilder,
72    config_override: ::std::option::Option<crate::config::Builder>,
73}
74impl crate::client::customize::internal::CustomizableSend<crate::operation::list_parts::ListPartsOutput, crate::operation::list_parts::ListPartsError>
75    for ListPartsFluentBuilder
76{
77    fn send(
78        self,
79        config_override: crate::config::Builder,
80    ) -> crate::client::customize::internal::BoxFuture<
81        crate::client::customize::internal::SendResult<crate::operation::list_parts::ListPartsOutput, crate::operation::list_parts::ListPartsError>,
82    > {
83        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
84    }
85}
86impl ListPartsFluentBuilder {
87    /// Creates a new `ListPartsFluentBuilder`.
88    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
89        Self {
90            handle,
91            inner: ::std::default::Default::default(),
92            config_override: ::std::option::Option::None,
93        }
94    }
95    /// Access the ListParts as a reference.
96    pub fn as_input(&self) -> &crate::operation::list_parts::builders::ListPartsInputBuilder {
97        &self.inner
98    }
99    /// Sends the request and returns the response.
100    ///
101    /// If an error occurs, an `SdkError` will be returned with additional details that
102    /// can be matched against.
103    ///
104    /// By default, any retryable failures will be retried twice. Retry behavior
105    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
106    /// set when configuring the client.
107    pub async fn send(
108        self,
109    ) -> ::std::result::Result<
110        crate::operation::list_parts::ListPartsOutput,
111        ::aws_smithy_runtime_api::client::result::SdkError<
112            crate::operation::list_parts::ListPartsError,
113            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
114        >,
115    > {
116        let input = self
117            .inner
118            .build()
119            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
120        let runtime_plugins = crate::operation::list_parts::ListParts::operation_runtime_plugins(
121            self.handle.runtime_plugins.clone(),
122            &self.handle.conf,
123            self.config_override,
124        );
125        crate::operation::list_parts::ListParts::orchestrate(&runtime_plugins, input).await
126    }
127
128    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
129    pub fn customize(
130        self,
131    ) -> crate::client::customize::CustomizableOperation<
132        crate::operation::list_parts::ListPartsOutput,
133        crate::operation::list_parts::ListPartsError,
134        Self,
135    > {
136        crate::client::customize::CustomizableOperation::new(self)
137    }
138    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
139        self.set_config_override(::std::option::Option::Some(config_override.into()));
140        self
141    }
142
143    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
144        self.config_override = config_override;
145        self
146    }
147    /// Create a paginator for this request
148    ///
149    /// 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).
150    pub fn into_paginator(self) -> crate::operation::list_parts::paginator::ListPartsPaginator {
151        crate::operation::list_parts::paginator::ListPartsPaginator::new(self.handle, self.inner)
152    }
153    /// <p>The name of the bucket to which the parts are being uploaded.</p>
154    /// <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>
155    /// <p><b>Access points</b> - When you use this action with an access point for general purpose buckets, you must provide the alias of the access point in place of the bucket name or specify the access point ARN. When you use this action with an access point for directory buckets, you must provide the access point name in place of the bucket name. 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>
156    /// <p>Object Lambda access points are not supported by directory buckets.</p>
157    /// </note>
158    /// <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>
159    pub fn bucket(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
160        self.inner = self.inner.bucket(input.into());
161        self
162    }
163    /// <p>The name of the bucket to which the parts are being uploaded.</p>
164    /// <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>
165    /// <p><b>Access points</b> - When you use this action with an access point for general purpose buckets, you must provide the alias of the access point in place of the bucket name or specify the access point ARN. When you use this action with an access point for directory buckets, you must provide the access point name in place of the bucket name. 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>
166    /// <p>Object Lambda access points are not supported by directory buckets.</p>
167    /// </note>
168    /// <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>
169    pub fn set_bucket(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
170        self.inner = self.inner.set_bucket(input);
171        self
172    }
173    /// <p>The name of the bucket to which the parts are being uploaded.</p>
174    /// <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>
175    /// <p><b>Access points</b> - When you use this action with an access point for general purpose buckets, you must provide the alias of the access point in place of the bucket name or specify the access point ARN. When you use this action with an access point for directory buckets, you must provide the access point name in place of the bucket name. 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>
176    /// <p>Object Lambda access points are not supported by directory buckets.</p>
177    /// </note>
178    /// <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>
179    pub fn get_bucket(&self) -> &::std::option::Option<::std::string::String> {
180        self.inner.get_bucket()
181    }
182    /// <p>Object key for which the multipart upload was initiated.</p>
183    pub fn key(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
184        self.inner = self.inner.key(input.into());
185        self
186    }
187    /// <p>Object key for which the multipart upload was initiated.</p>
188    pub fn set_key(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
189        self.inner = self.inner.set_key(input);
190        self
191    }
192    /// <p>Object key for which the multipart upload was initiated.</p>
193    pub fn get_key(&self) -> &::std::option::Option<::std::string::String> {
194        self.inner.get_key()
195    }
196    /// <p>Sets the maximum number of parts to return.</p>
197    pub fn max_parts(mut self, input: i32) -> Self {
198        self.inner = self.inner.max_parts(input);
199        self
200    }
201    /// <p>Sets the maximum number of parts to return.</p>
202    pub fn set_max_parts(mut self, input: ::std::option::Option<i32>) -> Self {
203        self.inner = self.inner.set_max_parts(input);
204        self
205    }
206    /// <p>Sets the maximum number of parts to return.</p>
207    pub fn get_max_parts(&self) -> &::std::option::Option<i32> {
208        self.inner.get_max_parts()
209    }
210    /// <p>Specifies the part after which listing should begin. Only parts with higher part numbers will be listed.</p>
211    pub fn part_number_marker(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
212        self.inner = self.inner.part_number_marker(input.into());
213        self
214    }
215    /// <p>Specifies the part after which listing should begin. Only parts with higher part numbers will be listed.</p>
216    pub fn set_part_number_marker(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
217        self.inner = self.inner.set_part_number_marker(input);
218        self
219    }
220    /// <p>Specifies the part after which listing should begin. Only parts with higher part numbers will be listed.</p>
221    pub fn get_part_number_marker(&self) -> &::std::option::Option<::std::string::String> {
222        self.inner.get_part_number_marker()
223    }
224    /// <p>Upload ID identifying the multipart upload whose parts are being listed.</p>
225    pub fn upload_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
226        self.inner = self.inner.upload_id(input.into());
227        self
228    }
229    /// <p>Upload ID identifying the multipart upload whose parts are being listed.</p>
230    pub fn set_upload_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
231        self.inner = self.inner.set_upload_id(input);
232        self
233    }
234    /// <p>Upload ID identifying the multipart upload whose parts are being listed.</p>
235    pub fn get_upload_id(&self) -> &::std::option::Option<::std::string::String> {
236        self.inner.get_upload_id()
237    }
238    /// <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>
239    /// <p>This functionality is not supported for directory buckets.</p>
240    /// </note>
241    pub fn request_payer(mut self, input: crate::types::RequestPayer) -> Self {
242        self.inner = self.inner.request_payer(input);
243        self
244    }
245    /// <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>
246    /// <p>This functionality is not supported for directory buckets.</p>
247    /// </note>
248    pub fn set_request_payer(mut self, input: ::std::option::Option<crate::types::RequestPayer>) -> Self {
249        self.inner = self.inner.set_request_payer(input);
250        self
251    }
252    /// <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>
253    /// <p>This functionality is not supported for directory buckets.</p>
254    /// </note>
255    pub fn get_request_payer(&self) -> &::std::option::Option<crate::types::RequestPayer> {
256        self.inner.get_request_payer()
257    }
258    /// <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>
259    pub fn expected_bucket_owner(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
260        self.inner = self.inner.expected_bucket_owner(input.into());
261        self
262    }
263    /// <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>
264    pub fn set_expected_bucket_owner(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
265        self.inner = self.inner.set_expected_bucket_owner(input);
266        self
267    }
268    /// <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>
269    pub fn get_expected_bucket_owner(&self) -> &::std::option::Option<::std::string::String> {
270        self.inner.get_expected_bucket_owner()
271    }
272    /// <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>
273    /// <p>This functionality is not supported for directory buckets.</p>
274    /// </note>
275    pub fn sse_customer_algorithm(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
276        self.inner = self.inner.sse_customer_algorithm(input.into());
277        self
278    }
279    /// <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>
280    /// <p>This functionality is not supported for directory buckets.</p>
281    /// </note>
282    pub fn set_sse_customer_algorithm(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
283        self.inner = self.inner.set_sse_customer_algorithm(input);
284        self
285    }
286    /// <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>
287    /// <p>This functionality is not supported for directory buckets.</p>
288    /// </note>
289    pub fn get_sse_customer_algorithm(&self) -> &::std::option::Option<::std::string::String> {
290        self.inner.get_sse_customer_algorithm()
291    }
292    /// <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>
293    /// <p>This functionality is not supported for directory buckets.</p>
294    /// </note>
295    pub fn sse_customer_key(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
296        self.inner = self.inner.sse_customer_key(input.into());
297        self
298    }
299    /// <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>
300    /// <p>This functionality is not supported for directory buckets.</p>
301    /// </note>
302    pub fn set_sse_customer_key(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
303        self.inner = self.inner.set_sse_customer_key(input);
304        self
305    }
306    /// <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>
307    /// <p>This functionality is not supported for directory buckets.</p>
308    /// </note>
309    pub fn get_sse_customer_key(&self) -> &::std::option::Option<::std::string::String> {
310        self.inner.get_sse_customer_key()
311    }
312    /// <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>
313    /// <p>This functionality is not supported for directory buckets.</p>
314    /// </note>
315    pub fn sse_customer_key_md5(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
316        self.inner = self.inner.sse_customer_key_md5(input.into());
317        self
318    }
319    /// <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>
320    /// <p>This functionality is not supported for directory buckets.</p>
321    /// </note>
322    pub fn set_sse_customer_key_md5(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
323        self.inner = self.inner.set_sse_customer_key_md5(input);
324        self
325    }
326    /// <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>
327    /// <p>This functionality is not supported for directory buckets.</p>
328    /// </note>
329    pub fn get_sse_customer_key_md5(&self) -> &::std::option::Option<::std::string::String> {
330        self.inner.get_sse_customer_key_md5()
331    }
332}