ImmutabilityPolicyInner Class
- java.lang.Object
- com.azure.core.management.ProxyResource
- com.azure.resourcemanager.storage.models.AzureEntityResource
- com.azure.resourcemanager.storage.fluent.models.ImmutabilityPolicyInner
public final class ImmutabilityPolicyInner
extends AzureEntityResource
The ImmutabilityPolicy property of a blob container, including Id, resource name, resource type, Etag.
Constructor Summary
Constructor | Description |
---|---|
ImmutabilityPolicyInner() |
Creates an instance of Immutability |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
allowProtectedAppendWrites()
Get the allow |
Boolean |
allowProtectedAppendWritesAll()
Get the allow |
Integer |
immutabilityPeriodSinceCreationInDays()
Get the immutability |
Immutability |
state()
Get the state property: The Immutability |
void |
validate()
Validates the instance. |
Immutability |
withAllowProtectedAppendWrites(Boolean allowProtectedAppendWrites)
Set the allow |
Immutability |
withAllowProtectedAppendWritesAll(Boolean allowProtectedAppendWritesAll)
Set the allow |
Immutability |
withImmutabilityPeriodSinceCreationInDays(Integer immutabilityPeriodSinceCreationInDays)
Set the immutability |
Methods inherited from ProxyResource
Methods inherited from AzureEntityResource
Methods inherited from java.lang.Object
Constructor Details
ImmutabilityPolicyInner
public ImmutabilityPolicyInner()
Creates an instance of ImmutabilityPolicyInner class.
Method Details
allowProtectedAppendWrites
public Boolean 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:
allowProtectedAppendWritesAll
public Boolean 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:
immutabilityPeriodSinceCreationInDays
public Integer immutabilityPeriodSinceCreationInDays()
Get the immutabilityPeriodSinceCreationInDays property: The immutability period for the blobs in the container since the policy creation, in days.
Returns:
state
public ImmutabilityPolicyState state()
Get the state property: The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked.
Returns:
validate
public void validate()
Validates the instance.
Overrides:
ImmutabilityPolicyInner.validate()withAllowProtectedAppendWrites
public ImmutabilityPolicyInner withAllowProtectedAppendWrites(Boolean allowProtectedAppendWrites)
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:
Returns:
withAllowProtectedAppendWritesAll
public ImmutabilityPolicyInner 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:
Returns:
withImmutabilityPeriodSinceCreationInDays
public ImmutabilityPolicyInner withImmutabilityPeriodSinceCreationInDays(Integer immutabilityPeriodSinceCreationInDays)
Set the immutabilityPeriodSinceCreationInDays property: The immutability period for the blobs in the container since the policy creation, in days.
Parameters:
Returns: