com.kaltura.client.enums.ESearchGroupFieldName 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 ESearchGroupFieldName implements EnumAsString {
CREATED_AT("created_at"),
EMAIL("email"),
FIRST_NAME("first_name"),
GROUP_IDS("group_ids"),
LAST_NAME("last_name"),
PERMISSION_NAMES("permission_names"),
ROLE_IDS("role_ids"),
SCREEN_NAME("screen_name"),
TAGS("tags"),
UPDATED_AT("updated_at"),
USER_ID("user_id");
private String value;
ESearchGroupFieldName(String value) {
this.value = value;
}
@Override
public String getValue() {
return this.value;
}
public void setValue(String value) {
this.value = value;
}
public static ESearchGroupFieldName get(String value) {
if(value == null)
{
return null;
}
// goes over ESearchGroupFieldName defined values and compare the inner value with the given one:
for(ESearchGroupFieldName 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 ESearchGroupFieldName.values().length > 0 ? ESearchGroupFieldName.values()[0]: null;
}
}