@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() |
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) |
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) |
TranslationSettings |
withFormality(String formality) |
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 TranslationSettings withFormality(String formality)
formality - Formalitypublic TranslationSettings withFormality(Formality formality)
formality - 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 does not 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 does not 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 does not 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 does not 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 does not 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 does not 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 does not 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 does not 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.