Class UpdateHistoryProperty
java.lang.Object
com.azure.resourcemanager.storage.models.UpdateHistoryProperty
An update history of the ImmutabilityPolicy of a blob container.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the allowProtectedAppendWrites property: This property can only be changed for unlocked time-based retention policies.Get the allowProtectedAppendWritesAll property: This property can only be changed for unlocked time-based retention policies.Get the immutabilityPeriodSinceCreationInDays property: The immutability period for the blobs in the container since the policy creation, in days.Get the objectIdentifier property: Returns the Object ID of the user who updated the ImmutabilityPolicy.tenantId()Get the tenantId property: Returns the Tenant ID that issued the token for the user who updated the ImmutabilityPolicy.Get the timestamp property: Returns the date and time the ImmutabilityPolicy was updated.update()Get the update property: The ImmutabilityPolicy update type of a blob container, possible values include: put, lock and extend.upn()Get the upn property: Returns the User Principal Name of the user who updated the ImmutabilityPolicy.voidvalidate()Validates the instance.withAllowProtectedAppendWrites(Boolean allowProtectedAppendWrites) Set the allowProtectedAppendWrites property: This property can only be changed for unlocked time-based retention policies.withAllowProtectedAppendWritesAll(Boolean allowProtectedAppendWritesAll) Set the allowProtectedAppendWritesAll property: This property can only be changed for unlocked time-based retention policies.
-
Constructor Details
-
UpdateHistoryProperty
public UpdateHistoryProperty()
-
-
Method Details
-
update
Get the update property: The ImmutabilityPolicy update type of a blob container, possible values include: put, lock and extend.- Returns:
- the update value.
-
immutabilityPeriodSinceCreationInDays
Get the immutabilityPeriodSinceCreationInDays property: The immutability period for the blobs in the container since the policy creation, in days.- Returns:
- the immutabilityPeriodSinceCreationInDays value.
-
timestamp
Get the timestamp property: Returns the date and time the ImmutabilityPolicy was updated.- Returns:
- the timestamp value.
-
objectIdentifier
Get the objectIdentifier property: Returns the Object ID of the user who updated the ImmutabilityPolicy.- Returns:
- the objectIdentifier value.
-
tenantId
Get the tenantId property: Returns the Tenant ID that issued the token for the user who updated the ImmutabilityPolicy.- Returns:
- the tenantId value.
-
upn
Get the upn property: Returns the User Principal Name of the user who updated the ImmutabilityPolicy.- Returns:
- the upn value.
-
allowProtectedAppendWrites
Get the allowProtectedAppendWrites property: 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
Set the allowProtectedAppendWrites property: 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 UpdateHistoryProperty object itself.
-
allowProtectedAppendWritesAll
Get the allowProtectedAppendWritesAll property: This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to both 'Append and Bock Blobs' 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. The 'allowProtectedAppendWrites' and 'allowProtectedAppendWritesAll' properties are mutually exclusive.- Returns:
- the allowProtectedAppendWritesAll value.
-
withAllowProtectedAppendWritesAll
public UpdateHistoryProperty withAllowProtectedAppendWritesAll(Boolean allowProtectedAppendWritesAll) Set the allowProtectedAppendWritesAll property: This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to both 'Append and Bock Blobs' 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. The 'allowProtectedAppendWrites' and 'allowProtectedAppendWritesAll' properties are mutually exclusive.- Parameters:
allowProtectedAppendWritesAll- the allowProtectedAppendWritesAll value to set.- Returns:
- the UpdateHistoryProperty object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-