aws_sdk_s3/operation/get_object_attributes/builders.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::get_object_attributes::_get_object_attributes_output::GetObjectAttributesOutputBuilder;
3
4pub use crate::operation::get_object_attributes::_get_object_attributes_input::GetObjectAttributesInputBuilder;
5
6impl crate::operation::get_object_attributes::builders::GetObjectAttributesInputBuilder {
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::get_object_attributes::GetObjectAttributesOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::get_object_attributes::GetObjectAttributesError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.get_object_attributes();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23/// Fluent builder constructing a request to `GetObjectAttributes`.
24///
25/// <p>Retrieves all of the metadata from an object without returning the object itself. This operation is useful if you're interested only in an object's metadata.</p>
26/// <p><code>GetObjectAttributes</code> combines the functionality of <code>HeadObject</code> and <code>ListParts</code>. All of the data returned with both of those individual calls can be returned with a single call to <code>GetObjectAttributes</code>.</p><note>
27/// <p><b>Directory buckets</b> - For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format <code>https://<i>amzn-s3-demo-bucket</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com/<i>key-name</i> </code>. Path-style requests are not supported. For more information about endpoints in Availability Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html">Regional and Zonal endpoints for directory buckets in Availability Zones</a> in the <i>Amazon S3 User Guide</i>. For more information about endpoints in Local Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html">Concepts for directory buckets in Local Zones</a> in the <i>Amazon S3 User Guide</i>.</p>
28/// </note>
29/// <dl>
30/// <dt>
31/// Permissions
32/// </dt>
33/// <dd>
34/// <ul>
35/// <li>
36/// <p><b>General purpose bucket permissions</b> - To use <code>GetObjectAttributes</code>, you must have READ access to the object.</p>
37/// <p>The other permissions that you need to use this operation depend on whether the bucket is versioned and if a version ID is passed in the <code>GetObjectAttributes</code> request.</p>
38/// <ul>
39/// <li>
40/// <p>If you pass a version ID in your request, you need both the <code>s3:GetObjectVersion</code> and <code>s3:GetObjectVersionAttributes</code> permissions.</p></li>
41/// <li>
42/// <p>If you do not pass a version ID in your request, you need the <code>s3:GetObject</code> and <code>s3:GetObjectAttributes</code> permissions.</p></li>
43/// </ul>
44/// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html">Specifying Permissions in a Policy</a> in the <i>Amazon S3 User Guide</i>.</p>
45/// <p>If the object that you request does not exist, the error Amazon S3 returns depends on whether you also have the <code>s3:ListBucket</code> permission.</p>
46/// <ul>
47/// <li>
48/// <p>If you have the <code>s3:ListBucket</code> permission on the bucket, Amazon S3 returns an HTTP status code <code>404 Not Found</code> ("no such key") error.</p></li>
49/// <li>
50/// <p>If you don't have the <code>s3:ListBucket</code> permission, Amazon S3 returns an HTTP status code <code>403 Forbidden</code> ("access denied") error.</p></li>
51/// </ul></li>
52/// <li>
53/// <p><b>Directory bucket permissions</b> - To grant access to this API operation on a directory bucket, we recommend that you use the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html"> <code>CreateSession</code> </a> API operation for session-based authorization. Specifically, you grant the <code>s3express:CreateSession</code> permission to the directory bucket in a bucket policy or an IAM identity-based policy. Then, you make the <code>CreateSession</code> API call on the bucket to obtain a session token. With the session token in your request header, you can make API requests to this operation. After the session token expires, you make another <code>CreateSession</code> API call to generate a new session token for use. Amazon Web Services CLI or SDKs create session and refresh the session token automatically to avoid service interruptions when a session expires. For more information about authorization, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html"> <code>CreateSession</code> </a>.</p>
54/// <p>If the object is encrypted with SSE-KMS, you must also have the <code>kms:GenerateDataKey</code> and <code>kms:Decrypt</code> permissions in IAM identity-based policies and KMS key policies for the KMS key.</p></li>
55/// </ul>
56/// </dd>
57/// <dt>
58/// Encryption
59/// </dt>
60/// <dd>
61/// <note>
62/// <p>Encryption request headers, like <code>x-amz-server-side-encryption</code>, should not be sent for <code>HEAD</code> requests if your object uses server-side encryption with Key Management Service (KMS) keys (SSE-KMS), dual-layer server-side encryption with Amazon Web Services KMS keys (DSSE-KMS), or server-side encryption with Amazon S3 managed encryption keys (SSE-S3). The <code>x-amz-server-side-encryption</code> header is used when you <code>PUT</code> an object to S3 and want to specify the encryption method. If you include this header in a <code>GET</code> request for an object that uses these types of keys, you’ll get an HTTP <code>400 Bad Request</code> error. It's because the encryption method can't be changed when you retrieve the object.</p>
63/// </note>
64/// <p>If you encrypted an object when you stored the object in Amazon S3 by using server-side encryption with customer-provided encryption keys (SSE-C), then when you retrieve the metadata from the object, you must use the following headers. These headers provide the server with the encryption key required to retrieve the object's metadata. The headers are:</p>
65/// <ul>
66/// <li>
67/// <p><code>x-amz-server-side-encryption-customer-algorithm</code></p></li>
68/// <li>
69/// <p><code>x-amz-server-side-encryption-customer-key</code></p></li>
70/// <li>
71/// <p><code>x-amz-server-side-encryption-customer-key-MD5</code></p></li>
72/// </ul>
73/// <p>For more information about SSE-C, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html">Server-Side Encryption (Using Customer-Provided Encryption Keys)</a> in the <i>Amazon S3 User Guide</i>.</p><note>
74/// <p><b>Directory bucket permissions</b> - For directory buckets, there are only two supported options for server-side encryption: server-side encryption with Amazon S3 managed keys (SSE-S3) (<code>AES256</code>) and server-side encryption with KMS keys (SSE-KMS) (<code>aws:kms</code>). We recommend that the bucket's default encryption uses the desired encryption configuration and you don't override the bucket default encryption in your <code>CreateSession</code> requests or <code>PUT</code> object requests. Then, new objects are automatically encrypted with the desired encryption settings. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-serv-side-encryption.html">Protecting data with server-side encryption</a> in the <i>Amazon S3 User Guide</i>. For more information about the encryption overriding behaviors in directory buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-specifying-kms-encryption.html">Specifying server-side encryption with KMS for new object uploads</a>.</p>
75/// </note>
76/// </dd>
77/// <dt>
78/// Versioning
79/// </dt>
80/// <dd>
81/// <p><b>Directory buckets</b> - S3 Versioning isn't enabled and supported for directory buckets. For this API operation, only the <code>null</code> value of the version ID is supported by directory buckets. You can only specify <code>null</code> to the <code>versionId</code> query parameter in the request.</p>
82/// </dd>
83/// <dt>
84/// Conditional request headers
85/// </dt>
86/// <dd>
87/// <p>Consider the following when using request headers:</p>
88/// <ul>
89/// <li>
90/// <p>If both of the <code>If-Match</code> and <code>If-Unmodified-Since</code> headers are present in the request as follows, then Amazon S3 returns the HTTP status code <code>200 OK</code> and the data requested:</p>
91/// <ul>
92/// <li>
93/// <p><code>If-Match</code> condition evaluates to <code>true</code>.</p></li>
94/// <li>
95/// <p><code>If-Unmodified-Since</code> condition evaluates to <code>false</code>.</p></li>
96/// </ul>
97/// <p>For more information about conditional requests, see <a href="https://tools.ietf.org/html/rfc7232">RFC 7232</a>.</p></li>
98/// <li>
99/// <p>If both of the <code>If-None-Match</code> and <code>If-Modified-Since</code> headers are present in the request as follows, then Amazon S3 returns the HTTP status code <code>304 Not Modified</code>:</p>
100/// <ul>
101/// <li>
102/// <p><code>If-None-Match</code> condition evaluates to <code>false</code>.</p></li>
103/// <li>
104/// <p><code>If-Modified-Since</code> condition evaluates to <code>true</code>.</p></li>
105/// </ul>
106/// <p>For more information about conditional requests, see <a href="https://tools.ietf.org/html/rfc7232">RFC 7232</a>.</p></li>
107/// </ul>
108/// </dd>
109/// <dt>
110/// HTTP Host header syntax
111/// </dt>
112/// <dd>
113/// <p><b>Directory buckets </b> - The HTTP Host header syntax is <code> <i>Bucket-name</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com</code>.</p>
114/// </dd>
115/// </dl>
116/// <p>The following actions are related to <code>GetObjectAttributes</code>:</p>
117/// <ul>
118/// <li>
119/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html">GetObject</a></p></li>
120/// <li>
121/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectAcl.html">GetObjectAcl</a></p></li>
122/// <li>
123/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectLegalHold.html">GetObjectLegalHold</a></p></li>
124/// <li>
125/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectLockConfiguration.html">GetObjectLockConfiguration</a></p></li>
126/// <li>
127/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectRetention.html">GetObjectRetention</a></p></li>
128/// <li>
129/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectTagging.html">GetObjectTagging</a></p></li>
130/// <li>
131/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_HeadObject.html">HeadObject</a></p></li>
132/// <li>
133/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListParts.html">ListParts</a></p></li>
134/// </ul><important>
135/// <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>
136/// </important>
137#[derive(::std::clone::Clone, ::std::fmt::Debug)]
138pub struct GetObjectAttributesFluentBuilder {
139 handle: ::std::sync::Arc<crate::client::Handle>,
140 inner: crate::operation::get_object_attributes::builders::GetObjectAttributesInputBuilder,
141 config_override: ::std::option::Option<crate::config::Builder>,
142}
143impl
144 crate::client::customize::internal::CustomizableSend<
145 crate::operation::get_object_attributes::GetObjectAttributesOutput,
146 crate::operation::get_object_attributes::GetObjectAttributesError,
147 > for GetObjectAttributesFluentBuilder
148{
149 fn send(
150 self,
151 config_override: crate::config::Builder,
152 ) -> crate::client::customize::internal::BoxFuture<
153 crate::client::customize::internal::SendResult<
154 crate::operation::get_object_attributes::GetObjectAttributesOutput,
155 crate::operation::get_object_attributes::GetObjectAttributesError,
156 >,
157 > {
158 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
159 }
160}
161impl GetObjectAttributesFluentBuilder {
162 /// Creates a new `GetObjectAttributesFluentBuilder`.
163 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
164 Self {
165 handle,
166 inner: ::std::default::Default::default(),
167 config_override: ::std::option::Option::None,
168 }
169 }
170 /// Access the GetObjectAttributes as a reference.
171 pub fn as_input(&self) -> &crate::operation::get_object_attributes::builders::GetObjectAttributesInputBuilder {
172 &self.inner
173 }
174 /// Sends the request and returns the response.
175 ///
176 /// If an error occurs, an `SdkError` will be returned with additional details that
177 /// can be matched against.
178 ///
179 /// By default, any retryable failures will be retried twice. Retry behavior
180 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
181 /// set when configuring the client.
182 pub async fn send(
183 self,
184 ) -> ::std::result::Result<
185 crate::operation::get_object_attributes::GetObjectAttributesOutput,
186 ::aws_smithy_runtime_api::client::result::SdkError<
187 crate::operation::get_object_attributes::GetObjectAttributesError,
188 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
189 >,
190 > {
191 let input = self
192 .inner
193 .build()
194 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
195 let runtime_plugins = crate::operation::get_object_attributes::GetObjectAttributes::operation_runtime_plugins(
196 self.handle.runtime_plugins.clone(),
197 &self.handle.conf,
198 self.config_override,
199 );
200 crate::operation::get_object_attributes::GetObjectAttributes::orchestrate(&runtime_plugins, input).await
201 }
202
203 /// Consumes this builder, creating a customizable operation that can be modified before being sent.
204 pub fn customize(
205 self,
206 ) -> crate::client::customize::CustomizableOperation<
207 crate::operation::get_object_attributes::GetObjectAttributesOutput,
208 crate::operation::get_object_attributes::GetObjectAttributesError,
209 Self,
210 > {
211 crate::client::customize::CustomizableOperation::new(self)
212 }
213 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
214 self.set_config_override(::std::option::Option::Some(config_override.into()));
215 self
216 }
217
218 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
219 self.config_override = config_override;
220 self
221 }
222 /// <p>The name of the bucket that contains the object.</p>
223 /// <p><b>Directory buckets</b> - When you use this operation with a directory bucket, you must use virtual-hosted-style requests in the format <code> <i>Bucket-name</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com</code>. Path-style requests are not supported. Directory bucket names must be unique in the chosen Zone (Availability Zone or Local Zone). Bucket names must follow the format <code> <i>bucket-base-name</i>--<i>zone-id</i>--x-s3</code> (for example, <code> <i>amzn-s3-demo-bucket</i>--<i>usw2-az1</i>--x-s3</code>). For information about bucket naming restrictions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html">Directory bucket naming rules</a> in the <i>Amazon S3 User Guide</i>.</p>
224 /// <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><note>
225 /// <p>Object Lambda access points are not supported by directory buckets.</p>
226 /// </note>
227 /// <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>
228 pub fn bucket(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
229 self.inner = self.inner.bucket(input.into());
230 self
231 }
232 /// <p>The name of the bucket that contains the object.</p>
233 /// <p><b>Directory buckets</b> - When you use this operation with a directory bucket, you must use virtual-hosted-style requests in the format <code> <i>Bucket-name</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com</code>. Path-style requests are not supported. Directory bucket names must be unique in the chosen Zone (Availability Zone or Local Zone). Bucket names must follow the format <code> <i>bucket-base-name</i>--<i>zone-id</i>--x-s3</code> (for example, <code> <i>amzn-s3-demo-bucket</i>--<i>usw2-az1</i>--x-s3</code>). For information about bucket naming restrictions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html">Directory bucket naming rules</a> in the <i>Amazon S3 User Guide</i>.</p>
234 /// <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><note>
235 /// <p>Object Lambda access points are not supported by directory buckets.</p>
236 /// </note>
237 /// <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>
238 pub fn set_bucket(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
239 self.inner = self.inner.set_bucket(input);
240 self
241 }
242 /// <p>The name of the bucket that contains the object.</p>
243 /// <p><b>Directory buckets</b> - When you use this operation with a directory bucket, you must use virtual-hosted-style requests in the format <code> <i>Bucket-name</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com</code>. Path-style requests are not supported. Directory bucket names must be unique in the chosen Zone (Availability Zone or Local Zone). Bucket names must follow the format <code> <i>bucket-base-name</i>--<i>zone-id</i>--x-s3</code> (for example, <code> <i>amzn-s3-demo-bucket</i>--<i>usw2-az1</i>--x-s3</code>). For information about bucket naming restrictions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html">Directory bucket naming rules</a> in the <i>Amazon S3 User Guide</i>.</p>
244 /// <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><note>
245 /// <p>Object Lambda access points are not supported by directory buckets.</p>
246 /// </note>
247 /// <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>
248 pub fn get_bucket(&self) -> &::std::option::Option<::std::string::String> {
249 self.inner.get_bucket()
250 }
251 /// <p>The object key.</p>
252 pub fn key(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
253 self.inner = self.inner.key(input.into());
254 self
255 }
256 /// <p>The object key.</p>
257 pub fn set_key(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
258 self.inner = self.inner.set_key(input);
259 self
260 }
261 /// <p>The object key.</p>
262 pub fn get_key(&self) -> &::std::option::Option<::std::string::String> {
263 self.inner.get_key()
264 }
265 /// <p>The version ID used to reference a specific version of the object.</p><note>
266 /// <p>S3 Versioning isn't enabled and supported for directory buckets. For this API operation, only the <code>null</code> value of the version ID is supported by directory buckets. You can only specify <code>null</code> to the <code>versionId</code> query parameter in the request.</p>
267 /// </note>
268 pub fn version_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
269 self.inner = self.inner.version_id(input.into());
270 self
271 }
272 /// <p>The version ID used to reference a specific version of the object.</p><note>
273 /// <p>S3 Versioning isn't enabled and supported for directory buckets. For this API operation, only the <code>null</code> value of the version ID is supported by directory buckets. You can only specify <code>null</code> to the <code>versionId</code> query parameter in the request.</p>
274 /// </note>
275 pub fn set_version_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
276 self.inner = self.inner.set_version_id(input);
277 self
278 }
279 /// <p>The version ID used to reference a specific version of the object.</p><note>
280 /// <p>S3 Versioning isn't enabled and supported for directory buckets. For this API operation, only the <code>null</code> value of the version ID is supported by directory buckets. You can only specify <code>null</code> to the <code>versionId</code> query parameter in the request.</p>
281 /// </note>
282 pub fn get_version_id(&self) -> &::std::option::Option<::std::string::String> {
283 self.inner.get_version_id()
284 }
285 /// <p>Sets the maximum number of parts to return. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html">Uploading and copying objects using multipart upload in Amazon S3 </a> in the <i>Amazon Simple Storage Service user guide</i>.</p>
286 pub fn max_parts(mut self, input: i32) -> Self {
287 self.inner = self.inner.max_parts(input);
288 self
289 }
290 /// <p>Sets the maximum number of parts to return. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html">Uploading and copying objects using multipart upload in Amazon S3 </a> in the <i>Amazon Simple Storage Service user guide</i>.</p>
291 pub fn set_max_parts(mut self, input: ::std::option::Option<i32>) -> Self {
292 self.inner = self.inner.set_max_parts(input);
293 self
294 }
295 /// <p>Sets the maximum number of parts to return. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html">Uploading and copying objects using multipart upload in Amazon S3 </a> in the <i>Amazon Simple Storage Service user guide</i>.</p>
296 pub fn get_max_parts(&self) -> &::std::option::Option<i32> {
297 self.inner.get_max_parts()
298 }
299 /// <p>Specifies the part after which listing should begin. Only parts with higher part numbers will be listed. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html">Uploading and copying objects using multipart upload in Amazon S3 </a> in the <i>Amazon Simple Storage Service user guide</i>.</p>
300 pub fn part_number_marker(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
301 self.inner = self.inner.part_number_marker(input.into());
302 self
303 }
304 /// <p>Specifies the part after which listing should begin. Only parts with higher part numbers will be listed. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html">Uploading and copying objects using multipart upload in Amazon S3 </a> in the <i>Amazon Simple Storage Service user guide</i>.</p>
305 pub fn set_part_number_marker(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
306 self.inner = self.inner.set_part_number_marker(input);
307 self
308 }
309 /// <p>Specifies the part after which listing should begin. Only parts with higher part numbers will be listed. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html">Uploading and copying objects using multipart upload in Amazon S3 </a> in the <i>Amazon Simple Storage Service user guide</i>.</p>
310 pub fn get_part_number_marker(&self) -> &::std::option::Option<::std::string::String> {
311 self.inner.get_part_number_marker()
312 }
313 /// <p>Specifies the algorithm to use when encrypting the object (for example, AES256).</p><note>
314 /// <p>This functionality is not supported for directory buckets.</p>
315 /// </note>
316 pub fn sse_customer_algorithm(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
317 self.inner = self.inner.sse_customer_algorithm(input.into());
318 self
319 }
320 /// <p>Specifies the algorithm to use when encrypting the object (for example, AES256).</p><note>
321 /// <p>This functionality is not supported for directory buckets.</p>
322 /// </note>
323 pub fn set_sse_customer_algorithm(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
324 self.inner = self.inner.set_sse_customer_algorithm(input);
325 self
326 }
327 /// <p>Specifies the algorithm to use when encrypting the object (for example, AES256).</p><note>
328 /// <p>This functionality is not supported for directory buckets.</p>
329 /// </note>
330 pub fn get_sse_customer_algorithm(&self) -> &::std::option::Option<::std::string::String> {
331 self.inner.get_sse_customer_algorithm()
332 }
333 /// <p>Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon S3 does not store the encryption key. The key must be appropriate for use with the algorithm specified in the <code>x-amz-server-side-encryption-customer-algorithm</code> header.</p><note>
334 /// <p>This functionality is not supported for directory buckets.</p>
335 /// </note>
336 pub fn sse_customer_key(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
337 self.inner = self.inner.sse_customer_key(input.into());
338 self
339 }
340 /// <p>Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon S3 does not store the encryption key. The key must be appropriate for use with the algorithm specified in the <code>x-amz-server-side-encryption-customer-algorithm</code> header.</p><note>
341 /// <p>This functionality is not supported for directory buckets.</p>
342 /// </note>
343 pub fn set_sse_customer_key(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
344 self.inner = self.inner.set_sse_customer_key(input);
345 self
346 }
347 /// <p>Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon S3 does not store the encryption key. The key must be appropriate for use with the algorithm specified in the <code>x-amz-server-side-encryption-customer-algorithm</code> header.</p><note>
348 /// <p>This functionality is not supported for directory buckets.</p>
349 /// </note>
350 pub fn get_sse_customer_key(&self) -> &::std::option::Option<::std::string::String> {
351 self.inner.get_sse_customer_key()
352 }
353 /// <p>Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure that the encryption key was transmitted without error.</p><note>
354 /// <p>This functionality is not supported for directory buckets.</p>
355 /// </note>
356 pub fn sse_customer_key_md5(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
357 self.inner = self.inner.sse_customer_key_md5(input.into());
358 self
359 }
360 /// <p>Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure that the encryption key was transmitted without error.</p><note>
361 /// <p>This functionality is not supported for directory buckets.</p>
362 /// </note>
363 pub fn set_sse_customer_key_md5(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
364 self.inner = self.inner.set_sse_customer_key_md5(input);
365 self
366 }
367 /// <p>Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure that the encryption key was transmitted without error.</p><note>
368 /// <p>This functionality is not supported for directory buckets.</p>
369 /// </note>
370 pub fn get_sse_customer_key_md5(&self) -> &::std::option::Option<::std::string::String> {
371 self.inner.get_sse_customer_key_md5()
372 }
373 /// <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>
374 /// <p>This functionality is not supported for directory buckets.</p>
375 /// </note>
376 pub fn request_payer(mut self, input: crate::types::RequestPayer) -> Self {
377 self.inner = self.inner.request_payer(input);
378 self
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 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>
381 /// <p>This functionality is not supported for directory buckets.</p>
382 /// </note>
383 pub fn set_request_payer(mut self, input: ::std::option::Option<crate::types::RequestPayer>) -> Self {
384 self.inner = self.inner.set_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 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>
388 /// <p>This functionality is not supported for directory buckets.</p>
389 /// </note>
390 pub fn get_request_payer(&self) -> &::std::option::Option<crate::types::RequestPayer> {
391 self.inner.get_request_payer()
392 }
393 /// <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>
394 pub fn expected_bucket_owner(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
395 self.inner = self.inner.expected_bucket_owner(input.into());
396 self
397 }
398 /// <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>
399 pub fn set_expected_bucket_owner(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
400 self.inner = self.inner.set_expected_bucket_owner(input);
401 self
402 }
403 /// <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>
404 pub fn get_expected_bucket_owner(&self) -> &::std::option::Option<::std::string::String> {
405 self.inner.get_expected_bucket_owner()
406 }
407 ///
408 /// Appends an item to `ObjectAttributes`.
409 ///
410 /// To override the contents of this collection use [`set_object_attributes`](Self::set_object_attributes).
411 ///
412 /// <p>Specifies the fields at the root level that you want returned in the response. Fields that you do not specify are not returned.</p>
413 pub fn object_attributes(mut self, input: crate::types::ObjectAttributes) -> Self {
414 self.inner = self.inner.object_attributes(input);
415 self
416 }
417 /// <p>Specifies the fields at the root level that you want returned in the response. Fields that you do not specify are not returned.</p>
418 pub fn set_object_attributes(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ObjectAttributes>>) -> Self {
419 self.inner = self.inner.set_object_attributes(input);
420 self
421 }
422 /// <p>Specifies the fields at the root level that you want returned in the response. Fields that you do not specify are not returned.</p>
423 pub fn get_object_attributes(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ObjectAttributes>> {
424 self.inner.get_object_attributes()
425 }
426}