toTransitionStorageClass method

TransitionStorageClass toTransitionStorageClass()

Implementation

TransitionStorageClass toTransitionStorageClass() {
  switch (this) {
    case 'GLACIER':
      return TransitionStorageClass.glacier;
    case 'STANDARD_IA':
      return TransitionStorageClass.standardIa;
    case 'ONEZONE_IA':
      return TransitionStorageClass.onezoneIa;
    case 'INTELLIGENT_TIERING':
      return TransitionStorageClass.intelligentTiering;
    case 'DEEP_ARCHIVE':
      return TransitionStorageClass.deepArchive;
  }
  throw Exception('$this is not known in enum TransitionStorageClass');
}