toS3ObjectCannedAcl method
Implementation
S3ObjectCannedAcl toS3ObjectCannedAcl() {
switch (this) {
case 'PUBLIC_READ':
return S3ObjectCannedAcl.publicRead;
case 'AUTHENTICATED_READ':
return S3ObjectCannedAcl.authenticatedRead;
case 'BUCKET_OWNER_READ':
return S3ObjectCannedAcl.bucketOwnerRead;
case 'BUCKET_OWNER_FULL_CONTROL':
return S3ObjectCannedAcl.bucketOwnerFullControl;
}
throw Exception('$this is not known in enum S3ObjectCannedAcl');
}