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 Summary
FieldsModifier and TypeFieldDescriptionstatic final AccountImmutabilityPolicyStateStatic value Disabled for AccountImmutabilityPolicyState.static final AccountImmutabilityPolicyStateStatic value Locked for AccountImmutabilityPolicyState.static final AccountImmutabilityPolicyStateStatic value Unlocked for AccountImmutabilityPolicyState. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromString(String name) Creates or finds a AccountImmutabilityPolicyState from its string representation.values()Gets known AccountImmutabilityPolicyState values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, hashCode, toString, values
-
Field Details
-
UNLOCKED
Static value Unlocked for AccountImmutabilityPolicyState. -
LOCKED
Static value Locked for AccountImmutabilityPolicyState. -
DISABLED
Static value Disabled for AccountImmutabilityPolicyState.
-
-
Constructor Details
-
AccountImmutabilityPolicyState
Deprecated.Use thefromString(String)factory method.Creates a new instance of AccountImmutabilityPolicyState value.
-
-
Method Details
-
fromString
Creates or finds a AccountImmutabilityPolicyState from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding AccountImmutabilityPolicyState.
-
values
Gets known AccountImmutabilityPolicyState values.- Returns:
- known AccountImmutabilityPolicyState values.
-
fromString(String)factory method.