All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.kaltura.client.enums.EntryVendorTaskStatus Maven / Gradle / Ivy

// ===================================================================================================
//                           _  __     _ _
//                          | |/ /__ _| | |_ _  _ _ _ __ _
//                          | ' .
//
// @ignore
// ===================================================================================================
package com.kaltura.client.enums;

/**
 * This class was generated using exec.php
 * against an XML schema provided by Kaltura.
 * 
 * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN.
 */
public enum EntryVendorTaskStatus implements EnumAsInt {
	PENDING(1),
	READY(2),
	PROCESSING(3),
	PENDING_MODERATION(4),
	REJECTED(5),
	ERROR(6),
	ABORTED(7),
	PENDING_ENTRY_READY(8),
	SCHEDULED(9);

	private int value;

	EntryVendorTaskStatus(int value) {
		this.value = value;
	}

	@Override
	public int getValue() {
		return this.value;
	}

	public void setValue(int value) {
		this.value = value;
	}

	public static EntryVendorTaskStatus get(Integer value) {
		if(value == null)
		{
			return null;
		}
		
		// goes over EntryVendorTaskStatus defined values and compare the inner value with the given one:
		for(EntryVendorTaskStatus 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 EntryVendorTaskStatus.values().length > 0 ? EntryVendorTaskStatus.values()[0]: null;
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy