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

The document containing the translated content. The document format matches * the source document format.

*/ inline const TranslatedDocument& GetTranslatedDocument() const{ return m_translatedDocument; } /** *

The document containing the translated content. The document format matches * the source document format.

*/ inline void SetTranslatedDocument(const TranslatedDocument& value) { m_translatedDocument = value; } /** *

The document containing the translated content. The document format matches * the source document format.

*/ inline void SetTranslatedDocument(TranslatedDocument&& value) { m_translatedDocument = std::move(value); } /** *

The document containing the translated content. The document format matches * the source document format.

*/ inline TranslateDocumentResult& WithTranslatedDocument(const TranslatedDocument& value) { SetTranslatedDocument(value); return *this;} /** *

The document containing the translated content. The document format matches * the source document format.

*/ inline TranslateDocumentResult& WithTranslatedDocument(TranslatedDocument&& value) { SetTranslatedDocument(std::move(value)); return *this;} /** *

The language code of the source document.

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

The language code of the source document.

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

The language code of the source document.

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

The language code of the source document.

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

The language code of the source document.

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

The language code of the source document.

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

The language code of the source document.

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

The language code of the translated document.

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

The language code of the translated document.

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

The language code of the translated document.

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

The language code of the translated document.

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

The language code of the translated document.

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

The language code of the translated document.

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

The language code of the translated document.

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

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

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

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

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

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

*/ 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 to produce the translated text document.

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

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

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

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

*/ inline TranslateDocumentResult& 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 to produce the translated text document.

*/ inline TranslateDocumentResult& AddAppliedTerminologies(AppliedTerminology&& value) { m_appliedTerminologies.push_back(std::move(value)); return *this; } inline const TranslationSettings& GetAppliedSettings() const{ return m_appliedSettings; } inline void SetAppliedSettings(const TranslationSettings& value) { m_appliedSettings = value; } inline void SetAppliedSettings(TranslationSettings&& value) { m_appliedSettings = std::move(value); } inline TranslateDocumentResult& WithAppliedSettings(const TranslationSettings& value) { SetAppliedSettings(value); return *this;} inline TranslateDocumentResult& 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 TranslateDocumentResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline TranslateDocumentResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline TranslateDocumentResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: TranslatedDocument m_translatedDocument; 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