public class ImmutabilityPolicyInner extends AzureEntityResource
| Constructor and Description |
|---|
ImmutabilityPolicyInner() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
allowProtectedAppendWrites()
Get the allowProtectedAppendWrites property: This property can only be changed for unlocked time-based retention
policies.
|
Integer |
immutabilityPeriodSinceCreationInDays()
Get the immutabilityPeriodSinceCreationInDays property: The immutability period for the blobs in the container
since the policy creation, in days.
|
ImmutabilityPolicyState |
state()
Get the state property: The ImmutabilityPolicy state of a blob container, possible values include: Locked and
Unlocked.
|
void |
validate()
Validates the instance.
|
ImmutabilityPolicyInner |
withAllowProtectedAppendWrites(Boolean allowProtectedAppendWrites)
Set the allowProtectedAppendWrites property: This property can only be changed for unlocked time-based retention
policies.
|
ImmutabilityPolicyInner |
withImmutabilityPeriodSinceCreationInDays(Integer immutabilityPeriodSinceCreationInDays)
Set the immutabilityPeriodSinceCreationInDays property: The immutability period for the blobs in the container
since the policy creation, in days.
|
etagpublic Integer immutabilityPeriodSinceCreationInDays()
public ImmutabilityPolicyInner withImmutabilityPeriodSinceCreationInDays(Integer immutabilityPeriodSinceCreationInDays)
immutabilityPeriodSinceCreationInDays - the immutabilityPeriodSinceCreationInDays value to set.public ImmutabilityPolicyState state()
public Boolean allowProtectedAppendWrites()
public ImmutabilityPolicyInner withAllowProtectedAppendWrites(Boolean allowProtectedAppendWrites)
allowProtectedAppendWrites - the allowProtectedAppendWrites value to set.public void validate()
validate in class AzureEntityResourceIllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.