aws_sdk_s3/operation/restore_object/builders.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::restore_object::_restore_object_output::RestoreObjectOutputBuilder;
3
4pub use crate::operation::restore_object::_restore_object_input::RestoreObjectInputBuilder;
5
6impl crate::operation::restore_object::builders::RestoreObjectInputBuilder {
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::restore_object::RestoreObjectOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::restore_object::RestoreObjectError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.restore_object();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23/// Fluent builder constructing a request to `RestoreObject`.
24///
25/// <note>
26/// <p>This operation is not supported for directory buckets.</p>
27/// </note>
28/// <p>Restores an archived copy of an object back into Amazon S3</p>
29/// <p>This functionality is not supported for Amazon S3 on Outposts.</p>
30/// <p>This action performs the following types of requests:</p>
31/// <ul>
32/// <li>
33/// <p><code>restore an archive</code> - Restore an archived object</p></li>
34/// </ul>
35/// <p>For more information about the <code>S3</code> structure in the request body, see the following:</p>
36/// <ul>
37/// <li>
38/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html">PutObject</a></p></li>
39/// <li>
40/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/S3_ACLs_UsingACLs.html">Managing Access with ACLs</a> in the <i>Amazon S3 User Guide</i></p></li>
41/// <li>
42/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/serv-side-encryption.html">Protecting Data Using Server-Side Encryption</a> in the <i>Amazon S3 User Guide</i></p></li>
43/// </ul>
44/// <dl>
45/// <dt>
46/// Permissions
47/// </dt>
48/// <dd>
49/// <p>To use this operation, you must have permissions to perform the <code>s3:RestoreObject</code> action. The bucket owner has this permission by default and can grant this permission to others. For more information about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources">Permissions Related to Bucket Subresource Operations</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing Access Permissions to Your Amazon S3 Resources</a> in the <i>Amazon S3 User Guide</i>.</p>
50/// </dd>
51/// <dt>
52/// Restoring objects
53/// </dt>
54/// <dd>
55/// <p>Objects that you archive to the S3 Glacier Flexible Retrieval Flexible Retrieval or S3 Glacier Deep Archive storage class, and S3 Intelligent-Tiering Archive or S3 Intelligent-Tiering Deep Archive tiers, are not accessible in real time. For objects in the S3 Glacier Flexible Retrieval Flexible Retrieval or S3 Glacier Deep Archive storage classes, you must first initiate a restore request, and then wait until a temporary copy of the object is available. If you want a permanent copy of the object, create a copy of it in the Amazon S3 Standard storage class in your S3 bucket. To access an archived object, you must restore the object for the duration (number of days) that you specify. For objects in the Archive Access or Deep Archive Access tiers of S3 Intelligent-Tiering, you must first initiate a restore request, and then wait until the object is moved into the Frequent Access tier.</p>
56/// <p>To restore a specific object version, you can provide a version ID. If you don't provide a version ID, Amazon S3 restores the current version.</p>
57/// <p>When restoring an archived object, you can specify one of the following data access tier options in the <code>Tier</code> element of the request body:</p>
58/// <ul>
59/// <li>
60/// <p><code>Expedited</code> - Expedited retrievals allow you to quickly access your data stored in the S3 Glacier Flexible Retrieval Flexible Retrieval storage class or S3 Intelligent-Tiering Archive tier when occasional urgent requests for restoring archives are required. For all but the largest archived objects (250 MB+), data accessed using Expedited retrievals is typically made available within 1–5 minutes. Provisioned capacity ensures that retrieval capacity for Expedited retrievals is available when you need it. Expedited retrievals and provisioned capacity are not available for objects stored in the S3 Glacier Deep Archive storage class or S3 Intelligent-Tiering Deep Archive tier.</p></li>
61/// <li>
62/// <p><code>Standard</code> - Standard retrievals allow you to access any of your archived objects within several hours. This is the default option for retrieval requests that do not specify the retrieval option. Standard retrievals typically finish within 3–5 hours for objects stored in the S3 Glacier Flexible Retrieval Flexible Retrieval storage class or S3 Intelligent-Tiering Archive tier. They typically finish within 12 hours for objects stored in the S3 Glacier Deep Archive storage class or S3 Intelligent-Tiering Deep Archive tier. Standard retrievals are free for objects stored in S3 Intelligent-Tiering.</p></li>
63/// <li>
64/// <p><code>Bulk</code> - Bulk retrievals free for objects stored in the S3 Glacier Flexible Retrieval and S3 Intelligent-Tiering storage classes, enabling you to retrieve large amounts, even petabytes, of data at no cost. Bulk retrievals typically finish within 5–12 hours for objects stored in the S3 Glacier Flexible Retrieval Flexible Retrieval storage class or S3 Intelligent-Tiering Archive tier. Bulk retrievals are also the lowest-cost retrieval option when restoring objects from S3 Glacier Deep Archive. They typically finish within 48 hours for objects stored in the S3 Glacier Deep Archive storage class or S3 Intelligent-Tiering Deep Archive tier.</p></li>
65/// </ul>
66/// <p>For more information about archive retrieval options and provisioned capacity for <code>Expedited</code> data access, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/restoring-objects.html">Restoring Archived Objects</a> in the <i>Amazon S3 User Guide</i>.</p>
67/// <p>You can use Amazon S3 restore speed upgrade to change the restore speed to a faster speed while it is in progress. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/restoring-objects.html#restoring-objects-upgrade-tier.title.html"> Upgrading the speed of an in-progress restore</a> in the <i>Amazon S3 User Guide</i>.</p>
68/// <p>To get the status of object restoration, you can send a <code>HEAD</code> request. Operations return the <code>x-amz-restore</code> header, which provides information about the restoration status, in the response. You can use Amazon S3 event notifications to notify you when a restore is initiated or completed. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html">Configuring Amazon S3 Event Notifications</a> in the <i>Amazon S3 User Guide</i>.</p>
69/// <p>After restoring an archived object, you can update the restoration period by reissuing the request with a new period. Amazon S3 updates the restoration period relative to the current time and charges only for the request-there are no data transfer charges. You cannot update the restoration period when Amazon S3 is actively processing your current restore request for the object.</p>
70/// <p>If your bucket has a lifecycle configuration with a rule that includes an expiration action, the object expiration overrides the life span that you specify in a restore request. For example, if you restore an object copy for 10 days, but the object is scheduled to expire in 3 days, Amazon S3 deletes the object in 3 days. For more information about lifecycle configuration, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycleConfiguration.html">PutBucketLifecycleConfiguration</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html">Object Lifecycle Management</a> in <i>Amazon S3 User Guide</i>.</p>
71/// </dd>
72/// <dt>
73/// Responses
74/// </dt>
75/// <dd>
76/// <p>A successful action returns either the <code>200 OK</code> or <code>202 Accepted</code> status code.</p>
77/// <ul>
78/// <li>
79/// <p>If the object is not previously restored, then Amazon S3 returns <code>202 Accepted</code> in the response.</p></li>
80/// <li>
81/// <p>If the object is previously restored, Amazon S3 returns <code>200 OK</code> in the response.</p></li>
82/// </ul>
83/// <ul>
84/// <li>
85/// <p>Special errors:</p>
86/// <ul>
87/// <li>
88/// <p><i>Code: RestoreAlreadyInProgress</i></p></li>
89/// <li>
90/// <p><i>Cause: Object restore is already in progress.</i></p></li>
91/// <li>
92/// <p><i>HTTP Status Code: 409 Conflict</i></p></li>
93/// <li>
94/// <p><i>SOAP Fault Code Prefix: Client</i></p></li>
95/// </ul></li>
96/// <li>
97/// <ul>
98/// <li>
99/// <p><i>Code: GlacierExpeditedRetrievalNotAvailable</i></p></li>
100/// <li>
101/// <p><i>Cause: expedited retrievals are currently not available. Try again later. (Returned if there is insufficient capacity to process the Expedited request. This error applies only to Expedited retrievals and not to S3 Standard or Bulk retrievals.)</i></p></li>
102/// <li>
103/// <p><i>HTTP Status Code: 503</i></p></li>
104/// <li>
105/// <p><i>SOAP Fault Code Prefix: N/A</i></p></li>
106/// </ul></li>
107/// </ul>
108/// </dd>
109/// </dl>
110/// <p>The following operations are related to <code>RestoreObject</code>:</p>
111/// <ul>
112/// <li>
113/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycleConfiguration.html">PutBucketLifecycleConfiguration</a></p></li>
114/// <li>
115/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketNotificationConfiguration.html">GetBucketNotificationConfiguration</a></p></li>
116/// </ul>
117#[derive(::std::clone::Clone, ::std::fmt::Debug)]
118pub struct RestoreObjectFluentBuilder {
119 handle: ::std::sync::Arc<crate::client::Handle>,
120 inner: crate::operation::restore_object::builders::RestoreObjectInputBuilder,
121 config_override: ::std::option::Option<crate::config::Builder>,
122}
123impl
124 crate::client::customize::internal::CustomizableSend<
125 crate::operation::restore_object::RestoreObjectOutput,
126 crate::operation::restore_object::RestoreObjectError,
127 > for RestoreObjectFluentBuilder
128{
129 fn send(
130 self,
131 config_override: crate::config::Builder,
132 ) -> crate::client::customize::internal::BoxFuture<
133 crate::client::customize::internal::SendResult<
134 crate::operation::restore_object::RestoreObjectOutput,
135 crate::operation::restore_object::RestoreObjectError,
136 >,
137 > {
138 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
139 }
140}
141impl RestoreObjectFluentBuilder {
142 /// Creates a new `RestoreObjectFluentBuilder`.
143 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
144 Self {
145 handle,
146 inner: ::std::default::Default::default(),
147 config_override: ::std::option::Option::None,
148 }
149 }
150 /// Access the RestoreObject as a reference.
151 pub fn as_input(&self) -> &crate::operation::restore_object::builders::RestoreObjectInputBuilder {
152 &self.inner
153 }
154 /// Sends the request and returns the response.
155 ///
156 /// If an error occurs, an `SdkError` will be returned with additional details that
157 /// can be matched against.
158 ///
159 /// By default, any retryable failures will be retried twice. Retry behavior
160 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
161 /// set when configuring the client.
162 pub async fn send(
163 self,
164 ) -> ::std::result::Result<
165 crate::operation::restore_object::RestoreObjectOutput,
166 ::aws_smithy_runtime_api::client::result::SdkError<
167 crate::operation::restore_object::RestoreObjectError,
168 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
169 >,
170 > {
171 let input = self
172 .inner
173 .build()
174 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
175 let runtime_plugins = crate::operation::restore_object::RestoreObject::operation_runtime_plugins(
176 self.handle.runtime_plugins.clone(),
177 &self.handle.conf,
178 self.config_override,
179 );
180 crate::operation::restore_object::RestoreObject::orchestrate(&runtime_plugins, input).await
181 }
182
183 /// Consumes this builder, creating a customizable operation that can be modified before being sent.
184 pub fn customize(
185 self,
186 ) -> crate::client::customize::CustomizableOperation<
187 crate::operation::restore_object::RestoreObjectOutput,
188 crate::operation::restore_object::RestoreObjectError,
189 Self,
190 > {
191 crate::client::customize::CustomizableOperation::new(self)
192 }
193 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
194 self.set_config_override(::std::option::Option::Some(config_override.into()));
195 self
196 }
197
198 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
199 self.config_override = config_override;
200 self
201 }
202 /// <p>The bucket name containing the object to restore.</p>
203 /// <p><b>Access points</b> - When you use this action with an access point, you must provide the alias of the access point in place of the bucket name or specify the access point ARN. 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>
204 /// <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>
205 pub fn bucket(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
206 self.inner = self.inner.bucket(input.into());
207 self
208 }
209 /// <p>The bucket name containing the object to restore.</p>
210 /// <p><b>Access points</b> - When you use this action with an access point, you must provide the alias of the access point in place of the bucket name or specify the access point ARN. 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>
211 /// <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>
212 pub fn set_bucket(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
213 self.inner = self.inner.set_bucket(input);
214 self
215 }
216 /// <p>The bucket name containing the object to restore.</p>
217 /// <p><b>Access points</b> - When you use this action with an access point, you must provide the alias of the access point in place of the bucket name or specify the access point ARN. 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>
218 /// <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>
219 pub fn get_bucket(&self) -> &::std::option::Option<::std::string::String> {
220 self.inner.get_bucket()
221 }
222 /// <p>Object key for which the action was initiated.</p>
223 pub fn key(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
224 self.inner = self.inner.key(input.into());
225 self
226 }
227 /// <p>Object key for which the action was initiated.</p>
228 pub fn set_key(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
229 self.inner = self.inner.set_key(input);
230 self
231 }
232 /// <p>Object key for which the action was initiated.</p>
233 pub fn get_key(&self) -> &::std::option::Option<::std::string::String> {
234 self.inner.get_key()
235 }
236 /// <p>VersionId used to reference a specific version of the object.</p>
237 pub fn version_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
238 self.inner = self.inner.version_id(input.into());
239 self
240 }
241 /// <p>VersionId used to reference a specific version of the object.</p>
242 pub fn set_version_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
243 self.inner = self.inner.set_version_id(input);
244 self
245 }
246 /// <p>VersionId used to reference a specific version of the object.</p>
247 pub fn get_version_id(&self) -> &::std::option::Option<::std::string::String> {
248 self.inner.get_version_id()
249 }
250 /// <p>Container for restore job parameters.</p>
251 pub fn restore_request(mut self, input: crate::types::RestoreRequest) -> Self {
252 self.inner = self.inner.restore_request(input);
253 self
254 }
255 /// <p>Container for restore job parameters.</p>
256 pub fn set_restore_request(mut self, input: ::std::option::Option<crate::types::RestoreRequest>) -> Self {
257 self.inner = self.inner.set_restore_request(input);
258 self
259 }
260 /// <p>Container for restore job parameters.</p>
261 pub fn get_restore_request(&self) -> &::std::option::Option<crate::types::RestoreRequest> {
262 self.inner.get_restore_request()
263 }
264 /// <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>
265 /// <p>This functionality is not supported for directory buckets.</p>
266 /// </note>
267 pub fn request_payer(mut self, input: crate::types::RequestPayer) -> Self {
268 self.inner = self.inner.request_payer(input);
269 self
270 }
271 /// <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>
272 /// <p>This functionality is not supported for directory buckets.</p>
273 /// </note>
274 pub fn set_request_payer(mut self, input: ::std::option::Option<crate::types::RequestPayer>) -> Self {
275 self.inner = self.inner.set_request_payer(input);
276 self
277 }
278 /// <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>
279 /// <p>This functionality is not supported for directory buckets.</p>
280 /// </note>
281 pub fn get_request_payer(&self) -> &::std::option::Option<crate::types::RequestPayer> {
282 self.inner.get_request_payer()
283 }
284 /// <p>Indicates the algorithm used to create the checksum for the object 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>
285 /// <p>If you provide an individual checksum, Amazon S3 ignores any provided <code>ChecksumAlgorithm</code> parameter.</p>
286 pub fn checksum_algorithm(mut self, input: crate::types::ChecksumAlgorithm) -> Self {
287 self.inner = self.inner.checksum_algorithm(input);
288 self
289 }
290 /// <p>Indicates the algorithm used to create the checksum for the object 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>
291 /// <p>If you provide an individual checksum, Amazon S3 ignores any provided <code>ChecksumAlgorithm</code> parameter.</p>
292 pub fn set_checksum_algorithm(mut self, input: ::std::option::Option<crate::types::ChecksumAlgorithm>) -> Self {
293 self.inner = self.inner.set_checksum_algorithm(input);
294 self
295 }
296 /// <p>Indicates the algorithm used to create the checksum for the object 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>
297 /// <p>If you provide an individual checksum, Amazon S3 ignores any provided <code>ChecksumAlgorithm</code> parameter.</p>
298 pub fn get_checksum_algorithm(&self) -> &::std::option::Option<crate::types::ChecksumAlgorithm> {
299 self.inner.get_checksum_algorithm()
300 }
301 /// <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>
302 pub fn expected_bucket_owner(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
303 self.inner = self.inner.expected_bucket_owner(input.into());
304 self
305 }
306 /// <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>
307 pub fn set_expected_bucket_owner(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
308 self.inner = self.inner.set_expected_bucket_owner(input);
309 self
310 }
311 /// <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>
312 pub fn get_expected_bucket_owner(&self) -> &::std::option::Option<::std::string::String> {
313 self.inner.get_expected_bucket_owner()
314 }
315}