Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.storage; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten;
The properties of an ImmutabilityPolicy of a blob container.
/** * The properties of an ImmutabilityPolicy of a blob container. */
@JsonFlatten public class ImmutabilityPolicyProperties {
The immutability period for the blobs in the container since the policy creation, in days.
/** * The immutability period for the blobs in the container since the policy * creation, in days. */
@JsonProperty(value = "properties.immutabilityPeriodSinceCreationInDays") private Integer immutabilityPeriodSinceCreationInDays;
The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked. Possible values include: 'Locked', 'Unlocked'.
/** * The ImmutabilityPolicy state of a blob container, possible values * include: Locked and Unlocked. Possible values include: 'Locked', * 'Unlocked'. */
@JsonProperty(value = "properties.state", access = JsonProperty.Access.WRITE_ONLY) private ImmutabilityPolicyState state;
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.
/** * 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. */
@JsonProperty(value = "properties.allowProtectedAppendWrites") private Boolean allowProtectedAppendWrites;
ImmutabilityPolicy Etag.
/** * ImmutabilityPolicy Etag. */
@JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) private String etag;
The ImmutabilityPolicy update history of the blob container.
/** * The ImmutabilityPolicy update history of the blob container. */
@JsonProperty(value = "updateHistory", access = JsonProperty.Access.WRITE_ONLY) private List<UpdateHistoryProperty> updateHistory;
Get the immutability period for the blobs in the container since the policy creation, in days.
Returns:the immutabilityPeriodSinceCreationInDays value
/** * Get the immutability period for the blobs in the container since the policy creation, in days. * * @return the immutabilityPeriodSinceCreationInDays value */
public Integer immutabilityPeriodSinceCreationInDays() { return this.immutabilityPeriodSinceCreationInDays; }
Set the immutability period for the blobs in the container since the policy creation, in days.
Params:
  • immutabilityPeriodSinceCreationInDays – the immutabilityPeriodSinceCreationInDays value to set
Returns:the ImmutabilityPolicyProperties object itself.
/** * Set the immutability period for the blobs in the container since the policy creation, in days. * * @param immutabilityPeriodSinceCreationInDays the immutabilityPeriodSinceCreationInDays value to set * @return the ImmutabilityPolicyProperties object itself. */
public ImmutabilityPolicyProperties withImmutabilityPeriodSinceCreationInDays(Integer immutabilityPeriodSinceCreationInDays) { this.immutabilityPeriodSinceCreationInDays = immutabilityPeriodSinceCreationInDays; return this; }
Get the ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked. Possible values include: 'Locked', 'Unlocked'.
Returns:the state value
/** * Get the ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked. Possible values include: 'Locked', 'Unlocked'. * * @return the state value */
public ImmutabilityPolicyState state() { return this.state; }
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
/** * 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. * * @return the allowProtectedAppendWrites value */
public Boolean allowProtectedAppendWrites() { return this.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.
Params:
  • allowProtectedAppendWrites – the allowProtectedAppendWrites value to set
Returns:the ImmutabilityPolicyProperties object itself.
/** * 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. * * @param allowProtectedAppendWrites the allowProtectedAppendWrites value to set * @return the ImmutabilityPolicyProperties object itself. */
public ImmutabilityPolicyProperties withAllowProtectedAppendWrites(Boolean allowProtectedAppendWrites) { this.allowProtectedAppendWrites = allowProtectedAppendWrites; return this; }
Get immutabilityPolicy Etag.
Returns:the etag value
/** * Get immutabilityPolicy Etag. * * @return the etag value */
public String etag() { return this.etag; }
Get the ImmutabilityPolicy update history of the blob container.
Returns:the updateHistory value
/** * Get the ImmutabilityPolicy update history of the blob container. * * @return the updateHistory value */
public List<UpdateHistoryProperty> updateHistory() { return this.updateHistory; } }