com.amazonaws.services.s3.model

## 列挙型 GroupGrantee

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

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

      public enum GroupGrantee
      extends java.lang.Enum<GroupGrantee>
      implements Grantee

  Specifies constants defining a group of Amazon S3 users who can be granted permissions to Amazon S3 buckets and objects. This enumeration contains all the valid Amazon S3 group grantees.

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

    列挙型定数
    列挙型定数と説明
    `AllUsers` Grants anonymous access to any Amazon S3 object or bucket.
    `AuthenticatedUsers` Grants access to buckets or objects to anyone with an Amazon AWS account.
    `LogDelivery` Grants access to Amazon S3 log delivery so that an S3 bucket can receive server access logs.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `java.lang.String` | `getIdentifier()` Gets the group grantee's URI.
    `java.lang.String` | `getTypeIdentifier()` Returns the identifier for the type of this grant, to be used when specifying grants in the header of a request.
    `static GroupGrantee` | `parseGroupGrantee(java.lang.String groupUri)` Gets the `GroupGrantee` enumeration value with the specified Amazon S3 group URI (eg.
    `void` | `setIdentifier(java.lang.String id)` For internal use only.
    `java.lang.String` | `toString()`
    `static GroupGrantee` | `valueOf(java.lang.String name)` 指定した名前を持つこの型の列挙型定数を返します。
    `static GroupGrantee[]` | `values()` この列挙型の定数を含む配列を宣言されている順序で返します。

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

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

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

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

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

    - #### AllUsers

          public static final GroupGrantee AllUsers

      Grants anonymous access to any Amazon S3 object or bucket. Any user will be able to access the object by omitting the AWS Key ID and Signature from a request.

      Amazon highly recommends that users do not grant the `AllUsers` group write access to their buckets. If granted, users will have no control over the objects others can store and their associated charges.

    - #### AuthenticatedUsers

          public static final GroupGrantee AuthenticatedUsers

      Grants access to buckets or objects to anyone with an Amazon AWS account. Although this is inherently insecure as any AWS user who is aware of the bucket or object will be able to access it, users may find this authentication method useful.

    - #### LogDelivery

          public static final GroupGrantee LogDelivery

      Grants access to Amazon S3 log delivery so that an S3 bucket can receive server access logs. Turning on server access logging for an Amazon S3 bucket requires that the bucket receiving the logs is granted permission for the log delivery group to deliver logs.

  - ### メソッドの詳細

    - #### values

          public static GroupGrantee[] values()

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

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

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

    - #### valueOf

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

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

    - #### getTypeIdentifier

          public java.lang.String getTypeIdentifier()

      インタフェースからコピーされた説明: `Grantee`
      Returns the identifier for the type of this grant, to be used when specifying grants in the header of a request.
      定義:
        `getTypeIdentifier` インタフェース内 `Grantee`

    - #### getIdentifier

          public java.lang.String getIdentifier()

      Gets the group grantee's URI.
      定義:
        `getIdentifier` インタフェース内 `Grantee`
      戻り値:
        The group grantee's URI.
      関連項目:
        `Grantee#setIdentifier()`

    - #### setIdentifier

          public void setIdentifier(java.lang.String id)

      For internal use only. Group grantees have preset identifiers that cannot be modified.
      定義:
        `setIdentifier` インタフェース内 `Grantee`
      パラメータ:
        `id` - The identifier for this grantee.
      関連項目:
        `Grantee.getIdentifier()`

    - #### toString

          public java.lang.String toString()

      オーバーライド:
        `toString` クラス内 `java.lang.Enum<GroupGrantee>`
      関連項目:
        `Enum.toString()`

    - #### parseGroupGrantee

          public static GroupGrantee parseGroupGrantee(java.lang.String groupUri)

      Gets the `GroupGrantee` enumeration value with the specified Amazon S3 group URI (eg. http://acs.amazonaws.com/groups/global/AllUsers). Returns `null` if an invalid Amazon S3 group URI is specified.
      パラメータ:
        `groupUri` - A string representation of an Amazon S3 group URI (eg. http://acs.amazonaws.com/groups/global/AllUsers)
      戻り値:
        The `GroupGrantee` object represented by the given Amazon S3 group URI string. Returns `null` if the string isn't a valid Amazon S3 group URI.