TranslationTone Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. ai. translation. text. models. TranslationTone
- com.
- com.
public final class TranslationTone
extends ExpandableStringEnum<TranslationTone>
Desired tone for the translated text.
Field Summary
| Modifier and Type | Field and Description |
|---|---|
|
static final
Translation |
FORMAL
Formal tone. |
|
static final
Translation |
INFORMAL
Informal tone. |
|
static final
Translation |
NEUTRAL
Neutral tone. |
Constructor Summary
| Constructor | Description |
|---|---|
| TranslationTone() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Translation |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Translation |
fromString(String name)
Creates or finds a Translation |
|
static
Collection<Translation |
values()
Gets known Translation |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
FORMAL
public static final TranslationTone FORMAL
Formal tone.
INFORMAL
public static final TranslationTone INFORMAL
Informal tone.
NEUTRAL
public static final TranslationTone NEUTRAL
Neutral tone.
Constructor Details
TranslationTone
@Deprecated
public TranslationTone()
Deprecated
Creates a new instance of TranslationTone value.
Method Details
fromString
public static TranslationTone fromString(String name)
Creates or finds a TranslationTone from its string representation.
Parameters:
Returns:
values
public static Collection<TranslationTone> values()
Gets known TranslationTone values.
Returns: