toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case CannedAccessControlList.private:
      return 'private';
    case CannedAccessControlList.publicRead:
      return 'public-read';
    case CannedAccessControlList.publicReadWrite:
      return 'public-read-write';
    case CannedAccessControlList.awsExecRead:
      return 'aws-exec-read';
    case CannedAccessControlList.authenticatedRead:
      return 'authenticated-read';
    case CannedAccessControlList.bucketOwnerRead:
      return 'bucket-owner-read';
    case CannedAccessControlList.bucketOwnerFullControl:
      return 'bucket-owner-full-control';
    case CannedAccessControlList.logDeliveryWrite:
      return 'log-delivery-write';
  }
}