toValue method

String toValue()

Implementation

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