Class ImmutabilityPolicyProperties
java.lang.Object
com.microsoft.azure.management.storage.ImmutabilityPolicyProperties
The properties of an ImmutabilityPolicy of a blob container.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet this property can only be changed for unlocked time-based retention policies.etag()
Get immutabilityPolicy Etag.Get the immutability period for the blobs in the container since the policy creation, in days.state()
Get the ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked.Get the ImmutabilityPolicy update history of the blob container.withAllowProtectedAppendWrites
(Boolean allowProtectedAppendWrites) Set this property can only be changed for unlocked time-based retention policies.withImmutabilityPeriodSinceCreationInDays
(Integer immutabilityPeriodSinceCreationInDays) Set the immutability period for the blobs in the container since the policy creation, in days.
-
Constructor Details
-
ImmutabilityPolicyProperties
public ImmutabilityPolicyProperties()
-
-
Method Details
-
immutabilityPeriodSinceCreationInDays
Get the immutability period for the blobs in the container since the policy creation, in days.- Returns:
- the immutabilityPeriodSinceCreationInDays value
-
withImmutabilityPeriodSinceCreationInDays
public ImmutabilityPolicyProperties withImmutabilityPeriodSinceCreationInDays(Integer immutabilityPeriodSinceCreationInDays) Set the immutability period for the blobs in the container since the policy creation, in days.- Parameters:
immutabilityPeriodSinceCreationInDays
- the immutabilityPeriodSinceCreationInDays value to set- Returns:
- the ImmutabilityPolicyProperties object itself.
-
state
Get the ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked. Possible values include: 'Locked', 'Unlocked'.- Returns:
- the state value
-
allowProtectedAppendWrites
Get this property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to an append blob while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API.- Returns:
- the allowProtectedAppendWrites value
-
withAllowProtectedAppendWrites
public ImmutabilityPolicyProperties withAllowProtectedAppendWrites(Boolean allowProtectedAppendWrites) Set this property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to an append blob while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API.- Parameters:
allowProtectedAppendWrites
- the allowProtectedAppendWrites value to set- Returns:
- the ImmutabilityPolicyProperties object itself.
-
etag
Get immutabilityPolicy Etag.- Returns:
- the etag value
-
updateHistory
Get the ImmutabilityPolicy update history of the blob container.- Returns:
- the updateHistory value
-