toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case BackupLifecycle.available:
      return 'AVAILABLE';
    case BackupLifecycle.creating:
      return 'CREATING';
    case BackupLifecycle.transferring:
      return 'TRANSFERRING';
    case BackupLifecycle.deleted:
      return 'DELETED';
    case BackupLifecycle.failed:
      return 'FAILED';
    case BackupLifecycle.pending:
      return 'PENDING';
  }
}