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: Beginning October 1, 2025, Amazon S3 will discontinue support for creating new Email Grantee Access Control Lists (ACL). Email Grantee ACLs created prior to this date will continue to work and remain accessible through the Amazon Web Services Management Console, Command Line Interface (CLI), SDKs, and REST API. However, you will no longer be able to create new Email Grantee ACLs.</p>
27/// <p>This change affects the following Amazon Web Services Regions: US East (N. Virginia) Region, US West (N. California) Region, US West (Oregon) Region, Asia Pacific (Singapore) Region, Asia Pacific (Sydney) Region, Asia Pacific (Tokyo) Region, Europe (Ireland) Region, and South America (São Paulo) Region.</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/// <>ID<>
101/// </id>
102/// <displayname>
103/// <>GranteesEmail<>
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/// <>http://acs.amazonaws.com/groups/global/AuthenticatedUsers<>
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/// <>Grantees@email.com<>
119/// </emailaddress>&
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>
155#[derive(::std::clone::Clone, ::std::fmt::Debug)]
156pub struct PutBucketAclFluentBuilder {
157 handle: ::std::sync::Arc<crate::client::Handle>,
158 inner: crate::operation::put_bucket_acl::builders::PutBucketAclInputBuilder,
159 config_override: ::std::option::Option<crate::config::Builder>,
160}
161impl
162 crate::client::customize::internal::CustomizableSend<
163 crate::operation::put_bucket_acl::PutBucketAclOutput,
164 crate::operation::put_bucket_acl::PutBucketAclError,
165 > for PutBucketAclFluentBuilder
166{
167 fn send(
168 self,
169 config_override: crate::config::Builder,
170 ) -> crate::client::customize::internal::BoxFuture<
171 crate::client::customize::internal::SendResult<
172 crate::operation::put_bucket_acl::PutBucketAclOutput,
173 crate::operation::put_bucket_acl::PutBucketAclError,
174 >,
175 > {
176 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
177 }
178}
179impl PutBucketAclFluentBuilder {
180 /// Creates a new `PutBucketAclFluentBuilder`.
181 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
182 Self {
183 handle,
184 inner: ::std::default::Default::default(),
185 config_override: ::std::option::Option::None,
186 }
187 }
188 /// Access the PutBucketAcl as a reference.
189 pub fn as_input(&self) -> &crate::operation::put_bucket_acl::builders::PutBucketAclInputBuilder {
190 &self.inner
191 }
192 /// Sends the request and returns the response.
193 ///
194 /// If an error occurs, an `SdkError` will be returned with additional details that
195 /// can be matched against.
196 ///
197 /// By default, any retryable failures will be retried twice. Retry behavior
198 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
199 /// set when configuring the client.
200 pub async fn send(
201 self,
202 ) -> ::std::result::Result<
203 crate::operation::put_bucket_acl::PutBucketAclOutput,
204 ::aws_smithy_runtime_api::client::result::SdkError<
205 crate::operation::put_bucket_acl::PutBucketAclError,
206 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
207 >,
208 > {
209 let input = self
210 .inner
211 .build()
212 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
213 let runtime_plugins = crate::operation::put_bucket_acl::PutBucketAcl::operation_runtime_plugins(
214 self.handle.runtime_plugins.clone(),
215 &self.handle.conf,
216 self.config_override,
217 );
218 crate::operation::put_bucket_acl::PutBucketAcl::orchestrate(&runtime_plugins, input).await
219 }
220
221 /// Consumes this builder, creating a customizable operation that can be modified before being sent.
222 pub fn customize(
223 self,
224 ) -> crate::client::customize::CustomizableOperation<
225 crate::operation::put_bucket_acl::PutBucketAclOutput,
226 crate::operation::put_bucket_acl::PutBucketAclError,
227 Self,
228 > {
229 crate::client::customize::CustomizableOperation::new(self)
230 }
231 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
232 self.set_config_override(::std::option::Option::Some(config_override.into()));
233 self
234 }
235
236 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
237 self.config_override = config_override;
238 self
239 }
240 /// <p>The canned ACL to apply to the bucket.</p>
241 pub fn acl(mut self, input: crate::types::BucketCannedAcl) -> Self {
242 self.inner = self.inner.acl(input);
243 self
244 }
245 /// <p>The canned ACL to apply to the bucket.</p>
246 pub fn set_acl(mut self, input: ::std::option::Option<crate::types::BucketCannedAcl>) -> Self {
247 self.inner = self.inner.set_acl(input);
248 self
249 }
250 /// <p>The canned ACL to apply to the bucket.</p>
251 pub fn get_acl(&self) -> &::std::option::Option<crate::types::BucketCannedAcl> {
252 self.inner.get_acl()
253 }
254 /// <p>Contains the elements that set the ACL permissions for an object per grantee.</p>
255 pub fn access_control_policy(mut self, input: crate::types::AccessControlPolicy) -> Self {
256 self.inner = self.inner.access_control_policy(input);
257 self
258 }
259 /// <p>Contains the elements that set the ACL permissions for an object per grantee.</p>
260 pub fn set_access_control_policy(mut self, input: ::std::option::Option<crate::types::AccessControlPolicy>) -> Self {
261 self.inner = self.inner.set_access_control_policy(input);
262 self
263 }
264 /// <p>Contains the elements that set the ACL permissions for an object per grantee.</p>
265 pub fn get_access_control_policy(&self) -> &::std::option::Option<crate::types::AccessControlPolicy> {
266 self.inner.get_access_control_policy()
267 }
268 /// <p>The bucket to which to apply the ACL.</p>
269 pub fn bucket(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
270 self.inner = self.inner.bucket(input.into());
271 self
272 }
273 /// <p>The bucket to which to apply the ACL.</p>
274 pub fn set_bucket(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
275 self.inner = self.inner.set_bucket(input);
276 self
277 }
278 /// <p>The bucket to which to apply the ACL.</p>
279 pub fn get_bucket(&self) -> &::std::option::Option<::std::string::String> {
280 self.inner.get_bucket()
281 }
282 /// <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>
283 /// <p>For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.</p>
284 pub fn content_md5(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
285 self.inner = self.inner.content_md5(input.into());
286 self
287 }
288 /// <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>
289 /// <p>For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.</p>
290 pub fn set_content_md5(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
291 self.inner = self.inner.set_content_md5(input);
292 self
293 }
294 /// <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>
295 /// <p>For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.</p>
296 pub fn get_content_md5(&self) -> &::std::option::Option<::std::string::String> {
297 self.inner.get_content_md5()
298 }
299 /// <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>
300 /// <p>If you provide an individual checksum, Amazon S3 ignores any provided <code>ChecksumAlgorithm</code> parameter.</p>
301 pub fn checksum_algorithm(mut self, input: crate::types::ChecksumAlgorithm) -> Self {
302 self.inner = self.inner.checksum_algorithm(input);
303 self
304 }
305 /// <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>
306 /// <p>If you provide an individual checksum, Amazon S3 ignores any provided <code>ChecksumAlgorithm</code> parameter.</p>
307 pub fn set_checksum_algorithm(mut self, input: ::std::option::Option<crate::types::ChecksumAlgorithm>) -> Self {
308 self.inner = self.inner.set_checksum_algorithm(input);
309 self
310 }
311 /// <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>
312 /// <p>If you provide an individual checksum, Amazon S3 ignores any provided <code>ChecksumAlgorithm</code> parameter.</p>
313 pub fn get_checksum_algorithm(&self) -> &::std::option::Option<crate::types::ChecksumAlgorithm> {
314 self.inner.get_checksum_algorithm()
315 }
316 /// <p>Allows grantee the read, write, read ACP, and write ACP permissions on the bucket.</p>
317 pub fn grant_full_control(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
318 self.inner = self.inner.grant_full_control(input.into());
319 self
320 }
321 /// <p>Allows grantee the read, write, read ACP, and write ACP permissions on the bucket.</p>
322 pub fn set_grant_full_control(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
323 self.inner = self.inner.set_grant_full_control(input);
324 self
325 }
326 /// <p>Allows grantee the read, write, read ACP, and write ACP permissions on the bucket.</p>
327 pub fn get_grant_full_control(&self) -> &::std::option::Option<::std::string::String> {
328 self.inner.get_grant_full_control()
329 }
330 /// <p>Allows grantee to list the objects in the bucket.</p>
331 pub fn grant_read(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
332 self.inner = self.inner.grant_read(input.into());
333 self
334 }
335 /// <p>Allows grantee to list the objects in the bucket.</p>
336 pub fn set_grant_read(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
337 self.inner = self.inner.set_grant_read(input);
338 self
339 }
340 /// <p>Allows grantee to list the objects in the bucket.</p>
341 pub fn get_grant_read(&self) -> &::std::option::Option<::std::string::String> {
342 self.inner.get_grant_read()
343 }
344 /// <p>Allows grantee to read the bucket ACL.</p>
345 pub fn grant_read_acp(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
346 self.inner = self.inner.grant_read_acp(input.into());
347 self
348 }
349 /// <p>Allows grantee to read the bucket ACL.</p>
350 pub fn set_grant_read_acp(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
351 self.inner = self.inner.set_grant_read_acp(input);
352 self
353 }
354 /// <p>Allows grantee to read the bucket ACL.</p>
355 pub fn get_grant_read_acp(&self) -> &::std::option::Option<::std::string::String> {
356 self.inner.get_grant_read_acp()
357 }
358 /// <p>Allows grantee to create new objects in the bucket.</p>
359 /// <p>For the bucket and object owners of existing objects, also allows deletions and overwrites of those objects.</p>
360 pub fn grant_write(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
361 self.inner = self.inner.grant_write(input.into());
362 self
363 }
364 /// <p>Allows grantee to create new objects in the bucket.</p>
365 /// <p>For the bucket and object owners of existing objects, also allows deletions and overwrites of those objects.</p>
366 pub fn set_grant_write(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
367 self.inner = self.inner.set_grant_write(input);
368 self
369 }
370 /// <p>Allows grantee to create new objects in the bucket.</p>
371 /// <p>For the bucket and object owners of existing objects, also allows deletions and overwrites of those objects.</p>
372 pub fn get_grant_write(&self) -> &::std::option::Option<::std::string::String> {
373 self.inner.get_grant_write()
374 }
375 /// <p>Allows grantee to write the ACL for the applicable bucket.</p>
376 pub fn grant_write_acp(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
377 self.inner = self.inner.grant_write_acp(input.into());
378 self
379 }
380 /// <p>Allows grantee to write the ACL for the applicable bucket.</p>
381 pub fn set_grant_write_acp(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
382 self.inner = self.inner.set_grant_write_acp(input);
383 self
384 }
385 /// <p>Allows grantee to write the ACL for the applicable bucket.</p>
386 pub fn get_grant_write_acp(&self) -> &::std::option::Option<::std::string::String> {
387 self.inner.get_grant_write_acp()
388 }
389 /// <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>
390 pub fn expected_bucket_owner(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
391 self.inner = self.inner.expected_bucket_owner(input.into());
392 self
393 }
394 /// <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>
395 pub fn set_expected_bucket_owner(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
396 self.inner = self.inner.set_expected_bucket_owner(input);
397 self
398 }
399 /// <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>
400 pub fn get_expected_bucket_owner(&self) -> &::std::option::Option<::std::string::String> {
401 self.inner.get_expected_bucket_owner()
402 }
403}