public enum WriteMode extends java.lang.Enum<WriteMode>
mode
parameter on a set or generate request,
indicating the action CredHub should take when the credential being set or generated
already exists.Enum Constant and Description |
---|
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
|
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
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMode()
Get the
mode value as a String |
java.lang.String |
toString() |
static WriteMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WriteMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WriteMode NO_OVERWRITE
public static final WriteMode OVERWRITE
public static final WriteMode CONVERGE
public static WriteMode[] values()
for (WriteMode c : WriteMode.values()) System.out.println(c);
public static WriteMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getMode()
mode
value as a String
public java.lang.String toString()
toString
in class java.lang.Enum<WriteMode>