Package com.azure.data.cosmos
Enum CosmosResourceType
- java.lang.Object
-
- java.lang.Enum<CosmosResourceType>
-
- com.azure.data.cosmos.CosmosResourceType
-
- All Implemented Interfaces:
Serializable
,Comparable<CosmosResourceType>
public enum CosmosResourceType extends Enum<CosmosResourceType>
Resource types in the Azure Cosmos DB database service.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Attachment
Conflict
Database
Document
DocumentCollection
Index
Offer
Permission
StoredProcedure
System
Trigger
User
UserDefinedFunction
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
value()
static CosmosResourceType
valueOf(String name)
Returns the enum constant of this type with the specified name.static CosmosResourceType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
System
public static final CosmosResourceType System
-
Attachment
public static final CosmosResourceType Attachment
-
DocumentCollection
public static final CosmosResourceType DocumentCollection
-
Conflict
public static final CosmosResourceType Conflict
-
Database
public static final CosmosResourceType Database
-
Document
public static final CosmosResourceType Document
-
Index
public static final CosmosResourceType Index
-
Offer
public static final CosmosResourceType Offer
-
Permission
public static final CosmosResourceType Permission
-
StoredProcedure
public static final CosmosResourceType StoredProcedure
-
Trigger
public static final CosmosResourceType Trigger
-
User
public static final CosmosResourceType User
-
UserDefinedFunction
public static final CosmosResourceType UserDefinedFunction
-
-
Method Detail
-
values
public static CosmosResourceType[] 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 (CosmosResourceType c : CosmosResourceType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CosmosResourceType 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
-
value
public int value()
-
-