public enum Permission extends java.lang.Enum<Permission>
AccessControlList. Only a limited set of permission are available;
each one is represented as a value in this enumeration.| 列挙型定数と説明 |
|---|
FullControl
Provides READ, WRITE, READ_ACP, and WRITE_ACP permissions.
|
Read
Grants permission to list the bucket when applied to a bucket.
|
ReadAcp
Grants permission to read the ACL for the applicable bucket or object.
|
Write
Grants permission to create, overwrite, and
delete any objects in the bucket.
|
WriteAcp
Gives permission to overwrite the ACP for the applicable bucket or
object.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
java.lang.String |
getHeaderName()
Returns the name of the header used to grant this permission.
|
static Permission |
parsePermission(java.lang.String str)
Returns the
Permission enumeration value representing the specified Amazon
S3 Region ID string. |
java.lang.String |
toString()
Gets the string representation of this permission object as defined by
Amazon S3, eg.
|
static Permission |
valueOf(java.lang.String name)
指定した名前を持つこの型の列挙型定数を返します。
|
static Permission[] |
values()
この列挙型の定数を含む配列を宣言されている順序で返します。
|
public static final Permission FullControl
It does not convey additional rights and is provided only for convenience.
public static final Permission Read
public static final Permission Write
This permission is not supported for objects.
public static final Permission ReadAcp
The owner of a bucket or object always implicitly has this permission.
public static final Permission WriteAcp
The owner of a bucket or object always has this permission implicitly.
Granting this permission is equivalent to granting FULL_CONTROLbecause
the grant recipient can make any changes to the ACP.
public static Permission[] values()
for(Permission c: Permission.values()) System.out.println(c);
public static Permission valueOf(java.lang.String name)
name - 返される列挙型定数の名前java.lang.IllegalArgumentException - 指定された名前を持つ定数を
この列挙型が持っていない場合java.lang.NullPointerException - 引数がnullの場合public java.lang.String getHeaderName()
public java.lang.String toString()
FULL_CONTROL.toString クラス内 java.lang.Enum<Permission>FULL_CONTROL.public static Permission parsePermission(java.lang.String str)
Permission enumeration value representing the specified Amazon
S3 Region ID string. If specified string doesn't map to a known Amazon S3
Region, returns null.str - A string representation of an Amazon S3 permission, eg.
FULL_CONTROLPermission object represented by the given permission string,
Returns null if the string isn't a valid representation
of an Amazon S3
permission.