Enum IndexingDirective

java.lang.Object
java.lang.Enum<IndexingDirective>
com.azure.cosmos.models.IndexingDirective
All Implemented Interfaces:
Serializable, Comparable<IndexingDirective>, java.lang.constant.Constable

public enum IndexingDirective extends Enum<IndexingDirective>
Specifies whether or not the resource is to be indexed in the Azure Cosmos DB database service.
  • Enum Constant Details

    • DEFAULT

      public static final IndexingDirective DEFAULT
      Use any pre-defined/pre-configured defaults.
    • INCLUDE

      public static final IndexingDirective INCLUDE
      Index the resource.
    • EXCLUDE

      public static final IndexingDirective EXCLUDE
      Do not index the resource.
  • Method Details

    • values

      public static IndexingDirective[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static IndexingDirective valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • toString

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