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

The custom terminology applied to the input text by Amazon Translate for the * translated text response. This is optional in the response and will only be * present if you specified terminology input in the request. Currently, only one * terminology can be applied per TranslateText request.

See Also:

* AWS * API Reference

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

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

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

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

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

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

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

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

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

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

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

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

*/ inline AppliedTerminology& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

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

*/ inline AppliedTerminology& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

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

*/ inline AppliedTerminology& WithName(const char* value) { SetName(value); return *this;} /** *

The specific terms of the custom terminology applied to the input text by * Amazon Translate for the translated text response. A maximum of 250 terms will * be returned, and the specific terms applied will be the first 250 terms in the * source text.

*/ inline const Aws::Vector& GetTerms() const{ return m_terms; } /** *

The specific terms of the custom terminology applied to the input text by * Amazon Translate for the translated text response. A maximum of 250 terms will * be returned, and the specific terms applied will be the first 250 terms in the * source text.

*/ inline bool TermsHasBeenSet() const { return m_termsHasBeenSet; } /** *

The specific terms of the custom terminology applied to the input text by * Amazon Translate for the translated text response. A maximum of 250 terms will * be returned, and the specific terms applied will be the first 250 terms in the * source text.

*/ inline void SetTerms(const Aws::Vector& value) { m_termsHasBeenSet = true; m_terms = value; } /** *

The specific terms of the custom terminology applied to the input text by * Amazon Translate for the translated text response. A maximum of 250 terms will * be returned, and the specific terms applied will be the first 250 terms in the * source text.

*/ inline void SetTerms(Aws::Vector&& value) { m_termsHasBeenSet = true; m_terms = std::move(value); } /** *

The specific terms of the custom terminology applied to the input text by * Amazon Translate for the translated text response. A maximum of 250 terms will * be returned, and the specific terms applied will be the first 250 terms in the * source text.

*/ inline AppliedTerminology& WithTerms(const Aws::Vector& value) { SetTerms(value); return *this;} /** *

The specific terms of the custom terminology applied to the input text by * Amazon Translate for the translated text response. A maximum of 250 terms will * be returned, and the specific terms applied will be the first 250 terms in the * source text.

*/ inline AppliedTerminology& WithTerms(Aws::Vector&& value) { SetTerms(std::move(value)); return *this;} /** *

The specific terms of the custom terminology applied to the input text by * Amazon Translate for the translated text response. A maximum of 250 terms will * be returned, and the specific terms applied will be the first 250 terms in the * source text.

*/ inline AppliedTerminology& AddTerms(const Term& value) { m_termsHasBeenSet = true; m_terms.push_back(value); return *this; } /** *

The specific terms of the custom terminology applied to the input text by * Amazon Translate for the translated text response. A maximum of 250 terms will * be returned, and the specific terms applied will be the first 250 terms in the * source text.

*/ inline AppliedTerminology& AddTerms(Term&& value) { m_termsHasBeenSet = true; m_terms.push_back(std::move(value)); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Vector m_terms; bool m_termsHasBeenSet = false; }; } // namespace Model } // namespace Translate } // namespace Aws