ImmutabilityPolicyInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. storage. models. AzureEntityResource - com.
azure. resourcemanager. storage. fluent. models. ImmutabilityPolicyInner
- com.
- com.
- com.
public final class ImmutabilityPolicyInner
extends AzureEntityResource
The ImmutabilityPolicy property of a blob container, including Id, resource name, resource type, Etag.
Constructor | Description |
---|---|
Immutability |
Creates an instance of Immutability |
Modifier and Type | Method and Description |
---|---|
Boolean |
allow Get the allow |
Boolean |
allow Get the allow |
String |
etag()
Get the etag property: Resource Etag. |
static
Immutability |
from Reads an instance of Immutability |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
Integer |
immutability Get the immutability |
String |
name()
Get the name property: The name of the resource. |
Immutability |
state()
Get the state property: The Immutability |
Json |
to |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Immutability |
with Set the allow |
Immutability |
with Set the allow |
Immutability |
with Set the immutability |
Methods inherited from AzureEntityResource
Methods inherited from java.lang.Object
ImmutabilityPolicyInner
public ImmutabilityPolicyInner()
Creates an instance of ImmutabilityPolicyInner class.
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:
etag
public String etag()
Get the etag property: Resource Etag.
Overrides:
ImmutabilityPolicyInner.etag()Returns:
fromJson
public static ImmutabilityPolicyInner fromJson(JsonReader jsonReader)
Reads an instance of ImmutabilityPolicyInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
ImmutabilityPolicyInner.id()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:
name
public String name()
Get the name property: The name of the resource.
Overrides:
ImmutabilityPolicyInner.name()Returns:
state
public ImmutabilityPolicyState state()
Get the state property: The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ImmutabilityPolicyInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
ImmutabilityPolicyInner.type()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: