Enum EndpointCredentials.CredentialType
- java.lang.Object
-
- java.lang.Enum<EndpointCredentials.CredentialType>
-
- com.oracle.bmc.loganalytics.model.EndpointCredentials.CredentialType
-
- All Implemented Interfaces:
BmcEnum
,Serializable
,Comparable<EndpointCredentials.CredentialType>
- Enclosing class:
- EndpointCredentials
public static enum EndpointCredentials.CredentialType extends Enum<EndpointCredentials.CredentialType> implements BmcEnum
The credential type.NONE indicates credentials are not needed to access the endpoint. BASIC_AUTH represents a username and password based model. TOKEN could be static or dynamic. In case of dynamic tokens, also specify the endpoint from which the token must be fetched.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BasicAuth
DynamicToken
None
StaticToken
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 EndpointCredentials.CredentialType
create(String key)
String
getValue()
static EndpointCredentials.CredentialType
valueOf(String name)
Returns the enum constant of this type with the specified name.static EndpointCredentials.CredentialType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
None
public static final EndpointCredentials.CredentialType None
-
BasicAuth
public static final EndpointCredentials.CredentialType BasicAuth
-
StaticToken
public static final EndpointCredentials.CredentialType StaticToken
-
DynamicToken
public static final EndpointCredentials.CredentialType DynamicToken
-
UnknownEnumValue
public static final EndpointCredentials.CredentialType 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 EndpointCredentials.CredentialType[] 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 (EndpointCredentials.CredentialType c : EndpointCredentials.CredentialType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EndpointCredentials.CredentialType 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 EndpointCredentials.CredentialType create(String key)
-
-