aws_sdk_s3/operation/rename_object/
_rename_object_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, ::std::fmt::Debug)]
5pub struct RenameObjectInput {
6    /// <p>The bucket name of the directory bucket containing the object.</p>
7    /// <p>You must use virtual-hosted-style requests in the format <code>Bucket-name.s3express-zone-id.region-code.amazonaws.com</code>. Path-style requests are not supported. Directory bucket names must be unique in the chosen Availability Zone. Bucket names must follow the format <code>bucket-base-name--zone-id--x-s3 </code> (for example, <code>amzn-s3-demo-bucket--usw2-az1--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    pub bucket: ::std::option::Option<::std::string::String>,
9    /// <p>Key name of the object to rename.</p>
10    pub key: ::std::option::Option<::std::string::String>,
11    /// <p>Specifies the source for the rename operation. The value must be URL encoded.</p>
12    pub rename_source: ::std::option::Option<::std::string::String>,
13    /// <p>Renames the object only if the ETag (entity tag) value provided during the operation matches the ETag of the object in S3. The <code>If-Match</code> header field makes the request method conditional on ETags. If the ETag values do not match, the operation returns a <code>412 Precondition Failed</code> error.</p>
14    /// <p>Expects the ETag value as a string.</p>
15    pub destination_if_match: ::std::option::Option<::std::string::String>,
16    /// <p>Renames the object only if the destination does not already exist in the specified directory bucket. If the object does exist when you send a request with <code>If-None-Match:*</code>, the S3 API will return a <code>412 Precondition Failed</code> error, preventing an overwrite. The <code>If-None-Match</code> header prevents overwrites of existing data by validating that there's not an object with the same key name already in your directory bucket.</p>
17    /// <p>Expects the <code>*</code> character (asterisk).</p>
18    pub destination_if_none_match: ::std::option::Option<::std::string::String>,
19    /// <p>Renames the object if the destination exists and if it has been modified since the specified time.</p>
20    pub destination_if_modified_since: ::std::option::Option<::aws_smithy_types::DateTime>,
21    /// <p>Renames the object if it hasn't been modified since the specified time.</p>
22    pub destination_if_unmodified_since: ::std::option::Option<::aws_smithy_types::DateTime>,
23    /// <p>Renames the object if the source exists and if its entity tag (ETag) matches the specified ETag.</p>
24    pub source_if_match: ::std::option::Option<::std::string::String>,
25    /// <p>Renames the object if the source exists and if its entity tag (ETag) is different than the specified ETag. If an asterisk (<code>*</code>) character is provided, the operation will fail and return a <code>412 Precondition Failed</code> error.</p>
26    pub source_if_none_match: ::std::option::Option<::std::string::String>,
27    /// <p>Renames the object if the source exists and if it has been modified since the specified time.</p>
28    pub source_if_modified_since: ::std::option::Option<::aws_smithy_types::DateTime>,
29    /// <p>Renames the object if the source exists and hasn't been modified since the specified time.</p>
30    pub source_if_unmodified_since: ::std::option::Option<::aws_smithy_types::DateTime>,
31    /// <p>A unique string with a max of 64 ASCII characters in the ASCII range of 33 - 126.</p><note>
32    /// <p><code>RenameObject</code> supports idempotency using a client token. To make an idempotent API request using <code>RenameObject</code>, specify a client token in the request. You should not reuse the same client token for other API requests. If you retry a request that completed successfully using the same client token and the same parameters, the retry succeeds without performing any further actions. If you retry a successful request using the same client token, but one or more of the parameters are different, the retry fails and an <code>IdempotentParameterMismatch</code> error is returned.</p>
33    /// </note>
34    pub client_token: ::std::option::Option<::std::string::String>,
35}
36impl RenameObjectInput {
37    /// <p>The bucket name of the directory bucket containing the object.</p>
38    /// <p>You must use virtual-hosted-style requests in the format <code>Bucket-name.s3express-zone-id.region-code.amazonaws.com</code>. Path-style requests are not supported. Directory bucket names must be unique in the chosen Availability Zone. Bucket names must follow the format <code>bucket-base-name--zone-id--x-s3 </code> (for example, <code>amzn-s3-demo-bucket--usw2-az1--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>
39    pub fn bucket(&self) -> ::std::option::Option<&str> {
40        self.bucket.as_deref()
41    }
42    /// <p>Key name of the object to rename.</p>
43    pub fn key(&self) -> ::std::option::Option<&str> {
44        self.key.as_deref()
45    }
46    /// <p>Specifies the source for the rename operation. The value must be URL encoded.</p>
47    pub fn rename_source(&self) -> ::std::option::Option<&str> {
48        self.rename_source.as_deref()
49    }
50    /// <p>Renames the object only if the ETag (entity tag) value provided during the operation matches the ETag of the object in S3. The <code>If-Match</code> header field makes the request method conditional on ETags. If the ETag values do not match, the operation returns a <code>412 Precondition Failed</code> error.</p>
51    /// <p>Expects the ETag value as a string.</p>
52    pub fn destination_if_match(&self) -> ::std::option::Option<&str> {
53        self.destination_if_match.as_deref()
54    }
55    /// <p>Renames the object only if the destination does not already exist in the specified directory bucket. If the object does exist when you send a request with <code>If-None-Match:*</code>, the S3 API will return a <code>412 Precondition Failed</code> error, preventing an overwrite. The <code>If-None-Match</code> header prevents overwrites of existing data by validating that there's not an object with the same key name already in your directory bucket.</p>
56    /// <p>Expects the <code>*</code> character (asterisk).</p>
57    pub fn destination_if_none_match(&self) -> ::std::option::Option<&str> {
58        self.destination_if_none_match.as_deref()
59    }
60    /// <p>Renames the object if the destination exists and if it has been modified since the specified time.</p>
61    pub fn destination_if_modified_since(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
62        self.destination_if_modified_since.as_ref()
63    }
64    /// <p>Renames the object if it hasn't been modified since the specified time.</p>
65    pub fn destination_if_unmodified_since(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
66        self.destination_if_unmodified_since.as_ref()
67    }
68    /// <p>Renames the object if the source exists and if its entity tag (ETag) matches the specified ETag.</p>
69    pub fn source_if_match(&self) -> ::std::option::Option<&str> {
70        self.source_if_match.as_deref()
71    }
72    /// <p>Renames the object if the source exists and if its entity tag (ETag) is different than the specified ETag. If an asterisk (<code>*</code>) character is provided, the operation will fail and return a <code>412 Precondition Failed</code> error.</p>
73    pub fn source_if_none_match(&self) -> ::std::option::Option<&str> {
74        self.source_if_none_match.as_deref()
75    }
76    /// <p>Renames the object if the source exists and if it has been modified since the specified time.</p>
77    pub fn source_if_modified_since(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
78        self.source_if_modified_since.as_ref()
79    }
80    /// <p>Renames the object if the source exists and hasn't been modified since the specified time.</p>
81    pub fn source_if_unmodified_since(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
82        self.source_if_unmodified_since.as_ref()
83    }
84    /// <p>A unique string with a max of 64 ASCII characters in the ASCII range of 33 - 126.</p><note>
85    /// <p><code>RenameObject</code> supports idempotency using a client token. To make an idempotent API request using <code>RenameObject</code>, specify a client token in the request. You should not reuse the same client token for other API requests. If you retry a request that completed successfully using the same client token and the same parameters, the retry succeeds without performing any further actions. If you retry a successful request using the same client token, but one or more of the parameters are different, the retry fails and an <code>IdempotentParameterMismatch</code> error is returned.</p>
86    /// </note>
87    pub fn client_token(&self) -> ::std::option::Option<&str> {
88        self.client_token.as_deref()
89    }
90}
91impl RenameObjectInput {
92    /// Creates a new builder-style object to manufacture [`RenameObjectInput`](crate::operation::rename_object::RenameObjectInput).
93    pub fn builder() -> crate::operation::rename_object::builders::RenameObjectInputBuilder {
94        crate::operation::rename_object::builders::RenameObjectInputBuilder::default()
95    }
96}
97
98/// A builder for [`RenameObjectInput`](crate::operation::rename_object::RenameObjectInput).
99#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
100#[non_exhaustive]
101pub struct RenameObjectInputBuilder {
102    pub(crate) bucket: ::std::option::Option<::std::string::String>,
103    pub(crate) key: ::std::option::Option<::std::string::String>,
104    pub(crate) rename_source: ::std::option::Option<::std::string::String>,
105    pub(crate) destination_if_match: ::std::option::Option<::std::string::String>,
106    pub(crate) destination_if_none_match: ::std::option::Option<::std::string::String>,
107    pub(crate) destination_if_modified_since: ::std::option::Option<::aws_smithy_types::DateTime>,
108    pub(crate) destination_if_unmodified_since: ::std::option::Option<::aws_smithy_types::DateTime>,
109    pub(crate) source_if_match: ::std::option::Option<::std::string::String>,
110    pub(crate) source_if_none_match: ::std::option::Option<::std::string::String>,
111    pub(crate) source_if_modified_since: ::std::option::Option<::aws_smithy_types::DateTime>,
112    pub(crate) source_if_unmodified_since: ::std::option::Option<::aws_smithy_types::DateTime>,
113    pub(crate) client_token: ::std::option::Option<::std::string::String>,
114}
115impl RenameObjectInputBuilder {
116    /// <p>The bucket name of the directory bucket containing the object.</p>
117    /// <p>You must use virtual-hosted-style requests in the format <code>Bucket-name.s3express-zone-id.region-code.amazonaws.com</code>. Path-style requests are not supported. Directory bucket names must be unique in the chosen Availability Zone. Bucket names must follow the format <code>bucket-base-name--zone-id--x-s3 </code> (for example, <code>amzn-s3-demo-bucket--usw2-az1--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>
118    /// This field is required.
119    pub fn bucket(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
120        self.bucket = ::std::option::Option::Some(input.into());
121        self
122    }
123    /// <p>The bucket name of the directory bucket containing the object.</p>
124    /// <p>You must use virtual-hosted-style requests in the format <code>Bucket-name.s3express-zone-id.region-code.amazonaws.com</code>. Path-style requests are not supported. Directory bucket names must be unique in the chosen Availability Zone. Bucket names must follow the format <code>bucket-base-name--zone-id--x-s3 </code> (for example, <code>amzn-s3-demo-bucket--usw2-az1--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>
125    pub fn set_bucket(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
126        self.bucket = input;
127        self
128    }
129    /// <p>The bucket name of the directory bucket containing the object.</p>
130    /// <p>You must use virtual-hosted-style requests in the format <code>Bucket-name.s3express-zone-id.region-code.amazonaws.com</code>. Path-style requests are not supported. Directory bucket names must be unique in the chosen Availability Zone. Bucket names must follow the format <code>bucket-base-name--zone-id--x-s3 </code> (for example, <code>amzn-s3-demo-bucket--usw2-az1--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>
131    pub fn get_bucket(&self) -> &::std::option::Option<::std::string::String> {
132        &self.bucket
133    }
134    /// <p>Key name of the object to rename.</p>
135    /// This field is required.
136    pub fn key(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
137        self.key = ::std::option::Option::Some(input.into());
138        self
139    }
140    /// <p>Key name of the object to rename.</p>
141    pub fn set_key(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
142        self.key = input;
143        self
144    }
145    /// <p>Key name of the object to rename.</p>
146    pub fn get_key(&self) -> &::std::option::Option<::std::string::String> {
147        &self.key
148    }
149    /// <p>Specifies the source for the rename operation. The value must be URL encoded.</p>
150    /// This field is required.
151    pub fn rename_source(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
152        self.rename_source = ::std::option::Option::Some(input.into());
153        self
154    }
155    /// <p>Specifies the source for the rename operation. The value must be URL encoded.</p>
156    pub fn set_rename_source(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
157        self.rename_source = input;
158        self
159    }
160    /// <p>Specifies the source for the rename operation. The value must be URL encoded.</p>
161    pub fn get_rename_source(&self) -> &::std::option::Option<::std::string::String> {
162        &self.rename_source
163    }
164    /// <p>Renames the object only if the ETag (entity tag) value provided during the operation matches the ETag of the object in S3. The <code>If-Match</code> header field makes the request method conditional on ETags. If the ETag values do not match, the operation returns a <code>412 Precondition Failed</code> error.</p>
165    /// <p>Expects the ETag value as a string.</p>
166    pub fn destination_if_match(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
167        self.destination_if_match = ::std::option::Option::Some(input.into());
168        self
169    }
170    /// <p>Renames the object only if the ETag (entity tag) value provided during the operation matches the ETag of the object in S3. The <code>If-Match</code> header field makes the request method conditional on ETags. If the ETag values do not match, the operation returns a <code>412 Precondition Failed</code> error.</p>
171    /// <p>Expects the ETag value as a string.</p>
172    pub fn set_destination_if_match(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
173        self.destination_if_match = input;
174        self
175    }
176    /// <p>Renames the object only if the ETag (entity tag) value provided during the operation matches the ETag of the object in S3. The <code>If-Match</code> header field makes the request method conditional on ETags. If the ETag values do not match, the operation returns a <code>412 Precondition Failed</code> error.</p>
177    /// <p>Expects the ETag value as a string.</p>
178    pub fn get_destination_if_match(&self) -> &::std::option::Option<::std::string::String> {
179        &self.destination_if_match
180    }
181    /// <p>Renames the object only if the destination does not already exist in the specified directory bucket. If the object does exist when you send a request with <code>If-None-Match:*</code>, the S3 API will return a <code>412 Precondition Failed</code> error, preventing an overwrite. The <code>If-None-Match</code> header prevents overwrites of existing data by validating that there's not an object with the same key name already in your directory bucket.</p>
182    /// <p>Expects the <code>*</code> character (asterisk).</p>
183    pub fn destination_if_none_match(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
184        self.destination_if_none_match = ::std::option::Option::Some(input.into());
185        self
186    }
187    /// <p>Renames the object only if the destination does not already exist in the specified directory bucket. If the object does exist when you send a request with <code>If-None-Match:*</code>, the S3 API will return a <code>412 Precondition Failed</code> error, preventing an overwrite. The <code>If-None-Match</code> header prevents overwrites of existing data by validating that there's not an object with the same key name already in your directory bucket.</p>
188    /// <p>Expects the <code>*</code> character (asterisk).</p>
189    pub fn set_destination_if_none_match(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
190        self.destination_if_none_match = input;
191        self
192    }
193    /// <p>Renames the object only if the destination does not already exist in the specified directory bucket. If the object does exist when you send a request with <code>If-None-Match:*</code>, the S3 API will return a <code>412 Precondition Failed</code> error, preventing an overwrite. The <code>If-None-Match</code> header prevents overwrites of existing data by validating that there's not an object with the same key name already in your directory bucket.</p>
194    /// <p>Expects the <code>*</code> character (asterisk).</p>
195    pub fn get_destination_if_none_match(&self) -> &::std::option::Option<::std::string::String> {
196        &self.destination_if_none_match
197    }
198    /// <p>Renames the object if the destination exists and if it has been modified since the specified time.</p>
199    pub fn destination_if_modified_since(mut self, input: ::aws_smithy_types::DateTime) -> Self {
200        self.destination_if_modified_since = ::std::option::Option::Some(input);
201        self
202    }
203    /// <p>Renames the object if the destination exists and if it has been modified since the specified time.</p>
204    pub fn set_destination_if_modified_since(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
205        self.destination_if_modified_since = input;
206        self
207    }
208    /// <p>Renames the object if the destination exists and if it has been modified since the specified time.</p>
209    pub fn get_destination_if_modified_since(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
210        &self.destination_if_modified_since
211    }
212    /// <p>Renames the object if it hasn't been modified since the specified time.</p>
213    pub fn destination_if_unmodified_since(mut self, input: ::aws_smithy_types::DateTime) -> Self {
214        self.destination_if_unmodified_since = ::std::option::Option::Some(input);
215        self
216    }
217    /// <p>Renames the object if it hasn't been modified since the specified time.</p>
218    pub fn set_destination_if_unmodified_since(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
219        self.destination_if_unmodified_since = input;
220        self
221    }
222    /// <p>Renames the object if it hasn't been modified since the specified time.</p>
223    pub fn get_destination_if_unmodified_since(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
224        &self.destination_if_unmodified_since
225    }
226    /// <p>Renames the object if the source exists and if its entity tag (ETag) matches the specified ETag.</p>
227    pub fn source_if_match(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
228        self.source_if_match = ::std::option::Option::Some(input.into());
229        self
230    }
231    /// <p>Renames the object if the source exists and if its entity tag (ETag) matches the specified ETag.</p>
232    pub fn set_source_if_match(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
233        self.source_if_match = input;
234        self
235    }
236    /// <p>Renames the object if the source exists and if its entity tag (ETag) matches the specified ETag.</p>
237    pub fn get_source_if_match(&self) -> &::std::option::Option<::std::string::String> {
238        &self.source_if_match
239    }
240    /// <p>Renames the object if the source exists and if its entity tag (ETag) is different than the specified ETag. If an asterisk (<code>*</code>) character is provided, the operation will fail and return a <code>412 Precondition Failed</code> error.</p>
241    pub fn source_if_none_match(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
242        self.source_if_none_match = ::std::option::Option::Some(input.into());
243        self
244    }
245    /// <p>Renames the object if the source exists and if its entity tag (ETag) is different than the specified ETag. If an asterisk (<code>*</code>) character is provided, the operation will fail and return a <code>412 Precondition Failed</code> error.</p>
246    pub fn set_source_if_none_match(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
247        self.source_if_none_match = input;
248        self
249    }
250    /// <p>Renames the object if the source exists and if its entity tag (ETag) is different than the specified ETag. If an asterisk (<code>*</code>) character is provided, the operation will fail and return a <code>412 Precondition Failed</code> error.</p>
251    pub fn get_source_if_none_match(&self) -> &::std::option::Option<::std::string::String> {
252        &self.source_if_none_match
253    }
254    /// <p>Renames the object if the source exists and if it has been modified since the specified time.</p>
255    pub fn source_if_modified_since(mut self, input: ::aws_smithy_types::DateTime) -> Self {
256        self.source_if_modified_since = ::std::option::Option::Some(input);
257        self
258    }
259    /// <p>Renames the object if the source exists and if it has been modified since the specified time.</p>
260    pub fn set_source_if_modified_since(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
261        self.source_if_modified_since = input;
262        self
263    }
264    /// <p>Renames the object if the source exists and if it has been modified since the specified time.</p>
265    pub fn get_source_if_modified_since(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
266        &self.source_if_modified_since
267    }
268    /// <p>Renames the object if the source exists and hasn't been modified since the specified time.</p>
269    pub fn source_if_unmodified_since(mut self, input: ::aws_smithy_types::DateTime) -> Self {
270        self.source_if_unmodified_since = ::std::option::Option::Some(input);
271        self
272    }
273    /// <p>Renames the object if the source exists and hasn't been modified since the specified time.</p>
274    pub fn set_source_if_unmodified_since(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
275        self.source_if_unmodified_since = input;
276        self
277    }
278    /// <p>Renames the object if the source exists and hasn't been modified since the specified time.</p>
279    pub fn get_source_if_unmodified_since(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
280        &self.source_if_unmodified_since
281    }
282    /// <p>A unique string with a max of 64 ASCII characters in the ASCII range of 33 - 126.</p><note>
283    /// <p><code>RenameObject</code> supports idempotency using a client token. To make an idempotent API request using <code>RenameObject</code>, specify a client token in the request. You should not reuse the same client token for other API requests. If you retry a request that completed successfully using the same client token and the same parameters, the retry succeeds without performing any further actions. If you retry a successful request using the same client token, but one or more of the parameters are different, the retry fails and an <code>IdempotentParameterMismatch</code> error is returned.</p>
284    /// </note>
285    pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
286        self.client_token = ::std::option::Option::Some(input.into());
287        self
288    }
289    /// <p>A unique string with a max of 64 ASCII characters in the ASCII range of 33 - 126.</p><note>
290    /// <p><code>RenameObject</code> supports idempotency using a client token. To make an idempotent API request using <code>RenameObject</code>, specify a client token in the request. You should not reuse the same client token for other API requests. If you retry a request that completed successfully using the same client token and the same parameters, the retry succeeds without performing any further actions. If you retry a successful request using the same client token, but one or more of the parameters are different, the retry fails and an <code>IdempotentParameterMismatch</code> error is returned.</p>
291    /// </note>
292    pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
293        self.client_token = input;
294        self
295    }
296    /// <p>A unique string with a max of 64 ASCII characters in the ASCII range of 33 - 126.</p><note>
297    /// <p><code>RenameObject</code> supports idempotency using a client token. To make an idempotent API request using <code>RenameObject</code>, specify a client token in the request. You should not reuse the same client token for other API requests. If you retry a request that completed successfully using the same client token and the same parameters, the retry succeeds without performing any further actions. If you retry a successful request using the same client token, but one or more of the parameters are different, the retry fails and an <code>IdempotentParameterMismatch</code> error is returned.</p>
298    /// </note>
299    pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
300        &self.client_token
301    }
302    /// Consumes the builder and constructs a [`RenameObjectInput`](crate::operation::rename_object::RenameObjectInput).
303    pub fn build(
304        self,
305    ) -> ::std::result::Result<crate::operation::rename_object::RenameObjectInput, ::aws_smithy_types::error::operation::BuildError> {
306        ::std::result::Result::Ok(crate::operation::rename_object::RenameObjectInput {
307            bucket: self.bucket,
308            key: self.key,
309            rename_source: self.rename_source,
310            destination_if_match: self.destination_if_match,
311            destination_if_none_match: self.destination_if_none_match,
312            destination_if_modified_since: self.destination_if_modified_since,
313            destination_if_unmodified_since: self.destination_if_unmodified_since,
314            source_if_match: self.source_if_match,
315            source_if_none_match: self.source_if_none_match,
316            source_if_modified_since: self.source_if_modified_since,
317            source_if_unmodified_since: self.source_if_unmodified_since,
318            client_token: self.client_token,
319        })
320    }
321}