@Generated(value="software.amazon.awssdk:codegen") public final class TranslationSettings extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TranslationSettings.Builder,TranslationSettings>
Settings that configure the translation output.
| Modifier and Type | Class and Description |
|---|---|
static interface |
TranslationSettings.Builder |
| Modifier and Type | Method and Description |
|---|---|
static TranslationSettings.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Formality |
formality()
Returns the value of the Formality property for this object.
|
String |
formalityAsString()
Returns the value of the Formality property for this object.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Profanity |
profanity()
Enable the profanity setting if you want Amazon Translate to mask profane words and phrases in your translation
output.
|
String |
profanityAsString()
Enable the profanity setting if you want Amazon Translate to mask profane words and phrases in your translation
output.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends TranslationSettings.Builder> |
serializableBuilderClass() |
TranslationSettings.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Formality formality()
If the service returns an enum value that is not available in the current SDK version, formality will
return Formality.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
formalityAsString().
Formalitypublic final String formalityAsString()
If the service returns an enum value that is not available in the current SDK version, formality will
return Formality.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
formalityAsString().
Formalitypublic final 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.
If the service returns an enum value that is not available in the current SDK version, profanity will
return Profanity.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
profanityAsString().
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 final String profanityAsString()
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.
If the service returns an enum value that is not available in the current SDK version, profanity will
return Profanity.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
profanityAsString().
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.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<TranslationSettings.Builder,TranslationSettings>public static TranslationSettings.Builder builder()
public static Class<? extends TranslationSettings.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.