toValue method
Implementation
String toValue() {
switch (this) {
case AutoTuneState.enabled:
return 'ENABLED';
case AutoTuneState.disabled:
return 'DISABLED';
case AutoTuneState.enableInProgress:
return 'ENABLE_IN_PROGRESS';
case AutoTuneState.disableInProgress:
return 'DISABLE_IN_PROGRESS';
case AutoTuneState.disabledAndRollbackScheduled:
return 'DISABLED_AND_ROLLBACK_SCHEDULED';
case AutoTuneState.disabledAndRollbackInProgress:
return 'DISABLED_AND_ROLLBACK_IN_PROGRESS';
case AutoTuneState.disabledAndRollbackComplete:
return 'DISABLED_AND_ROLLBACK_COMPLETE';
case AutoTuneState.disabledAndRollbackError:
return 'DISABLED_AND_ROLLBACK_ERROR';
case AutoTuneState.error:
return 'ERROR';
}
}