com.sinch.sdk.domains.voice.models.dto.v1.DomainDto Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sinch-sdk-java Show documentation
Show all versions of sinch-sdk-java Show documentation
SDK providing a Java API for the Sinch REST APIs.
/*
* Voice API | Sinch
* The Voice API exposes calling- and conference-related functionality in the Sinch Voice Platform.
*
* The version of the OpenAPI document: 1.0.1
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.sinch.sdk.domains.voice.models.dto.v1;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
/**
* Can be either `pstn` for PSTN endpoint or `mxp` for data (app or web)
* clients.
*/
public enum DomainDto {
PSTN("pstn"),
MXP("mxp"),
PSTN2("PSTN"),
MXP2("MXP"),
UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api");
private String value;
DomainDto(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static DomainDto fromValue(String value) {
for (DomainDto b : DomainDto.values()) {
if (b.value.equals(value)) {
return b;
}
}
return UNKNOWN_DEFAULT_OPEN_API;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy