Package com.oracle.bmc.apigateway.model
Enum RouteAuthorizationPolicy.Type
- java.lang.Object
-
- java.lang.Enum<RouteAuthorizationPolicy.Type>
-
- com.oracle.bmc.apigateway.model.RouteAuthorizationPolicy.Type
-
- All Implemented Interfaces:
BmcEnum
,Serializable
,Comparable<RouteAuthorizationPolicy.Type>
- Enclosing class:
- RouteAuthorizationPolicy
public static enum RouteAuthorizationPolicy.Type extends Enum<RouteAuthorizationPolicy.Type> implements BmcEnum
Indicates how authorization should be applied.For a type of ANY_OF, an “allowedScope” property must also be specified. Otherwise, only a type is required. For a type of ANONYMOUS, an authenticated API must have the “isAnonymousAccessAllowed” property set to “true” in the authentication policy.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Anonymous
AnyOf
AuthenticationOnly
UnknownEnumValue
This value is used if a service returns a value for this enum that is not recognized by this version of the SDK.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RouteAuthorizationPolicy.Type
create(String key)
String
getValue()
static RouteAuthorizationPolicy.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static RouteAuthorizationPolicy.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Anonymous
public static final RouteAuthorizationPolicy.Type Anonymous
-
AnyOf
public static final RouteAuthorizationPolicy.Type AnyOf
-
AuthenticationOnly
public static final RouteAuthorizationPolicy.Type AuthenticationOnly
-
UnknownEnumValue
public static final RouteAuthorizationPolicy.Type UnknownEnumValue
This value is used if a service returns a value for this enum that is not recognized by this version of the SDK.
-
-
Method Detail
-
values
public static RouteAuthorizationPolicy.Type[] 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 (RouteAuthorizationPolicy.Type c : RouteAuthorizationPolicy.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RouteAuthorizationPolicy.Type 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 RouteAuthorizationPolicy.Type create(String key)
-
-