Enum DefaultConsistencyLevel
- java.lang.Object
-
- java.lang.Enum<DefaultConsistencyLevel>
-
- com.microsoft.azure.management.cosmosdb.DefaultConsistencyLevel
-
- All Implemented Interfaces:
Serializable,Comparable<DefaultConsistencyLevel>
public enum DefaultConsistencyLevel extends Enum<DefaultConsistencyLevel>
Defines values for DefaultConsistencyLevel.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOUNDED_STALENESSEnum value BoundedStaleness.CONSISTENT_PREFIXEnum value ConsistentPrefix.EVENTUALEnum value Eventual.SESSIONEnum value Session.STRONGEnum value Strong.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DefaultConsistencyLevelfromString(String value)Parses a serialized value to a DefaultConsistencyLevel instance.StringtoString()static DefaultConsistencyLevelvalueOf(String name)Returns the enum constant of this type with the specified name.static DefaultConsistencyLevel[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EVENTUAL
public static final DefaultConsistencyLevel EVENTUAL
Enum value Eventual.
-
SESSION
public static final DefaultConsistencyLevel SESSION
Enum value Session.
-
BOUNDED_STALENESS
public static final DefaultConsistencyLevel BOUNDED_STALENESS
Enum value BoundedStaleness.
-
STRONG
public static final DefaultConsistencyLevel STRONG
Enum value Strong.
-
CONSISTENT_PREFIX
public static final DefaultConsistencyLevel CONSISTENT_PREFIX
Enum value ConsistentPrefix.
-
-
Method Detail
-
values
public static DefaultConsistencyLevel[] 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 (DefaultConsistencyLevel c : DefaultConsistencyLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DefaultConsistencyLevel 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
-
fromString
public static DefaultConsistencyLevel fromString(String value)
Parses a serialized value to a DefaultConsistencyLevel instance.- Parameters:
value- the serialized value to parse.- Returns:
- the parsed DefaultConsistencyLevel object, or null if unable to parse.
-
toString
public String toString()
- Overrides:
toStringin classEnum<DefaultConsistencyLevel>
-
-