1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/translate/Translate_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSString.h> 9 #include <utility> 10 11 namespace Aws 12 { 13 namespace Utils 14 { 15 namespace Json 16 { 17 class JsonValue; 18 class JsonView; 19 } // namespace Json 20 } // namespace Utils 21 namespace Translate 22 { 23 namespace Model 24 { 25 26 /** 27 * <p>The term being translated by the custom terminology.</p><p><h3>See Also:</h3> 28 * <a href="http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/Term">AWS 29 * API Reference</a></p> 30 */ 31 class AWS_TRANSLATE_API Term 32 { 33 public: 34 Term(); 35 Term(Aws::Utils::Json::JsonView jsonValue); 36 Term& operator=(Aws::Utils::Json::JsonView jsonValue); 37 Aws::Utils::Json::JsonValue Jsonize() const; 38 39 40 /** 41 * <p>The source text of the term being translated by the custom terminology.</p> 42 */ GetSourceText()43 inline const Aws::String& GetSourceText() const{ return m_sourceText; } 44 45 /** 46 * <p>The source text of the term being translated by the custom terminology.</p> 47 */ SourceTextHasBeenSet()48 inline bool SourceTextHasBeenSet() const { return m_sourceTextHasBeenSet; } 49 50 /** 51 * <p>The source text of the term being translated by the custom terminology.</p> 52 */ SetSourceText(const Aws::String & value)53 inline void SetSourceText(const Aws::String& value) { m_sourceTextHasBeenSet = true; m_sourceText = value; } 54 55 /** 56 * <p>The source text of the term being translated by the custom terminology.</p> 57 */ SetSourceText(Aws::String && value)58 inline void SetSourceText(Aws::String&& value) { m_sourceTextHasBeenSet = true; m_sourceText = std::move(value); } 59 60 /** 61 * <p>The source text of the term being translated by the custom terminology.</p> 62 */ SetSourceText(const char * value)63 inline void SetSourceText(const char* value) { m_sourceTextHasBeenSet = true; m_sourceText.assign(value); } 64 65 /** 66 * <p>The source text of the term being translated by the custom terminology.</p> 67 */ WithSourceText(const Aws::String & value)68 inline Term& WithSourceText(const Aws::String& value) { SetSourceText(value); return *this;} 69 70 /** 71 * <p>The source text of the term being translated by the custom terminology.</p> 72 */ WithSourceText(Aws::String && value)73 inline Term& WithSourceText(Aws::String&& value) { SetSourceText(std::move(value)); return *this;} 74 75 /** 76 * <p>The source text of the term being translated by the custom terminology.</p> 77 */ WithSourceText(const char * value)78 inline Term& WithSourceText(const char* value) { SetSourceText(value); return *this;} 79 80 81 /** 82 * <p>The target text of the term being translated by the custom terminology.</p> 83 */ GetTargetText()84 inline const Aws::String& GetTargetText() const{ return m_targetText; } 85 86 /** 87 * <p>The target text of the term being translated by the custom terminology.</p> 88 */ TargetTextHasBeenSet()89 inline bool TargetTextHasBeenSet() const { return m_targetTextHasBeenSet; } 90 91 /** 92 * <p>The target text of the term being translated by the custom terminology.</p> 93 */ SetTargetText(const Aws::String & value)94 inline void SetTargetText(const Aws::String& value) { m_targetTextHasBeenSet = true; m_targetText = value; } 95 96 /** 97 * <p>The target text of the term being translated by the custom terminology.</p> 98 */ SetTargetText(Aws::String && value)99 inline void SetTargetText(Aws::String&& value) { m_targetTextHasBeenSet = true; m_targetText = std::move(value); } 100 101 /** 102 * <p>The target text of the term being translated by the custom terminology.</p> 103 */ SetTargetText(const char * value)104 inline void SetTargetText(const char* value) { m_targetTextHasBeenSet = true; m_targetText.assign(value); } 105 106 /** 107 * <p>The target text of the term being translated by the custom terminology.</p> 108 */ WithTargetText(const Aws::String & value)109 inline Term& WithTargetText(const Aws::String& value) { SetTargetText(value); return *this;} 110 111 /** 112 * <p>The target text of the term being translated by the custom terminology.</p> 113 */ WithTargetText(Aws::String && value)114 inline Term& WithTargetText(Aws::String&& value) { SetTargetText(std::move(value)); return *this;} 115 116 /** 117 * <p>The target text of the term being translated by the custom terminology.</p> 118 */ WithTargetText(const char * value)119 inline Term& WithTargetText(const char* value) { SetTargetText(value); return *this;} 120 121 private: 122 123 Aws::String m_sourceText; 124 bool m_sourceTextHasBeenSet; 125 126 Aws::String m_targetText; 127 bool m_targetTextHasBeenSet; 128 }; 129 130 } // namespace Model 131 } // namespace Translate 132 } // namespace Aws 133