
com.infobip.model.TfaLanguage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of infobip-api-java-client Show documentation
Show all versions of infobip-api-java-client Show documentation
API client in Java for Infobip's API (http://dev.infobip.com/).
/*
* This class is auto generated from the Infobip OpenAPI specification
* through the OpenAPI Specification Client API libraries (Re)Generator (OSCAR),
* powered by the OpenAPI Generator (https://openapi-generator.tech).
*
* Do not edit manually. To learn how to raise an issue, see the CONTRIBUTING guide
* or contact us @ [email protected].
*/
package com.infobip.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
/**
* The language code which message is written in used when sending text-to-speech messages. If not defined, it will default to English (`en`).
*/
public enum TfaLanguage {
EN("en"),
ES("es"),
CA("ca"),
DA("da"),
NL("nl"),
FR("fr"),
DE("de"),
IT("it"),
JA("ja"),
KO("ko"),
NO("no"),
PL("pl"),
RU("ru"),
SV("sv"),
FI("fi"),
HR("hr"),
SL("sl"),
RO("ro"),
PT_PT("pt_pt"),
PT_BR("pt_br"),
ZH_CN("zh_cn"),
ZH_TW("zh_tw");
private final String value;
TfaLanguage(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static TfaLanguage fromValue(String value) {
for (TfaLanguage enumElement : TfaLanguage.values()) {
if (enumElement.value.equals(value)) {
return enumElement;
}
}
throw new IllegalArgumentException("Unexpected enum value '" + value + "'.");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy