/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace TranscribeService { namespace Model { /** */ class AWS_TRANSCRIBESERVICE_API CreateLanguageModelRequest : public TranscribeServiceRequest { public: CreateLanguageModelRequest(); // 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 "CreateLanguageModel"; } Aws::String SerializePayload() const override; Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The language of the input text you're using to train your custom language * model.

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

The language of the input text you're using to train your custom language * model.

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

The language of the input text you're using to train your custom language * model.

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

The language of the input text you're using to train your custom language * model.

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

The language of the input text you're using to train your custom language * model.

*/ inline CreateLanguageModelRequest& WithLanguageCode(const CLMLanguageCode& value) { SetLanguageCode(value); return *this;} /** *

The language of the input text you're using to train your custom language * model.

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

The Amazon Transcribe standard language model, or base model used to create * your custom language model.

If you want to use your custom language model * to transcribe audio with a sample rate of 16 kHz or greater, choose * Wideband.

If you want to use your custom language model to * transcribe audio with a sample rate that is less than 16 kHz, choose * Narrowband.

*/ inline const BaseModelName& GetBaseModelName() const{ return m_baseModelName; } /** *

The Amazon Transcribe standard language model, or base model used to create * your custom language model.

If you want to use your custom language model * to transcribe audio with a sample rate of 16 kHz or greater, choose * Wideband.

If you want to use your custom language model to * transcribe audio with a sample rate that is less than 16 kHz, choose * Narrowband.

*/ inline bool BaseModelNameHasBeenSet() const { return m_baseModelNameHasBeenSet; } /** *

The Amazon Transcribe standard language model, or base model used to create * your custom language model.

If you want to use your custom language model * to transcribe audio with a sample rate of 16 kHz or greater, choose * Wideband.

If you want to use your custom language model to * transcribe audio with a sample rate that is less than 16 kHz, choose * Narrowband.

*/ inline void SetBaseModelName(const BaseModelName& value) { m_baseModelNameHasBeenSet = true; m_baseModelName = value; } /** *

The Amazon Transcribe standard language model, or base model used to create * your custom language model.

If you want to use your custom language model * to transcribe audio with a sample rate of 16 kHz or greater, choose * Wideband.

If you want to use your custom language model to * transcribe audio with a sample rate that is less than 16 kHz, choose * Narrowband.

*/ inline void SetBaseModelName(BaseModelName&& value) { m_baseModelNameHasBeenSet = true; m_baseModelName = std::move(value); } /** *

The Amazon Transcribe standard language model, or base model used to create * your custom language model.

If you want to use your custom language model * to transcribe audio with a sample rate of 16 kHz or greater, choose * Wideband.

If you want to use your custom language model to * transcribe audio with a sample rate that is less than 16 kHz, choose * Narrowband.

*/ inline CreateLanguageModelRequest& WithBaseModelName(const BaseModelName& value) { SetBaseModelName(value); return *this;} /** *

The Amazon Transcribe standard language model, or base model used to create * your custom language model.

If you want to use your custom language model * to transcribe audio with a sample rate of 16 kHz or greater, choose * Wideband.

If you want to use your custom language model to * transcribe audio with a sample rate that is less than 16 kHz, choose * Narrowband.

*/ inline CreateLanguageModelRequest& WithBaseModelName(BaseModelName&& value) { SetBaseModelName(std::move(value)); return *this;} /** *

The name you choose for your custom language model when you create it.

*/ inline const Aws::String& GetModelName() const{ return m_modelName; } /** *

The name you choose for your custom language model when you create it.

*/ inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; } /** *

The name you choose for your custom language model when you create it.

*/ inline void SetModelName(const Aws::String& value) { m_modelNameHasBeenSet = true; m_modelName = value; } /** *

The name you choose for your custom language model when you create it.

*/ inline void SetModelName(Aws::String&& value) { m_modelNameHasBeenSet = true; m_modelName = std::move(value); } /** *

The name you choose for your custom language model when you create it.

*/ inline void SetModelName(const char* value) { m_modelNameHasBeenSet = true; m_modelName.assign(value); } /** *

The name you choose for your custom language model when you create it.

*/ inline CreateLanguageModelRequest& WithModelName(const Aws::String& value) { SetModelName(value); return *this;} /** *

The name you choose for your custom language model when you create it.

*/ inline CreateLanguageModelRequest& WithModelName(Aws::String&& value) { SetModelName(std::move(value)); return *this;} /** *

The name you choose for your custom language model when you create it.

*/ inline CreateLanguageModelRequest& WithModelName(const char* value) { SetModelName(value); return *this;} /** *

Contains the data access role and the Amazon S3 prefixes to read the required * input files to create a custom language model.

*/ inline const InputDataConfig& GetInputDataConfig() const{ return m_inputDataConfig; } /** *

Contains the data access role and the Amazon S3 prefixes to read the required * input files to create a custom language model.

*/ inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; } /** *

Contains the data access role and the Amazon S3 prefixes to read the required * input files to create a custom language model.

*/ inline void SetInputDataConfig(const InputDataConfig& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = value; } /** *

Contains the data access role and the Amazon S3 prefixes to read the required * input files to create a custom language model.

*/ inline void SetInputDataConfig(InputDataConfig&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = std::move(value); } /** *

Contains the data access role and the Amazon S3 prefixes to read the required * input files to create a custom language model.

*/ inline CreateLanguageModelRequest& WithInputDataConfig(const InputDataConfig& value) { SetInputDataConfig(value); return *this;} /** *

Contains the data access role and the Amazon S3 prefixes to read the required * input files to create a custom language model.

*/ inline CreateLanguageModelRequest& WithInputDataConfig(InputDataConfig&& value) { SetInputDataConfig(std::move(value)); return *this;} private: CLMLanguageCode m_languageCode; bool m_languageCodeHasBeenSet; BaseModelName m_baseModelName; bool m_baseModelNameHasBeenSet; Aws::String m_modelName; bool m_modelNameHasBeenSet; InputDataConfig m_inputDataConfig; bool m_inputDataConfigHasBeenSet; }; } // namespace Model } // namespace TranscribeService } // namespace Aws