aws_sdk_workdocs/client/
get_document_version.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetDocumentVersion`](crate::operation::get_document_version::builders::GetDocumentVersionFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`authentication_token(impl Into<String>)`](crate::operation::get_document_version::builders::GetDocumentVersionFluentBuilder::authentication_token) / [`set_authentication_token(Option<String>)`](crate::operation::get_document_version::builders::GetDocumentVersionFluentBuilder::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_version::builders::GetDocumentVersionFluentBuilder::document_id) / [`set_document_id(Option<String>)`](crate::operation::get_document_version::builders::GetDocumentVersionFluentBuilder::set_document_id):<br>required: **true**<br><p>The ID of the document.</p><br>
    ///   - [`version_id(impl Into<String>)`](crate::operation::get_document_version::builders::GetDocumentVersionFluentBuilder::version_id) / [`set_version_id(Option<String>)`](crate::operation::get_document_version::builders::GetDocumentVersionFluentBuilder::set_version_id):<br>required: **true**<br><p>The version ID of the document.</p><br>
    ///   - [`fields(impl Into<String>)`](crate::operation::get_document_version::builders::GetDocumentVersionFluentBuilder::fields) / [`set_fields(Option<String>)`](crate::operation::get_document_version::builders::GetDocumentVersionFluentBuilder::set_fields):<br>required: **false**<br><p>A comma-separated list of values. Specify "SOURCE" to include a URL for the source document.</p><br>
    ///   - [`include_custom_metadata(bool)`](crate::operation::get_document_version::builders::GetDocumentVersionFluentBuilder::include_custom_metadata) / [`set_include_custom_metadata(Option<bool>)`](crate::operation::get_document_version::builders::GetDocumentVersionFluentBuilder::set_include_custom_metadata):<br>required: **false**<br><p>Set this to TRUE to include custom metadata in the response.</p><br>
    /// - On success, responds with [`GetDocumentVersionOutput`](crate::operation::get_document_version::GetDocumentVersionOutput) with field(s):
    ///   - [`metadata(Option<DocumentVersionMetadata>)`](crate::operation::get_document_version::GetDocumentVersionOutput::metadata): <p>The version metadata.</p>
    ///   - [`custom_metadata(Option<HashMap::<String, String>>)`](crate::operation::get_document_version::GetDocumentVersionOutput::custom_metadata): <p>The custom metadata on the document version.</p>
    /// - On failure, responds with [`SdkError<GetDocumentVersionError>`](crate::operation::get_document_version::GetDocumentVersionError)
    pub fn get_document_version(&self) -> crate::operation::get_document_version::builders::GetDocumentVersionFluentBuilder {
        crate::operation::get_document_version::builders::GetDocumentVersionFluentBuilder::new(self.handle.clone())
    }
}