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 [`GetVocabulary`](crate::operation::get_vocabulary::builders::GetVocabularyFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`vocabulary_name(impl Into<String>)`](crate::operation::get_vocabulary::builders::GetVocabularyFluentBuilder::vocabulary_name) / [`set_vocabulary_name(Option<String>)`](crate::operation::get_vocabulary::builders::GetVocabularyFluentBuilder::set_vocabulary_name):<br>required: **true**<br><p>The name of the custom vocabulary you want information about. Custom vocabulary names are case sensitive.</p><br>
    /// - On success, responds with [`GetVocabularyOutput`](crate::operation::get_vocabulary::GetVocabularyOutput) with field(s):
    ///   - [`vocabulary_name(Option<String>)`](crate::operation::get_vocabulary::GetVocabularyOutput::vocabulary_name): <p>The name of the custom vocabulary you requested information about.</p>
    ///   - [`language_code(Option<LanguageCode>)`](crate::operation::get_vocabulary::GetVocabularyOutput::language_code): <p>The language code you selected for your custom vocabulary.</p>
    ///   - [`vocabulary_state(Option<VocabularyState>)`](crate::operation::get_vocabulary::GetVocabularyOutput::vocabulary_state): <p>The processing state of your custom vocabulary. If the state is <code>READY</code>, you can use the custom vocabulary in a <code>StartTranscriptionJob</code> request.</p>
    ///   - [`last_modified_time(Option<DateTime>)`](crate::operation::get_vocabulary::GetVocabularyOutput::last_modified_time): <p>The date and time the specified custom vocabulary was last modified.</p> <p>Timestamps are in the format <code>YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC</code>. For example, <code>2022-05-04T12:32:58.761000-07:00</code> represents 12:32 PM UTC-7 on May 4, 2022.</p>
    ///   - [`failure_reason(Option<String>)`](crate::operation::get_vocabulary::GetVocabularyOutput::failure_reason): <p>If <code>VocabularyState</code> is <code>FAILED</code>, <code>FailureReason</code> contains information about why the custom vocabulary request failed. See also: <a href="https://docs.aws.amazon.com/transcribe/latest/APIReference/CommonErrors.html">Common Errors</a>.</p>
    ///   - [`download_uri(Option<String>)`](crate::operation::get_vocabulary::GetVocabularyOutput::download_uri): <p>The Amazon S3 location where the custom vocabulary is stored; use this URI to view or download the custom vocabulary.</p>
    /// - On failure, responds with [`SdkError<GetVocabularyError>`](crate::operation::get_vocabulary::GetVocabularyError)
    pub fn get_vocabulary(&self) -> crate::operation::get_vocabulary::builders::GetVocabularyFluentBuilder {
        crate::operation::get_vocabulary::builders::GetVocabularyFluentBuilder::new(self.handle.clone())
    }
}