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_input::RestoreObjectInputBuilder;
3
4pub use crate::operation::restore_object::_restore_object_output::RestoreObjectOutputBuilder;
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 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 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 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 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 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/// </ul></li>
94/// <li>
95/// <ul>
96/// <li>
97/// <p><i>Code: GlacierExpeditedRetrievalNotAvailable</i></p></li>
98/// <li>
99/// <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>
100/// <li>
101/// <p><i>HTTP Status Code: 503</i></p></li>
102/// </ul></li>
103/// </ul>
104/// </dd>
105/// </dl>
106/// <p>The following operations are related to <code>RestoreObject</code>:</p>
107/// <ul>
108/// <li>
109/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycleConfiguration.html">PutBucketLifecycleConfiguration</a></p></li>
110/// <li>
111/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketNotificationConfiguration.html">GetBucketNotificationConfiguration</a></p></li>
112/// </ul><important>
113/// <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>
114/// </important>
115#[derive(::std::clone::Clone, ::std::fmt::Debug)]
116pub struct RestoreObjectFluentBuilder {
117 handle: ::std::sync::Arc<crate::client::Handle>,
118 inner: crate::operation::restore_object::builders::RestoreObjectInputBuilder,
119 config_override: ::std::option::Option<crate::config::Builder>,
120}
121impl
122 crate::client::customize::internal::CustomizableSend<
123 crate::operation::restore_object::RestoreObjectOutput,
124 crate::operation::restore_object::RestoreObjectError,
125 > for RestoreObjectFluentBuilder
126{
127 fn send(
128 self,
129 config_override: crate::config::Builder,
130 ) -> crate::client::customize::internal::BoxFuture<
131 crate::client::customize::internal::SendResult<
132 crate::operation::restore_object::RestoreObjectOutput,
133 crate::operation::restore_object::RestoreObjectError,
134 >,
135 > {
136 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
137 }
138}
139impl RestoreObjectFluentBuilder {
140 /// Creates a new `RestoreObjectFluentBuilder`.
141 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
142 Self {
143 handle,
144 inner: ::std::default::Default::default(),
145 config_override: ::std::option::Option::None,
146 }
147 }
148 /// Access the RestoreObject as a reference.
149 pub fn as_input(&self) -> &crate::operation::restore_object::builders::RestoreObjectInputBuilder {
150 &self.inner
151 }
152 /// Sends the request and returns the response.
153 ///
154 /// If an error occurs, an `SdkError` will be returned with additional details that
155 /// can be matched against.
156 ///
157 /// By default, any retryable failures will be retried twice. Retry behavior
158 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
159 /// set when configuring the client.
160 pub async fn send(
161 self,
162 ) -> ::std::result::Result<
163 crate::operation::restore_object::RestoreObjectOutput,
164 ::aws_smithy_runtime_api::client::result::SdkError<
165 crate::operation::restore_object::RestoreObjectError,
166 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
167 >,
168 > {
169 let input = self
170 .inner
171 .build()
172 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
173 let runtime_plugins = crate::operation::restore_object::RestoreObject::operation_runtime_plugins(
174 self.handle.runtime_plugins.clone(),
175 &self.handle.conf,
176 self.config_override,
177 );
178 crate::operation::restore_object::RestoreObject::orchestrate(&runtime_plugins, input).await
179 }
180
181 /// Consumes this builder, creating a customizable operation that can be modified before being sent.
182 pub fn customize(
183 self,
184 ) -> crate::client::customize::CustomizableOperation<
185 crate::operation::restore_object::RestoreObjectOutput,
186 crate::operation::restore_object::RestoreObjectError,
187 Self,
188 > {
189 crate::client::customize::CustomizableOperation::new(self)
190 }
191 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
192 self.set_config_override(::std::option::Option::Some(config_override.into()));
193 self
194 }
195
196 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
197 self.config_override = config_override;
198 self
199 }
200 /// <p>The bucket name containing the object to restore.</p>
201 /// <p><b>Access points</b> - When you use this action with an access point for general purpose buckets, you must provide the alias of the access point in place of the bucket name or specify the access point ARN. When you use this action with an access point for directory buckets, you must provide the access point name in place of the bucket name. When using the access point ARN, you must direct requests to the access point hostname. The access point hostname takes the form <i>AccessPointName</i>-<i>AccountId</i>.s3-accesspoint.<i>Region</i>.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html">Using access points</a> in the <i>Amazon S3 User Guide</i>.</p>
202 /// <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>
203 pub fn bucket(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
204 self.inner = self.inner.bucket(input.into());
205 self
206 }
207 /// <p>The bucket name containing the object to restore.</p>
208 /// <p><b>Access points</b> - When you use this action with an access point for general purpose buckets, you must provide the alias of the access point in place of the bucket name or specify the access point ARN. When you use this action with an access point for directory buckets, you must provide the access point name in place of the bucket name. When using the access point ARN, you must direct requests to the access point hostname. The access point hostname takes the form <i>AccessPointName</i>-<i>AccountId</i>.s3-accesspoint.<i>Region</i>.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html">Using access points</a> in the <i>Amazon S3 User Guide</i>.</p>
209 /// <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>
210 pub fn set_bucket(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
211 self.inner = self.inner.set_bucket(input);
212 self
213 }
214 /// <p>The bucket name containing the object to restore.</p>
215 /// <p><b>Access points</b> - When you use this action with an access point for general purpose buckets, you must provide the alias of the access point in place of the bucket name or specify the access point ARN. When you use this action with an access point for directory buckets, you must provide the access point name in place of the bucket name. When using the access point ARN, you must direct requests to the access point hostname. The access point hostname takes the form <i>AccessPointName</i>-<i>AccountId</i>.s3-accesspoint.<i>Region</i>.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html">Using access points</a> in the <i>Amazon S3 User Guide</i>.</p>
216 /// <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>
217 pub fn get_bucket(&self) -> &::std::option::Option<::std::string::String> {
218 self.inner.get_bucket()
219 }
220 /// <p>Object key for which the action was initiated.</p>
221 pub fn key(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
222 self.inner = self.inner.key(input.into());
223 self
224 }
225 /// <p>Object key for which the action was initiated.</p>
226 pub fn set_key(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
227 self.inner = self.inner.set_key(input);
228 self
229 }
230 /// <p>Object key for which the action was initiated.</p>
231 pub fn get_key(&self) -> &::std::option::Option<::std::string::String> {
232 self.inner.get_key()
233 }
234 /// <p>VersionId used to reference a specific version of the object.</p>
235 pub fn version_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
236 self.inner = self.inner.version_id(input.into());
237 self
238 }
239 /// <p>VersionId used to reference a specific version of the object.</p>
240 pub fn set_version_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
241 self.inner = self.inner.set_version_id(input);
242 self
243 }
244 /// <p>VersionId used to reference a specific version of the object.</p>
245 pub fn get_version_id(&self) -> &::std::option::Option<::std::string::String> {
246 self.inner.get_version_id()
247 }
248 /// <p>Container for restore job parameters.</p>
249 pub fn restore_request(mut self, input: crate::types::RestoreRequest) -> Self {
250 self.inner = self.inner.restore_request(input);
251 self
252 }
253 /// <p>Container for restore job parameters.</p>
254 pub fn set_restore_request(mut self, input: ::std::option::Option<crate::types::RestoreRequest>) -> Self {
255 self.inner = self.inner.set_restore_request(input);
256 self
257 }
258 /// <p>Container for restore job parameters.</p>
259 pub fn get_restore_request(&self) -> &::std::option::Option<crate::types::RestoreRequest> {
260 self.inner.get_restore_request()
261 }
262 /// <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>
263 /// <p>This functionality is not supported for directory buckets.</p>
264 /// </note>
265 pub fn request_payer(mut self, input: crate::types::RequestPayer) -> Self {
266 self.inner = self.inner.request_payer(input);
267 self
268 }
269 /// <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>
270 /// <p>This functionality is not supported for directory buckets.</p>
271 /// </note>
272 pub fn set_request_payer(mut self, input: ::std::option::Option<crate::types::RequestPayer>) -> Self {
273 self.inner = self.inner.set_request_payer(input);
274 self
275 }
276 /// <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>
277 /// <p>This functionality is not supported for directory buckets.</p>
278 /// </note>
279 pub fn get_request_payer(&self) -> &::std::option::Option<crate::types::RequestPayer> {
280 self.inner.get_request_payer()
281 }
282 /// <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>
283 /// <p>If you provide an individual checksum, Amazon S3 ignores any provided <code>ChecksumAlgorithm</code> parameter.</p>
284 pub fn checksum_algorithm(mut self, input: crate::types::ChecksumAlgorithm) -> Self {
285 self.inner = self.inner.checksum_algorithm(input);
286 self
287 }
288 /// <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>
289 /// <p>If you provide an individual checksum, Amazon S3 ignores any provided <code>ChecksumAlgorithm</code> parameter.</p>
290 pub fn set_checksum_algorithm(mut self, input: ::std::option::Option<crate::types::ChecksumAlgorithm>) -> Self {
291 self.inner = self.inner.set_checksum_algorithm(input);
292 self
293 }
294 /// <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>
295 /// <p>If you provide an individual checksum, Amazon S3 ignores any provided <code>ChecksumAlgorithm</code> parameter.</p>
296 pub fn get_checksum_algorithm(&self) -> &::std::option::Option<crate::types::ChecksumAlgorithm> {
297 self.inner.get_checksum_algorithm()
298 }
299 /// <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>
300 pub fn expected_bucket_owner(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
301 self.inner = self.inner.expected_bucket_owner(input.into());
302 self
303 }
304 /// <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>
305 pub fn set_expected_bucket_owner(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
306 self.inner = self.inner.set_expected_bucket_owner(input);
307 self
308 }
309 /// <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>
310 pub fn get_expected_bucket_owner(&self) -> &::std::option::Option<::std::string::String> {
311 self.inner.get_expected_bucket_owner()
312 }
313}