com.amazonaws.services.s3.model

## 列挙型 CannedAccessControlList

- java.lang.Object
- - java.lang.Enum<CannedAccessControlList>
  - - com.amazonaws.services.s3.model.CannedAccessControlList

- すべての実装されたインタフェース:
    java.io.Serializable, java.lang.Comparable<CannedAccessControlList>

      public enum CannedAccessControlList
      extends java.lang.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`.

  関連項目:
    `AccessControlList`

- - ### 列挙型定数の概要

    列挙型定数
    列挙型定数と説明
    `AuthenticatedRead` Specifies the owner is granted `Permission.FullControl` and the `GroupGrantee.AuthenticatedUsers` group grantee is granted `Permission.Read` access.
    `BucketOwnerFullControl` Specifies the owner of the bucket, but not necessarily the same as the owner of the object, is granted `Permission.FullControl`.
    `BucketOwnerRead` Specifies the owner of the bucket, but not necessarily the same as the owner of the object, is granted `Permission.Read`.
    `LogDeliveryWrite` Specifies the owner is granted `Permission.FullControl` and the `GroupGrantee.LogDelivery` group grantee is granted `Permission.Write` access so that access logs can be delivered.
    `Private` Specifies the owner is granted `Permission.FullControl`.
    `PublicRead` Specifies the owner is granted `Permission.FullControl` and the `GroupGrantee.AllUsers` group grantee is granted `Permission.Read` access.
    `PublicReadWrite` Specifies the owner is granted `Permission.FullControl` and the `GroupGrantee.AllUsers` group grantee is granted `Permission.Read` and `Permission.Write` access.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `java.lang.String` | `toString()` Returns the Amazon S3 x-amz-acl header value for this canned acl.
    `static CannedAccessControlList` | `valueOf(java.lang.String name)` 指定した名前を持つこの型の列挙型定数を返します。
    `static CannedAccessControlList[]` | `values()` この列挙型の定数を含む配列を宣言されている順序で返します。

    - ### クラスから継承されたメソッド java.lang.Enum

      `clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf`

    - ### クラスから継承されたメソッド java.lang.Object

      `getClass, notify, notifyAll, wait, wait, wait`

- - ### 列挙型定数の詳細

    - #### Private

          public static final CannedAccessControlList Private

      Specifies the owner is granted `Permission.FullControl`. No one else has access rights.

      This is the default access control policy for any new buckets or objects.

    - #### PublicRead

          public static final CannedAccessControlList PublicRead

      Specifies the owner is granted `Permission.FullControl` and the `GroupGrantee.AllUsers` group grantee is granted `Permission.Read` access.

      If this policy is used on an object, it can be read from a browser without authentication.

    - #### PublicReadWrite

          public static final CannedAccessControlList PublicReadWrite

      Specifies the owner is granted `Permission.FullControl` and the `GroupGrantee.AllUsers` group grantee is granted `Permission.Read` and `Permission.Write` access.

      This access policy is not recommended for general use.

    - #### AuthenticatedRead

          public static final CannedAccessControlList AuthenticatedRead

      Specifies the owner is granted `Permission.FullControl` and the `GroupGrantee.AuthenticatedUsers` group grantee is granted `Permission.Read` access.

    - #### LogDeliveryWrite

          public static final CannedAccessControlList LogDeliveryWrite

      Specifies the owner is granted `Permission.FullControl` and the `GroupGrantee.LogDelivery` group grantee is granted `Permission.Write` access so that access logs can be delivered.

      Use this access policy to enable Amazon S3 bucket logging for a bucket. The destination bucket requires these permissions so that access logs can be delivered.

    - #### BucketOwnerRead

          public static final CannedAccessControlList BucketOwnerRead

      Specifies the owner of the bucket, but not necessarily the same as the owner of the object, is granted `Permission.Read`.

      Use this access policy when uploading objects to another owner's bucket. This access policy grants the bucket owner read access to the object, but does not give read access for all users.

    - #### BucketOwnerFullControl

          public static final CannedAccessControlList BucketOwnerFullControl

      Specifies the owner of the bucket, but not necessarily the same as the owner of the object, is granted `Permission.FullControl`.

      Use this access policy to upload objects to another owner's bucket. This access policy grants the bucket owner full access to the object, but does not give full access to all users.

  - ### メソッドの詳細

    - #### values

          public static CannedAccessControlList[] values()

      この列挙型の定数を含む配列を宣言されている順序で返します。 このメソッドは次のようにして定数を反復するために 使用できます:

          for(CannedAccessControlList c: CannedAccessControlList.values())
            System.out.println(c);

      戻り値:
        この列挙型の定数を宣言されている順序で 含む配列

    - #### valueOf

          public static CannedAccessControlList valueOf(java.lang.String name)

      指定した名前を持つこの型の列挙型定数を返します。 文字列は、この型の列挙型定数を宣言するのに使用した識別子と正確に 一致している必要があります。 (余分な空白文字を含めることはできません。)
      パラメータ:
        `name` - 返される列挙型定数の名前
      戻り値:
        指定された名前を持つ列挙型定数
      例外:
        `java.lang.IllegalArgumentException` - 指定された名前を持つ定数を この列挙型が持っていない場合
        `java.lang.NullPointerException` - 引数がnullの場合

    - #### toString

          public java.lang.String toString()

      Returns the Amazon S3 x-amz-acl header value for this canned acl.
      オーバーライド:
        `toString` クラス内 `java.lang.Enum<CannedAccessControlList>`