Enum Class Refresh

java.lang.Object
java.lang.Enum<Refresh>
co.elastic.clients.elasticsearch._types.Refresh
All Implemented Interfaces:
JsonEnum, JsonpSerializable, Serializable, Comparable<Refresh>, Constable

@JsonpDeserializable public enum Refresh extends Enum<Refresh> implements JsonEnum
See Also:
  • Enum Constant Details

    • True

      public static final Refresh True
    • False

      public static final Refresh False
    • WaitFor

      public static final Refresh WaitFor
  • Field Details

  • Method Details

    • values

      public static Refresh[] 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 Refresh 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
    • jsonValue

      public String jsonValue()
      Specified by:
      jsonValue in interface JsonEnum
    • serialize

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper params)
      Specified by:
      serialize in interface JsonEnum
      Specified by:
      serialize in interface JsonpSerializable