LeaseDuration Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. resourcemanager. storage. models. LeaseDuration
- com.
- com.
public final class LeaseDuration
extends ExpandableStringEnum<LeaseDuration>
Specifies whether the lease on a container is of infinite or fixed duration, only when the container is leased.
Field Summary
Modifier and Type | Field and Description |
---|---|
static final
Lease |
FIXED
Static value Fixed for Lease |
static final
Lease |
INFINITE
Static value Infinite for Lease |
Constructor Summary
Constructor | Description |
---|---|
LeaseDuration() |
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
FIXED
public static final LeaseDuration FIXED
Static value Fixed for LeaseDuration.
INFINITE
public static final LeaseDuration INFINITE
Static value Infinite for LeaseDuration.
Constructor Details
LeaseDuration
@Deprecated
public LeaseDuration()
Deprecated
Creates a new instance of LeaseDuration value.
Method Details
fromString
public static LeaseDuration fromString(String name)
Creates or finds a LeaseDuration from its string representation.
Parameters:
Returns:
values
public static Collection
Gets known LeaseDuration values.
Returns:
Applies to
Azure SDK for Java