aws_sdk_workdocs/client/update_document.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`UpdateDocument`](crate::operation::update_document::builders::UpdateDocumentFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`authentication_token(impl Into<String>)`](crate::operation::update_document::builders::UpdateDocumentFluentBuilder::authentication_token) / [`set_authentication_token(Option<String>)`](crate::operation::update_document::builders::UpdateDocumentFluentBuilder::set_authentication_token):<br>required: **false**<br><p>Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.</p><br>
7 /// - [`document_id(impl Into<String>)`](crate::operation::update_document::builders::UpdateDocumentFluentBuilder::document_id) / [`set_document_id(Option<String>)`](crate::operation::update_document::builders::UpdateDocumentFluentBuilder::set_document_id):<br>required: **true**<br><p>The ID of the document.</p><br>
8 /// - [`name(impl Into<String>)`](crate::operation::update_document::builders::UpdateDocumentFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::update_document::builders::UpdateDocumentFluentBuilder::set_name):<br>required: **false**<br><p>The name of the document.</p><br>
9 /// - [`parent_folder_id(impl Into<String>)`](crate::operation::update_document::builders::UpdateDocumentFluentBuilder::parent_folder_id) / [`set_parent_folder_id(Option<String>)`](crate::operation::update_document::builders::UpdateDocumentFluentBuilder::set_parent_folder_id):<br>required: **false**<br><p>The ID of the parent folder.</p><br>
10 /// - [`resource_state(ResourceStateType)`](crate::operation::update_document::builders::UpdateDocumentFluentBuilder::resource_state) / [`set_resource_state(Option<ResourceStateType>)`](crate::operation::update_document::builders::UpdateDocumentFluentBuilder::set_resource_state):<br>required: **false**<br><p>The resource state of the document. Only ACTIVE and RECYCLED are supported.</p><br>
11 /// - On success, responds with [`UpdateDocumentOutput`](crate::operation::update_document::UpdateDocumentOutput)
12 /// - On failure, responds with [`SdkError<UpdateDocumentError>`](crate::operation::update_document::UpdateDocumentError)
13 pub fn update_document(&self) -> crate::operation::update_document::builders::UpdateDocumentFluentBuilder {
14 crate::operation::update_document::builders::UpdateDocumentFluentBuilder::new(self.handle.clone())
15 }
16}