aws_sdk_workdocs/client/
get_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 [`GetDocument`](crate::operation::get_document::builders::GetDocumentFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`authentication_token(impl Into<String>)`](crate::operation::get_document::builders::GetDocumentFluentBuilder::authentication_token) / [`set_authentication_token(Option<String>)`](crate::operation::get_document::builders::GetDocumentFluentBuilder::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::get_document::builders::GetDocumentFluentBuilder::document_id) / [`set_document_id(Option<String>)`](crate::operation::get_document::builders::GetDocumentFluentBuilder::set_document_id):<br>required: **true**<br><p>The ID of the document.</p><br>
    ///   - [`include_custom_metadata(bool)`](crate::operation::get_document::builders::GetDocumentFluentBuilder::include_custom_metadata) / [`set_include_custom_metadata(Option<bool>)`](crate::operation::get_document::builders::GetDocumentFluentBuilder::set_include_custom_metadata):<br>required: **false**<br><p>Set this to <code>TRUE</code> to include custom metadata in the response.</p><br>
    /// - On success, responds with [`GetDocumentOutput`](crate::operation::get_document::GetDocumentOutput) with field(s):
    ///   - [`metadata(Option<DocumentMetadata>)`](crate::operation::get_document::GetDocumentOutput::metadata): <p>The metadata details of the document.</p>
    ///   - [`custom_metadata(Option<HashMap::<String, String>>)`](crate::operation::get_document::GetDocumentOutput::custom_metadata): <p>The custom metadata on the document.</p>
    /// - On failure, responds with [`SdkError<GetDocumentError>`](crate::operation::get_document::GetDocumentError)
    pub fn get_document(&self) -> crate::operation::get_document::builders::GetDocumentFluentBuilder {
        crate::operation::get_document::builders::GetDocumentFluentBuilder::new(self.handle.clone())
    }
}