com.kaltura.client.enums.SshDropFolderOrderBy 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 SshDropFolderOrderBy implements EnumAsString {
CREATED_AT_ASC("+createdAt"),
ID_ASC("+id"),
NAME_ASC("+name"),
UPDATED_AT_ASC("+updatedAt"),
CREATED_AT_DESC("-createdAt"),
ID_DESC("-id"),
NAME_DESC("-name"),
UPDATED_AT_DESC("-updatedAt");
private String value;
SshDropFolderOrderBy(String value) {
this.value = value;
}
@Override
public String getValue() {
return this.value;
}
public void setValue(String value) {
this.value = value;
}
public static SshDropFolderOrderBy get(String value) {
if(value == null)
{
return null;
}
// goes over SshDropFolderOrderBy defined values and compare the inner value with the given one:
for(SshDropFolderOrderBy 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 SshDropFolderOrderBy.values().length > 0 ? SshDropFolderOrderBy.values()[0]: null;
}
}