toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case FleetStatus.$new:
      return 'NEW';
    case FleetStatus.downloading:
      return 'DOWNLOADING';
    case FleetStatus.validating:
      return 'VALIDATING';
    case FleetStatus.building:
      return 'BUILDING';
    case FleetStatus.activating:
      return 'ACTIVATING';
    case FleetStatus.active:
      return 'ACTIVE';
    case FleetStatus.deleting:
      return 'DELETING';
    case FleetStatus.error:
      return 'ERROR';
    case FleetStatus.terminated:
      return 'TERMINATED';
  }
}