Package com.azure.data.cosmos
Enum AccessConditionType
- java.lang.Object
-
- java.lang.Enum<AccessConditionType>
-
- com.azure.data.cosmos.AccessConditionType
-
- All Implemented Interfaces:
Serializable
,Comparable<AccessConditionType>
public enum AccessConditionType extends Enum<AccessConditionType>
Specifies the set of access condition types that can be used for operations in the Azure Cosmos DB database service.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description IF_MATCH
Check if the resource's ETag value matches the ETag value performed.IF_NONE_MATCH
Check if the resource's ETag value does not match ETag value performed.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AccessConditionType
valueOf(String name)
Returns the enum constant of this type with the specified name.static AccessConditionType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IF_MATCH
public static final AccessConditionType IF_MATCH
Check if the resource's ETag value matches the ETag value performed.
-
IF_NONE_MATCH
public static final AccessConditionType IF_NONE_MATCH
Check if the resource's ETag value does not match ETag value performed.
-
-
Method Detail
-
values
public static AccessConditionType[] 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 (AccessConditionType c : AccessConditionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AccessConditionType 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
-
-