Enum RedisCache.RedisVersion
- java.lang.Object
-
- java.lang.Enum<RedisCache.RedisVersion>
-
- com.azure.resourcemanager.redis.models.RedisCache.RedisVersion
-
- All Implemented Interfaces:
Serializable,Comparable<RedisCache.RedisVersion>
- Enclosing interface:
- RedisCache
public static enum RedisCache.RedisVersion extends Enum<RedisCache.RedisVersion>
major version of redis for version 4.x.x, use V4 for version 6.x.x, use V6
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetValue()Gets the string representation of the version.static RedisCache.RedisVersionvalueOf(String name)Returns the enum constant of this type with the specified name.static RedisCache.RedisVersion[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
V6
public static final RedisCache.RedisVersion V6
version 6.x.x
-
V4
public static final RedisCache.RedisVersion V4
version 4.x.x
-
-
Method Detail
-
values
public static RedisCache.RedisVersion[] 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 (RedisCache.RedisVersion c : RedisCache.RedisVersion.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RedisCache.RedisVersion 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
-
getValue
public String getValue()
Gets the string representation of the version.- Returns:
- The string representation of the version.
-
-