/** * 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 { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace TranscribeService { namespace Model { /** *

Provides information about a custom vocabulary, including the language of the * custom vocabulary, when it was last modified, its name, and the processing * state.

See Also:

AWS * API Reference

*/ class VocabularyInfo { public: AWS_TRANSCRIBESERVICE_API VocabularyInfo(); AWS_TRANSCRIBESERVICE_API VocabularyInfo(Aws::Utils::Json::JsonView jsonValue); AWS_TRANSCRIBESERVICE_API VocabularyInfo& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_TRANSCRIBESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

A unique name, chosen by you, for your custom vocabulary. This name is case * sensitive, cannot contain spaces, and must be unique within an Amazon Web * Services account.

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

A unique name, chosen by you, for your custom vocabulary. This name is case * sensitive, cannot contain spaces, and must be unique within an Amazon Web * Services account.

*/ inline bool VocabularyNameHasBeenSet() const { return m_vocabularyNameHasBeenSet; } /** *

A unique name, chosen by you, for your custom vocabulary. This name is case * sensitive, cannot contain spaces, and must be unique within an Amazon Web * Services account.

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

A unique name, chosen by you, for your custom vocabulary. This name is case * sensitive, cannot contain spaces, and must be unique within an Amazon Web * Services account.

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

A unique name, chosen by you, for your custom vocabulary. This name is case * sensitive, cannot contain spaces, and must be unique within an Amazon Web * Services account.

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

A unique name, chosen by you, for your custom vocabulary. This name is case * sensitive, cannot contain spaces, and must be unique within an Amazon Web * Services account.

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

A unique name, chosen by you, for your custom vocabulary. This name is case * sensitive, cannot contain spaces, and must be unique within an Amazon Web * Services account.

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

A unique name, chosen by you, for your custom vocabulary. This name is case * sensitive, cannot contain spaces, and must be unique within an Amazon Web * Services account.

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

The language code used to create your custom vocabulary. Each custom * vocabulary must contain terms in only one language.

A custom vocabulary * can only be used to transcribe files in the same language as the custom * vocabulary. For example, if you create a custom vocabulary using US English * (en-US), you can only apply this custom vocabulary to files that * contain English audio.

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

The language code used to create your custom vocabulary. Each custom * vocabulary must contain terms in only one language.

A custom vocabulary * can only be used to transcribe files in the same language as the custom * vocabulary. For example, if you create a custom vocabulary using US English * (en-US), you can only apply this custom vocabulary to files that * contain English audio.

*/ inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; } /** *

The language code used to create your custom vocabulary. Each custom * vocabulary must contain terms in only one language.

A custom vocabulary * can only be used to transcribe files in the same language as the custom * vocabulary. For example, if you create a custom vocabulary using US English * (en-US), you can only apply this custom vocabulary to files that * contain English audio.

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

The language code used to create your custom vocabulary. Each custom * vocabulary must contain terms in only one language.

A custom vocabulary * can only be used to transcribe files in the same language as the custom * vocabulary. For example, if you create a custom vocabulary using US English * (en-US), you can only apply this custom vocabulary to files that * contain English audio.

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

The language code used to create your custom vocabulary. Each custom * vocabulary must contain terms in only one language.

A custom vocabulary * can only be used to transcribe files in the same language as the custom * vocabulary. For example, if you create a custom vocabulary using US English * (en-US), you can only apply this custom vocabulary to files that * contain English audio.

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

The language code used to create your custom vocabulary. Each custom * vocabulary must contain terms in only one language.

A custom vocabulary * can only be used to transcribe files in the same language as the custom * vocabulary. For example, if you create a custom vocabulary using US English * (en-US), you can only apply this custom vocabulary to files that * contain English audio.

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

The date and time the specified custom vocabulary was last modified.

*

Timestamps are in the format YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC. * For example, 2022-05-04T12:32:58.761000-07:00 represents 12:32 PM * UTC-7 on May 4, 2022.

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

The date and time the specified custom vocabulary was last modified.

*

Timestamps are in the format YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC. * For example, 2022-05-04T12:32:58.761000-07:00 represents 12:32 PM * UTC-7 on May 4, 2022.

*/ inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; } /** *

The date and time the specified custom vocabulary was last modified.

*

Timestamps are in the format YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC. * For example, 2022-05-04T12:32:58.761000-07:00 represents 12:32 PM * UTC-7 on May 4, 2022.

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

The date and time the specified custom vocabulary was last modified.

*

Timestamps are in the format YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC. * For example, 2022-05-04T12:32:58.761000-07:00 represents 12:32 PM * UTC-7 on May 4, 2022.

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

The date and time the specified custom vocabulary was last modified.

*

Timestamps are in the format YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC. * For example, 2022-05-04T12:32:58.761000-07:00 represents 12:32 PM * UTC-7 on May 4, 2022.

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

The date and time the specified custom vocabulary was last modified.

*

Timestamps are in the format YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC. * For example, 2022-05-04T12:32:58.761000-07:00 represents 12:32 PM * UTC-7 on May 4, 2022.

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

The processing state of your custom vocabulary. If the state is * READY, you can use the custom vocabulary in a * StartTranscriptionJob request.

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

The processing state of your custom vocabulary. If the state is * READY, you can use the custom vocabulary in a * StartTranscriptionJob request.

*/ inline bool VocabularyStateHasBeenSet() const { return m_vocabularyStateHasBeenSet; } /** *

The processing state of your custom vocabulary. If the state is * READY, you can use the custom vocabulary in a * StartTranscriptionJob request.

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

The processing state of your custom vocabulary. If the state is * READY, you can use the custom vocabulary in a * StartTranscriptionJob request.

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

The processing state of your custom vocabulary. If the state is * READY, you can use the custom vocabulary in a * StartTranscriptionJob request.

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

The processing state of your custom vocabulary. If the state is * READY, you can use the custom vocabulary in a * StartTranscriptionJob request.

*/ inline VocabularyInfo& WithVocabularyState(VocabularyState&& value) { SetVocabularyState(std::move(value)); return *this;} private: Aws::String m_vocabularyName; bool m_vocabularyNameHasBeenSet = false; LanguageCode m_languageCode; bool m_languageCodeHasBeenSet = false; Aws::Utils::DateTime m_lastModifiedTime; bool m_lastModifiedTimeHasBeenSet = false; VocabularyState m_vocabularyState; bool m_vocabularyStateHasBeenSet = false; }; } // namespace Model } // namespace TranscribeService } // namespace Aws