IndexingMode.java
- // Copyright (c) Microsoft Corporation. All rights reserved.
- // Licensed under the MIT License.
- //
- // Code generated by Microsoft (R) AutoRest Code Generator.
- // Changes may cause incorrect behavior and will be lost if the code is
- // regenerated.
- package com.azure.search.documents.indexes.models;
- import com.azure.core.util.ExpandableStringEnum;
- import com.fasterxml.jackson.annotation.JsonCreator;
- import java.util.Collection;
- /** Defines values for IndexingMode. */
- public final class IndexingMode extends ExpandableStringEnum<IndexingMode> {
- /** Static value indexingAllDocs for IndexingMode. */
- public static final IndexingMode INDEXING_ALL_DOCS = fromString("indexingAllDocs");
- /** Static value indexingResetDocs for IndexingMode. */
- public static final IndexingMode INDEXING_RESET_DOCS = fromString("indexingResetDocs");
- /**
- * Creates or finds a IndexingMode from its string representation.
- *
- * @param name a name to look for.
- * @return the corresponding IndexingMode.
- */
- @JsonCreator
- public static IndexingMode fromString(String name) {
- return fromString(name, IndexingMode.class);
- }
- /** @return known IndexingMode values. */
- public static Collection<IndexingMode> values() {
- return values(IndexingMode.class);
- }
- }