public enum WriteMode extends 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 |
---|---|
String |
getMode()
Get the
mode value as a String . |
String |
toString() |
static WriteMode |
valueOf(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(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 String getMode()
mode
value as a String
.