aws_sdk_workdocs/client/
update_document.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`UpdateDocument`](crate::operation::update_document::builders::UpdateDocumentFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`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>
    ///   - [`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>
    ///   - [`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>
    ///   - [`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>
    ///   - [`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>
    /// - On success, responds with [`UpdateDocumentOutput`](crate::operation::update_document::UpdateDocumentOutput)
    /// - On failure, responds with [`SdkError<UpdateDocumentError>`](crate::operation::update_document::UpdateDocumentError)
    pub fn update_document(&self) -> crate::operation::update_document::builders::UpdateDocumentFluentBuilder {
        crate::operation::update_document::builders::UpdateDocumentFluentBuilder::new(self.handle.clone())
    }
}