aws_sdk_workdocs/client/get_document_version.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 [`GetDocumentVersion`](crate::operation::get_document_version::builders::GetDocumentVersionFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`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>
7 /// - [`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>
8 /// - [`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>
9 /// - [`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>
10 /// - [`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>
11 /// - On success, responds with [`GetDocumentVersionOutput`](crate::operation::get_document_version::GetDocumentVersionOutput) with field(s):
12 /// - [`metadata(Option<DocumentVersionMetadata>)`](crate::operation::get_document_version::GetDocumentVersionOutput::metadata): <p>The version metadata.</p>
13 /// - [`custom_metadata(Option<HashMap::<String, String>>)`](crate::operation::get_document_version::GetDocumentVersionOutput::custom_metadata): <p>The custom metadata on the document version.</p>
14 /// - On failure, responds with [`SdkError<GetDocumentVersionError>`](crate::operation::get_document_version::GetDocumentVersionError)
15 pub fn get_document_version(&self) -> crate::operation::get_document_version::builders::GetDocumentVersionFluentBuilder {
16 crate::operation::get_document_version::builders::GetDocumentVersionFluentBuilder::new(self.handle.clone())
17 }
18}