Skip to main content

aws_sdk_s3/operation/put_object_annotation/
builders.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::put_object_annotation::_put_object_annotation_input::PutObjectAnnotationInputBuilder;
3
4pub use crate::operation::put_object_annotation::_put_object_annotation_output::PutObjectAnnotationOutputBuilder;
5
6impl crate::operation::put_object_annotation::builders::PutObjectAnnotationInputBuilder {
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_object_annotation::PutObjectAnnotationOutput,
13        ::aws_smithy_runtime_api::client::result::SdkError<
14            crate::operation::put_object_annotation::PutObjectAnnotationError,
15            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16        >,
17    > {
18        let mut fluent_builder = client.put_object_annotation();
19        fluent_builder.inner = self;
20        fluent_builder.send().await
21    }
22}
23/// Fluent builder constructing a request to `PutObjectAnnotation`.
24///
25/// <p>Attaches an annotation to an Amazon S3 object. An annotation is a named payload of 1 byte to 1 MiB that you can associate with a specific object or object version. Each object can have up to 1,000 annotations.</p>
26/// <p>For annotation naming rules and restrictions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/annotations-overview.html">Annotation naming guidelines</a> in the <i>Amazon S3 User Guide</i>.</p>
27/// <p>Annotations inherit the encryption of their parent object. For objects without server-side encryption, annotations are encrypted with SSE-S3 (the default for new objects). Objects encrypted with SSE-C cannot have annotations.</p>
28/// <p>To use this operation, you must have the <code>s3:PutObjectAnnotation</code> permission. If the bucket has Requester Pays enabled, you must include the <code>x-amz-request-payer</code> header.</p><note>
29/// <p>Annotations are not supported by the following features: S3 Inventory Reports, API Gateway, S3 Storage Lens, Amazon S3 File Gateway, Amazon FSx, S3 on Outposts, and S3 Express One Zone (directory buckets).</p>
30/// </note>
31/// <p>The following operations are related to <code>PutObjectAnnotation</code>:</p>
32/// <ul>
33/// <li>
34/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectAnnotation.html">GetObjectAnnotation</a></p></li>
35/// <li>
36/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjectAnnotations.html">ListObjectAnnotations</a></p></li>
37/// <li>
38/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteObjectAnnotation.html">DeleteObjectAnnotation</a></p></li>
39/// </ul>
40#[derive(::std::fmt::Debug)]
41pub struct PutObjectAnnotationFluentBuilder {
42    handle: ::std::sync::Arc<crate::client::Handle>,
43    inner: crate::operation::put_object_annotation::builders::PutObjectAnnotationInputBuilder,
44    config_override: ::std::option::Option<crate::config::Builder>,
45}
46impl
47    crate::client::customize::internal::CustomizableSend<
48        crate::operation::put_object_annotation::PutObjectAnnotationOutput,
49        crate::operation::put_object_annotation::PutObjectAnnotationError,
50    > for PutObjectAnnotationFluentBuilder
51{
52    fn send(
53        self,
54        config_override: crate::config::Builder,
55    ) -> crate::client::customize::internal::BoxFuture<
56        crate::client::customize::internal::SendResult<
57            crate::operation::put_object_annotation::PutObjectAnnotationOutput,
58            crate::operation::put_object_annotation::PutObjectAnnotationError,
59        >,
60    > {
61        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
62    }
63}
64impl PutObjectAnnotationFluentBuilder {
65    /// Creates a new `PutObjectAnnotationFluentBuilder`.
66    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
67        Self {
68            handle,
69            inner: ::std::default::Default::default(),
70            config_override: ::std::option::Option::None,
71        }
72    }
73    /// Access the PutObjectAnnotation as a reference.
74    pub fn as_input(&self) -> &crate::operation::put_object_annotation::builders::PutObjectAnnotationInputBuilder {
75        &self.inner
76    }
77    /// Sends the request and returns the response.
78    ///
79    /// If an error occurs, an `SdkError` will be returned with additional details that
80    /// can be matched against.
81    ///
82    /// By default, any retryable failures will be retried twice. Retry behavior
83    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
84    /// set when configuring the client.
85    pub async fn send(
86        self,
87    ) -> ::std::result::Result<
88        crate::operation::put_object_annotation::PutObjectAnnotationOutput,
89        ::aws_smithy_runtime_api::client::result::SdkError<
90            crate::operation::put_object_annotation::PutObjectAnnotationError,
91            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
92        >,
93    > {
94        let input = self
95            .inner
96            .build()
97            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
98        let runtime_plugins = crate::operation::put_object_annotation::PutObjectAnnotation::operation_runtime_plugins(
99            self.handle.runtime_plugins.clone(),
100            &self.handle.conf,
101            self.config_override,
102        );
103        crate::operation::put_object_annotation::PutObjectAnnotation::orchestrate(&runtime_plugins, input).await
104    }
105
106    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
107    pub fn customize(
108        self,
109    ) -> crate::client::customize::CustomizableOperation<
110        crate::operation::put_object_annotation::PutObjectAnnotationOutput,
111        crate::operation::put_object_annotation::PutObjectAnnotationError,
112        Self,
113    > {
114        crate::client::customize::CustomizableOperation::new(self)
115    }
116    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
117        self.set_config_override(::std::option::Option::Some(config_override.into()));
118        self
119    }
120
121    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
122        self.config_override = config_override;
123        self
124    }
125    /// <p>The name of the bucket that contains the object.</p>
126    pub fn bucket(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
127        self.inner = self.inner.bucket(input.into());
128        self
129    }
130    /// <p>The name of the bucket that contains the object.</p>
131    pub fn set_bucket(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
132        self.inner = self.inner.set_bucket(input);
133        self
134    }
135    /// <p>The name of the bucket that contains the object.</p>
136    pub fn get_bucket(&self) -> &::std::option::Option<::std::string::String> {
137        self.inner.get_bucket()
138    }
139    /// <p>The object key.</p>
140    pub fn key(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
141        self.inner = self.inner.key(input.into());
142        self
143    }
144    /// <p>The object key.</p>
145    pub fn set_key(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
146        self.inner = self.inner.set_key(input);
147        self
148    }
149    /// <p>The object key.</p>
150    pub fn get_key(&self) -> &::std::option::Option<::std::string::String> {
151        self.inner.get_key()
152    }
153    /// <p>The version ID of the object to attach the annotation to.</p>
154    pub fn version_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
155        self.inner = self.inner.version_id(input.into());
156        self
157    }
158    /// <p>The version ID of the object to attach the annotation to.</p>
159    pub fn set_version_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
160        self.inner = self.inner.set_version_id(input);
161        self
162    }
163    /// <p>The version ID of the object to attach the annotation to.</p>
164    pub fn get_version_id(&self) -> &::std::option::Option<::std::string::String> {
165        self.inner.get_version_id()
166    }
167    /// <p>The name of the annotation.</p>
168    /// <p>Length Constraints: Minimum length of 1. Maximum length of 512 bytes.</p>
169    pub fn annotation_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
170        self.inner = self.inner.annotation_name(input.into());
171        self
172    }
173    /// <p>The name of the annotation.</p>
174    /// <p>Length Constraints: Minimum length of 1. Maximum length of 512 bytes.</p>
175    pub fn set_annotation_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
176        self.inner = self.inner.set_annotation_name(input);
177        self
178    }
179    /// <p>The name of the annotation.</p>
180    /// <p>Length Constraints: Minimum length of 1. Maximum length of 512 bytes.</p>
181    pub fn get_annotation_name(&self) -> &::std::option::Option<::std::string::String> {
182        self.inner.get_annotation_name()
183    }
184    /// <p>The annotation payload. Must be between 1 byte and 1 MiB in size, and must be valid UTF-8 encoded text. If the payload contains invalid UTF-8 bytes, the request fails with HTTP 415 (Unsupported Media Type). To store binary data, encode the payload using Base64 before uploading.</p>
185    pub fn annotation_payload(mut self, input: ::aws_smithy_types::byte_stream::ByteStream) -> Self {
186        self.inner = self.inner.annotation_payload(input);
187        self
188    }
189    /// <p>The annotation payload. Must be between 1 byte and 1 MiB in size, and must be valid UTF-8 encoded text. If the payload contains invalid UTF-8 bytes, the request fails with HTTP 415 (Unsupported Media Type). To store binary data, encode the payload using Base64 before uploading.</p>
190    pub fn set_annotation_payload(mut self, input: ::std::option::Option<::aws_smithy_types::byte_stream::ByteStream>) -> Self {
191        self.inner = self.inner.set_annotation_payload(input);
192        self
193    }
194    /// <p>The annotation payload. Must be between 1 byte and 1 MiB in size, and must be valid UTF-8 encoded text. If the payload contains invalid UTF-8 bytes, the request fails with HTTP 415 (Unsupported Media Type). To store binary data, encode the payload using Base64 before uploading.</p>
195    pub fn get_annotation_payload(&self) -> &::std::option::Option<::aws_smithy_types::byte_stream::ByteStream> {
196        self.inner.get_annotation_payload()
197    }
198    /// <p>If specified, the operation only succeeds if the object's ETag matches the provided value.</p>
199    pub fn object_if_match(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
200        self.inner = self.inner.object_if_match(input.into());
201        self
202    }
203    /// <p>If specified, the operation only succeeds if the object's ETag matches the provided value.</p>
204    pub fn set_object_if_match(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
205        self.inner = self.inner.set_object_if_match(input);
206        self
207    }
208    /// <p>If specified, the operation only succeeds if the object's ETag matches the provided value.</p>
209    pub fn get_object_if_match(&self) -> &::std::option::Option<::std::string::String> {
210        self.inner.get_object_if_match()
211    }
212    /// <p>The checksum algorithm to use. Supported values: <code>CRC32</code>, <code>CRC32C</code>, <code>CRC64NVME</code>, <code>SHA1</code>, <code>SHA256</code>, <code>SHA512</code>, <code>MD5</code>, <code>XXHASH64</code>, <code>XXHASH3</code>, <code>XXHASH128</code>.</p>
213    pub fn checksum_algorithm(mut self, input: crate::types::ChecksumAlgorithm) -> Self {
214        self.inner = self.inner.checksum_algorithm(input);
215        self
216    }
217    /// <p>The checksum algorithm to use. Supported values: <code>CRC32</code>, <code>CRC32C</code>, <code>CRC64NVME</code>, <code>SHA1</code>, <code>SHA256</code>, <code>SHA512</code>, <code>MD5</code>, <code>XXHASH64</code>, <code>XXHASH3</code>, <code>XXHASH128</code>.</p>
218    pub fn set_checksum_algorithm(mut self, input: ::std::option::Option<crate::types::ChecksumAlgorithm>) -> Self {
219        self.inner = self.inner.set_checksum_algorithm(input);
220        self
221    }
222    /// <p>The checksum algorithm to use. Supported values: <code>CRC32</code>, <code>CRC32C</code>, <code>CRC64NVME</code>, <code>SHA1</code>, <code>SHA256</code>, <code>SHA512</code>, <code>MD5</code>, <code>XXHASH64</code>, <code>XXHASH3</code>, <code>XXHASH128</code>.</p>
223    pub fn get_checksum_algorithm(&self) -> &::std::option::Option<crate::types::ChecksumAlgorithm> {
224        self.inner.get_checksum_algorithm()
225    }
226    /// <p>Base64-encoded CRC32 checksum of the annotation payload.</p>
227    pub fn checksum_crc32(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
228        self.inner = self.inner.checksum_crc32(input.into());
229        self
230    }
231    /// <p>Base64-encoded CRC32 checksum of the annotation payload.</p>
232    pub fn set_checksum_crc32(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
233        self.inner = self.inner.set_checksum_crc32(input);
234        self
235    }
236    /// <p>Base64-encoded CRC32 checksum of the annotation payload.</p>
237    pub fn get_checksum_crc32(&self) -> &::std::option::Option<::std::string::String> {
238        self.inner.get_checksum_crc32()
239    }
240    /// <p>Base64-encoded CRC32C checksum of the annotation payload.</p>
241    pub fn checksum_crc32_c(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
242        self.inner = self.inner.checksum_crc32_c(input.into());
243        self
244    }
245    /// <p>Base64-encoded CRC32C checksum of the annotation payload.</p>
246    pub fn set_checksum_crc32_c(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
247        self.inner = self.inner.set_checksum_crc32_c(input);
248        self
249    }
250    /// <p>Base64-encoded CRC32C checksum of the annotation payload.</p>
251    pub fn get_checksum_crc32_c(&self) -> &::std::option::Option<::std::string::String> {
252        self.inner.get_checksum_crc32_c()
253    }
254    /// <p>Base64-encoded CRC64NVME checksum of the annotation payload.</p>
255    pub fn checksum_crc64_nvme(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
256        self.inner = self.inner.checksum_crc64_nvme(input.into());
257        self
258    }
259    /// <p>Base64-encoded CRC64NVME checksum of the annotation payload.</p>
260    pub fn set_checksum_crc64_nvme(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
261        self.inner = self.inner.set_checksum_crc64_nvme(input);
262        self
263    }
264    /// <p>Base64-encoded CRC64NVME checksum of the annotation payload.</p>
265    pub fn get_checksum_crc64_nvme(&self) -> &::std::option::Option<::std::string::String> {
266        self.inner.get_checksum_crc64_nvme()
267    }
268    /// <p>Base64-encoded SHA1 checksum of the annotation payload.</p>
269    pub fn checksum_sha1(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
270        self.inner = self.inner.checksum_sha1(input.into());
271        self
272    }
273    /// <p>Base64-encoded SHA1 checksum of the annotation payload.</p>
274    pub fn set_checksum_sha1(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
275        self.inner = self.inner.set_checksum_sha1(input);
276        self
277    }
278    /// <p>Base64-encoded SHA1 checksum of the annotation payload.</p>
279    pub fn get_checksum_sha1(&self) -> &::std::option::Option<::std::string::String> {
280        self.inner.get_checksum_sha1()
281    }
282    /// <p>Base64-encoded SHA256 checksum of the annotation payload.</p>
283    pub fn checksum_sha256(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
284        self.inner = self.inner.checksum_sha256(input.into());
285        self
286    }
287    /// <p>Base64-encoded SHA256 checksum of the annotation payload.</p>
288    pub fn set_checksum_sha256(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
289        self.inner = self.inner.set_checksum_sha256(input);
290        self
291    }
292    /// <p>Base64-encoded SHA256 checksum of the annotation payload.</p>
293    pub fn get_checksum_sha256(&self) -> &::std::option::Option<::std::string::String> {
294        self.inner.get_checksum_sha256()
295    }
296    /// <p>Base64-encoded SHA512 checksum of the annotation payload.</p>
297    pub fn checksum_sha512(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
298        self.inner = self.inner.checksum_sha512(input.into());
299        self
300    }
301    /// <p>Base64-encoded SHA512 checksum of the annotation payload.</p>
302    pub fn set_checksum_sha512(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
303        self.inner = self.inner.set_checksum_sha512(input);
304        self
305    }
306    /// <p>Base64-encoded SHA512 checksum of the annotation payload.</p>
307    pub fn get_checksum_sha512(&self) -> &::std::option::Option<::std::string::String> {
308        self.inner.get_checksum_sha512()
309    }
310    /// <p>Base64-encoded MD5 checksum of the annotation payload.</p>
311    pub fn checksum_md5(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
312        self.inner = self.inner.checksum_md5(input.into());
313        self
314    }
315    /// <p>Base64-encoded MD5 checksum of the annotation payload.</p>
316    pub fn set_checksum_md5(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
317        self.inner = self.inner.set_checksum_md5(input);
318        self
319    }
320    /// <p>Base64-encoded MD5 checksum of the annotation payload.</p>
321    pub fn get_checksum_md5(&self) -> &::std::option::Option<::std::string::String> {
322        self.inner.get_checksum_md5()
323    }
324    /// <p>Base64-encoded XXHASH64 checksum of the annotation payload.</p>
325    pub fn checksum_xxhash64(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
326        self.inner = self.inner.checksum_xxhash64(input.into());
327        self
328    }
329    /// <p>Base64-encoded XXHASH64 checksum of the annotation payload.</p>
330    pub fn set_checksum_xxhash64(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
331        self.inner = self.inner.set_checksum_xxhash64(input);
332        self
333    }
334    /// <p>Base64-encoded XXHASH64 checksum of the annotation payload.</p>
335    pub fn get_checksum_xxhash64(&self) -> &::std::option::Option<::std::string::String> {
336        self.inner.get_checksum_xxhash64()
337    }
338    /// <p>Base64-encoded XXHASH3 checksum of the annotation payload.</p>
339    pub fn checksum_xxhash3(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
340        self.inner = self.inner.checksum_xxhash3(input.into());
341        self
342    }
343    /// <p>Base64-encoded XXHASH3 checksum of the annotation payload.</p>
344    pub fn set_checksum_xxhash3(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
345        self.inner = self.inner.set_checksum_xxhash3(input);
346        self
347    }
348    /// <p>Base64-encoded XXHASH3 checksum of the annotation payload.</p>
349    pub fn get_checksum_xxhash3(&self) -> &::std::option::Option<::std::string::String> {
350        self.inner.get_checksum_xxhash3()
351    }
352    /// <p>Base64-encoded XXHASH128 checksum of the annotation payload.</p>
353    pub fn checksum_xxhash128(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
354        self.inner = self.inner.checksum_xxhash128(input.into());
355        self
356    }
357    /// <p>Base64-encoded XXHASH128 checksum of the annotation payload.</p>
358    pub fn set_checksum_xxhash128(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
359        self.inner = self.inner.set_checksum_xxhash128(input);
360        self
361    }
362    /// <p>Base64-encoded XXHASH128 checksum of the annotation payload.</p>
363    pub fn get_checksum_xxhash128(&self) -> &::std::option::Option<::std::string::String> {
364        self.inner.get_checksum_xxhash128()
365    }
366    /// <p>Base64-encoded MD5 digest of the message.</p>
367    pub fn content_md5(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
368        self.inner = self.inner.content_md5(input.into());
369        self
370    }
371    /// <p>Base64-encoded MD5 digest of the message.</p>
372    pub fn set_content_md5(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
373        self.inner = self.inner.set_content_md5(input);
374        self
375    }
376    /// <p>Base64-encoded MD5 digest of the message.</p>
377    pub fn get_content_md5(&self) -> &::std::option::Option<::std::string::String> {
378        self.inner.get_content_md5()
379    }
380    /// <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 the corresponding charges. 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>
381    /// <p>This functionality is not supported for directory buckets.</p>
382    /// </note>
383    pub fn request_payer(mut self, input: crate::types::RequestPayer) -> Self {
384        self.inner = self.inner.request_payer(input);
385        self
386    }
387    /// <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 the corresponding charges. 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>
388    /// <p>This functionality is not supported for directory buckets.</p>
389    /// </note>
390    pub fn set_request_payer(mut self, input: ::std::option::Option<crate::types::RequestPayer>) -> Self {
391        self.inner = self.inner.set_request_payer(input);
392        self
393    }
394    /// <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 the corresponding charges. 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>
395    /// <p>This functionality is not supported for directory buckets.</p>
396    /// </note>
397    pub fn get_request_payer(&self) -> &::std::option::Option<crate::types::RequestPayer> {
398        self.inner.get_request_payer()
399    }
400    /// <p>The account ID of the expected bucket owner. If the bucket is owned by a different account, the request fails with an HTTP 403 (Access Denied) error.</p>
401    pub fn expected_bucket_owner(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
402        self.inner = self.inner.expected_bucket_owner(input.into());
403        self
404    }
405    /// <p>The account ID of the expected bucket owner. If the bucket is owned by a different account, the request fails with an HTTP 403 (Access Denied) error.</p>
406    pub fn set_expected_bucket_owner(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
407        self.inner = self.inner.set_expected_bucket_owner(input);
408        self
409    }
410    /// <p>The account ID of the expected bucket owner. If the bucket is owned by a different account, the request fails with an HTTP 403 (Access Denied) error.</p>
411    pub fn get_expected_bucket_owner(&self) -> &::std::option::Option<::std::string::String> {
412        self.inner.get_expected_bucket_owner()
413    }
414}