UpdateHistoryProperty Class
- java.
lang. Object - com.
azure. resourcemanager. storage. models. UpdateHistoryProperty
- com.
Implements
public final class UpdateHistoryProperty
implements JsonSerializable<UpdateHistoryProperty>
An update history of the ImmutabilityPolicy of a blob container.
Constructor Summary
Constructor | Description |
---|---|
UpdateHistoryProperty() |
Creates an instance of Update |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
allowProtectedAppendWrites()
Get the allow |
Boolean |
allowProtectedAppendWritesAll()
Get the allow |
static
Update |
fromJson(JsonReader jsonReader)
Reads an instance of Update |
Integer |
immutabilityPeriodSinceCreationInDays()
Get the immutability |
String |
objectIdentifier()
Get the object |
String |
tenantId()
Get the tenant |
Offset |
timestamp()
Get the timestamp property: Returns the date and time the Immutability |
Json |
toJson(JsonWriter jsonWriter) |
Immutability |
update()
Get the update property: The Immutability |
String |
upn()
Get the upn property: Returns the User Principal Name of the user who updated the Immutability |
void |
validate()
Validates the instance. |
Update |
withAllowProtectedAppendWrites(Boolean allowProtectedAppendWrites)
Set the allow |
Update |
withAllowProtectedAppendWritesAll(Boolean allowProtectedAppendWritesAll)
Set the allow |
Methods inherited from java.lang.Object
Constructor Details
UpdateHistoryProperty
public UpdateHistoryProperty()
Creates an instance of UpdateHistoryProperty 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:
fromJson
public static UpdateHistoryProperty fromJson(JsonReader jsonReader)
Reads an instance of UpdateHistoryProperty from the JsonReader.
Parameters:
Returns:
Throws:
immutabilityPeriodSinceCreationInDays
public Integer immutabilityPeriodSinceCreationInDays()
Get the immutabilityPeriodSinceCreationInDays property: The immutability period for the blobs in the container since the policy creation, in days.
Returns:
objectIdentifier
public String objectIdentifier()
Get the objectIdentifier property: Returns the Object ID of the user who updated the ImmutabilityPolicy.
Returns:
tenantId
public String tenantId()
Get the tenantId property: Returns the Tenant ID that issued the token for the user who updated the ImmutabilityPolicy.
Returns:
timestamp
public OffsetDateTime timestamp()
Get the timestamp property: Returns the date and time the ImmutabilityPolicy was updated.
Returns:
toJson
update
public ImmutabilityPolicyUpdateType update()
Get the update property: The ImmutabilityPolicy update type of a blob container, possible values include: put, lock and extend.
Returns:
upn
public String upn()
Get the upn property: Returns the User Principal Name of the user who updated the ImmutabilityPolicy.
Returns:
validate
public void validate()
Validates the instance.
withAllowProtectedAppendWrites
public UpdateHistoryProperty 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 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:
Returns:
Applies to
Azure SDK for Java