toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case FleetStatus.creating:
      return 'CREATING';
    case FleetStatus.active:
      return 'ACTIVE';
    case FleetStatus.deleting:
      return 'DELETING';
    case FleetStatus.deleted:
      return 'DELETED';
    case FleetStatus.failedToCreate:
      return 'FAILED_TO_CREATE';
    case FleetStatus.failedToDelete:
      return 'FAILED_TO_DELETE';
  }
}