toValue method
Implementation
String toValue() {
switch (this) {
case WorkspaceState.pending:
return 'PENDING';
case WorkspaceState.available:
return 'AVAILABLE';
case WorkspaceState.impaired:
return 'IMPAIRED';
case WorkspaceState.unhealthy:
return 'UNHEALTHY';
case WorkspaceState.rebooting:
return 'REBOOTING';
case WorkspaceState.starting:
return 'STARTING';
case WorkspaceState.rebuilding:
return 'REBUILDING';
case WorkspaceState.restoring:
return 'RESTORING';
case WorkspaceState.maintenance:
return 'MAINTENANCE';
case WorkspaceState.adminMaintenance:
return 'ADMIN_MAINTENANCE';
case WorkspaceState.terminating:
return 'TERMINATING';
case WorkspaceState.terminated:
return 'TERMINATED';
case WorkspaceState.suspended:
return 'SUSPENDED';
case WorkspaceState.updating:
return 'UPDATING';
case WorkspaceState.stopping:
return 'STOPPING';
case WorkspaceState.stopped:
return 'STOPPED';
case WorkspaceState.error:
return 'ERROR';
}
}