toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case StorageClass.standard:
      return 'STANDARD';
    case StorageClass.reducedRedundancy:
      return 'REDUCED_REDUNDANCY';
    case StorageClass.standardIa:
      return 'STANDARD_IA';
    case StorageClass.onezoneIa:
      return 'ONEZONE_IA';
    case StorageClass.intelligentTiering:
      return 'INTELLIGENT_TIERING';
    case StorageClass.glacier:
      return 'GLACIER';
    case StorageClass.deepArchive:
      return 'DEEP_ARCHIVE';
    case StorageClass.outposts:
      return 'OUTPOSTS';
  }
}