Class LeaseState


  • public final class LeaseState
    extends com.azure.core.util.ExpandableStringEnum<LeaseState>
    Defines values for LeaseState.
    • Field Detail

      • AVAILABLE

        public static final LeaseState AVAILABLE
        Static value Available for LeaseState.
      • LEASED

        public static final LeaseState LEASED
        Static value Leased for LeaseState.
      • EXPIRED

        public static final LeaseState EXPIRED
        Static value Expired for LeaseState.
      • BREAKING

        public static final LeaseState BREAKING
        Static value Breaking for LeaseState.
      • BROKEN

        public static final LeaseState BROKEN
        Static value Broken for LeaseState.
    • Constructor Detail

      • LeaseState

        public LeaseState()
    • Method Detail

      • fromString

        public static LeaseState fromString​(String name)
        Creates or finds a LeaseState from its string representation.
        Parameters:
        name - a name to look for.
        Returns:
        the corresponding LeaseState.