Enum Class WriteMode

java.lang.Object
java.lang.Enum<WriteMode>
org.springframework.credhub.support.WriteMode
All Implemented Interfaces:
Serializable, Comparable<WriteMode>, Constable

public enum WriteMode extends Enum<WriteMode>
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
  • Enum Constant Details

    • NO_OVERWRITE

      public static final WriteMode NO_OVERWRITE
      Indicates that CredHub should not replace the value of a credential if the credential exists.
    • OVERWRITE

      public static final WriteMode OVERWRITE
      Indicates that CredHub should replace any existing credential value with a new value.
    • CONVERGE

      public static final WriteMode 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

      public static WriteMode[] 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

      public static WriteMode valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getMode

      public String getMode()
      Get the mode value as a String.
      Returns:
      the mode value
    • toString

      public String toString()
      Overrides:
      toString in class Enum<WriteMode>