/** * 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 Translate { namespace Model { class TranslateTextResult { public: AWS_TRANSLATE_API TranslateTextResult(); AWS_TRANSLATE_API TranslateTextResult(const Aws::AmazonWebServiceResult& result); AWS_TRANSLATE_API TranslateTextResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The translated text.

*/ inline const Aws::String& GetTranslatedText() const{ return m_translatedText; } /** *

The translated text.

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

The translated text.

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

The translated text.

*/ inline void SetTranslatedText(const char* value) { m_translatedText.assign(value); } /** *

The translated text.

*/ inline TranslateTextResult& WithTranslatedText(const Aws::String& value) { SetTranslatedText(value); return *this;} /** *

The translated text.

*/ inline TranslateTextResult& WithTranslatedText(Aws::String&& value) { SetTranslatedText(std::move(value)); return *this;} /** *

The translated text.

*/ inline TranslateTextResult& WithTranslatedText(const char* value) { SetTranslatedText(value); return *this;} /** *

The language code for the language of the source text.

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

The language code for the language of the source text.

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

The language code for the language of the source text.

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

The language code for the language of the source text.

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

The language code for the language of the source text.

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

The language code for the language of the source text.

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

The language code for the language of the source text.

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

The language code for the language of the target text.

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

The language code for the language of the target text.

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

The language code for the language of the target text.

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

The language code for the language of the target text.

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

The language code for the language of the target text.

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

The language code for the language of the target text.

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

The language code for the language of the target text.

*/ inline TranslateTextResult& WithTargetLanguageCode(const char* value) { SetTargetLanguageCode(value); return *this;} /** *

The names of the custom terminologies applied to the input text by Amazon * Translate for the translated text response.

*/ inline const Aws::Vector& GetAppliedTerminologies() const{ return m_appliedTerminologies; } /** *

The names of the custom terminologies applied to the input text by Amazon * Translate for the translated text response.

*/ inline void SetAppliedTerminologies(const Aws::Vector& value) { m_appliedTerminologies = value; } /** *

The names of the custom terminologies applied to the input text by Amazon * Translate for the translated text response.

*/ inline void SetAppliedTerminologies(Aws::Vector&& value) { m_appliedTerminologies = std::move(value); } /** *

The names of the custom terminologies applied to the input text by Amazon * Translate for the translated text response.

*/ inline TranslateTextResult& WithAppliedTerminologies(const Aws::Vector& value) { SetAppliedTerminologies(value); return *this;} /** *

The names of the custom terminologies applied to the input text by Amazon * Translate for the translated text response.

*/ inline TranslateTextResult& WithAppliedTerminologies(Aws::Vector&& value) { SetAppliedTerminologies(std::move(value)); return *this;} /** *

The names of the custom terminologies applied to the input text by Amazon * Translate for the translated text response.

*/ inline TranslateTextResult& AddAppliedTerminologies(const AppliedTerminology& value) { m_appliedTerminologies.push_back(value); return *this; } /** *

The names of the custom terminologies applied to the input text by Amazon * Translate for the translated text response.

*/ inline TranslateTextResult& AddAppliedTerminologies(AppliedTerminology&& value) { m_appliedTerminologies.push_back(std::move(value)); return *this; } /** *

Optional settings that modify the translation output.

*/ inline const TranslationSettings& GetAppliedSettings() const{ return m_appliedSettings; } /** *

Optional settings that modify the translation output.

*/ inline void SetAppliedSettings(const TranslationSettings& value) { m_appliedSettings = value; } /** *

Optional settings that modify the translation output.

*/ inline void SetAppliedSettings(TranslationSettings&& value) { m_appliedSettings = std::move(value); } /** *

Optional settings that modify the translation output.

*/ inline TranslateTextResult& WithAppliedSettings(const TranslationSettings& value) { SetAppliedSettings(value); return *this;} /** *

Optional settings that modify the translation output.

*/ inline TranslateTextResult& WithAppliedSettings(TranslationSettings&& value) { SetAppliedSettings(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline TranslateTextResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline TranslateTextResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline TranslateTextResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_translatedText; Aws::String m_sourceLanguageCode; Aws::String m_targetLanguageCode; Aws::Vector m_appliedTerminologies; TranslationSettings m_appliedSettings; Aws::String m_requestId; }; } // namespace Model } // namespace Translate } // namespace Aws