Class AccountImmutabilityPolicyState

java.lang.Object
com.azure.core.util.ExpandableStringEnum<AccountImmutabilityPolicyState>
com.azure.resourcemanager.storage.models.AccountImmutabilityPolicyState

public final class AccountImmutabilityPolicyState extends com.azure.core.util.ExpandableStringEnum<AccountImmutabilityPolicyState>
The ImmutabilityPolicy state defines the mode of the policy. Disabled state disables the policy, Unlocked state allows increase and decrease of immutability retention time and also allows toggling allowProtectedAppendWrites property, Locked state only allows the increase of the immutability retention time. A policy can only be created in a Disabled or Unlocked state and can be toggled between the two states. Only a policy in an Unlocked state can transition to a Locked state which cannot be reverted.
  • Field Details

  • Constructor Details

    • AccountImmutabilityPolicyState

      @Deprecated public AccountImmutabilityPolicyState()
      Deprecated.
      Use the fromString(String) factory method.
      Creates a new instance of AccountImmutabilityPolicyState value.
  • Method Details

    • fromString

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

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