toValue method

String toValue()

Implementation

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