aws_sdk_s3/operation/get_object_attributes/
builders.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::get_object_attributes::_get_object_attributes_output::GetObjectAttributesOutputBuilder;
3
4pub use crate::operation::get_object_attributes::_get_object_attributes_input::GetObjectAttributesInputBuilder;
5
6impl crate::operation::get_object_attributes::builders::GetObjectAttributesInputBuilder {
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::get_object_attributes::GetObjectAttributesOutput,
13        ::aws_smithy_runtime_api::client::result::SdkError<
14            crate::operation::get_object_attributes::GetObjectAttributesError,
15            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16        >,
17    > {
18        let mut fluent_builder = client.get_object_attributes();
19        fluent_builder.inner = self;
20        fluent_builder.send().await
21    }
22}
23/// Fluent builder constructing a request to `GetObjectAttributes`.
24///
25/// <p>Retrieves all of the metadata from an object without returning the object itself. This operation is useful if you're interested only in an object's metadata.</p>
26/// <p><code>GetObjectAttributes</code> combines the functionality of <code>HeadObject</code> and <code>ListParts</code>. All of the data returned with both of those individual calls can be returned with a single call to <code>GetObjectAttributes</code>.</p><note>
27/// <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>
28/// </note>
29/// <dl>
30/// <dt>
31/// Permissions
32/// </dt>
33/// <dd>
34/// <ul>
35/// <li>
36/// <p><b>General purpose bucket permissions</b> - To use <code>GetObjectAttributes</code>, you must have READ access to the object.</p>
37/// <p>The other permissions that you need to use this operation depend on whether the bucket is versioned and if a version ID is passed in the <code>GetObjectAttributes</code> request.</p>
38/// <ul>
39/// <li>
40/// <p>If you pass a version ID in your request, you need both the <code>s3:GetObjectVersion</code> and <code>s3:GetObjectVersionAttributes</code> permissions.</p></li>
41/// <li>
42/// <p>If you do not pass a version ID in your request, you need the <code>s3:GetObject</code> and <code>s3:GetObjectAttributes</code> permissions.</p></li>
43/// </ul>
44/// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html">Specifying Permissions in a Policy</a> in the <i>Amazon S3 User Guide</i>.</p>
45/// <p>If the object that you request does not exist, the error Amazon S3 returns depends on whether you also have the <code>s3:ListBucket</code> permission.</p>
46/// <ul>
47/// <li>
48/// <p>If you have the <code>s3:ListBucket</code> permission on the bucket, Amazon S3 returns an HTTP status code <code>404 Not Found</code> ("no such key") error.</p></li>
49/// <li>
50/// <p>If you don't have the <code>s3:ListBucket</code> permission, Amazon S3 returns an HTTP status code <code>403 Forbidden</code> ("access denied") error.</p></li>
51/// </ul></li>
52/// <li>
53/// <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>
54/// <p>If the object is encrypted with SSE-KMS, you must also have the <code>kms:GenerateDataKey</code> and <code>kms:Decrypt</code> permissions in IAM identity-based policies and KMS key policies for the KMS key.</p></li>
55/// </ul>
56/// </dd>
57/// <dt>
58/// Encryption
59/// </dt>
60/// <dd>
61/// <note>
62/// <p>Encryption request headers, like <code>x-amz-server-side-encryption</code>, should not be sent for <code>HEAD</code> requests if your object uses server-side encryption with Key Management Service (KMS) keys (SSE-KMS), dual-layer server-side encryption with Amazon Web Services KMS keys (DSSE-KMS), or server-side encryption with Amazon S3 managed encryption keys (SSE-S3). The <code>x-amz-server-side-encryption</code> header is used when you <code>PUT</code> an object to S3 and want to specify the encryption method. If you include this header in a <code>GET</code> request for an object that uses these types of keys, you’ll get an HTTP <code>400 Bad Request</code> error. It's because the encryption method can't be changed when you retrieve the object.</p>
63/// </note>
64/// <p>If you encrypted an object when you stored the object in Amazon S3 by using server-side encryption with customer-provided encryption keys (SSE-C), then when you retrieve the metadata from the object, you must use the following headers. These headers provide the server with the encryption key required to retrieve the object's metadata. The headers are:</p>
65/// <ul>
66/// <li>
67/// <p><code>x-amz-server-side-encryption-customer-algorithm</code></p></li>
68/// <li>
69/// <p><code>x-amz-server-side-encryption-customer-key</code></p></li>
70/// <li>
71/// <p><code>x-amz-server-side-encryption-customer-key-MD5</code></p></li>
72/// </ul>
73/// <p>For more information about SSE-C, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html">Server-Side Encryption (Using Customer-Provided Encryption Keys)</a> in the <i>Amazon S3 User Guide</i>.</p><note>
74/// <p><b>Directory bucket permissions</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>
75/// </note>
76/// </dd>
77/// <dt>
78/// Versioning
79/// </dt>
80/// <dd>
81/// <p><b>Directory buckets</b> - S3 Versioning isn't enabled and supported for directory buckets. For this API operation, only the <code>null</code> value of the version ID is supported by directory buckets. You can only specify <code>null</code> to the <code>versionId</code> query parameter in the request.</p>
82/// </dd>
83/// <dt>
84/// Conditional request headers
85/// </dt>
86/// <dd>
87/// <p>Consider the following when using request headers:</p>
88/// <ul>
89/// <li>
90/// <p>If both of the <code>If-Match</code> and <code>If-Unmodified-Since</code> headers are present in the request as follows, then Amazon S3 returns the HTTP status code <code>200 OK</code> and the data requested:</p>
91/// <ul>
92/// <li>
93/// <p><code>If-Match</code> condition evaluates to <code>true</code>.</p></li>
94/// <li>
95/// <p><code>If-Unmodified-Since</code> condition evaluates to <code>false</code>.</p></li>
96/// </ul>
97/// <p>For more information about conditional requests, see <a href="https://tools.ietf.org/html/rfc7232">RFC 7232</a>.</p></li>
98/// <li>
99/// <p>If both of the <code>If-None-Match</code> and <code>If-Modified-Since</code> headers are present in the request as follows, then Amazon S3 returns the HTTP status code <code>304 Not Modified</code>:</p>
100/// <ul>
101/// <li>
102/// <p><code>If-None-Match</code> condition evaluates to <code>false</code>.</p></li>
103/// <li>
104/// <p><code>If-Modified-Since</code> condition evaluates to <code>true</code>.</p></li>
105/// </ul>
106/// <p>For more information about conditional requests, see <a href="https://tools.ietf.org/html/rfc7232">RFC 7232</a>.</p></li>
107/// </ul>
108/// </dd>
109/// <dt>
110/// HTTP Host header syntax
111/// </dt>
112/// <dd>
113/// <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>
114/// </dd>
115/// </dl>
116/// <p>The following actions are related to <code>GetObjectAttributes</code>:</p>
117/// <ul>
118/// <li>
119/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html">GetObject</a></p></li>
120/// <li>
121/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectAcl.html">GetObjectAcl</a></p></li>
122/// <li>
123/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectLegalHold.html">GetObjectLegalHold</a></p></li>
124/// <li>
125/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectLockConfiguration.html">GetObjectLockConfiguration</a></p></li>
126/// <li>
127/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectRetention.html">GetObjectRetention</a></p></li>
128/// <li>
129/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectTagging.html">GetObjectTagging</a></p></li>
130/// <li>
131/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_HeadObject.html">HeadObject</a></p></li>
132/// <li>
133/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListParts.html">ListParts</a></p></li>
134/// </ul>
135#[derive(::std::clone::Clone, ::std::fmt::Debug)]
136pub struct GetObjectAttributesFluentBuilder {
137    handle: ::std::sync::Arc<crate::client::Handle>,
138    inner: crate::operation::get_object_attributes::builders::GetObjectAttributesInputBuilder,
139    config_override: ::std::option::Option<crate::config::Builder>,
140}
141impl
142    crate::client::customize::internal::CustomizableSend<
143        crate::operation::get_object_attributes::GetObjectAttributesOutput,
144        crate::operation::get_object_attributes::GetObjectAttributesError,
145    > for GetObjectAttributesFluentBuilder
146{
147    fn send(
148        self,
149        config_override: crate::config::Builder,
150    ) -> crate::client::customize::internal::BoxFuture<
151        crate::client::customize::internal::SendResult<
152            crate::operation::get_object_attributes::GetObjectAttributesOutput,
153            crate::operation::get_object_attributes::GetObjectAttributesError,
154        >,
155    > {
156        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
157    }
158}
159impl GetObjectAttributesFluentBuilder {
160    /// Creates a new `GetObjectAttributesFluentBuilder`.
161    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
162        Self {
163            handle,
164            inner: ::std::default::Default::default(),
165            config_override: ::std::option::Option::None,
166        }
167    }
168    /// Access the GetObjectAttributes as a reference.
169    pub fn as_input(&self) -> &crate::operation::get_object_attributes::builders::GetObjectAttributesInputBuilder {
170        &self.inner
171    }
172    /// Sends the request and returns the response.
173    ///
174    /// If an error occurs, an `SdkError` will be returned with additional details that
175    /// can be matched against.
176    ///
177    /// By default, any retryable failures will be retried twice. Retry behavior
178    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
179    /// set when configuring the client.
180    pub async fn send(
181        self,
182    ) -> ::std::result::Result<
183        crate::operation::get_object_attributes::GetObjectAttributesOutput,
184        ::aws_smithy_runtime_api::client::result::SdkError<
185            crate::operation::get_object_attributes::GetObjectAttributesError,
186            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
187        >,
188    > {
189        let input = self
190            .inner
191            .build()
192            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
193        let runtime_plugins = crate::operation::get_object_attributes::GetObjectAttributes::operation_runtime_plugins(
194            self.handle.runtime_plugins.clone(),
195            &self.handle.conf,
196            self.config_override,
197        );
198        crate::operation::get_object_attributes::GetObjectAttributes::orchestrate(&runtime_plugins, input).await
199    }
200
201    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
202    pub fn customize(
203        self,
204    ) -> crate::client::customize::CustomizableOperation<
205        crate::operation::get_object_attributes::GetObjectAttributesOutput,
206        crate::operation::get_object_attributes::GetObjectAttributesError,
207        Self,
208    > {
209        crate::client::customize::CustomizableOperation::new(self)
210    }
211    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
212        self.set_config_override(::std::option::Option::Some(config_override.into()));
213        self
214    }
215
216    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
217        self.config_override = config_override;
218        self
219    }
220    /// <p>The name of the bucket that contains the object.</p>
221    /// <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>
222    /// <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>
223    /// <p>Object Lambda access points are not supported by directory buckets.</p>
224    /// </note>
225    /// <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>
226    pub fn bucket(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
227        self.inner = self.inner.bucket(input.into());
228        self
229    }
230    /// <p>The name of the bucket that contains the object.</p>
231    /// <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>
232    /// <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>
233    /// <p>Object Lambda access points are not supported by directory buckets.</p>
234    /// </note>
235    /// <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>
236    pub fn set_bucket(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
237        self.inner = self.inner.set_bucket(input);
238        self
239    }
240    /// <p>The name of the bucket that contains the object.</p>
241    /// <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>
242    /// <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>
243    /// <p>Object Lambda access points are not supported by directory buckets.</p>
244    /// </note>
245    /// <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>
246    pub fn get_bucket(&self) -> &::std::option::Option<::std::string::String> {
247        self.inner.get_bucket()
248    }
249    /// <p>The object key.</p>
250    pub fn key(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
251        self.inner = self.inner.key(input.into());
252        self
253    }
254    /// <p>The object key.</p>
255    pub fn set_key(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
256        self.inner = self.inner.set_key(input);
257        self
258    }
259    /// <p>The object key.</p>
260    pub fn get_key(&self) -> &::std::option::Option<::std::string::String> {
261        self.inner.get_key()
262    }
263    /// <p>The version ID used to reference a specific version of the object.</p><note>
264    /// <p>S3 Versioning isn't enabled and supported for directory buckets. For this API operation, only the <code>null</code> value of the version ID is supported by directory buckets. You can only specify <code>null</code> to the <code>versionId</code> query parameter in the request.</p>
265    /// </note>
266    pub fn version_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
267        self.inner = self.inner.version_id(input.into());
268        self
269    }
270    /// <p>The version ID used to reference a specific version of the object.</p><note>
271    /// <p>S3 Versioning isn't enabled and supported for directory buckets. For this API operation, only the <code>null</code> value of the version ID is supported by directory buckets. You can only specify <code>null</code> to the <code>versionId</code> query parameter in the request.</p>
272    /// </note>
273    pub fn set_version_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
274        self.inner = self.inner.set_version_id(input);
275        self
276    }
277    /// <p>The version ID used to reference a specific version of the object.</p><note>
278    /// <p>S3 Versioning isn't enabled and supported for directory buckets. For this API operation, only the <code>null</code> value of the version ID is supported by directory buckets. You can only specify <code>null</code> to the <code>versionId</code> query parameter in the request.</p>
279    /// </note>
280    pub fn get_version_id(&self) -> &::std::option::Option<::std::string::String> {
281        self.inner.get_version_id()
282    }
283    /// <p>Sets the maximum number of parts to return. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html">Uploading and copying objects using multipart upload in Amazon S3 </a> in the <i>Amazon Simple Storage Service user guide</i>.</p>
284    pub fn max_parts(mut self, input: i32) -> Self {
285        self.inner = self.inner.max_parts(input);
286        self
287    }
288    /// <p>Sets the maximum number of parts to return. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html">Uploading and copying objects using multipart upload in Amazon S3 </a> in the <i>Amazon Simple Storage Service user guide</i>.</p>
289    pub fn set_max_parts(mut self, input: ::std::option::Option<i32>) -> Self {
290        self.inner = self.inner.set_max_parts(input);
291        self
292    }
293    /// <p>Sets the maximum number of parts to return. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html">Uploading and copying objects using multipart upload in Amazon S3 </a> in the <i>Amazon Simple Storage Service user guide</i>.</p>
294    pub fn get_max_parts(&self) -> &::std::option::Option<i32> {
295        self.inner.get_max_parts()
296    }
297    /// <p>Specifies the part after which listing should begin. Only parts with higher part numbers will be listed. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html">Uploading and copying objects using multipart upload in Amazon S3 </a> in the <i>Amazon Simple Storage Service user guide</i>.</p>
298    pub fn part_number_marker(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
299        self.inner = self.inner.part_number_marker(input.into());
300        self
301    }
302    /// <p>Specifies the part after which listing should begin. Only parts with higher part numbers will be listed. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html">Uploading and copying objects using multipart upload in Amazon S3 </a> in the <i>Amazon Simple Storage Service user guide</i>.</p>
303    pub fn set_part_number_marker(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
304        self.inner = self.inner.set_part_number_marker(input);
305        self
306    }
307    /// <p>Specifies the part after which listing should begin. Only parts with higher part numbers will be listed. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html">Uploading and copying objects using multipart upload in Amazon S3 </a> in the <i>Amazon Simple Storage Service user guide</i>.</p>
308    pub fn get_part_number_marker(&self) -> &::std::option::Option<::std::string::String> {
309        self.inner.get_part_number_marker()
310    }
311    /// <p>Specifies the algorithm to use when encrypting the object (for example, AES256).</p><note>
312    /// <p>This functionality is not supported for directory buckets.</p>
313    /// </note>
314    pub fn sse_customer_algorithm(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
315        self.inner = self.inner.sse_customer_algorithm(input.into());
316        self
317    }
318    /// <p>Specifies the algorithm to use when encrypting the object (for example, AES256).</p><note>
319    /// <p>This functionality is not supported for directory buckets.</p>
320    /// </note>
321    pub fn set_sse_customer_algorithm(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
322        self.inner = self.inner.set_sse_customer_algorithm(input);
323        self
324    }
325    /// <p>Specifies the algorithm to use when encrypting the object (for example, AES256).</p><note>
326    /// <p>This functionality is not supported for directory buckets.</p>
327    /// </note>
328    pub fn get_sse_customer_algorithm(&self) -> &::std::option::Option<::std::string::String> {
329        self.inner.get_sse_customer_algorithm()
330    }
331    /// <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>
332    /// <p>This functionality is not supported for directory buckets.</p>
333    /// </note>
334    pub fn sse_customer_key(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
335        self.inner = self.inner.sse_customer_key(input.into());
336        self
337    }
338    /// <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>
339    /// <p>This functionality is not supported for directory buckets.</p>
340    /// </note>
341    pub fn set_sse_customer_key(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
342        self.inner = self.inner.set_sse_customer_key(input);
343        self
344    }
345    /// <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>
346    /// <p>This functionality is not supported for directory buckets.</p>
347    /// </note>
348    pub fn get_sse_customer_key(&self) -> &::std::option::Option<::std::string::String> {
349        self.inner.get_sse_customer_key()
350    }
351    /// <p>Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure that the encryption key was transmitted without error.</p><note>
352    /// <p>This functionality is not supported for directory buckets.</p>
353    /// </note>
354    pub fn sse_customer_key_md5(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
355        self.inner = self.inner.sse_customer_key_md5(input.into());
356        self
357    }
358    /// <p>Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure that the encryption key was transmitted without error.</p><note>
359    /// <p>This functionality is not supported for directory buckets.</p>
360    /// </note>
361    pub fn set_sse_customer_key_md5(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
362        self.inner = self.inner.set_sse_customer_key_md5(input);
363        self
364    }
365    /// <p>Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure that the encryption key was transmitted without error.</p><note>
366    /// <p>This functionality is not supported for directory buckets.</p>
367    /// </note>
368    pub fn get_sse_customer_key_md5(&self) -> &::std::option::Option<::std::string::String> {
369        self.inner.get_sse_customer_key_md5()
370    }
371    /// <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>
372    /// <p>This functionality is not supported for directory buckets.</p>
373    /// </note>
374    pub fn request_payer(mut self, input: crate::types::RequestPayer) -> Self {
375        self.inner = self.inner.request_payer(input);
376        self
377    }
378    /// <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>
379    /// <p>This functionality is not supported for directory buckets.</p>
380    /// </note>
381    pub fn set_request_payer(mut self, input: ::std::option::Option<crate::types::RequestPayer>) -> Self {
382        self.inner = self.inner.set_request_payer(input);
383        self
384    }
385    /// <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>
386    /// <p>This functionality is not supported for directory buckets.</p>
387    /// </note>
388    pub fn get_request_payer(&self) -> &::std::option::Option<crate::types::RequestPayer> {
389        self.inner.get_request_payer()
390    }
391    /// <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>
392    pub fn expected_bucket_owner(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
393        self.inner = self.inner.expected_bucket_owner(input.into());
394        self
395    }
396    /// <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>
397    pub fn set_expected_bucket_owner(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
398        self.inner = self.inner.set_expected_bucket_owner(input);
399        self
400    }
401    /// <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>
402    pub fn get_expected_bucket_owner(&self) -> &::std::option::Option<::std::string::String> {
403        self.inner.get_expected_bucket_owner()
404    }
405    ///
406    /// Appends an item to `ObjectAttributes`.
407    ///
408    /// To override the contents of this collection use [`set_object_attributes`](Self::set_object_attributes).
409    ///
410    /// <p>Specifies the fields at the root level that you want returned in the response. Fields that you do not specify are not returned.</p>
411    pub fn object_attributes(mut self, input: crate::types::ObjectAttributes) -> Self {
412        self.inner = self.inner.object_attributes(input);
413        self
414    }
415    /// <p>Specifies the fields at the root level that you want returned in the response. Fields that you do not specify are not returned.</p>
416    pub fn set_object_attributes(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ObjectAttributes>>) -> Self {
417        self.inner = self.inner.set_object_attributes(input);
418        self
419    }
420    /// <p>Specifies the fields at the root level that you want returned in the response. Fields that you do not specify are not returned.</p>
421    pub fn get_object_attributes(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ObjectAttributes>> {
422        self.inner.get_object_attributes()
423    }
424}