public class ImmutabilityPolicyProperties extends Object
| Constructor and Description |
|---|
ImmutabilityPolicyProperties() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
allowProtectedAppendWrites()
Get the allowProtectedAppendWrites property: This property can only be changed for unlocked time-based retention
policies.
|
String |
etag()
Get the etag property: ImmutabilityPolicy Etag.
|
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.
|
List<UpdateHistoryProperty> |
updateHistory()
Get the updateHistory property: The ImmutabilityPolicy update history of the blob container.
|
void |
validate()
Validates the instance.
|
ImmutabilityPolicyProperties |
withAllowProtectedAppendWrites(Boolean allowProtectedAppendWrites)
Set the allowProtectedAppendWrites property: This property can only be changed for unlocked time-based retention
policies.
|
ImmutabilityPolicyProperties |
withImmutabilityPeriodSinceCreationInDays(Integer immutabilityPeriodSinceCreationInDays)
Set the immutabilityPeriodSinceCreationInDays property: The immutability period for the blobs in the container
since the policy creation, in days.
|
public String etag()
public List<UpdateHistoryProperty> updateHistory()
public Integer immutabilityPeriodSinceCreationInDays()
public ImmutabilityPolicyProperties withImmutabilityPeriodSinceCreationInDays(Integer immutabilityPeriodSinceCreationInDays)
immutabilityPeriodSinceCreationInDays - the immutabilityPeriodSinceCreationInDays value to set.public ImmutabilityPolicyState state()
public Boolean allowProtectedAppendWrites()
public ImmutabilityPolicyProperties withAllowProtectedAppendWrites(Boolean allowProtectedAppendWrites)
allowProtectedAppendWrites - the allowProtectedAppendWrites value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.