Enum MonitoredResourceCredential.CredentialType
- java.lang.Object
-
- java.lang.Enum<MonitoredResourceCredential.CredentialType>
-
- com.oracle.bmc.stackmonitoring.model.MonitoredResourceCredential.CredentialType
-
- All Implemented Interfaces:
BmcEnum
,Serializable
,Comparable<MonitoredResourceCredential.CredentialType>
- Enclosing class:
- MonitoredResourceCredential
public static enum MonitoredResourceCredential.CredentialType extends Enum<MonitoredResourceCredential.CredentialType> implements BmcEnum
Type of credentials specified in the credentials element.Three possible values - EXISTING, PLAINTEXT and ENCRYPTED. * EXISTING - Credential is already stored in agent and only credential name need to be passed for existing credential. * PLAINTEXT - The credential properties will have credentials in plain text format. * ENCRYPTED - The credential properties will have credentials stored in vault in encrypted format using KMS client which uses master key for encryption. The same master key will be used to decrypt the credentials before passing on to the management agent.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Encrypted
Existing
Plaintext
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 MonitoredResourceCredential.CredentialType
create(String key)
String
getValue()
static MonitoredResourceCredential.CredentialType
valueOf(String name)
Returns the enum constant of this type with the specified name.static MonitoredResourceCredential.CredentialType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Existing
public static final MonitoredResourceCredential.CredentialType Existing
-
Plaintext
public static final MonitoredResourceCredential.CredentialType Plaintext
-
Encrypted
public static final MonitoredResourceCredential.CredentialType Encrypted
-
UnknownEnumValue
public static final MonitoredResourceCredential.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 MonitoredResourceCredential.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 (MonitoredResourceCredential.CredentialType c : MonitoredResourceCredential.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 MonitoredResourceCredential.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 MonitoredResourceCredential.CredentialType create(String key)
-
-