AccountImmutabilityPolicyState Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. resourcemanager. storage. models. AccountImmutabilityPolicyState
- com.
- com.
public final class AccountImmutabilityPolicyState
extends 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
Modifier and Type | Field and Description |
---|---|
static final
Account |
DISABLED
Static value Disabled for Account |
static final
Account |
LOCKED
Static value Locked for Account |
static final
Account |
UNLOCKED
Static value Unlocked for Account |
Constructor Summary
Constructor | Description |
---|---|
AccountImmutabilityPolicyState() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Account |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Account |
fromString(String name)
Creates or finds a Account |
static
Collection<Account |
values()
Gets known Account |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
DISABLED
public static final AccountImmutabilityPolicyState DISABLED
Static value Disabled for AccountImmutabilityPolicyState.
LOCKED
public static final AccountImmutabilityPolicyState LOCKED
Static value Locked for AccountImmutabilityPolicyState.
UNLOCKED
public static final AccountImmutabilityPolicyState UNLOCKED
Static value Unlocked for AccountImmutabilityPolicyState.
Constructor Details
AccountImmutabilityPolicyState
@Deprecated
public AccountImmutabilityPolicyState()
Deprecated
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:
Returns:
values
public static Collection
Gets known AccountImmutabilityPolicyState values.
Returns:
Applies to
Azure SDK for Java