AccountImmutabilityPolicyState Class

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 AccountImmutabilityPolicyState DISABLED

Static value Disabled for AccountImmutabilityPolicyState.

static final AccountImmutabilityPolicyState LOCKED

Static value Locked for AccountImmutabilityPolicyState.

static final AccountImmutabilityPolicyState UNLOCKED

Static value Unlocked for AccountImmutabilityPolicyState.

Constructor Summary

Constructor Description
AccountImmutabilityPolicyState()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of AccountImmutabilityPolicyState value.

Method Summary

Modifier and Type Method and Description
static AccountImmutabilityPolicyState fromString(String name)

Creates or finds a AccountImmutabilityPolicyState from its string representation.

static Collection<AccountImmutabilityPolicyState> values()

Gets known AccountImmutabilityPolicyState values.

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

Use the fromString(String name) 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 values()

Gets known AccountImmutabilityPolicyState values.

Returns:

known AccountImmutabilityPolicyState values.

Applies to