toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case HsmState.createInProgress:
      return 'CREATE_IN_PROGRESS';
    case HsmState.active:
      return 'ACTIVE';
    case HsmState.degraded:
      return 'DEGRADED';
    case HsmState.deleteInProgress:
      return 'DELETE_IN_PROGRESS';
    case HsmState.deleted:
      return 'DELETED';
  }
}