toS3StorageClass method

S3StorageClass toS3StorageClass()

Implementation

S3StorageClass toS3StorageClass() {
  switch (this) {
    case 'STANDARD':
      return S3StorageClass.standard;
    case 'STANDARD_IA':
      return S3StorageClass.standardIa;
    case 'ONEZONE_IA':
      return S3StorageClass.onezoneIa;
    case 'INTELLIGENT_TIERING':
      return S3StorageClass.intelligentTiering;
    case 'GLACIER':
      return S3StorageClass.glacier;
    case 'DEEP_ARCHIVE':
      return S3StorageClass.deepArchive;
    case 'OUTPOSTS':
      return S3StorageClass.outposts;
  }
  throw Exception('$this is not known in enum S3StorageClass');
}