RegexFlags.java

  1. // Copyright (c) Microsoft Corporation. All rights reserved.
  2. // Licensed under the MIT License.
  3. //
  4. // Code generated by Microsoft (R) AutoRest Code Generator.
  5. // Changes may cause incorrect behavior and will be lost if the code is
  6. // regenerated.

  7. package com.azure.search.documents.indexes.models;

  8. import com.azure.core.util.ExpandableStringEnum;
  9. import com.fasterxml.jackson.annotation.JsonCreator;
  10. import java.util.Collection;

  11. /** Defines values for RegexFlags. */
  12. public final class RegexFlags extends ExpandableStringEnum<RegexFlags> {
  13.     /** Static value CANON_EQ for RegexFlags. */
  14.     public static final RegexFlags CANON_EQ = fromString("CANON_EQ");

  15.     /** Static value CASE_INSENSITIVE for RegexFlags. */
  16.     public static final RegexFlags CASE_INSENSITIVE = fromString("CASE_INSENSITIVE");

  17.     /** Static value COMMENTS for RegexFlags. */
  18.     public static final RegexFlags COMMENTS = fromString("COMMENTS");

  19.     /** Static value DOTALL for RegexFlags. */
  20.     public static final RegexFlags DOT_ALL = fromString("DOTALL");

  21.     /** Static value LITERAL for RegexFlags. */
  22.     public static final RegexFlags LITERAL = fromString("LITERAL");

  23.     /** Static value MULTILINE for RegexFlags. */
  24.     public static final RegexFlags MULTILINE = fromString("MULTILINE");

  25.     /** Static value UNICODE_CASE for RegexFlags. */
  26.     public static final RegexFlags UNICODE_CASE = fromString("UNICODE_CASE");

  27.     /** Static value UNIX_LINES for RegexFlags. */
  28.     public static final RegexFlags UNIX_LINES = fromString("UNIX_LINES");

  29.     /**
  30.      * Creates or finds a RegexFlags from its string representation.
  31.      *
  32.      * @param name a name to look for.
  33.      * @return the corresponding RegexFlags.
  34.      */
  35.     @JsonCreator
  36.     public static RegexFlags fromString(String name) {
  37.         return fromString(name, RegexFlags.class);
  38.     }

  39.     /** @return known RegexFlags values. */
  40.     public static Collection<RegexFlags> values() {
  41.         return values(RegexFlags.class);
  42.     }
  43. }