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>

public final class LeaseState extends com.azure.core.util.ExpandableStringEnum<LeaseState>
Lease state of the container.
  • Field Details

    • 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 Details

  • Method Details

    • 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.
    • values

      public static Collection<LeaseState> values()
      Gets known LeaseState values.
      Returns:
      known LeaseState values.