@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TranslationSettings extends Object implements Serializable, Cloneable, StructuredPojo
Settings that configure the translation output.
| Constructor and Description |
|---|
TranslationSettings() |
| Modifier and Type | Method and Description |
|---|---|
TranslationSettings |
clone() |
boolean |
equals(Object obj) |
String |
getFormality()
You can optionally specify the desired level of formality for real-time translations to supported target
languages.
|
String |
getProfanity()
Enable the profanity setting if you want Amazon Translate to mask profane words and phrases in your translation
output.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setFormality(String formality)
You can optionally specify the desired level of formality for real-time translations to supported target
languages.
|
void |
setProfanity(String profanity)
Enable the profanity setting if you want Amazon Translate to mask profane words and phrases in your translation
output.
|
String |
toString()
Returns a string representation of this object.
|
TranslationSettings |
withFormality(Formality formality)
You can optionally specify the desired level of formality for real-time translations to supported target
languages.
|
TranslationSettings |
withFormality(String formality)
You can optionally specify the desired level of formality for real-time translations to supported target
languages.
|
TranslationSettings |
withProfanity(Profanity profanity)
Enable the profanity setting if you want Amazon Translate to mask profane words and phrases in your translation
output.
|
TranslationSettings |
withProfanity(String profanity)
Enable the profanity setting if you want Amazon Translate to mask profane words and phrases in your translation
output.
|
public void setFormality(String formality)
You can optionally specify the desired level of formality for real-time 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.
Note that asynchronous translation jobs don't support formality. If you provide a value for formality, the
StartTextTranslationJob API throws an exception (InvalidRequestException).
For target languages that support formality, see Supported Languages and Language Codes in the Amazon Translate Developer Guide.
formality - You can optionally specify the desired level of formality for real-time 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.
Note that asynchronous translation jobs don't support formality. If you provide a value for formality, the
StartTextTranslationJob API throws an exception (InvalidRequestException).
For target languages that support formality, see Supported Languages and Language Codes in the Amazon Translate Developer Guide.
Formalitypublic String getFormality()
You can optionally specify the desired level of formality for real-time 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.
Note that asynchronous translation jobs don't support formality. If you provide a value for formality, the
StartTextTranslationJob API throws an exception (InvalidRequestException).
For target languages that support formality, see Supported Languages and Language Codes in the Amazon Translate Developer Guide.
Note that asynchronous translation jobs don't support formality. If you provide a value for formality,
the StartTextTranslationJob API throws an exception (InvalidRequestException).
For target languages that support formality, see Supported Languages and Language Codes in the Amazon Translate Developer Guide.
Formalitypublic TranslationSettings withFormality(String formality)
You can optionally specify the desired level of formality for real-time 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.
Note that asynchronous translation jobs don't support formality. If you provide a value for formality, the
StartTextTranslationJob API throws an exception (InvalidRequestException).
For target languages that support formality, see Supported Languages and Language Codes in the Amazon Translate Developer Guide.
formality - You can optionally specify the desired level of formality for real-time 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.
Note that asynchronous translation jobs don't support formality. If you provide a value for formality, the
StartTextTranslationJob API throws an exception (InvalidRequestException).
For target languages that support formality, see Supported Languages and Language Codes in the Amazon Translate Developer Guide.
Formalitypublic TranslationSettings withFormality(Formality formality)
You can optionally specify the desired level of formality for real-time 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.
Note that asynchronous translation jobs don't support formality. If you provide a value for formality, the
StartTextTranslationJob API throws an exception (InvalidRequestException).
For target languages that support formality, see Supported Languages and Language Codes in the Amazon Translate Developer Guide.
formality - You can optionally specify the desired level of formality for real-time 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.
Note that asynchronous translation jobs don't support formality. If you provide a value for formality, the
StartTextTranslationJob API throws an exception (InvalidRequestException).
For target languages that support formality, see Supported Languages and Language Codes in the Amazon Translate Developer Guide.
Formalitypublic void setProfanity(String 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 support profanity detection, see Supported Languages and Language Codes in the Amazon Translate Developer Guide.
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 support profanity detection, see Supported Languages and Language Codes in the Amazon Translate Developer Guide.
Profanitypublic String getProfanity()
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 support profanity detection, see Supported Languages and Language Codes in the Amazon Translate Developer Guide.
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 support profanity detection, see Supported Languages and Language Codes in the Amazon Translate Developer Guide.
Profanitypublic TranslationSettings withProfanity(String 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 support profanity detection, see Supported Languages and Language Codes in the Amazon Translate Developer Guide.
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 support profanity detection, see Supported Languages and Language Codes in the Amazon Translate Developer Guide.
Profanitypublic TranslationSettings withProfanity(Profanity 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 support profanity detection, see Supported Languages and Language Codes in the Amazon Translate Developer Guide.
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 support profanity detection, see Supported Languages and Language Codes in the Amazon Translate Developer Guide.
Profanitypublic String toString()
toString in class ObjectObject.toString()public TranslationSettings clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2022. All rights reserved.