com.kaltura.client.enums.FileSyncOrderBy 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 FileSyncOrderBy implements EnumAsString {
CREATED_AT_ASC("+createdAt"),
FILE_SIZE_ASC("+fileSize"),
READY_AT_ASC("+readyAt"),
SYNC_TIME_ASC("+syncTime"),
UPDATED_AT_ASC("+updatedAt"),
VERSION_ASC("+version"),
CREATED_AT_DESC("-createdAt"),
FILE_SIZE_DESC("-fileSize"),
READY_AT_DESC("-readyAt"),
SYNC_TIME_DESC("-syncTime"),
UPDATED_AT_DESC("-updatedAt"),
VERSION_DESC("-version");
private String value;
FileSyncOrderBy(String value) {
this.value = value;
}
@Override
public String getValue() {
return this.value;
}
public void setValue(String value) {
this.value = value;
}
public static FileSyncOrderBy get(String value) {
if(value == null)
{
return null;
}
// goes over FileSyncOrderBy defined values and compare the inner value with the given one:
for(FileSyncOrderBy item: values()) {
if(item.getValue().equals(value)) {
return item;
}
}
// in case the requested value was not found in the enum values, we return the first item as default.
return FileSyncOrderBy.values().length > 0 ? FileSyncOrderBy.values()[0]: null;
}
}