ImmutableStorageAccount Class
- java.
lang. Object - com.
azure. resourcemanager. storage. models. ImmutableStorageAccount
- com.
Implements
public final class ImmutableStorageAccount
implements JsonSerializable<ImmutableStorageAccount>
This property enables and defines account-level immutability. Enabling the feature auto-enables Blob Versioning.
Constructor Summary
Constructor | Description |
---|---|
ImmutableStorageAccount() |
Creates an instance of Immutable |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
enabled()
Get the enabled property: A boolean flag which enables account-level immutability. |
static
Immutable |
fromJson(JsonReader jsonReader)
Reads an instance of Immutable |
Account |
immutabilityPolicy()
Get the immutability |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Immutable |
withEnabled(Boolean enabled)
Set the enabled property: A boolean flag which enables account-level immutability. |
Immutable |
withImmutabilityPolicy(AccountImmutabilityPolicyProperties immutabilityPolicy)
Set the immutability |
Methods inherited from java.lang.Object
Constructor Details
ImmutableStorageAccount
public ImmutableStorageAccount()
Creates an instance of ImmutableStorageAccount class.
Method Details
enabled
public Boolean enabled()
Get the enabled property: A boolean flag which enables account-level immutability. All the containers under such an account have object-level immutability enabled by default.
Returns:
fromJson
public static ImmutableStorageAccount fromJson(JsonReader jsonReader)
Reads an instance of ImmutableStorageAccount from the JsonReader.
Parameters:
Returns:
Throws:
immutabilityPolicy
public AccountImmutabilityPolicyProperties immutabilityPolicy()
Get the immutabilityPolicy property: Specifies the default account-level immutability policy which is inherited and applied to objects that do not possess an explicit immutability policy at the object level. The object-level immutability policy has higher precedence than the container-level immutability policy, which has a higher precedence than the account-level immutability policy.
Returns:
toJson
validate
public void validate()
Validates the instance.
withEnabled
public ImmutableStorageAccount withEnabled(Boolean enabled)
Set the enabled property: A boolean flag which enables account-level immutability. All the containers under such an account have object-level immutability enabled by default.
Parameters:
Returns:
withImmutabilityPolicy
public ImmutableStorageAccount withImmutabilityPolicy(AccountImmutabilityPolicyProperties immutabilityPolicy)
Set the immutabilityPolicy property: Specifies the default account-level immutability policy which is inherited and applied to objects that do not possess an explicit immutability policy at the object level. The object-level immutability policy has higher precedence than the container-level immutability policy, which has a higher precedence than the account-level immutability policy.
Parameters:
Returns:
Applies to
Azure SDK for Java