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