/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace TranscribeService { namespace Model { class AWS_TRANSCRIBESERVICE_API GetVocabularyResult { public: GetVocabularyResult(); GetVocabularyResult(const Aws::AmazonWebServiceResult& result); GetVocabularyResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The name of the vocabulary to return.

*/ inline const Aws::String& GetVocabularyName() const{ return m_vocabularyName; } /** *

The name of the vocabulary to return.

*/ inline void SetVocabularyName(const Aws::String& value) { m_vocabularyName = value; } /** *

The name of the vocabulary to return.

*/ inline void SetVocabularyName(Aws::String&& value) { m_vocabularyName = std::move(value); } /** *

The name of the vocabulary to return.

*/ inline void SetVocabularyName(const char* value) { m_vocabularyName.assign(value); } /** *

The name of the vocabulary to return.

*/ inline GetVocabularyResult& WithVocabularyName(const Aws::String& value) { SetVocabularyName(value); return *this;} /** *

The name of the vocabulary to return.

*/ inline GetVocabularyResult& WithVocabularyName(Aws::String&& value) { SetVocabularyName(std::move(value)); return *this;} /** *

The name of the vocabulary to return.

*/ inline GetVocabularyResult& WithVocabularyName(const char* value) { SetVocabularyName(value); return *this;} /** *

The language code of the vocabulary entries.

*/ inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; } /** *

The language code of the vocabulary entries.

*/ inline void SetLanguageCode(const LanguageCode& value) { m_languageCode = value; } /** *

The language code of the vocabulary entries.

*/ inline void SetLanguageCode(LanguageCode&& value) { m_languageCode = std::move(value); } /** *

The language code of the vocabulary entries.

*/ inline GetVocabularyResult& WithLanguageCode(const LanguageCode& value) { SetLanguageCode(value); return *this;} /** *

The language code of the vocabulary entries.

*/ inline GetVocabularyResult& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;} /** *

The processing state of the vocabulary.

*/ inline const VocabularyState& GetVocabularyState() const{ return m_vocabularyState; } /** *

The processing state of the vocabulary.

*/ inline void SetVocabularyState(const VocabularyState& value) { m_vocabularyState = value; } /** *

The processing state of the vocabulary.

*/ inline void SetVocabularyState(VocabularyState&& value) { m_vocabularyState = std::move(value); } /** *

The processing state of the vocabulary.

*/ inline GetVocabularyResult& WithVocabularyState(const VocabularyState& value) { SetVocabularyState(value); return *this;} /** *

The processing state of the vocabulary.

*/ inline GetVocabularyResult& WithVocabularyState(VocabularyState&& value) { SetVocabularyState(std::move(value)); return *this;} /** *

The date and time that the vocabulary was last modified.

*/ inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; } /** *

The date and time that the vocabulary was last modified.

*/ inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTime = value; } /** *

The date and time that the vocabulary was last modified.

*/ inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTime = std::move(value); } /** *

The date and time that the vocabulary was last modified.

*/ inline GetVocabularyResult& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;} /** *

The date and time that the vocabulary was last modified.

*/ inline GetVocabularyResult& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;} /** *

If the VocabularyState field is FAILED, this field * contains information about why the job failed.

*/ inline const Aws::String& GetFailureReason() const{ return m_failureReason; } /** *

If the VocabularyState field is FAILED, this field * contains information about why the job failed.

*/ inline void SetFailureReason(const Aws::String& value) { m_failureReason = value; } /** *

If the VocabularyState field is FAILED, this field * contains information about why the job failed.

*/ inline void SetFailureReason(Aws::String&& value) { m_failureReason = std::move(value); } /** *

If the VocabularyState field is FAILED, this field * contains information about why the job failed.

*/ inline void SetFailureReason(const char* value) { m_failureReason.assign(value); } /** *

If the VocabularyState field is FAILED, this field * contains information about why the job failed.

*/ inline GetVocabularyResult& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;} /** *

If the VocabularyState field is FAILED, this field * contains information about why the job failed.

*/ inline GetVocabularyResult& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;} /** *

If the VocabularyState field is FAILED, this field * contains information about why the job failed.

*/ inline GetVocabularyResult& WithFailureReason(const char* value) { SetFailureReason(value); return *this;} /** *

The S3 location where the vocabulary is stored. Use this URI to get the * contents of the vocabulary. The URI is available for a limited time.

*/ inline const Aws::String& GetDownloadUri() const{ return m_downloadUri; } /** *

The S3 location where the vocabulary is stored. Use this URI to get the * contents of the vocabulary. The URI is available for a limited time.

*/ inline void SetDownloadUri(const Aws::String& value) { m_downloadUri = value; } /** *

The S3 location where the vocabulary is stored. Use this URI to get the * contents of the vocabulary. The URI is available for a limited time.

*/ inline void SetDownloadUri(Aws::String&& value) { m_downloadUri = std::move(value); } /** *

The S3 location where the vocabulary is stored. Use this URI to get the * contents of the vocabulary. The URI is available for a limited time.

*/ inline void SetDownloadUri(const char* value) { m_downloadUri.assign(value); } /** *

The S3 location where the vocabulary is stored. Use this URI to get the * contents of the vocabulary. The URI is available for a limited time.

*/ inline GetVocabularyResult& WithDownloadUri(const Aws::String& value) { SetDownloadUri(value); return *this;} /** *

The S3 location where the vocabulary is stored. Use this URI to get the * contents of the vocabulary. The URI is available for a limited time.

*/ inline GetVocabularyResult& WithDownloadUri(Aws::String&& value) { SetDownloadUri(std::move(value)); return *this;} /** *

The S3 location where the vocabulary is stored. Use this URI to get the * contents of the vocabulary. The URI is available for a limited time.

*/ inline GetVocabularyResult& WithDownloadUri(const char* value) { SetDownloadUri(value); return *this;} private: Aws::String m_vocabularyName; LanguageCode m_languageCode; VocabularyState m_vocabularyState; Aws::Utils::DateTime m_lastModifiedTime; Aws::String m_failureReason; Aws::String m_downloadUri; }; } // namespace Model } // namespace TranscribeService } // namespace Aws