/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Translate { namespace Model { /** *

The term being translated by the custom terminology.

See Also:

* AWS * API Reference

*/ class Term { public: AWS_TRANSLATE_API Term(); AWS_TRANSLATE_API Term(Aws::Utils::Json::JsonView jsonValue); AWS_TRANSLATE_API Term& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_TRANSLATE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The source text of the term being translated by the custom terminology.

*/ inline const Aws::String& GetSourceText() const{ return m_sourceText; } /** *

The source text of the term being translated by the custom terminology.

*/ inline bool SourceTextHasBeenSet() const { return m_sourceTextHasBeenSet; } /** *

The source text of the term being translated by the custom terminology.

*/ inline void SetSourceText(const Aws::String& value) { m_sourceTextHasBeenSet = true; m_sourceText = value; } /** *

The source text of the term being translated by the custom terminology.

*/ inline void SetSourceText(Aws::String&& value) { m_sourceTextHasBeenSet = true; m_sourceText = std::move(value); } /** *

The source text of the term being translated by the custom terminology.

*/ inline void SetSourceText(const char* value) { m_sourceTextHasBeenSet = true; m_sourceText.assign(value); } /** *

The source text of the term being translated by the custom terminology.

*/ inline Term& WithSourceText(const Aws::String& value) { SetSourceText(value); return *this;} /** *

The source text of the term being translated by the custom terminology.

*/ inline Term& WithSourceText(Aws::String&& value) { SetSourceText(std::move(value)); return *this;} /** *

The source text of the term being translated by the custom terminology.

*/ inline Term& WithSourceText(const char* value) { SetSourceText(value); return *this;} /** *

The target text of the term being translated by the custom terminology.

*/ inline const Aws::String& GetTargetText() const{ return m_targetText; } /** *

The target text of the term being translated by the custom terminology.

*/ inline bool TargetTextHasBeenSet() const { return m_targetTextHasBeenSet; } /** *

The target text of the term being translated by the custom terminology.

*/ inline void SetTargetText(const Aws::String& value) { m_targetTextHasBeenSet = true; m_targetText = value; } /** *

The target text of the term being translated by the custom terminology.

*/ inline void SetTargetText(Aws::String&& value) { m_targetTextHasBeenSet = true; m_targetText = std::move(value); } /** *

The target text of the term being translated by the custom terminology.

*/ inline void SetTargetText(const char* value) { m_targetTextHasBeenSet = true; m_targetText.assign(value); } /** *

The target text of the term being translated by the custom terminology.

*/ inline Term& WithTargetText(const Aws::String& value) { SetTargetText(value); return *this;} /** *

The target text of the term being translated by the custom terminology.

*/ inline Term& WithTargetText(Aws::String&& value) { SetTargetText(std::move(value)); return *this;} /** *

The target text of the term being translated by the custom terminology.

*/ inline Term& WithTargetText(const char* value) { SetTargetText(value); return *this;} private: Aws::String m_sourceText; bool m_sourceTextHasBeenSet = false; Aws::String m_targetText; bool m_targetTextHasBeenSet = false; }; } // namespace Model } // namespace Translate } // namespace Aws