toS3EncryptionMode method

S3EncryptionMode toS3EncryptionMode()

Implementation

S3EncryptionMode toS3EncryptionMode() {
  switch (this) {
    case 'DISABLED':
      return S3EncryptionMode.disabled;
    case 'SSE-KMS':
      return S3EncryptionMode.sseKms;
    case 'SSE-S3':
      return S3EncryptionMode.sseS3;
  }
  throw Exception('$this is not known in enum S3EncryptionMode');
}