/** * 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 TranscribeService { namespace Model { /** */ class AWS_TRANSCRIBESERVICE_API UpdateVocabularyRequest : public TranscribeServiceRequest { public: UpdateVocabularyRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateVocabulary"; } Aws::String SerializePayload() const override; Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the vocabulary to update. The name is case sensitive. If you try * to update a vocabulary with the same name as a previous vocabulary you will * receive a ConflictException error.

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

The name of the vocabulary to update. The name is case sensitive. If you try * to update a vocabulary with the same name as a previous vocabulary you will * receive a ConflictException error.

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

The name of the vocabulary to update. The name is case sensitive. If you try * to update a vocabulary with the same name as a previous vocabulary you will * receive a ConflictException error.

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

The name of the vocabulary to update. The name is case sensitive. If you try * to update a vocabulary with the same name as a previous vocabulary you will * receive a ConflictException error.

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

The name of the vocabulary to update. The name is case sensitive. If you try * to update a vocabulary with the same name as a previous vocabulary you will * receive a ConflictException error.

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

The name of the vocabulary to update. The name is case sensitive. If you try * to update a vocabulary with the same name as a previous vocabulary you will * receive a ConflictException error.

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

The name of the vocabulary to update. The name is case sensitive. If you try * to update a vocabulary with the same name as a previous vocabulary you will * receive a ConflictException error.

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

The name of the vocabulary to update. The name is case sensitive. If you try * to update a vocabulary with the same name as a previous vocabulary you will * receive a ConflictException error.

*/ inline UpdateVocabularyRequest& 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 bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; } /** *

The language code of the vocabulary entries.

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

The language code of the vocabulary entries.

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

The language code of the vocabulary entries.

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

The language code of the vocabulary entries.

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

An array of strings containing the vocabulary entries.

*/ inline const Aws::Vector& GetPhrases() const{ return m_phrases; } /** *

An array of strings containing the vocabulary entries.

*/ inline bool PhrasesHasBeenSet() const { return m_phrasesHasBeenSet; } /** *

An array of strings containing the vocabulary entries.

*/ inline void SetPhrases(const Aws::Vector& value) { m_phrasesHasBeenSet = true; m_phrases = value; } /** *

An array of strings containing the vocabulary entries.

*/ inline void SetPhrases(Aws::Vector&& value) { m_phrasesHasBeenSet = true; m_phrases = std::move(value); } /** *

An array of strings containing the vocabulary entries.

*/ inline UpdateVocabularyRequest& WithPhrases(const Aws::Vector& value) { SetPhrases(value); return *this;} /** *

An array of strings containing the vocabulary entries.

*/ inline UpdateVocabularyRequest& WithPhrases(Aws::Vector&& value) { SetPhrases(std::move(value)); return *this;} /** *

An array of strings containing the vocabulary entries.

*/ inline UpdateVocabularyRequest& AddPhrases(const Aws::String& value) { m_phrasesHasBeenSet = true; m_phrases.push_back(value); return *this; } /** *

An array of strings containing the vocabulary entries.

*/ inline UpdateVocabularyRequest& AddPhrases(Aws::String&& value) { m_phrasesHasBeenSet = true; m_phrases.push_back(std::move(value)); return *this; } /** *

An array of strings containing the vocabulary entries.

*/ inline UpdateVocabularyRequest& AddPhrases(const char* value) { m_phrasesHasBeenSet = true; m_phrases.push_back(value); return *this; } /** *

The S3 location of the text file that contains the definition of the custom * vocabulary. The URI must be in the same region as the API endpoint that you are * calling. The general form is

For example:

For more information * about S3 object names, see Object * Keys in the Amazon S3 Developer Guide.

For more information * about custom vocabularies, see Custom * Vocabularies.

*/ inline const Aws::String& GetVocabularyFileUri() const{ return m_vocabularyFileUri; } /** *

The S3 location of the text file that contains the definition of the custom * vocabulary. The URI must be in the same region as the API endpoint that you are * calling. The general form is

For example:

For more information * about S3 object names, see Object * Keys in the Amazon S3 Developer Guide.

For more information * about custom vocabularies, see Custom * Vocabularies.

*/ inline bool VocabularyFileUriHasBeenSet() const { return m_vocabularyFileUriHasBeenSet; } /** *

The S3 location of the text file that contains the definition of the custom * vocabulary. The URI must be in the same region as the API endpoint that you are * calling. The general form is

For example:

For more information * about S3 object names, see Object * Keys in the Amazon S3 Developer Guide.

For more information * about custom vocabularies, see Custom * Vocabularies.

*/ inline void SetVocabularyFileUri(const Aws::String& value) { m_vocabularyFileUriHasBeenSet = true; m_vocabularyFileUri = value; } /** *

The S3 location of the text file that contains the definition of the custom * vocabulary. The URI must be in the same region as the API endpoint that you are * calling. The general form is

For example:

For more information * about S3 object names, see Object * Keys in the Amazon S3 Developer Guide.

For more information * about custom vocabularies, see Custom * Vocabularies.

*/ inline void SetVocabularyFileUri(Aws::String&& value) { m_vocabularyFileUriHasBeenSet = true; m_vocabularyFileUri = std::move(value); } /** *

The S3 location of the text file that contains the definition of the custom * vocabulary. The URI must be in the same region as the API endpoint that you are * calling. The general form is

For example:

For more information * about S3 object names, see Object * Keys in the Amazon S3 Developer Guide.

For more information * about custom vocabularies, see Custom * Vocabularies.

*/ inline void SetVocabularyFileUri(const char* value) { m_vocabularyFileUriHasBeenSet = true; m_vocabularyFileUri.assign(value); } /** *

The S3 location of the text file that contains the definition of the custom * vocabulary. The URI must be in the same region as the API endpoint that you are * calling. The general form is

For example:

For more information * about S3 object names, see Object * Keys in the Amazon S3 Developer Guide.

For more information * about custom vocabularies, see Custom * Vocabularies.

*/ inline UpdateVocabularyRequest& WithVocabularyFileUri(const Aws::String& value) { SetVocabularyFileUri(value); return *this;} /** *

The S3 location of the text file that contains the definition of the custom * vocabulary. The URI must be in the same region as the API endpoint that you are * calling. The general form is

For example:

For more information * about S3 object names, see Object * Keys in the Amazon S3 Developer Guide.

For more information * about custom vocabularies, see Custom * Vocabularies.

*/ inline UpdateVocabularyRequest& WithVocabularyFileUri(Aws::String&& value) { SetVocabularyFileUri(std::move(value)); return *this;} /** *

The S3 location of the text file that contains the definition of the custom * vocabulary. The URI must be in the same region as the API endpoint that you are * calling. The general form is

For example:

For more information * about S3 object names, see Object * Keys in the Amazon S3 Developer Guide.

For more information * about custom vocabularies, see Custom * Vocabularies.

*/ inline UpdateVocabularyRequest& WithVocabularyFileUri(const char* value) { SetVocabularyFileUri(value); return *this;} private: Aws::String m_vocabularyName; bool m_vocabularyNameHasBeenSet; LanguageCode m_languageCode; bool m_languageCodeHasBeenSet; Aws::Vector m_phrases; bool m_phrasesHasBeenSet; Aws::String m_vocabularyFileUri; bool m_vocabularyFileUriHasBeenSet; }; } // namespace Model } // namespace TranscribeService } // namespace Aws