Class ImmutabilityPolicyProperties

java.lang.Object
com.microsoft.azure.management.storage.ImmutabilityPolicyProperties

public class ImmutabilityPolicyProperties extends Object
The properties of an ImmutabilityPolicy of a blob container.
  • Constructor Details

    • ImmutabilityPolicyProperties

      public ImmutabilityPolicyProperties()
  • Method Details

    • immutabilityPeriodSinceCreationInDays

      public Integer 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

      public ImmutabilityPolicyState 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

      public Boolean 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

      public String etag()
      Get immutabilityPolicy Etag.
      Returns:
      the etag value
    • updateHistory

      public List<UpdateHistoryProperty> updateHistory()
      Get the ImmutabilityPolicy update history of the blob container.
      Returns:
      the updateHistory value