/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Settings to configure your translation output, including the option to set
* the formality level of the output text and the option to mask profane words and
* phrases.See Also:
AWS
* API Reference
You can optionally specify the desired level of formality for translations to * supported target languages. The formality setting controls the level of formal * language usage (also known as register) * in the translation output. You can set the value to informal or formal. If you * don't specify a value for formality, or if the target language doesn't support * formality, the translation will ignore the formality setting.
If you * specify multiple target languages for the job, translate ignores the formality * setting for any unsupported target language.
For a list of target * languages that support formality, see Supported * languages in the Amazon Translate Developer Guide.
*/ inline const Formality& GetFormality() const{ return m_formality; } /** *You can optionally specify the desired level of formality for translations to * supported target languages. The formality setting controls the level of formal * language usage (also known as register) * in the translation output. You can set the value to informal or formal. If you * don't specify a value for formality, or if the target language doesn't support * formality, the translation will ignore the formality setting.
If you * specify multiple target languages for the job, translate ignores the formality * setting for any unsupported target language.
For a list of target * languages that support formality, see Supported * languages in the Amazon Translate Developer Guide.
*/ inline bool FormalityHasBeenSet() const { return m_formalityHasBeenSet; } /** *You can optionally specify the desired level of formality for translations to * supported target languages. The formality setting controls the level of formal * language usage (also known as register) * in the translation output. You can set the value to informal or formal. If you * don't specify a value for formality, or if the target language doesn't support * formality, the translation will ignore the formality setting.
If you * specify multiple target languages for the job, translate ignores the formality * setting for any unsupported target language.
For a list of target * languages that support formality, see Supported * languages in the Amazon Translate Developer Guide.
*/ inline void SetFormality(const Formality& value) { m_formalityHasBeenSet = true; m_formality = value; } /** *You can optionally specify the desired level of formality for translations to * supported target languages. The formality setting controls the level of formal * language usage (also known as register) * in the translation output. You can set the value to informal or formal. If you * don't specify a value for formality, or if the target language doesn't support * formality, the translation will ignore the formality setting.
If you * specify multiple target languages for the job, translate ignores the formality * setting for any unsupported target language.
For a list of target * languages that support formality, see Supported * languages in the Amazon Translate Developer Guide.
*/ inline void SetFormality(Formality&& value) { m_formalityHasBeenSet = true; m_formality = std::move(value); } /** *You can optionally specify the desired level of formality for translations to * supported target languages. The formality setting controls the level of formal * language usage (also known as register) * in the translation output. You can set the value to informal or formal. If you * don't specify a value for formality, or if the target language doesn't support * formality, the translation will ignore the formality setting.
If you * specify multiple target languages for the job, translate ignores the formality * setting for any unsupported target language.
For a list of target * languages that support formality, see Supported * languages in the Amazon Translate Developer Guide.
*/ inline TranslationSettings& WithFormality(const Formality& value) { SetFormality(value); return *this;} /** *You can optionally specify the desired level of formality for translations to * supported target languages. The formality setting controls the level of formal * language usage (also known as register) * in the translation output. You can set the value to informal or formal. If you * don't specify a value for formality, or if the target language doesn't support * formality, the translation will ignore the formality setting.
If you * specify multiple target languages for the job, translate ignores the formality * setting for any unsupported target language.
For a list of target * languages that support formality, see Supported * languages in the Amazon Translate Developer Guide.
*/ inline TranslationSettings& WithFormality(Formality&& value) { SetFormality(std::move(value)); return *this;} /** *Enable the profanity setting if you want Amazon Translate to mask profane * words and phrases in your translation output.
To mask profane words and * phrases, Amazon Translate replaces them with the grawlix string “?$#@$“. This * 5-character sequence is used for each profane word or phrase, regardless of the * length or number of words.
Amazon Translate doesn't detect profanity in * all of its supported languages. For languages that don't support profanity * detection, see Unsupported * languages in the Amazon Translate Developer Guide.
If you specify * multiple target languages for the job, all the target languages must support * profanity masking. If any of the target languages don't support profanity * masking, the translation job won't mask profanity for any target language.
*/ inline const Profanity& GetProfanity() const{ return m_profanity; } /** *Enable the profanity setting if you want Amazon Translate to mask profane * words and phrases in your translation output.
To mask profane words and * phrases, Amazon Translate replaces them with the grawlix string “?$#@$“. This * 5-character sequence is used for each profane word or phrase, regardless of the * length or number of words.
Amazon Translate doesn't detect profanity in * all of its supported languages. For languages that don't support profanity * detection, see Unsupported * languages in the Amazon Translate Developer Guide.
If you specify * multiple target languages for the job, all the target languages must support * profanity masking. If any of the target languages don't support profanity * masking, the translation job won't mask profanity for any target language.
*/ inline bool ProfanityHasBeenSet() const { return m_profanityHasBeenSet; } /** *Enable the profanity setting if you want Amazon Translate to mask profane * words and phrases in your translation output.
To mask profane words and * phrases, Amazon Translate replaces them with the grawlix string “?$#@$“. This * 5-character sequence is used for each profane word or phrase, regardless of the * length or number of words.
Amazon Translate doesn't detect profanity in * all of its supported languages. For languages that don't support profanity * detection, see Unsupported * languages in the Amazon Translate Developer Guide.
If you specify * multiple target languages for the job, all the target languages must support * profanity masking. If any of the target languages don't support profanity * masking, the translation job won't mask profanity for any target language.
*/ inline void SetProfanity(const Profanity& value) { m_profanityHasBeenSet = true; m_profanity = value; } /** *Enable the profanity setting if you want Amazon Translate to mask profane * words and phrases in your translation output.
To mask profane words and * phrases, Amazon Translate replaces them with the grawlix string “?$#@$“. This * 5-character sequence is used for each profane word or phrase, regardless of the * length or number of words.
Amazon Translate doesn't detect profanity in * all of its supported languages. For languages that don't support profanity * detection, see Unsupported * languages in the Amazon Translate Developer Guide.
If you specify * multiple target languages for the job, all the target languages must support * profanity masking. If any of the target languages don't support profanity * masking, the translation job won't mask profanity for any target language.
*/ inline void SetProfanity(Profanity&& value) { m_profanityHasBeenSet = true; m_profanity = std::move(value); } /** *Enable the profanity setting if you want Amazon Translate to mask profane * words and phrases in your translation output.
To mask profane words and * phrases, Amazon Translate replaces them with the grawlix string “?$#@$“. This * 5-character sequence is used for each profane word or phrase, regardless of the * length or number of words.
Amazon Translate doesn't detect profanity in * all of its supported languages. For languages that don't support profanity * detection, see Unsupported * languages in the Amazon Translate Developer Guide.
If you specify * multiple target languages for the job, all the target languages must support * profanity masking. If any of the target languages don't support profanity * masking, the translation job won't mask profanity for any target language.
*/ inline TranslationSettings& WithProfanity(const Profanity& value) { SetProfanity(value); return *this;} /** *Enable the profanity setting if you want Amazon Translate to mask profane * words and phrases in your translation output.
To mask profane words and * phrases, Amazon Translate replaces them with the grawlix string “?$#@$“. This * 5-character sequence is used for each profane word or phrase, regardless of the * length or number of words.
Amazon Translate doesn't detect profanity in * all of its supported languages. For languages that don't support profanity * detection, see Unsupported * languages in the Amazon Translate Developer Guide.
If you specify * multiple target languages for the job, all the target languages must support * profanity masking. If any of the target languages don't support profanity * masking, the translation job won't mask profanity for any target language.
*/ inline TranslationSettings& WithProfanity(Profanity&& value) { SetProfanity(std::move(value)); return *this;} private: Formality m_formality; bool m_formalityHasBeenSet = false; Profanity m_profanity; bool m_profanityHasBeenSet = false; }; } // namespace Model } // namespace Translate } // namespace Aws