Package com.azure.data.cosmos
Enum IndexingDirective
- java.lang.Object
-
- java.lang.Enum<IndexingDirective>
-
- com.azure.data.cosmos.IndexingDirective
-
- All Implemented Interfaces:
Serializable
,Comparable<IndexingDirective>
public enum IndexingDirective extends Enum<IndexingDirective>
Specifies whether or not the resource is to be indexed in the Azure Cosmos DB database service.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
static IndexingDirective
valueOf(String name)
Returns the enum constant of this type with the specified name.static IndexingDirective[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static IndexingDirective[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (IndexingDirective c : IndexingDirective.values()) System.out.println(c);
- 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 nameNullPointerException
- if the argument is null
-
toString
public String toString()
- Overrides:
toString
in classEnum<IndexingDirective>
-
-