LeaseState Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. resourcemanager. storage. models. LeaseState
- com.
- com.
public final class LeaseState
extends ExpandableStringEnum<LeaseState>
Lease state of the container.
Field Summary
Modifier and Type | Field and Description |
---|---|
static final
Lease |
AVAILABLE
Static value Available for Lease |
static final
Lease |
BREAKING
Static value Breaking for Lease |
static final
Lease |
BROKEN
Static value Broken for Lease |
static final
Lease |
EXPIRED
Static value Expired for Lease |
static final
Lease |
LEASED
Static value Leased for Lease |
Constructor Summary
Constructor | Description |
---|---|
LeaseState() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Lease |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Lease |
fromString(String name)
Creates or finds a Lease |
static
Collection<Lease |
values()
Gets known Lease |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
AVAILABLE
public static final LeaseState AVAILABLE
Static value Available for LeaseState.
BREAKING
public static final LeaseState BREAKING
Static value Breaking for LeaseState.
BROKEN
public static final LeaseState BROKEN
Static value Broken for LeaseState.
EXPIRED
public static final LeaseState EXPIRED
Static value Expired for LeaseState.
LEASED
public static final LeaseState LEASED
Static value Leased for LeaseState.
Constructor Details
LeaseState
@Deprecated
public LeaseState()
Deprecated
Creates a new instance of LeaseState value.
Method Details
fromString
public static LeaseState fromString(String name)
Creates or finds a LeaseState from its string representation.
Parameters:
Returns:
values
public static Collection
Gets known LeaseState values.
Returns:
Applies to
Azure SDK for Java