Enum Class WriteMode
- All Implemented Interfaces:
Serializable
,Comparable<WriteMode>
,Constable
The acceptable values for the
mode
parameter on a set or generate request,
indicating the action CredHub should take when the credential being set or generated
already exists.- Author:
- Scott Frederick
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIndicates that CredHub should replace any existing credential value with a new value only if generation parameters are different from the original generation parameters.Indicates that CredHub should not replace the value of a credential if the credential exists.Indicates that CredHub should replace any existing credential value with a new value. -
Method Summary
-
Enum Constant Details
-
NO_OVERWRITE
Indicates that CredHub should not replace the value of a credential if the credential exists. -
OVERWRITE
Indicates that CredHub should replace any existing credential value with a new value. -
CONVERGE
Indicates that CredHub should replace any existing credential value with a new value only if generation parameters are different from the original generation parameters.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getMode
Get themode
value as aString
.- Returns:
- the mode value
-
toString
-