com.kaltura.client.enums.FlavorAssetStatus Maven / Gradle / Ivy
// ===================================================================================================
// _ __ _ _
// | |/ /__ _| | |_ _ _ _ _ __ _
// | ' .
//
// @ignore
// ===================================================================================================
package com.kaltura.client.enums;
/**
* This class was generated using generate.php
* against an XML schema provided by Kaltura.
*
* MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN.
*/
public enum FlavorAssetStatus implements EnumAsInt {
ERROR(-1),
QUEUED(0),
CONVERTING(1),
READY(2),
DELETED(3),
NOT_APPLICABLE(4),
TEMP(5),
WAIT_FOR_CONVERT(6),
IMPORTING(7),
VALIDATING(8),
EXPORTING(9);
private int value;
FlavorAssetStatus(int value) {
this.value = value;
}
@Override
public int getValue() {
return this.value;
}
public void setValue(int value) {
this.value = value;
}
public static FlavorAssetStatus get(Integer value) {
if(value == null)
{
return null;
}
// goes over FlavorAssetStatus defined values and compare the inner value with the given one:
for(FlavorAssetStatus item: values()) {
if(item.getValue() == value) {
return item;
}
}
// in case the requested value was not found in the enum values, we return the first item as default.
return FlavorAssetStatus.values().length > 0 ? FlavorAssetStatus.values()[0]: null;
}
}