toValue method
Implementation
String toValue() {
switch (this) {
case IndexStatus.creating:
return 'CREATING';
case IndexStatus.active:
return 'ACTIVE';
case IndexStatus.deleting:
return 'DELETING';
case IndexStatus.failed:
return 'FAILED';
case IndexStatus.updating:
return 'UPDATING';
case IndexStatus.systemUpdating:
return 'SYSTEM_UPDATING';
}
}