IndexingMode.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 IndexingMode. */
  12. public final class IndexingMode extends ExpandableStringEnum<IndexingMode> {
  13.     /** Static value indexingAllDocs for IndexingMode. */
  14.     public static final IndexingMode INDEXING_ALL_DOCS = fromString("indexingAllDocs");

  15.     /** Static value indexingResetDocs for IndexingMode. */
  16.     public static final IndexingMode INDEXING_RESET_DOCS = fromString("indexingResetDocs");

  17.     /**
  18.      * Creates or finds a IndexingMode from its string representation.
  19.      *
  20.      * @param name a name to look for.
  21.      * @return the corresponding IndexingMode.
  22.      */
  23.     @JsonCreator
  24.     public static IndexingMode fromString(String name) {
  25.         return fromString(name, IndexingMode.class);
  26.     }

  27.     /** @return known IndexingMode values. */
  28.     public static Collection<IndexingMode> values() {
  29.         return values(IndexingMode.class);
  30.     }
  31. }