toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ServerStatus.backingUp:
      return 'BACKING_UP';
    case ServerStatus.connectionLost:
      return 'CONNECTION_LOST';
    case ServerStatus.creating:
      return 'CREATING';
    case ServerStatus.deleting:
      return 'DELETING';
    case ServerStatus.modifying:
      return 'MODIFYING';
    case ServerStatus.failed:
      return 'FAILED';
    case ServerStatus.healthy:
      return 'HEALTHY';
    case ServerStatus.running:
      return 'RUNNING';
    case ServerStatus.restoring:
      return 'RESTORING';
    case ServerStatus.setup:
      return 'SETUP';
    case ServerStatus.underMaintenance:
      return 'UNDER_MAINTENANCE';
    case ServerStatus.unhealthy:
      return 'UNHEALTHY';
    case ServerStatus.terminated:
      return 'TERMINATED';
  }
}