Package com.oracle.bmc.identity.requests
Enum ListCompartmentsRequest.AccessLevel
- java.lang.Object
-
- java.lang.Enum<ListCompartmentsRequest.AccessLevel>
-
- com.oracle.bmc.identity.requests.ListCompartmentsRequest.AccessLevel
-
- All Implemented Interfaces:
BmcEnum
,Serializable
,Comparable<ListCompartmentsRequest.AccessLevel>
- Enclosing class:
- ListCompartmentsRequest
public static enum ListCompartmentsRequest.AccessLevel extends Enum<ListCompartmentsRequest.AccessLevel> implements BmcEnum
Valid values are ANY and ACCESSIBLE.Default is ANY. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). For the compartments on which the user indirectly has INSPECT permissions, a restricted set of fields is returned.
When set to ANY permissions are not checked.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Accessible
Any
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ListCompartmentsRequest.AccessLevel
create(String key)
String
getValue()
static ListCompartmentsRequest.AccessLevel
valueOf(String name)
Returns the enum constant of this type with the specified name.static ListCompartmentsRequest.AccessLevel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Any
public static final ListCompartmentsRequest.AccessLevel Any
-
Accessible
public static final ListCompartmentsRequest.AccessLevel Accessible
-
-
Method Detail
-
values
public static ListCompartmentsRequest.AccessLevel[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ListCompartmentsRequest.AccessLevel c : ListCompartmentsRequest.AccessLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ListCompartmentsRequest.AccessLevel 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 nameNullPointerException
- if the argument is null
-
create
public static ListCompartmentsRequest.AccessLevel create(String key)
-
-