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 and 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.
|
Modifier and Type | Method and 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.
|
public static final RouteAuthorizationPolicy.Type Anonymous
public static final RouteAuthorizationPolicy.Type AnyOf
public static final RouteAuthorizationPolicy.Type AuthenticationOnly
public static final RouteAuthorizationPolicy.Type UnknownEnumValue
public static RouteAuthorizationPolicy.Type[] values()
for (RouteAuthorizationPolicy.Type c : RouteAuthorizationPolicy.Type.values()) System.out.println(c);
public static RouteAuthorizationPolicy.Type 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 static RouteAuthorizationPolicy.Type create(String key)
Copyright © 2016–2024. All rights reserved.