aws_sdk_s3/operation/put_bucket_acl/
builders.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::put_bucket_acl::_put_bucket_acl_output::PutBucketAclOutputBuilder;
3
4pub use crate::operation::put_bucket_acl::_put_bucket_acl_input::PutBucketAclInputBuilder;
5
6impl crate::operation::put_bucket_acl::builders::PutBucketAclInputBuilder {
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::put_bucket_acl::PutBucketAclOutput,
13        ::aws_smithy_runtime_api::client::result::SdkError<
14            crate::operation::put_bucket_acl::PutBucketAclError,
15            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16        >,
17    > {
18        let mut fluent_builder = client.put_bucket_acl();
19        fluent_builder.inner = self;
20        fluent_builder.send().await
21    }
22}
23/// Fluent builder constructing a request to `PutBucketAcl`.
24///
25/// <important>
26/// <p>End of support notice: As of October 1, 2025, Amazon S3 has discontinued support for Email Grantee Access Control Lists (ACLs). If you attempt to use an Email Grantee ACL in a request after October 1, 2025, the request will receive an <code>HTTP 405</code> (Method Not Allowed) error.</p>
27/// <p>This change affects the following Amazon Web Services Regions: US East (N. Virginia), US West (N. California), US West (Oregon), Asia Pacific (Singapore), Asia Pacific (Sydney), Asia Pacific (Tokyo), Europe (Ireland), and South America (São Paulo).</p>
28/// </important> <note>
29/// <p>This operation is not supported for directory buckets.</p>
30/// </note>
31/// <p>Sets the permissions on an existing bucket using access control lists (ACL). For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/S3_ACLs_UsingACLs.html">Using ACLs</a>. To set the ACL of a bucket, you must have the <code>WRITE_ACP</code> permission.</p>
32/// <p>You can use one of the following two ways to set a bucket's permissions:</p>
33/// <ul>
34/// <li>
35/// <p>Specify the ACL in the request body</p></li>
36/// <li>
37/// <p>Specify permissions using request headers</p></li>
38/// </ul><note>
39/// <p>You cannot specify access permission using both the body and the request headers.</p>
40/// </note>
41/// <p>Depending on your application needs, you may choose to set the ACL on a bucket using either the request body or the headers. For example, if you have an existing application that updates a bucket ACL using the request body, then you can continue to use that approach.</p><important>
42/// <p>If your bucket uses the bucket owner enforced setting for S3 Object Ownership, ACLs are disabled and no longer affect permissions. You must use policies to grant access to your bucket and the objects in it. Requests to set ACLs or update ACLs fail and return the <code>AccessControlListNotSupported</code> error code. Requests to read ACLs are still supported. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html">Controlling object ownership</a> in the <i>Amazon S3 User Guide</i>.</p>
43/// </important>
44/// <dl>
45/// <dt>
46/// Permissions
47/// </dt>
48/// <dd>
49/// <p>You can set access permissions by using one of the following methods:</p>
50/// <ul>
51/// <li>
52/// <p>Specify a canned ACL with the <code>x-amz-acl</code> request header. Amazon S3 supports a set of predefined ACLs, known as <i>canned ACLs</i>. Each canned ACL has a predefined set of grantees and permissions. Specify the canned ACL name as the value of <code>x-amz-acl</code>. If you use this header, you cannot use other access control-specific headers in your request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#CannedACL">Canned ACL</a>.</p></li>
53/// <li>
54/// <p>Specify access permissions explicitly with the <code>x-amz-grant-read</code>, <code>x-amz-grant-read-acp</code>, <code>x-amz-grant-write-acp</code>, and <code>x-amz-grant-full-control</code> headers. When using these headers, you specify explicit access permissions and grantees (Amazon Web Services accounts or Amazon S3 groups) who will receive the permission. If you use these ACL-specific headers, you cannot use the <code>x-amz-acl</code> header to set a canned ACL. These parameters map to the set of permissions that Amazon S3 supports in an ACL. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html">Access Control List (ACL) Overview</a>.</p>
55/// <p>You specify each grantee as a type=value pair, where the type is one of the following:</p>
56/// <ul>
57/// <li>
58/// <p><code>id</code> – if the value specified is the canonical user ID of an Amazon Web Services account</p></li>
59/// <li>
60/// <p><code>uri</code> – if you are granting permissions to a predefined group</p></li>
61/// <li>
62/// <p><code>emailAddress</code> – if the value specified is the email address of an Amazon Web Services account</p><note>
63/// <p>Using email addresses to specify a grantee is only supported in the following Amazon Web Services Regions:</p>
64/// <ul>
65/// <li>
66/// <p>US East (N. Virginia)</p></li>
67/// <li>
68/// <p>US West (N. California)</p></li>
69/// <li>
70/// <p>US West (Oregon)</p></li>
71/// <li>
72/// <p>Asia Pacific (Singapore)</p></li>
73/// <li>
74/// <p>Asia Pacific (Sydney)</p></li>
75/// <li>
76/// <p>Asia Pacific (Tokyo)</p></li>
77/// <li>
78/// <p>Europe (Ireland)</p></li>
79/// <li>
80/// <p>South America (São Paulo)</p></li>
81/// </ul>
82/// <p>For a list of all the Amazon S3 supported Regions and endpoints, see <a href="https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region">Regions and Endpoints</a> in the Amazon Web Services General Reference.</p>
83/// </note></li>
84/// </ul>
85/// <p>For example, the following <code>x-amz-grant-write</code> header grants create, overwrite, and delete objects permission to LogDelivery group predefined by Amazon S3 and two Amazon Web Services accounts identified by their email addresses.</p>
86/// <p><code>x-amz-grant-write: uri="http://acs.amazonaws.com/groups/s3/LogDelivery", id="111122223333", id="555566667777" </code></p></li>
87/// </ul>
88/// <p>You can use either a canned ACL or specify access permissions explicitly. You cannot do both.</p>
89/// </dd>
90/// <dt>
91/// Grantee Values
92/// </dt>
93/// <dd>
94/// <p>You can specify the person (grantee) to whom you're assigning access rights (using request elements) in the following ways. For examples of how to specify these grantee values in JSON format, see the Amazon Web Services CLI example in <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/enable-server-access-logging.html"> Enabling Amazon S3 server access logging</a> in the <i>Amazon S3 User Guide</i>.</p>
95/// <ul>
96/// <li>
97/// <p>By the person's ID:</p>
98/// <p><code><grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CanonicalUser">
99/// <id>
100/// &lt;&gt;ID&lt;&gt;
101/// </id>
102/// <displayname>
103/// &lt;&gt;GranteesEmail&lt;&gt;
104/// </displayname>
105/// </grantee></code></p>
106/// <p>DisplayName is optional and ignored in the request</p></li>
107/// <li>
108/// <p>By URI:</p>
109/// <p><code><grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="Group">
110/// <uri>
111/// &lt;&gt;http://acs.amazonaws.com/groups/global/AuthenticatedUsers&lt;&gt;
112/// </uri>
113/// </grantee></code></p></li>
114/// <li>
115/// <p>By Email address:</p>
116/// <p><code><grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="AmazonCustomerByEmail">
117/// <emailaddress>
118/// &lt;&gt;Grantees@email.com&lt;&gt;
119/// </emailaddress>&amp;
120/// </grantee></code></p>
121/// <p>The grantee is resolved to the CanonicalUser and, in a response to a GET Object acl request, appears as the CanonicalUser.</p><note>
122/// <p>Using email addresses to specify a grantee is only supported in the following Amazon Web Services Regions:</p>
123/// <ul>
124/// <li>
125/// <p>US East (N. Virginia)</p></li>
126/// <li>
127/// <p>US West (N. California)</p></li>
128/// <li>
129/// <p>US West (Oregon)</p></li>
130/// <li>
131/// <p>Asia Pacific (Singapore)</p></li>
132/// <li>
133/// <p>Asia Pacific (Sydney)</p></li>
134/// <li>
135/// <p>Asia Pacific (Tokyo)</p></li>
136/// <li>
137/// <p>Europe (Ireland)</p></li>
138/// <li>
139/// <p>South America (São Paulo)</p></li>
140/// </ul>
141/// <p>For a list of all the Amazon S3 supported Regions and endpoints, see <a href="https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region">Regions and Endpoints</a> in the Amazon Web Services General Reference.</p>
142/// </note></li>
143/// </ul>
144/// </dd>
145/// </dl>
146/// <p>The following operations are related to <code>PutBucketAcl</code>:</p>
147/// <ul>
148/// <li>
149/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucket.html">CreateBucket</a></p></li>
150/// <li>
151/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucket.html">DeleteBucket</a></p></li>
152/// <li>
153/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectAcl.html">GetObjectAcl</a></p></li>
154/// </ul><important>
155/// <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>
156/// </important>
157#[derive(::std::clone::Clone, ::std::fmt::Debug)]
158pub struct PutBucketAclFluentBuilder {
159    handle: ::std::sync::Arc<crate::client::Handle>,
160    inner: crate::operation::put_bucket_acl::builders::PutBucketAclInputBuilder,
161    config_override: ::std::option::Option<crate::config::Builder>,
162}
163impl
164    crate::client::customize::internal::CustomizableSend<
165        crate::operation::put_bucket_acl::PutBucketAclOutput,
166        crate::operation::put_bucket_acl::PutBucketAclError,
167    > for PutBucketAclFluentBuilder
168{
169    fn send(
170        self,
171        config_override: crate::config::Builder,
172    ) -> crate::client::customize::internal::BoxFuture<
173        crate::client::customize::internal::SendResult<
174            crate::operation::put_bucket_acl::PutBucketAclOutput,
175            crate::operation::put_bucket_acl::PutBucketAclError,
176        >,
177    > {
178        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
179    }
180}
181impl PutBucketAclFluentBuilder {
182    /// Creates a new `PutBucketAclFluentBuilder`.
183    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
184        Self {
185            handle,
186            inner: ::std::default::Default::default(),
187            config_override: ::std::option::Option::None,
188        }
189    }
190    /// Access the PutBucketAcl as a reference.
191    pub fn as_input(&self) -> &crate::operation::put_bucket_acl::builders::PutBucketAclInputBuilder {
192        &self.inner
193    }
194    /// Sends the request and returns the response.
195    ///
196    /// If an error occurs, an `SdkError` will be returned with additional details that
197    /// can be matched against.
198    ///
199    /// By default, any retryable failures will be retried twice. Retry behavior
200    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
201    /// set when configuring the client.
202    pub async fn send(
203        self,
204    ) -> ::std::result::Result<
205        crate::operation::put_bucket_acl::PutBucketAclOutput,
206        ::aws_smithy_runtime_api::client::result::SdkError<
207            crate::operation::put_bucket_acl::PutBucketAclError,
208            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
209        >,
210    > {
211        let input = self
212            .inner
213            .build()
214            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
215        let runtime_plugins = crate::operation::put_bucket_acl::PutBucketAcl::operation_runtime_plugins(
216            self.handle.runtime_plugins.clone(),
217            &self.handle.conf,
218            self.config_override,
219        );
220        crate::operation::put_bucket_acl::PutBucketAcl::orchestrate(&runtime_plugins, input).await
221    }
222
223    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
224    pub fn customize(
225        self,
226    ) -> crate::client::customize::CustomizableOperation<
227        crate::operation::put_bucket_acl::PutBucketAclOutput,
228        crate::operation::put_bucket_acl::PutBucketAclError,
229        Self,
230    > {
231        crate::client::customize::CustomizableOperation::new(self)
232    }
233    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
234        self.set_config_override(::std::option::Option::Some(config_override.into()));
235        self
236    }
237
238    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
239        self.config_override = config_override;
240        self
241    }
242    /// <p>The canned ACL to apply to the bucket.</p>
243    pub fn acl(mut self, input: crate::types::BucketCannedAcl) -> Self {
244        self.inner = self.inner.acl(input);
245        self
246    }
247    /// <p>The canned ACL to apply to the bucket.</p>
248    pub fn set_acl(mut self, input: ::std::option::Option<crate::types::BucketCannedAcl>) -> Self {
249        self.inner = self.inner.set_acl(input);
250        self
251    }
252    /// <p>The canned ACL to apply to the bucket.</p>
253    pub fn get_acl(&self) -> &::std::option::Option<crate::types::BucketCannedAcl> {
254        self.inner.get_acl()
255    }
256    /// <p>Contains the elements that set the ACL permissions for an object per grantee.</p>
257    pub fn access_control_policy(mut self, input: crate::types::AccessControlPolicy) -> Self {
258        self.inner = self.inner.access_control_policy(input);
259        self
260    }
261    /// <p>Contains the elements that set the ACL permissions for an object per grantee.</p>
262    pub fn set_access_control_policy(mut self, input: ::std::option::Option<crate::types::AccessControlPolicy>) -> Self {
263        self.inner = self.inner.set_access_control_policy(input);
264        self
265    }
266    /// <p>Contains the elements that set the ACL permissions for an object per grantee.</p>
267    pub fn get_access_control_policy(&self) -> &::std::option::Option<crate::types::AccessControlPolicy> {
268        self.inner.get_access_control_policy()
269    }
270    /// <p>The bucket to which to apply the ACL.</p>
271    pub fn bucket(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
272        self.inner = self.inner.bucket(input.into());
273        self
274    }
275    /// <p>The bucket to which to apply the ACL.</p>
276    pub fn set_bucket(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
277        self.inner = self.inner.set_bucket(input);
278        self
279    }
280    /// <p>The bucket to which to apply the ACL.</p>
281    pub fn get_bucket(&self) -> &::std::option::Option<::std::string::String> {
282        self.inner.get_bucket()
283    }
284    /// <p>The Base64 encoded 128-bit <code>MD5</code> digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to <a href="http://www.ietf.org/rfc/rfc1864.txt">RFC 1864.</a></p>
285    /// <p>For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.</p>
286    pub fn content_md5(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
287        self.inner = self.inner.content_md5(input.into());
288        self
289    }
290    /// <p>The Base64 encoded 128-bit <code>MD5</code> digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to <a href="http://www.ietf.org/rfc/rfc1864.txt">RFC 1864.</a></p>
291    /// <p>For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.</p>
292    pub fn set_content_md5(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
293        self.inner = self.inner.set_content_md5(input);
294        self
295    }
296    /// <p>The Base64 encoded 128-bit <code>MD5</code> digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to <a href="http://www.ietf.org/rfc/rfc1864.txt">RFC 1864.</a></p>
297    /// <p>For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.</p>
298    pub fn get_content_md5(&self) -> &::std::option::Option<::std::string::String> {
299        self.inner.get_content_md5()
300    }
301    /// <p>Indicates the algorithm used to create the checksum for the request when you use the SDK. This header will not provide any additional functionality if you don't use the SDK. When you send this header, there must be a corresponding <code>x-amz-checksum</code> or <code>x-amz-trailer</code> header sent. Otherwise, Amazon S3 fails the request with the HTTP status code <code>400 Bad Request</code>. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
302    /// <p>If you provide an individual checksum, Amazon S3 ignores any provided <code>ChecksumAlgorithm</code> parameter.</p>
303    pub fn checksum_algorithm(mut self, input: crate::types::ChecksumAlgorithm) -> Self {
304        self.inner = self.inner.checksum_algorithm(input);
305        self
306    }
307    /// <p>Indicates the algorithm used to create the checksum for the request when you use the SDK. This header will not provide any additional functionality if you don't use the SDK. When you send this header, there must be a corresponding <code>x-amz-checksum</code> or <code>x-amz-trailer</code> header sent. Otherwise, Amazon S3 fails the request with the HTTP status code <code>400 Bad Request</code>. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
308    /// <p>If you provide an individual checksum, Amazon S3 ignores any provided <code>ChecksumAlgorithm</code> parameter.</p>
309    pub fn set_checksum_algorithm(mut self, input: ::std::option::Option<crate::types::ChecksumAlgorithm>) -> Self {
310        self.inner = self.inner.set_checksum_algorithm(input);
311        self
312    }
313    /// <p>Indicates the algorithm used to create the checksum for the request when you use the SDK. This header will not provide any additional functionality if you don't use the SDK. When you send this header, there must be a corresponding <code>x-amz-checksum</code> or <code>x-amz-trailer</code> header sent. Otherwise, Amazon S3 fails the request with the HTTP status code <code>400 Bad Request</code>. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
314    /// <p>If you provide an individual checksum, Amazon S3 ignores any provided <code>ChecksumAlgorithm</code> parameter.</p>
315    pub fn get_checksum_algorithm(&self) -> &::std::option::Option<crate::types::ChecksumAlgorithm> {
316        self.inner.get_checksum_algorithm()
317    }
318    /// <p>Allows grantee the read, write, read ACP, and write ACP permissions on the bucket.</p>
319    pub fn grant_full_control(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
320        self.inner = self.inner.grant_full_control(input.into());
321        self
322    }
323    /// <p>Allows grantee the read, write, read ACP, and write ACP permissions on the bucket.</p>
324    pub fn set_grant_full_control(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
325        self.inner = self.inner.set_grant_full_control(input);
326        self
327    }
328    /// <p>Allows grantee the read, write, read ACP, and write ACP permissions on the bucket.</p>
329    pub fn get_grant_full_control(&self) -> &::std::option::Option<::std::string::String> {
330        self.inner.get_grant_full_control()
331    }
332    /// <p>Allows grantee to list the objects in the bucket.</p>
333    pub fn grant_read(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
334        self.inner = self.inner.grant_read(input.into());
335        self
336    }
337    /// <p>Allows grantee to list the objects in the bucket.</p>
338    pub fn set_grant_read(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
339        self.inner = self.inner.set_grant_read(input);
340        self
341    }
342    /// <p>Allows grantee to list the objects in the bucket.</p>
343    pub fn get_grant_read(&self) -> &::std::option::Option<::std::string::String> {
344        self.inner.get_grant_read()
345    }
346    /// <p>Allows grantee to read the bucket ACL.</p>
347    pub fn grant_read_acp(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
348        self.inner = self.inner.grant_read_acp(input.into());
349        self
350    }
351    /// <p>Allows grantee to read the bucket ACL.</p>
352    pub fn set_grant_read_acp(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
353        self.inner = self.inner.set_grant_read_acp(input);
354        self
355    }
356    /// <p>Allows grantee to read the bucket ACL.</p>
357    pub fn get_grant_read_acp(&self) -> &::std::option::Option<::std::string::String> {
358        self.inner.get_grant_read_acp()
359    }
360    /// <p>Allows grantee to create new objects in the bucket.</p>
361    /// <p>For the bucket and object owners of existing objects, also allows deletions and overwrites of those objects.</p>
362    pub fn grant_write(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
363        self.inner = self.inner.grant_write(input.into());
364        self
365    }
366    /// <p>Allows grantee to create new objects in the bucket.</p>
367    /// <p>For the bucket and object owners of existing objects, also allows deletions and overwrites of those objects.</p>
368    pub fn set_grant_write(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
369        self.inner = self.inner.set_grant_write(input);
370        self
371    }
372    /// <p>Allows grantee to create new objects in the bucket.</p>
373    /// <p>For the bucket and object owners of existing objects, also allows deletions and overwrites of those objects.</p>
374    pub fn get_grant_write(&self) -> &::std::option::Option<::std::string::String> {
375        self.inner.get_grant_write()
376    }
377    /// <p>Allows grantee to write the ACL for the applicable bucket.</p>
378    pub fn grant_write_acp(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
379        self.inner = self.inner.grant_write_acp(input.into());
380        self
381    }
382    /// <p>Allows grantee to write the ACL for the applicable bucket.</p>
383    pub fn set_grant_write_acp(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
384        self.inner = self.inner.set_grant_write_acp(input);
385        self
386    }
387    /// <p>Allows grantee to write the ACL for the applicable bucket.</p>
388    pub fn get_grant_write_acp(&self) -> &::std::option::Option<::std::string::String> {
389        self.inner.get_grant_write_acp()
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}