Class LeaseState
java.lang.Object
com.azure.core.util.ExpandableStringEnum<LeaseState>
com.azure.resourcemanager.storage.models.LeaseState
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
Lease state of the container.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LeaseStateStatic value Available for LeaseState.static final LeaseStateStatic value Breaking for LeaseState.static final LeaseStateStatic value Broken for LeaseState.static final LeaseStateStatic value Expired for LeaseState.static final LeaseStateStatic value Leased for LeaseState. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LeaseStatefromString(String name) Creates or finds a LeaseState from its string representation.static Collection<LeaseState>values()Gets known LeaseState values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
AVAILABLE
Static value Available for LeaseState. -
LEASED
Static value Leased for LeaseState. -
EXPIRED
Static value Expired for LeaseState. -
BREAKING
Static value Breaking for LeaseState. -
BROKEN
Static value Broken for LeaseState.
-
-
Constructor Details
-
LeaseState
Deprecated.Use thefromString(String)factory method.Creates a new instance of LeaseState value.
-
-
Method Details
-
fromString
Creates or finds a LeaseState from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding LeaseState.
-
values
Gets known LeaseState values.- Returns:
- known LeaseState values.
-
fromString(String)factory method.