public enum ObjectPermission extends Enum<ObjectPermission>
OSSObject
's access control permission.Enum Constant and Description |
---|
Default
The object's ACL inherits the bucket's ACL.
|
Private
Private object.
|
PublicRead
Owner has the full control of the object.
|
PublicReadWrite
The object is public to everyone and all users have read write
permission.
|
Unknown
The object's ACL is unknown, which indicates something not right about
the object.
|
Modifier and Type | Method and Description |
---|---|
static ObjectPermission |
parsePermission(String str) |
String |
toString() |
static ObjectPermission |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ObjectPermission[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ObjectPermission Private
public static final ObjectPermission PublicRead
public static final ObjectPermission PublicReadWrite
public static final ObjectPermission Default
public static final ObjectPermission Unknown
public static ObjectPermission[] values()
for (ObjectPermission c : ObjectPermission.values()) System.out.println(c);
public static ObjectPermission valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<ObjectPermission>
public static ObjectPermission parsePermission(String str)
Copyright © 2021. All Rights Reserved.