toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case Status.standby:
      return 'STANDBY';
    case Status.active:
      return 'ACTIVE';
    case Status.updating:
      return 'UPDATING';
    case Status.deleting:
      return 'DELETING';
    case Status.starting:
      return 'STARTING';
    case Status.stopping:
      return 'STOPPING';
    case Status.error:
      return 'ERROR';
  }
}