Enum CannedAccessControlList

java.lang.Object
java.lang.Enum<CannedAccessControlList>
com.amazonaws.services.s3.model.CannedAccessControlList
All Implemented Interfaces:
Serializable, Comparable<CannedAccessControlList>, java.lang.constant.Constable

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:
  • Enum Constant Details

  • Method Details

    • values

      public static CannedAccessControlList[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      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
    • toString

      public String toString()
      Returns the Amazon S3 x-amz-acl header value for this canned acl.
      Overrides:
      toString in class Enum<CannedAccessControlList>