com.sinch.sdk.domains.numbers.models.v1.ProvisioningStatus 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.v1;
import com.sinch.sdk.core.utils.EnumDynamic;
import com.sinch.sdk.core.utils.EnumSupportDynamic;
import java.util.Arrays;
import java.util.stream.Stream;
/**
* The provisioning status. It will be either WAITING
, IN_PROGRESS
or
* FAILED
. If the provisioning fails, a reason for the failure will be provided.
*/
public class ProvisioningStatus extends EnumDynamic {
/** The status is currently unknown. */
public static final ProvisioningStatus PROVISIONING_STATUS_UNSPECIFIED =
new ProvisioningStatus("PROVISIONING_STATUS_UNSPECIFIED");
/** Waiting to be provisioned. */
public static final ProvisioningStatus WAITING = new ProvisioningStatus("WAITING");
/** Provisioning in progress. */
public static final ProvisioningStatus IN_PROGRESS = new ProvisioningStatus("IN_PROGRESS");
/** Provisioning has failed. */
public static final ProvisioningStatus FAILED = new ProvisioningStatus("FAILED");
private static final EnumSupportDynamic ENUM_SUPPORT =
new EnumSupportDynamic<>(
ProvisioningStatus.class,
ProvisioningStatus::new,
Arrays.asList(PROVISIONING_STATUS_UNSPECIFIED, WAITING, IN_PROGRESS, FAILED));
private ProvisioningStatus(String value) {
super(value);
}
public static Stream values() {
return ENUM_SUPPORT.values();
}
public static ProvisioningStatus from(String value) {
return ENUM_SUPPORT.from(value);
}
public static String valueOf(ProvisioningStatus e) {
return ENUM_SUPPORT.valueOf(e);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy