Enum LeaseDurationType
- java.lang.Object
-
- java.lang.Enum<LeaseDurationType>
-
- com.azure.storage.file.share.models.LeaseDurationType
-
- All Implemented Interfaces:
Serializable
,Comparable<LeaseDurationType>
public enum LeaseDurationType extends Enum<LeaseDurationType>
Defines values for LeaseDurationType.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LeaseDurationType
fromString(String value)
Parses a serialized value to a LeaseDurationType instance.String
toString()
static LeaseDurationType
valueOf(String name)
Returns the enum constant of this type with the specified name.static LeaseDurationType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INFINITE
public static final LeaseDurationType INFINITE
Enum value infinite.
-
FIXED
public static final LeaseDurationType FIXED
Enum value fixed.
-
-
Method Detail
-
values
public static LeaseDurationType[] 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 (LeaseDurationType c : LeaseDurationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LeaseDurationType 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 LeaseDurationType fromString(String value)
Parses a serialized value to a LeaseDurationType instance.- Parameters:
value
- the serialized value to parse.- Returns:
- the parsed LeaseDurationType object, or null if unable to parse.
-
toString
public String toString()
- Overrides:
toString
in classEnum<LeaseDurationType>
-
-