Enum CannedAccessControlList

  • All Implemented Interfaces:
    Serializable, Comparable<CannedAccessControlList>

    public enum CannedAccessControlList
    extends Enum<CannedAccessControlList>
    Specifies constants defining a canned access control list.

    Canned access control lists are commonly used access control lists (ACL) that can be used as a shortcut when applying an access control list to Amazon S3 buckets and objects. Only a few commonly used configurations are available, but they offer an alternative to manually creating a custom ACL. If more specific access control is desired, users can create a custom AccessControlList.

    See Also:
    AccessControlList
    • Method Detail

      • values

        public static CannedAccessControlList[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (CannedAccessControlList c : CannedAccessControlList.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CannedAccessControlList valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null