aws_sdk_s3/operation/get_object_attributes/
_get_object_attributes_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
5pub struct GetObjectAttributesInput {
6    /// <p>The name of the bucket that contains the object.</p>
7    /// <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>
8    /// <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><note>
9    /// <p>Access points and Object Lambda access points are not supported by directory buckets.</p>
10    /// </note>
11    /// <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>
12    pub bucket: ::std::option::Option<::std::string::String>,
13    /// <p>The object key.</p>
14    pub key: ::std::option::Option<::std::string::String>,
15    /// <p>The version ID used to reference a specific version of the object.</p><note>
16    /// <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>
17    /// </note>
18    pub version_id: ::std::option::Option<::std::string::String>,
19    /// <p>Sets the maximum number of parts to return.</p>
20    pub max_parts: ::std::option::Option<i32>,
21    /// <p>Specifies the part after which listing should begin. Only parts with higher part numbers will be listed.</p>
22    pub part_number_marker: ::std::option::Option<::std::string::String>,
23    /// <p>Specifies the algorithm to use when encrypting the object (for example, AES256).</p><note>
24    /// <p>This functionality is not supported for directory buckets.</p>
25    /// </note>
26    pub sse_customer_algorithm: ::std::option::Option<::std::string::String>,
27    /// <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>
28    /// <p>This functionality is not supported for directory buckets.</p>
29    /// </note>
30    pub sse_customer_key: ::std::option::Option<::std::string::String>,
31    /// <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>
32    /// <p>This functionality is not supported for directory buckets.</p>
33    /// </note>
34    pub sse_customer_key_md5: ::std::option::Option<::std::string::String>,
35    /// <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>
36    /// <p>This functionality is not supported for directory buckets.</p>
37    /// </note>
38    pub request_payer: ::std::option::Option<crate::types::RequestPayer>,
39    /// <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>
40    pub expected_bucket_owner: ::std::option::Option<::std::string::String>,
41    /// <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>
42    pub object_attributes: ::std::option::Option<::std::vec::Vec<crate::types::ObjectAttributes>>,
43}
44impl GetObjectAttributesInput {
45    /// <p>The name of the bucket that contains the object.</p>
46    /// <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>
47    /// <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><note>
48    /// <p>Access points and Object Lambda access points are not supported by directory buckets.</p>
49    /// </note>
50    /// <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>
51    pub fn bucket(&self) -> ::std::option::Option<&str> {
52        self.bucket.as_deref()
53    }
54    /// <p>The object key.</p>
55    pub fn key(&self) -> ::std::option::Option<&str> {
56        self.key.as_deref()
57    }
58    /// <p>The version ID used to reference a specific version of the object.</p><note>
59    /// <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>
60    /// </note>
61    pub fn version_id(&self) -> ::std::option::Option<&str> {
62        self.version_id.as_deref()
63    }
64    /// <p>Sets the maximum number of parts to return.</p>
65    pub fn max_parts(&self) -> ::std::option::Option<i32> {
66        self.max_parts
67    }
68    /// <p>Specifies the part after which listing should begin. Only parts with higher part numbers will be listed.</p>
69    pub fn part_number_marker(&self) -> ::std::option::Option<&str> {
70        self.part_number_marker.as_deref()
71    }
72    /// <p>Specifies the algorithm to use when encrypting the object (for example, AES256).</p><note>
73    /// <p>This functionality is not supported for directory buckets.</p>
74    /// </note>
75    pub fn sse_customer_algorithm(&self) -> ::std::option::Option<&str> {
76        self.sse_customer_algorithm.as_deref()
77    }
78    /// <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>
79    /// <p>This functionality is not supported for directory buckets.</p>
80    /// </note>
81    pub fn sse_customer_key(&self) -> ::std::option::Option<&str> {
82        self.sse_customer_key.as_deref()
83    }
84    /// <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>
85    /// <p>This functionality is not supported for directory buckets.</p>
86    /// </note>
87    pub fn sse_customer_key_md5(&self) -> ::std::option::Option<&str> {
88        self.sse_customer_key_md5.as_deref()
89    }
90    /// <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>
91    /// <p>This functionality is not supported for directory buckets.</p>
92    /// </note>
93    pub fn request_payer(&self) -> ::std::option::Option<&crate::types::RequestPayer> {
94        self.request_payer.as_ref()
95    }
96    /// <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>
97    pub fn expected_bucket_owner(&self) -> ::std::option::Option<&str> {
98        self.expected_bucket_owner.as_deref()
99    }
100    /// <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>
101    ///
102    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.object_attributes.is_none()`.
103    pub fn object_attributes(&self) -> &[crate::types::ObjectAttributes] {
104        self.object_attributes.as_deref().unwrap_or_default()
105    }
106}
107impl ::std::fmt::Debug for GetObjectAttributesInput {
108    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
109        let mut formatter = f.debug_struct("GetObjectAttributesInput");
110        formatter.field("bucket", &self.bucket);
111        formatter.field("key", &self.key);
112        formatter.field("version_id", &self.version_id);
113        formatter.field("max_parts", &self.max_parts);
114        formatter.field("part_number_marker", &self.part_number_marker);
115        formatter.field("sse_customer_algorithm", &self.sse_customer_algorithm);
116        formatter.field("sse_customer_key", &"*** Sensitive Data Redacted ***");
117        formatter.field("sse_customer_key_md5", &self.sse_customer_key_md5);
118        formatter.field("request_payer", &self.request_payer);
119        formatter.field("expected_bucket_owner", &self.expected_bucket_owner);
120        formatter.field("object_attributes", &self.object_attributes);
121        formatter.finish()
122    }
123}
124impl GetObjectAttributesInput {
125    /// Creates a new builder-style object to manufacture [`GetObjectAttributesInput`](crate::operation::get_object_attributes::GetObjectAttributesInput).
126    pub fn builder() -> crate::operation::get_object_attributes::builders::GetObjectAttributesInputBuilder {
127        crate::operation::get_object_attributes::builders::GetObjectAttributesInputBuilder::default()
128    }
129}
130
131/// A builder for [`GetObjectAttributesInput`](crate::operation::get_object_attributes::GetObjectAttributesInput).
132#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
133#[non_exhaustive]
134pub struct GetObjectAttributesInputBuilder {
135    pub(crate) bucket: ::std::option::Option<::std::string::String>,
136    pub(crate) key: ::std::option::Option<::std::string::String>,
137    pub(crate) version_id: ::std::option::Option<::std::string::String>,
138    pub(crate) max_parts: ::std::option::Option<i32>,
139    pub(crate) part_number_marker: ::std::option::Option<::std::string::String>,
140    pub(crate) sse_customer_algorithm: ::std::option::Option<::std::string::String>,
141    pub(crate) sse_customer_key: ::std::option::Option<::std::string::String>,
142    pub(crate) sse_customer_key_md5: ::std::option::Option<::std::string::String>,
143    pub(crate) request_payer: ::std::option::Option<crate::types::RequestPayer>,
144    pub(crate) expected_bucket_owner: ::std::option::Option<::std::string::String>,
145    pub(crate) object_attributes: ::std::option::Option<::std::vec::Vec<crate::types::ObjectAttributes>>,
146}
147impl GetObjectAttributesInputBuilder {
148    /// <p>The name of the bucket that contains the object.</p>
149    /// <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>
150    /// <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><note>
151    /// <p>Access points and Object Lambda access points are not supported by directory buckets.</p>
152    /// </note>
153    /// <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>
154    /// This field is required.
155    pub fn bucket(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
156        self.bucket = ::std::option::Option::Some(input.into());
157        self
158    }
159    /// <p>The name of the bucket that contains the object.</p>
160    /// <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>
161    /// <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><note>
162    /// <p>Access points and Object Lambda access points are not supported by directory buckets.</p>
163    /// </note>
164    /// <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>
165    pub fn set_bucket(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
166        self.bucket = input;
167        self
168    }
169    /// <p>The name of the bucket that contains the object.</p>
170    /// <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>
171    /// <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><note>
172    /// <p>Access points and Object Lambda access points are not supported by directory buckets.</p>
173    /// </note>
174    /// <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>
175    pub fn get_bucket(&self) -> &::std::option::Option<::std::string::String> {
176        &self.bucket
177    }
178    /// <p>The object key.</p>
179    /// This field is required.
180    pub fn key(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
181        self.key = ::std::option::Option::Some(input.into());
182        self
183    }
184    /// <p>The object key.</p>
185    pub fn set_key(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
186        self.key = input;
187        self
188    }
189    /// <p>The object key.</p>
190    pub fn get_key(&self) -> &::std::option::Option<::std::string::String> {
191        &self.key
192    }
193    /// <p>The version ID used to reference a specific version of the object.</p><note>
194    /// <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>
195    /// </note>
196    pub fn version_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
197        self.version_id = ::std::option::Option::Some(input.into());
198        self
199    }
200    /// <p>The version ID used to reference a specific version of the object.</p><note>
201    /// <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>
202    /// </note>
203    pub fn set_version_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
204        self.version_id = input;
205        self
206    }
207    /// <p>The version ID used to reference a specific version of the object.</p><note>
208    /// <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>
209    /// </note>
210    pub fn get_version_id(&self) -> &::std::option::Option<::std::string::String> {
211        &self.version_id
212    }
213    /// <p>Sets the maximum number of parts to return.</p>
214    pub fn max_parts(mut self, input: i32) -> Self {
215        self.max_parts = ::std::option::Option::Some(input);
216        self
217    }
218    /// <p>Sets the maximum number of parts to return.</p>
219    pub fn set_max_parts(mut self, input: ::std::option::Option<i32>) -> Self {
220        self.max_parts = input;
221        self
222    }
223    /// <p>Sets the maximum number of parts to return.</p>
224    pub fn get_max_parts(&self) -> &::std::option::Option<i32> {
225        &self.max_parts
226    }
227    /// <p>Specifies the part after which listing should begin. Only parts with higher part numbers will be listed.</p>
228    pub fn part_number_marker(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
229        self.part_number_marker = ::std::option::Option::Some(input.into());
230        self
231    }
232    /// <p>Specifies the part after which listing should begin. Only parts with higher part numbers will be listed.</p>
233    pub fn set_part_number_marker(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
234        self.part_number_marker = input;
235        self
236    }
237    /// <p>Specifies the part after which listing should begin. Only parts with higher part numbers will be listed.</p>
238    pub fn get_part_number_marker(&self) -> &::std::option::Option<::std::string::String> {
239        &self.part_number_marker
240    }
241    /// <p>Specifies the algorithm to use when encrypting the object (for example, AES256).</p><note>
242    /// <p>This functionality is not supported for directory buckets.</p>
243    /// </note>
244    pub fn sse_customer_algorithm(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
245        self.sse_customer_algorithm = ::std::option::Option::Some(input.into());
246        self
247    }
248    /// <p>Specifies the algorithm to use when encrypting the object (for example, AES256).</p><note>
249    /// <p>This functionality is not supported for directory buckets.</p>
250    /// </note>
251    pub fn set_sse_customer_algorithm(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
252        self.sse_customer_algorithm = input;
253        self
254    }
255    /// <p>Specifies the algorithm to use when encrypting the object (for example, AES256).</p><note>
256    /// <p>This functionality is not supported for directory buckets.</p>
257    /// </note>
258    pub fn get_sse_customer_algorithm(&self) -> &::std::option::Option<::std::string::String> {
259        &self.sse_customer_algorithm
260    }
261    /// <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>
262    /// <p>This functionality is not supported for directory buckets.</p>
263    /// </note>
264    pub fn sse_customer_key(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
265        self.sse_customer_key = ::std::option::Option::Some(input.into());
266        self
267    }
268    /// <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>
269    /// <p>This functionality is not supported for directory buckets.</p>
270    /// </note>
271    pub fn set_sse_customer_key(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
272        self.sse_customer_key = input;
273        self
274    }
275    /// <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>
276    /// <p>This functionality is not supported for directory buckets.</p>
277    /// </note>
278    pub fn get_sse_customer_key(&self) -> &::std::option::Option<::std::string::String> {
279        &self.sse_customer_key
280    }
281    /// <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>
282    /// <p>This functionality is not supported for directory buckets.</p>
283    /// </note>
284    pub fn sse_customer_key_md5(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
285        self.sse_customer_key_md5 = ::std::option::Option::Some(input.into());
286        self
287    }
288    /// <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>
289    /// <p>This functionality is not supported for directory buckets.</p>
290    /// </note>
291    pub fn set_sse_customer_key_md5(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
292        self.sse_customer_key_md5 = input;
293        self
294    }
295    /// <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>
296    /// <p>This functionality is not supported for directory buckets.</p>
297    /// </note>
298    pub fn get_sse_customer_key_md5(&self) -> &::std::option::Option<::std::string::String> {
299        &self.sse_customer_key_md5
300    }
301    /// <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>
302    /// <p>This functionality is not supported for directory buckets.</p>
303    /// </note>
304    pub fn request_payer(mut self, input: crate::types::RequestPayer) -> Self {
305        self.request_payer = ::std::option::Option::Some(input);
306        self
307    }
308    /// <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>
309    /// <p>This functionality is not supported for directory buckets.</p>
310    /// </note>
311    pub fn set_request_payer(mut self, input: ::std::option::Option<crate::types::RequestPayer>) -> Self {
312        self.request_payer = input;
313        self
314    }
315    /// <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>
316    /// <p>This functionality is not supported for directory buckets.</p>
317    /// </note>
318    pub fn get_request_payer(&self) -> &::std::option::Option<crate::types::RequestPayer> {
319        &self.request_payer
320    }
321    /// <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>
322    pub fn expected_bucket_owner(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
323        self.expected_bucket_owner = ::std::option::Option::Some(input.into());
324        self
325    }
326    /// <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>
327    pub fn set_expected_bucket_owner(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
328        self.expected_bucket_owner = input;
329        self
330    }
331    /// <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>
332    pub fn get_expected_bucket_owner(&self) -> &::std::option::Option<::std::string::String> {
333        &self.expected_bucket_owner
334    }
335    /// Appends an item to `object_attributes`.
336    ///
337    /// To override the contents of this collection use [`set_object_attributes`](Self::set_object_attributes).
338    ///
339    /// <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>
340    pub fn object_attributes(mut self, input: crate::types::ObjectAttributes) -> Self {
341        let mut v = self.object_attributes.unwrap_or_default();
342        v.push(input);
343        self.object_attributes = ::std::option::Option::Some(v);
344        self
345    }
346    /// <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>
347    pub fn set_object_attributes(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ObjectAttributes>>) -> Self {
348        self.object_attributes = input;
349        self
350    }
351    /// <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>
352    pub fn get_object_attributes(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ObjectAttributes>> {
353        &self.object_attributes
354    }
355    /// Consumes the builder and constructs a [`GetObjectAttributesInput`](crate::operation::get_object_attributes::GetObjectAttributesInput).
356    pub fn build(
357        self,
358    ) -> ::std::result::Result<crate::operation::get_object_attributes::GetObjectAttributesInput, ::aws_smithy_types::error::operation::BuildError>
359    {
360        ::std::result::Result::Ok(crate::operation::get_object_attributes::GetObjectAttributesInput {
361            bucket: self.bucket,
362            key: self.key,
363            version_id: self.version_id,
364            max_parts: self.max_parts,
365            part_number_marker: self.part_number_marker,
366            sse_customer_algorithm: self.sse_customer_algorithm,
367            sse_customer_key: self.sse_customer_key,
368            sse_customer_key_md5: self.sse_customer_key_md5,
369            request_payer: self.request_payer,
370            expected_bucket_owner: self.expected_bucket_owner,
371            object_attributes: self.object_attributes,
372        })
373    }
374}
375impl ::std::fmt::Debug for GetObjectAttributesInputBuilder {
376    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
377        let mut formatter = f.debug_struct("GetObjectAttributesInputBuilder");
378        formatter.field("bucket", &self.bucket);
379        formatter.field("key", &self.key);
380        formatter.field("version_id", &self.version_id);
381        formatter.field("max_parts", &self.max_parts);
382        formatter.field("part_number_marker", &self.part_number_marker);
383        formatter.field("sse_customer_algorithm", &self.sse_customer_algorithm);
384        formatter.field("sse_customer_key", &"*** Sensitive Data Redacted ***");
385        formatter.field("sse_customer_key_md5", &self.sse_customer_key_md5);
386        formatter.field("request_payer", &self.request_payer);
387        formatter.field("expected_bucket_owner", &self.expected_bucket_owner);
388        formatter.field("object_attributes", &self.object_attributes);
389        formatter.finish()
390    }
391}