/** * 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 Translate { namespace Model { /** */ class TranslateDocumentRequest : public TranslateRequest { public: AWS_TRANSLATE_API TranslateDocumentRequest(); // 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 "TranslateDocument"; } AWS_TRANSLATE_API Aws::String SerializePayload() const override; AWS_TRANSLATE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The content and content type for the document to be translated. The document * size must not exceed 100 KB.

*/ inline const Document& GetDocument() const{ return m_document; } /** *

The content and content type for the document to be translated. The document * size must not exceed 100 KB.

*/ inline bool DocumentHasBeenSet() const { return m_documentHasBeenSet; } /** *

The content and content type for the document to be translated. The document * size must not exceed 100 KB.

*/ inline void SetDocument(const Document& value) { m_documentHasBeenSet = true; m_document = value; } /** *

The content and content type for the document to be translated. The document * size must not exceed 100 KB.

*/ inline void SetDocument(Document&& value) { m_documentHasBeenSet = true; m_document = std::move(value); } /** *

The content and content type for the document to be translated. The document * size must not exceed 100 KB.

*/ inline TranslateDocumentRequest& WithDocument(const Document& value) { SetDocument(value); return *this;} /** *

The content and content type for the document to be translated. The document * size must not exceed 100 KB.

*/ inline TranslateDocumentRequest& WithDocument(Document&& value) { SetDocument(std::move(value)); return *this;} /** *

The name of a terminology list file to add to the translation job. This file * provides source terms and the desired translation for each term. A terminology * list can contain a maximum of 256 terms. You can use one custom terminology * resource in your translation request.

Use the ListTerminologies * operation to get the available terminology lists.

For more information * about custom terminology lists, see Custom * terminology.

*/ inline const Aws::Vector& GetTerminologyNames() const{ return m_terminologyNames; } /** *

The name of a terminology list file to add to the translation job. This file * provides source terms and the desired translation for each term. A terminology * list can contain a maximum of 256 terms. You can use one custom terminology * resource in your translation request.

Use the ListTerminologies * operation to get the available terminology lists.

For more information * about custom terminology lists, see Custom * terminology.

*/ inline bool TerminologyNamesHasBeenSet() const { return m_terminologyNamesHasBeenSet; } /** *

The name of a terminology list file to add to the translation job. This file * provides source terms and the desired translation for each term. A terminology * list can contain a maximum of 256 terms. You can use one custom terminology * resource in your translation request.

Use the ListTerminologies * operation to get the available terminology lists.

For more information * about custom terminology lists, see Custom * terminology.

*/ inline void SetTerminologyNames(const Aws::Vector& value) { m_terminologyNamesHasBeenSet = true; m_terminologyNames = value; } /** *

The name of a terminology list file to add to the translation job. This file * provides source terms and the desired translation for each term. A terminology * list can contain a maximum of 256 terms. You can use one custom terminology * resource in your translation request.

Use the ListTerminologies * operation to get the available terminology lists.

For more information * about custom terminology lists, see Custom * terminology.

*/ inline void SetTerminologyNames(Aws::Vector&& value) { m_terminologyNamesHasBeenSet = true; m_terminologyNames = std::move(value); } /** *

The name of a terminology list file to add to the translation job. This file * provides source terms and the desired translation for each term. A terminology * list can contain a maximum of 256 terms. You can use one custom terminology * resource in your translation request.

Use the ListTerminologies * operation to get the available terminology lists.

For more information * about custom terminology lists, see Custom * terminology.

*/ inline TranslateDocumentRequest& WithTerminologyNames(const Aws::Vector& value) { SetTerminologyNames(value); return *this;} /** *

The name of a terminology list file to add to the translation job. This file * provides source terms and the desired translation for each term. A terminology * list can contain a maximum of 256 terms. You can use one custom terminology * resource in your translation request.

Use the ListTerminologies * operation to get the available terminology lists.

For more information * about custom terminology lists, see Custom * terminology.

*/ inline TranslateDocumentRequest& WithTerminologyNames(Aws::Vector&& value) { SetTerminologyNames(std::move(value)); return *this;} /** *

The name of a terminology list file to add to the translation job. This file * provides source terms and the desired translation for each term. A terminology * list can contain a maximum of 256 terms. You can use one custom terminology * resource in your translation request.

Use the ListTerminologies * operation to get the available terminology lists.

For more information * about custom terminology lists, see Custom * terminology.

*/ inline TranslateDocumentRequest& AddTerminologyNames(const Aws::String& value) { m_terminologyNamesHasBeenSet = true; m_terminologyNames.push_back(value); return *this; } /** *

The name of a terminology list file to add to the translation job. This file * provides source terms and the desired translation for each term. A terminology * list can contain a maximum of 256 terms. You can use one custom terminology * resource in your translation request.

Use the ListTerminologies * operation to get the available terminology lists.

For more information * about custom terminology lists, see Custom * terminology.

*/ inline TranslateDocumentRequest& AddTerminologyNames(Aws::String&& value) { m_terminologyNamesHasBeenSet = true; m_terminologyNames.push_back(std::move(value)); return *this; } /** *

The name of a terminology list file to add to the translation job. This file * provides source terms and the desired translation for each term. A terminology * list can contain a maximum of 256 terms. You can use one custom terminology * resource in your translation request.

Use the ListTerminologies * operation to get the available terminology lists.

For more information * about custom terminology lists, see Custom * terminology.

*/ inline TranslateDocumentRequest& AddTerminologyNames(const char* value) { m_terminologyNamesHasBeenSet = true; m_terminologyNames.push_back(value); return *this; } /** *

The language code for the language of the source text. Do not use * auto, because TranslateDocument does not support * language auto-detection. For a list of supported language codes, see Supported * languages.

*/ inline const Aws::String& GetSourceLanguageCode() const{ return m_sourceLanguageCode; } /** *

The language code for the language of the source text. Do not use * auto, because TranslateDocument does not support * language auto-detection. For a list of supported language codes, see Supported * languages.

*/ inline bool SourceLanguageCodeHasBeenSet() const { return m_sourceLanguageCodeHasBeenSet; } /** *

The language code for the language of the source text. Do not use * auto, because TranslateDocument does not support * language auto-detection. For a list of supported language codes, see Supported * languages.

*/ inline void SetSourceLanguageCode(const Aws::String& value) { m_sourceLanguageCodeHasBeenSet = true; m_sourceLanguageCode = value; } /** *

The language code for the language of the source text. Do not use * auto, because TranslateDocument does not support * language auto-detection. For a list of supported language codes, see Supported * languages.

*/ inline void SetSourceLanguageCode(Aws::String&& value) { m_sourceLanguageCodeHasBeenSet = true; m_sourceLanguageCode = std::move(value); } /** *

The language code for the language of the source text. Do not use * auto, because TranslateDocument does not support * language auto-detection. For a list of supported language codes, see Supported * languages.

*/ inline void SetSourceLanguageCode(const char* value) { m_sourceLanguageCodeHasBeenSet = true; m_sourceLanguageCode.assign(value); } /** *

The language code for the language of the source text. Do not use * auto, because TranslateDocument does not support * language auto-detection. For a list of supported language codes, see Supported * languages.

*/ inline TranslateDocumentRequest& WithSourceLanguageCode(const Aws::String& value) { SetSourceLanguageCode(value); return *this;} /** *

The language code for the language of the source text. Do not use * auto, because TranslateDocument does not support * language auto-detection. For a list of supported language codes, see Supported * languages.

*/ inline TranslateDocumentRequest& WithSourceLanguageCode(Aws::String&& value) { SetSourceLanguageCode(std::move(value)); return *this;} /** *

The language code for the language of the source text. Do not use * auto, because TranslateDocument does not support * language auto-detection. For a list of supported language codes, see Supported * languages.

*/ inline TranslateDocumentRequest& WithSourceLanguageCode(const char* value) { SetSourceLanguageCode(value); return *this;} /** *

The language code requested for the translated document. For a list of * supported language codes, see Supported * languages.

*/ inline const Aws::String& GetTargetLanguageCode() const{ return m_targetLanguageCode; } /** *

The language code requested for the translated document. For a list of * supported language codes, see Supported * languages.

*/ inline bool TargetLanguageCodeHasBeenSet() const { return m_targetLanguageCodeHasBeenSet; } /** *

The language code requested for the translated document. For a list of * supported language codes, see Supported * languages.

*/ inline void SetTargetLanguageCode(const Aws::String& value) { m_targetLanguageCodeHasBeenSet = true; m_targetLanguageCode = value; } /** *

The language code requested for the translated document. For a list of * supported language codes, see Supported * languages.

*/ inline void SetTargetLanguageCode(Aws::String&& value) { m_targetLanguageCodeHasBeenSet = true; m_targetLanguageCode = std::move(value); } /** *

The language code requested for the translated document. For a list of * supported language codes, see Supported * languages.

*/ inline void SetTargetLanguageCode(const char* value) { m_targetLanguageCodeHasBeenSet = true; m_targetLanguageCode.assign(value); } /** *

The language code requested for the translated document. For a list of * supported language codes, see Supported * languages.

*/ inline TranslateDocumentRequest& WithTargetLanguageCode(const Aws::String& value) { SetTargetLanguageCode(value); return *this;} /** *

The language code requested for the translated document. For a list of * supported language codes, see Supported * languages.

*/ inline TranslateDocumentRequest& WithTargetLanguageCode(Aws::String&& value) { SetTargetLanguageCode(std::move(value)); return *this;} /** *

The language code requested for the translated document. For a list of * supported language codes, see Supported * languages.

*/ inline TranslateDocumentRequest& WithTargetLanguageCode(const char* value) { SetTargetLanguageCode(value); return *this;} inline const TranslationSettings& GetSettings() const{ return m_settings; } inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; } inline void SetSettings(const TranslationSettings& value) { m_settingsHasBeenSet = true; m_settings = value; } inline void SetSettings(TranslationSettings&& value) { m_settingsHasBeenSet = true; m_settings = std::move(value); } inline TranslateDocumentRequest& WithSettings(const TranslationSettings& value) { SetSettings(value); return *this;} inline TranslateDocumentRequest& WithSettings(TranslationSettings&& value) { SetSettings(std::move(value)); return *this;} private: Document m_document; bool m_documentHasBeenSet = false; Aws::Vector m_terminologyNames; bool m_terminologyNamesHasBeenSet = false; Aws::String m_sourceLanguageCode; bool m_sourceLanguageCodeHasBeenSet = false; Aws::String m_targetLanguageCode; bool m_targetLanguageCodeHasBeenSet = false; TranslationSettings m_settings; bool m_settingsHasBeenSet = false; }; } // namespace Model } // namespace Translate } // namespace Aws