com.sinch.sdk.domains.numbers.models.webhooks.EventStatus 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.
package com.sinch.sdk.domains.numbers.models.webhooks;
import com.sinch.sdk.core.utils.EnumDynamic;
import com.sinch.sdk.core.utils.EnumSupportDynamic;
import java.util.Arrays;
import java.util.stream.Stream;
public final class EventStatus extends EnumDynamic {
/**
* The status of the event
*
* @see https://developers.sinch.com/docs/numbers/api-reference/numbers/tag/Callbacks/#tag/Callbacks/operation/ImportedNumberService_EventsCallback!path=status&t=request/
* @since 1.0
*/
public static final EventStatus SUCCEEDED = new EventStatus("SUCCEEDED");
public static final EventStatus FAILED = new EventStatus("FAILED");
private static final EnumSupportDynamic ENUM_SUPPORT =
new EnumSupportDynamic<>(
EventStatus.class, EventStatus::new, Arrays.asList(SUCCEEDED, FAILED));
EventStatus(String value) {
super(value);
}
public static Stream values() {
return ENUM_SUPPORT.values();
}
public static EventStatus from(String value) {
return ENUM_SUPPORT.from(value);
}
public static String valueOf(EventStatus e) {
return ENUM_SUPPORT.valueOf(e);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy